@tanstack/router-core
1.171.39 · 22 Oct 2026MIT30.7M / weekRepositoryHomepagenpmAtom feed
1.171.39 is the newest release of 1.x.
In short
11 fixed1 internal
Release note
Patch Changes
Make each load transaction's completion follow its current successor so a burst of back-to-back loads wakes each superseded waiter once instead of once per successor. Previously every superseded
load()re-polled the current transaction on each later completion, which was quadratic in microtask work.Exclude structural descendants below error and not-found boundaries from route lifecycle callbacks. Preserve lifecycle membership through invalidation, hydration, background reloads, and superseded navigation publication.
Preserve falsy thrown values in React and Vue error boundaries. Type React and Vue boundary error components and
onCatchcallbacks asunknown. Solid boundary errors remain typed asError; SSR now wraps non-Errorloader errors to match Solid’s native boundary behavior, preserving the original value incause. Router state and loaderonErrorvalues are unchanged.When upgrading React or Vue, narrow boundary errors (for example, with
error instanceof Error) before readingmessageorstack.ErrorComponentProps<TError>remains available for values narrowed to a specific error type. RouteonErrortypes are unchanged.Fix consumer typechecking with
skipLibCheck: falseby omitting the internal beforeLoad context field from published dehydrated match declarations.Retain the exported
isAbsoluteUrldeclaration used by framework bindings so the package entry point does not reference a stripped symbol.Reduce Promise allocations during client navigation and static server SSR policy resolution. Skip cancellable waits for synchronous beforeLoad results while preserving navigation cancellation.
Avoid quadratic resource handoff scans when navigating with many cached route matches.
Retain successful not-found matches as terminal shared boundaries during client navigation, preserving route context while the destination loads.
Avoid unnecessary JSON.parse calls for search parameter values that cannot begin valid JSON, while preserving custom parser behavior.
Use URL.canParse for absolute URL checks in links, navigation, redirects, and build configuration. Preserve a URL constructor fallback for older browsers.
Replace the internal LRU cache behind path resolution, route matching and the SSR manifest lookup with a smaller SIEVE cache whose hits no longer relink a list, and fix an eviction edge case in the old implementation.
Reduce promise allocations during client navigation when loader data and route components are already available.
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.