Skip to content

Bump react-window from 1.8.11 to 2.4.1 - #5104

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/react-window-2.4.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/react-window-2.4.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 23, 2026

Copy link
Copy Markdown
Contributor

Bumps react-window from 1.8.11 to 2.4.1.

Release notes

Sourced from react-window's releases.

2.4.1

  • Fix performance issues for fixed-size rows or columns with a size of 0 (e.g. a percentage size before the container has been measured). Rendering no longer computes and caches bounds for every item, and only the first item is rendered (previously the last items were rendered, or every item if the scroll offset was negative). Invalid sizes (e.g. "abc%" or negative values) are treated as 0. - #923

2.4.0

Server rendering improvements:

Features

  • Add defaultScrollOffset prop to List and defaultScrollLeft/defaultScrollTop props to Grid for setting the initial scroll position. Server-rendered HTML can't be pre-scrolled, so server rendering starts at the first row and the default scroll offset is applied when the component hydrates (unless the browser has already restored a scroll position). For lists and grids that are initially empty (e.g. while data is loading), the offset is applied once they have rows.
  • Add initialRowHeights option to useDynamicRowHeight for providing row heights that are known or can be estimated ahead of time (e.g. during server rendering).
  • Add a server rendering page to the docs site.

Bug fixes

  • Server-rendered rows with dynamic heights are now displayed in normal document flow until they have been measured, rather than being positioned using estimated heights (which caused rows to overlap or leave gaps until after hydration).
  • Fix List and Grid logging useLayoutEffect warnings when server rendered with React 18.
  • Fix getScrollbarSize throwing when called during server rendering; it now returns 0.

2.3.4

  • Fix useDynamicRowHeight not measuring rows that set an aria-hidden attribute. - #917
  • Support rendering into a different window (e.g. an iframe or a pop-up window opened with a portal). List, Grid, and useDynamicRowHeight now use the ResizeObserver, requestAnimationFrame, and document that belong to the window containing the list, rather than the globals of the window that loaded the library. - #918
    • getScrollbarSize accepts an optional ownerDocument parameter and caches the measured size separately for each document.

2.3.3

  • Fix small perf regression in version 2.3.2 that caused unnecessary size calculations when scrolling beyond cached bounds dynamic sized rows/columns

2.3.2

  • Improve scrollToRow accuracy for dynamic height rows
  • Bugs fixes
    • Fix RTL scrolling and alignment
    • Fix stale row measurements after keyed reordering
    • Fixed dropped prop updates
    • Use fractional percentage sizing
    • Fix center alignment near list boundaries
  • Performance tweaks:
    • Improve scrolling performance by calculating fixed-size visible ranges directly and searching cached variable-size bounds instead of scanning from the beginning.
    • Fixed-size jumps also avoid allocating bounds for preceding items.

2.3.1

  • Grid updates direction when dir prop changes after mount

2.3.0

  • Add optional rowKey prop to List and add optional rowKey/columnKey prop to Grid.

2.2.7

  • Fixed a problem with project logo not displaying correctly in the README for the Firefox browser.

2.2.6

  • useDynamicRowHeight should not instantiate ResizeObserver when server-rendering

... (truncated)

Changelog

Sourced from react-window's changelog.

2.4.1

  • Fix performance issues for fixed-size rows or columns with a size of 0 (e.g. a percentage size before the container has been measured). Rendering no longer computes and caches bounds for every item, and only the first item is rendered (previously the last items were rendered, or every item if the scroll offset was negative). Invalid sizes (e.g. "abc%" or negative values) are treated as 0. - #923

2.4.0

Server rendering improvements:

Features

  • Add defaultScrollOffset prop to List and defaultScrollLeft/defaultScrollTop props to Grid for setting the initial scroll position. Server-rendered HTML can't be pre-scrolled, so server rendering starts at the first row and the default scroll offset is applied when the component hydrates (unless the browser has already restored a scroll position). For lists and grids that are initially empty (e.g. while data is loading), the offset is applied once they have rows.
  • Add initialRowHeights option to useDynamicRowHeight for providing row heights that are known or can be estimated ahead of time (e.g. during server rendering).
  • Add a server rendering page to the docs site.

Bug fixes

  • Server-rendered rows with dynamic heights are now displayed in normal document flow until they have been measured, rather than being positioned using estimated heights (which caused rows to overlap or leave gaps until after hydration).
  • Fix List and Grid logging useLayoutEffect warnings when server rendered with React 18.
  • Fix getScrollbarSize throwing when called during server rendering; it now returns 0.

2.3.4

  • Fix useDynamicRowHeight not measuring rows that set an aria-hidden attribute. - #917
  • Support rendering into a different window (e.g. an iframe or a pop-up window opened with a portal). List, Grid, and useDynamicRowHeight now use the ResizeObserver, requestAnimationFrame, and document that belong to the window containing the list, rather than the globals of the window that loaded the library. - #918
    • getScrollbarSize accepts an optional ownerDocument parameter and caches the measured size separately for each document.

2.3.3

  • Fix a small performance regression in 2.3.2 that caused unnecessary size calculations when scrolling beyond the cached bounds of dynamically sized rows or columns. - #916

2.3.2

  • Improve scrollToRow accuracy for rows with dynamic heights. - #914
  • Bug fixes: - #915
    • Fix RTL scrolling and alignment.
    • Fix stale row measurements after rows are reordered with rowKey.
    • Fix updates to rowProps/cellProps being dropped when props are added or removed.
    • Support fractional percentage sizes (e.g. "33.3%") for row heights and column widths.
    • Fix "center" alignment for items near the start or end of a list.
  • Performance improvements: - #915
    • Calculate the visible range directly for fixed-size items, and search cached bounds for variable-size items, instead of scanning from the first item.
    • Avoid allocating bounds for preceding items when jumping to a fixed-size item.

2.3.1

  • Fix Grid not updating its layout direction when the dir prop changes after mount. - #913

2.3.0

  • Add optional rowKey prop to List and optional rowKey/columnKey props to Grid. - #911

... (truncated)

Commits

Dependabot compatibility score

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 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)

Bumps [react-window](https://github.com/bvaughn/react-window) from 1.8.11 to 2.4.1.
- [Release notes](https://github.com/bvaughn/react-window/releases)
- [Changelog](https://github.com/bvaughn/react-window/blob/main/CHANGELOG.md)
- [Commits](bvaughn/react-window@1.8.11...2.4.1)

---
updated-dependencies:
- dependency-name: react-window
  dependency-version: 2.4.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from ajay-dhangar as a code owner October 23, 2026 17:32
@dependabot @github

dependabot Bot commented on behalf of github Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: pr: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, @dependabot[bot]! 🎉 Thank you for submitting your pull request to CodeHarborHub. We appreciate your contribution and enthusiasm! Our team will review it soon. If you have any questions or need further assistance, feel free to reach out. Thanks for contributing!

@deepsource-io

deepsource-io Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

DeepSource Code Review

We reviewed changes in 369c4ae...7f12c1d on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
JavaScript Oct 23, 2026 5:33p.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

@github-actions

Copy link
Copy Markdown

⚡️ Lighthouse Report for the Deploy Preview of this PR 🚀

🔗 Site: CodeHarborHub | Live Site

URL 🌐 Performance Accessibility Best Practices SEO 📊
/ 🔴 30 🟡 88 🟡 75 🟢 100 📄
/docs 🔴 37 🟡 87 🟡 75 🟢 100 📄
/courses 🟡 50 🟢 91 🟡 75 🟢 100 📄
/showcase 🔴 42 🟡 87 🟡 75 🟡 86 📄
/community 🔴 43 🟡 86 🟡 75 🟢 100 📄

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants