Skip to content

Commit cabd1ea

Browse files
committed
update gzipped filesize in README, bump version to 0.4.0-beta.1
1 parent 4c79867 commit cabd1ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ npm install -D use-viewport-sizes
1212
```
1313

1414
## Benefits ##
15-
- extremely lightweight and zero dependencies -- adds **1.6kb** after gzip.
15+
- extremely lightweight and zero dependencies -- adds **1.9kb** after gzip.
1616
- 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.

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.4.0-beta.0",
3+
"version": "0.4.0-beta.1",
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)