Skip to content

Commit b71236d

Browse files
authored
Merge pull request #38 from rob2d/chore/update-deps-2503
add React19 support via peerDeps + bump packages & resolve recent vulnerabilities
2 parents 0322ef6 + 36f778e commit b71236d

File tree

4 files changed

+1341
-3792
lines changed

4 files changed

+1341
-3792
lines changed

.babelrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"presets": [
33
"@babel/preset-env"
4-
54
]
65
}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ npm install -D use-viewport-sizes
1313
```
1414

1515
## Benefits ##
16-
- extremely lightweight and zero dependencies -- adds **2kb** after gzip.
16+
- extremely lightweight and zero dependencies -- adds **2.04kb** after gzip.
1717
- only one `window.onresize` handler used to subscribe to any changes in an unlimited number of components no matter the use-cases.
1818
- 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.
1919
- debouncing does not create new handlers or waste re-renders in your component; the results are also pooled from only one resize result.
2020
- optional hash function to update component subtree only at points you would like to.
2121
- supports lazy loaded components and SSR out of the box.
22+
- compatible with React v16 | v17 | v18 | v19
2223

2324

2425
## Usage ##

0 commit comments

Comments
 (0)