@tanstack/router-core
1.171.39 · 22 Oct 2026MIT30.7M / weekRepositoryHomepagenpmAtom feed
Upgrading @tanstack/router-core From 1.171.30 to 1.171.31
1 release in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
Speed up
deepEqual: identical array elements no longer recurse, the exact comparison keeps a single key counter, and the redundanttypeofearly exit is gone. Equal numeric arrays compare ~70% faster and record comparisons 5–12% faster in the mixed-mode workloads that Link option stabilization and active-state checks produce, with a slightly smaller bundle. Behavior, including key enumeration and getter read order, is unchanged. - Fixed
deepEqualnow takes its flags as positional arguments —deepEqual(a, b, partial?, explicitUndefined?)— instead of an options object. The router's hot callers (Link option stabilization and active-state checks,matchRoute) no longer allocate an options object per comparison, and the comparator reads two booleans instead of a polymorphic object.explicitUndefinedreplacesignoreUndefined: false.deepEqualis an internal helper; it stays exported for compatibility of two-argument calls. - Fixed
Reduce per-request SSR overhead: abort settled route matches with one shared
AbortError-shaped reason instead of building a stack-capturingDOMExceptionper match, skipJSON.parsefor search values that cannot start JSON, wait on request signals with one listener per wait, and keep resolved server-function modules in production builds instead of re-importing them on every call. - Fixed
resolvePath(internal helper) now takes positional arguments —resolvePath(base, to, trailingSlash?, cache?)— sobuildLocationandmatchRouteno longer allocate an options object per path resolution. - Fixed
Stream large deferred SSR hydration payloads through a backpressure-aware router transport, fail known setup errors before response creation, and close cancelled or expired transforms safely.
- Fixed
Parse the location once when
router.update()changes the basepath or rewrite, collectinvalidate()match ids in a single pass, and specialize internal basepath composition without arrays or loops. Preserve basepath case sensitivity when creating and updating the router. - Fixed
Parse masked locations without mutating shared state and simplify input rewrite handling.
- New
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.