Packages

@tanstack/router-core

1.171.39 · 22 Oct 2026MIT30.7M / weekRepositoryHomepagenpmAtom feed

Upgrading @tanstack/router-core From 1.169.2 to 1.171.39

44 releases in betweennotes for 42

Reading releases, release notes and advisories…

  1. 1.169.2yours
  2. 39 releases
  3. 1.171.35breaking
  4. 3 releases
  5. 1.171.39target
1+
change to make
0
advisories fixed
9+
new
95+
fixes

Counted from 42 of 44 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking1.171.35

Release by release

  1. 1.171.39

    22 Oct 20261 fix
    • Fixed

      Reference agent skills in other packages by their intent load identifier (@tanstack/<package>#<skill>) instead of relative file links that break once packages are installed.

  2. 1.171.38

    16 Oct 20261 fix
    • Fixed

      Render generated script preloads (modulepreload, or preload as="script" for IIFE output) with fetchPriority="low" and forward it into static Early Hints, so they no longer compete with render-blocking stylesheets, fonts and images.

  3. 1.171.37

    12 Oct 20261 fix
    • 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.

  4. 1.171.36

    12 Oct 20261 fix
    • Fixed

      Reduce per-request work in Start: getNormalizedURL reads a URL input without cloning it, and runWithStartContext returns the callback's own result instead of wrapping it in a promise, so a synchronous throw from the callback now propagates synchronously.

  5. 1.171.35

    Migration needed10 Oct 20264 fixes
    • Breaking

      Drop a duplicated current-location flag and a redundant createHref wrapper.

    • 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. buildLocation now builds mask and routeMasks locations from the same _fromLocation as 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 href and reloadDocument props, and React Links no longer each subscribe to a hydration flag.

    • Fixed

      Use slice instead of substring where 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)

  6. 1.171.34

    30 Sep 20261 fix
    • Fixed

      Align server function request and response handling.

  7. 1.171.33

    27 Sep 20263 fixes
    • Fixed

      Update seroval and seroval-plugins from 1.6.2 to 1.6.7. This picks up the typed array length guard, the maxBase64Length and compactArrayBufferViews options, and the isStream export.

    • 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.

  8. 1.171.32

    16 Sep 20265 fixes
    • Fixed

      Detect plain objects by constructor instead of Object.prototype.toString dispatches in isPlainObject, which gates every deepEqual and replaceEqualDeep recursion step. Object literals, JSON.parse output and null-prototype objects are still plain; objects from another realm no longer are. Records with an own constructor key (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 replaceEqualDeep by 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 constructor opaque.

    • Fixed

      Allocate the replaceEqualDeep result 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 replaceEqualDeep into 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 a hasOwnProperty lookup, 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.

34 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.