@tanstack/virtual-core
3.19.11 · 3 Nov 2026MIT56.2M / weekRepositoryHomepagenpmAtom feed
3.19.11 is the newest release of 3.x.
In short
2 fixed
Release note
Patch Changes
Cut per-scroll-frame allocations on the default
lanes === 1path. Range computation previously allocated an options object and two closures on every scroll event; it now does the same work allocation-free, reducing GC pressure during continuous scroll.Don't latch a scroll direction from the read-back of the virtualizer's own adjustment write
applyScrollAdjustmentfolds the pending adjustment intoscrollOffseteagerly, so the browser's scroll event for that write arrives at exactly the held offset. The scroll-direction computation treated that equality as'backward', which made the defaultshouldAdjustScrollPositionOnItemSizeChangeskip above-viewport re-measure compensation for the rest of theisScrollingResetDelaywindow — so during multi-frame reflows (e.g. a side pane's width animation re-wrapping rows while scrolled up) most frames went uncompensated and the viewport drifted. An event at the held offset carries no direction information, so the direction now stays unchanged in that case; real gestures always move the offset and still latch normally.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.