@tanstack/router-core
1.171.39 · 22 Oct 2026MIT30.7M / weekRepositoryHomepagenpmAtom feed
Upgrading @tanstack/router-core From 1.171.25 to 1.171.39
14 releases in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 2
- new
- 63
- fixes
Before you upgrade
Tick each one off as you go- Breaking1.171.35
Release by release
- Fixed
Reference agent skills in other packages by their
intent loadidentifier (@tanstack/<package>#<skill>) instead of relative file links that break once packages are installed.
- Fixed
- Fixed
Render generated script preloads (
modulepreload, orpreload as="script"for IIFE output) withfetchPriority="low"and forward it into static Early Hints, so they no longer compete with render-blocking stylesheets, fonts and images.
- Fixed
- Fixed
Reuse the parsed request location during SSR instead of repeating input rewrites. Match server routes against the app router's parsed pathname while preserving encoded pathnames for server handlers and middleware.
- Fixed
- Fixed
Reduce per-request work in Start:
getNormalizedURLreads aURLinput without cloning it, andrunWithStartContextreturns the callback's own result instead of wrapping it in a promise, so a synchronous throw from the callback now propagates synchronously.
- Fixed
- Breaking
Drop a duplicated current-location flag and a redundant
createHrefwrapper. - Fixed
Links of a route that the pending navigation leaves skip deriving the destination location, and clicks and preloads follow the href a Link displays.
buildLocationnow buildsmaskandrouteMaskslocations from the same_fromLocationas the destination. - Fixed
Fixed Link destinations that resolve to a route mask are now reused across navigations instead of being rebuilt every time. A mounted Link now follows changes to its
hrefandreloadDocumentprops, and React Links no longer each subscribe to a hydration flag. - Fixed
Use
sliceinstead ofsubstringwhere the bounds are always ordered and non-negative. - Fixed
Encode slashes in dehydrated SSR match IDs with
#instead of a null byte, so the inlined hydration payload no longer contains U+0000 (which is invalid in HTML and rejected by markup validators)
- Breaking
- Fixed
Align server function request and response handling.
- Fixed
- Fixed
Update
serovalandseroval-pluginsfrom 1.6.2 to 1.6.7. This picks up the typed array length guard, themaxBase64LengthandcompactArrayBufferViewsoptions, and theisStreamexport. - Fixed
Abort reserved loader generations with no remaining owners when invalidation removes them from discovery, ensuring their public abort signals are retired.
- Fixed
Hand native scroll restoration back to the browser on pagehide, including entries entering BFCache, and reclaim manual restoration when a cached document resumes.
- Fixed
- Fixed
Detect plain objects by constructor instead of
Object.prototype.toStringdispatches inisPlainObject, which gates everydeepEqualandreplaceEqualDeeprecursion step. Object literals,JSON.parseoutput and null-prototype objects are still plain; objects from another realm no longer are. Records with an ownconstructorkey (for example the search params of?constructor=foo) fall back to a prototype check, so they keep structural sharing while class instances stay opaque. - Fixed
Compare and copy plain objects in
replaceEqualDeepby their string keys only, skipping the symbol-key lookup that dominated key enumeration. Objects with non-enumerable own properties, or symbol keys on the incoming value, now pass through untouched instead of being structurally shared. - Fixed
Reduce structural-sharing allocations by reusing array key storage and returning incoming objects when their children need no replacements. Preserve signed zero consistently, remove stale symbol properties, and keep sparse arrays with extra keys and built-ins with an own
constructoropaque. - Fixed
Allocate the
replaceEqualDeepresult only at the first difference, so structural sharing of search, params, state and loader data no longer allocates when the new value is deeply equal to the previous one. - Fixed
Split
replaceEqualDeepinto an equality scan and a copy phase: arrays and objects are scanned by dedicated loops up to the first difference, matching keys prove ownership without ahasOwnPropertylookup, and once a difference is found the result is built without any further equality bookkeeping. Deeply equal search, params, state and loader data are recognised faster and changed values are copied with less work per entry.
- Fixed
4 internal lines (docs, tests, tooling) left out.
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.