Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.
This PR contains the following updates:
^1.8.11
->^2.1.1
Release Notes
bvaughn/react-window (react-window)
v2.1.1
Compare Source
Grids with only one row no longer incorrectly set cell height to 100%.
v2.1.0
Compare Source
Improved ARIA support:
HTMLDivElement
ariaAttributes
prop to row and cell renderers to simplify better ARIA attributes for user-rendered cellsHTMLDivElement
fromList
andGrid
children
prop toList
andGrid
for e.g. overlays/tooltipstagName
prop; defaults to"div"
but can be changed to e.g."ul"
Added optional
children
prop to better support edge cases like sticky rows.Minor changes to
onRowsRendered
andonCellsRendered
callbacks to make it easier to differentiate between visible items and items rendered due to overscan settings. These methods will now receive two params– the first for visible rows and the second for all rows (including overscan), e.g.:v2.0.2
Compare Source
Fixed edge-case bug with
Grid
imperative APIscrollToCell
method and "smooth" scrolling behavior.v2.0.1
Compare Source
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:v2.0.0
Compare Source
Version 2 is a major rewrite that offers the following benefits:
List
andGrid
(no more need forAutoSizer
)@types/react-window
)Upgrade path
This section contains a couple of examples for common upgrade paths. Please refer to the documentation for more information.
Migrating
FixedSizeList
Before
After
Migrating
VariableSizedList
Before
After
Migrating
FixedSizeGrid
Before
After
Migrating
VariableSizeGrid
Before
After
The following requirements are new in version 2 and may be reasons to consider not upgrading:
ResizeObserver
primitive (or polyfill) is required unless explicit pixel dimensions are provided viastyle
prop; (see documentation for more)1.8.11
1.8.10
1.8.9
1.8.8
scrollToItem
accounts for scrollbar size in the uncommon case where a List component has scrolling in the non-dominant direction (e.g. a "vertical" layout list also scrolls horizontally).1.8.7
1.8.6
1.8.5
1.8.4
visibleStopIndex
inonItemsRendered
. (Previously this value was incorrectly reported as one index higher.) - (justingrant - #274)scrollToItem
"center" mode when the item being scrolled to is near the viewport edge. - (justingrant - #274)1.8.3
scrollToItem
when scrollbars are present (MarkFalconbridge - #267)1.8.2
overscanColumnsCount
andoverscanRowsCount
props in favor of more consistently namedoverscanColumnCount
andoverscanRowCount
. (nihgwu - #229)1.8.1
pointer-events
withundefined
(oliviertassinari - #210)1.8.0
1.7.2
scrollTo()
is called with a negative offset or whenscrollToItem
is called with invalid indices (negative or too large).1.7.1
1.7.0
scrollToItem
supports optionalrowIndex
andcolumnIndex
params (jgoz - #174)WeakSet
support before using it to avoid requiring a polyfill for IE11 - (jgoz - #167)1.6.2
1.6.1
1.6.0
scrollToItem
methods take scrollbar size into account when aligning items - #1531.5.2
VariableSizeList
andVariableSizeGrid
when the number of items decreases while a scroll is in progress. - (iamsolankiamit - #138)1.5.1
getDerivedState
Flow annotations to address a warning in a newer version of Flow.1.5.0
areEqual
andshouldComponentUpdate
for item renderers. - #1141.4.0
overscanColumnsCount
andoverscanRowsCount
props. LegacyoverscanCount
prop will continue to work, but with a deprecation warning in DEV mode.setTimeout
withrequestAnimationFrame
based timer, to avoid starvation issue forisScrolling
reset. - #106innerTagName
andouterTagName
props toinnerElementType
andouterElementType
to formalize support for attaching arbitrary props (e.g. test ids) to List and Grid inner and outer DOM elements. LegacyinnerTagName
andouterTagName
props will continue to work, but with a deprecation warning in DEV mode.direction
prop changes. - #1041.3.1
itemData
value to customitemKey
callbacks when present - #90)1.3.0
1.2.4
1.2.3
children
validation checks. They were too strict and didn't support new React APIs likememo
.1.2.2
1.2.1
itemData
parameter. (TrySound - #66)VariableSizeList
andVariableSizeGrid
no longer call size getter functions with invalid index when item count is zero.1.2.0
scrollTo
method to makescrollLeft
andscrollTop
params optional (so you can only update one axis if desired). - #63)this
pointer inVariableSizeGrid
that broke theresetAfter*
methods - #58)overflow:hidden
from inner container (souporserious - #56)1.1.2
scrollToItem
bug that caused lists/grids with very few items to have negative scroll offsets.1.1.1
FixedSizeGrid
andFixedSizeList
automatically clear style cache when item size props change.1.1.0
constructor
andsuper
to generate cleaner component code. (Andarist - #26)shouldForceUpdate
param reset-index methods to specifyforceUpdate
behavior. (nihgwu - #32)1.0.3
1.0.2
annotate-pure-calls
option so that classes compiled by "transform-es2015-classes" are annotated with#__PURE__
. This enables UglifyJS to remove them if they are not referenced, improving dead code elimination in application code. (Andarist - #20)includeDependencies
flag so that the "memoize-one" dependency does not get inlined into the Rollup bundle. (Andarist - #19)1.0.1
Updated
README.md
file to remove@alpha
tag from NPM installation instructions.Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 04:59 AM, only on Sunday ( * 0-4 * * 7 ) in timezone UTC, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.