Skip to content

Commit 1074765

Browse files
committed
Update CHANGELOG, README, and package.json
1 parent 1ecf892 commit 1074765

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## 2.2.0
4+
5+
- Support for dynamic row heights via new `useDynamicRowHeight` hook.
6+
7+
```tsx
8+
const rowHeight = useDynamicRowHeight({
9+
defaultRowHeight: 50
10+
});
11+
12+
return <List rowHeight={rowHeight} {...rest} />;
13+
```
14+
15+
- Smaller NPM bundle; (docs are no longer included as part of the bundle due to the added size)
16+
317
## 2.1.2
418

519
Prevent `ResizeObserver` API from being called at all if an explicit `List` height (or `Grid` width and height) is provided.

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,6 @@ npm install react-window
2828

2929
Documentation for this project is available at [react-window.vercel.app](https://react-window.vercel.app/).
3030

31-
Each release also ships with its own copy of the documentation (in the `docs` folder) which can be viewed by running:
32-
33-
```sh
34-
# From the package directory
35-
npx serve -s docs
36-
37-
# Or as an NPM-installed dependency
38-
npx serve -s ./node_modules/react-window/docs
39-
```
40-
4131
> **Note**: Older version 1.x documentation can be found at [react-window-v1.vercel.app](https://react-window-v1.vercel.app/) or on the NPM page for a specific version, e.g. [1.8.11](https://www.npmjs.com/package/react-window/v/1.8.11).)
4232
4333
## 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": "react-window",
3-
"version": "2.1.2",
3+
"version": "2.2.0",
44
"type": "module",
55
"author": "Brian Vaughn <brian.david.vaughn@gmail.com> (https://github.com/bvaughn/)",
66
"contributors": [

0 commit comments

Comments
 (0)