Packages

@tanstack/history

1.162.5 · 10 Oct 2026MIT29.4M / weekRepositoryHomepagenpmAtom feed

Upgrading @tanstack/history From 1.161.12 to 1.162.5

6 releases in betweenevery note read

Other targets from 1.161.12Clears its 2 advisories1.162.0

Before you upgrade

Tick each one off as you go
  • Breaking1.162.5

Security

Release by release

  1. 1.162.5

    Migration needed10 Oct 20264 fixes
    • Breaking

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

    • Fixed

      Avoid temporary arrays when reading hash-history locations.

    • Fixed

      Keep a leading query or fragment out of the parsed pathname, so hash-history URLs like /#?x=1 no longer repeat the query in the router location.

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

  2. 1.162.4

    13 Sep 20264 fixes
    • Fixed

      Normalize memory history hrefs consistently with browser and server history, including protocol-relative paths and control characters.

    • Fixed

      Avoid temporary arrays when replacing forward memory-history entries.

    • Fixed

      Avoid generating unused history keys for locations with existing state.

    • Fixed

      Use lightweight request history for SSR and make server navigation a no-op. Use redirect() to issue HTTP redirects. Server hrefs use the same normalization as browser history to handle protocol-relative URLs and control characters.

  3. 1.162.3

    9 Sep 20262 fixes
    • Fixed

      Validate navigation and redirect destinations, keep ambiguous relative URLs on the current origin, and constrain prerender requests and output paths. Prevent redirect headers from appearing in serialized server function response bodies.

    • Fixed

      Use full-document navigation when an output rewrite produces a cross-origin destination, including the public URL of a route mask.

  4. 1.162.2

    6 Sep 20261 fix
    • Fixed

      Respect ignoreBlocker during go() navigation, including document unload warnings. Preserve beforeunload warnings during back and forward navigation unless ignoreBlocker is requested, and clear the bypass after same-document traversal so later document navigation still warns about unsaved changes.

  5. 1.162.1

    6 Aug 20261 new
    • New

      Compact private bundle boundaries- #7975

  6. 1.162.0

    15 May 20261 new
    • New

      Clean minor bump, fresh start

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.