chore(deps):(deps): Bump react-window from 1.8.11 to 2.0.2
Type: Pull Request
State: Closed
![dependabot[bot]](https://github.com/dependabot.png)
Association: Contributor
Comments: 1
(8 days ago)
(5 days ago)
(5 days ago)
dependencies javascript
Bumps react-window from 1.8.11 to 2.0.2.
Release notes
Sourced from react-window's releases.
2.0.2
Fixed edge-case bug with
Grid
imperative APIscrollToCell
method and "smooth" scrolling behavior.2.0.1
- Remove ARIA
role
attribute fromList
andGrid
. This resulted in potentially invalid configurations (e.g. a ARIA list should contain at least one listitem but that was not enforced by this library). Users of this library should specify therole
attribute that makes the most sense to them based on mdn guidelines. For example:<List role="list" rowComponent={RowComponent} rowCount={names.length} rowHeight={25} rowProps={{ names }} />;
function RowComponent({ index, style, ...rest }: RowComponentProps<object>) { return ( <div role="listitem" style={style}> ... </div> ); }
2.0.0
Version 2 is a major rewrite that offers the following benefits:
- More ergonomic props API
- Automatic memoization of row/cell renderers and props/context
- Automatically sizing for
List
andGrid
(no more need forAutoSizer
)- Native TypeScript support (no more need for
@types/react-window
)- Smaller bundle size
Upgrade path
See the documentation for more details, but here is an example of what the v1 to v2 upgrade might look like:
Before
import { FixedSizeList, type ListChildComponentProps } from "react-window";
function Example({ names }: { names: string[] }) { const itemData = useMemo<ItemData>(() => ({ names }), [names]);
return ( <FixedSizeList children={Row} height={150} itemCount={1000} </tr></table>
... (truncated)
Changelog
Sourced from react-window's changelog.
2.0.2
Fixed edge-case bug with
Grid
imperative APIscrollToCell
method and "smooth" scrolling behavior.2.0.1
- Remove ARIA
role
attribute fromList
andGrid
. This resulted in potentially invalid configurations (e.g. a ARIA list should contain at least one listitem but that was not enforced by this library). Users of this library should specify therole
attribute that makes the most sense to them based on mdn guidelines. For example:<List role="list" rowComponent={RowComponent} rowCount={names.length} rowHeight={25} rowProps={{ names }} />;
function RowComponent({ index, style, ...rest }: RowComponentProps<object>) { return ( <div role="listitem" style={style}> ... </div> ); }
2.0.0
Version 2 is a major rewrite that offers the following benefits:
- More ergonomic props API
- Automatic memoization of row/cell renderers and props/context
- Automatically sizing for
List
andGrid
(no more need forAutoSizer
)- Native TypeScript support (no more need for
@types/react-window
)- Smaller bundle size
Upgrade path
See the documentation for more details, but here is an example of what the v1 to v2 upgrade might look like:
Before
import { FixedSizeList, type ListChildComponentProps } from "react-window";
function Example({ names }: { names: string[] }) { const itemData = useMemo<ItemData>(() => ({ names }), [names]);
return ( <FixedSizeList </tr></table>
... (truncated)
Commits
c9349a4
2.0.1 -> 2.0.26adc6c0
Merge pull request #832 from bvaughn/issues/831bd562c5
Add testscced926
Fix scrollToCell bugd1af943
README formattingcaa4266
README formatting2e326fb
2.0.0 -> 2.0.16bcf34e
README formatting tweakddfab80
Lighthouse changes to docs sitee46efe9
Update README- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
1
2
+60
-118
Package Dependencies
Technical Details
ID: | 7144111 |
UUID: | 2800920569 |
Node ID: | PR_kwDOPqECks6m8qf5 |
Host: | GitHub |
Repository: | devexcom/backstage-plugins |
Merge State: | Unknown |