Skip to content

Commit 5d819ba

Browse files
committed
README: update gzip size and phrasing, bump to v0.3.0
1 parent 652d3ea commit 5d819ba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ npm install -D use-viewport-sizes
1212
```
1313

1414
## Benefits ##
15-
- extremely lightweight and dependency-free -- **3.75kb** without/before gzipping.
16-
- only one `window.onresize` handler used to subscribe to any changes in an unlimited number of components as well despite several different paradigms that pull from this.
15+
- extremely lightweight and zero dependencies -- adds **1.6kb** after gzip.
16+
- only one `window.onresize` handler used to subscribe to any changes in an unlimited number of components no matter the use-cases.
1717
- optional debounce to delay updates until user stops dragging their window for a moment; this can make expensive components with size-dependent calculations run much faster and your app feel smoother.
1818
- debouncing does not create new handlers or waste re-renders in your component; the results are also pooled from only one resize result.
1919
- optional hash function to update component subtree only at points you would like to.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "use-viewport-sizes",
3-
"version": "0.3.0-beta.1",
3+
"version": "0.3.0",
44
"description": "a tiny React hook which allows you to track visible window viewport size in your components w/ an optional debounce or custom memo function for updates for optimal rendering.",
55
"main": "./build/index.js",
66
"types": "./build/index.d.ts",

0 commit comments

Comments
 (0)