Skip to content

Commit 862bba1

Browse files
SBoudriasZeeCoder
authored andcommitted
Bump version and update CHANGELOG
1 parent a85db0b commit 862bba1

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# CHANGELOG
22

3+
## 3.2.0
4+
5+
- Added option to pass default width and height. This is useful when using this plugin on the SSR side.
6+
7+
Demo:
8+
9+
```js
10+
const DEFAULT_WIDTH = 1024;
11+
const DEFAULT_HEIGHT = 600;
12+
13+
const [ref, width, height] = useResizeObserver(DEFAULT_WIDTH, DEFAULT_HEIGHT);
14+
```
15+
316
## 3.1.0
417

518
- Added Typescript types

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "use-resize-observer",
3-
"version": "3.1.0",
3+
"version": "3.2.0",
44
"main": "dist/bundle.cjs.js",
55
"module": "dist/bundle.esm.js",
66
"repository": "[email protected]:ZeeCoder/use-resize-observer.git",

0 commit comments

Comments
 (0)