Packages

@tanstack/virtual-core

3.19.11 · 3 Nov 2026MIT56.2M / weekRepositoryHomepagenpmAtom feed

Upgrading @tanstack/virtual-core From 3.14.0 to 3.15.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 3.14.0Newest 3.x, Latest3.19.11
  1. 3.14.0yours
  2. 3.15.0target
0
changes to make
0
advisories fixed
6
new
2
fixes

Release by release

  1. 3.15.0

    20 May 20266 new · 2 fixes
    • New

      iOS Safari momentum-scroll handling. Writing scrollTop while a finger is on the screen, during momentum decay, or while the page is in the elastic-overscroll bounce zone all cancel the in-flight scroll in iOS WebKit. The virtualizer previously had no iOS-specific handling, which manifested as the recurring "scroll abruptly stops when content above resizes" complaints on Safari mobile.

    • New

      Skip the scroll-position adjustment while the user is scrolling backward by default. When an above-viewport item resizes during backward scroll (images load, content reflows, etc.) the prior behavior wrote scrollTop to keep the visible window stable — but on backward scroll that write fights the user's direction and produces visible "items jump up while I scroll up" jank. This was the largest single complaint cluster in the issue tracker (multiple recurring threads spanning years; users had independently rediscovered the same workaround at least five times).

    • New

      Add takeSnapshot() instance method for scroll-restoration round-trips. Returns the currently-measured items as plain VirtualItem objects; pair with the current scrollOffset to persist scroll position across remounts (route navigation, list-view modals, etc.). The result feeds back through the existing initialMeasurementsCache option:

    • New

      Mount-time, measurement, and memory rewrite for huge lists. The hot path through getMeasurements() no longer allocates a VirtualItem object per index for single-lane lists; instead it fills a Float64Array of start/size pairs and materializes VirtualItem objects lazily through a Proxy-backed view when consumers index into them. Internal hot paths (calculateRange, getVirtualItemForOffset, getTotalSize, resizeItem) read directly from the typed-array storage to avoid the Proxy.

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.