@tanstack/history
1.162.5 · 10 Oct 2026MIT25.6M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgrade- 1.x1.162.5Safe from 1.162.0Latest line
Latest releases
All 151 releases1.162.5
10 Oct 2026- Removed
Drop a duplicated current-location flag and a redundant
createHrefwrapper. Avoid temporary arrays when reading hash-history locations.
Keep a leading query or fragment out of the parsed pathname, so hash-history URLs like
/#?x=1no longer repeat the query in the router location.
Patch Changes
- Removed
Drop a duplicated current-location flag and a redundant
createHrefwrapper. Avoid temporary arrays when reading hash-history locations.
Keep a leading query or fragment out of the parsed pathname, so hash-history URLs like
/#?x=1no longer repeat the query in the router location.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.Use
sliceinstead ofsubstringwhere the bounds are always ordered and non-negative.
1.162.4
13 Sep 2026Normalize memory history hrefs consistently with browser and server history, including protocol-relative paths and control characters.
Avoid temporary arrays when replacing forward memory-history entries.
Avoid generating unused history keys for locations with existing state.
Patch Changes
Normalize memory history hrefs consistently with browser and server history, including protocol-relative paths and control characters.
Avoid temporary arrays when replacing forward memory-history entries.
Avoid generating unused history keys for locations with existing state.
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.
1.162.3
9 Sep 2026Validate 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.
Preserve native form HTTP redirects, route error handling and masks for document redirects, and per-navigation destinations for shared loader redirects. Avoid redundant origin parsing and reduce link styling and server-rendering work. Configured origins must already be normalized.
Keep blocked-link inactive props consistent during React hydration, honor explicit redirect Location headers before checking route options, and refresh Vue link state when destinations become internal. Reuse the protocol-relative URL check while parsing redirect schemes once.
Reduce React link bundle size by sharing pathname comparisons, state-prop selection, and element creation.
Share normalized pathname comparisons in Solid and Vue links to reduce bundle size.
Use full-document navigation when an output rewrite produces a cross-origin destination, including the public URL of a route mask.
Respect registered history blockers during document navigation, passing history locations and the requested push or replace action.
Dependency tracking
Know when your own dependencies move
@tanstack/history had 2 security advisories in the last 12 months. inlinr emails you the day one touches a project of yours, with the version that fixes it.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Reading releases, release notes and advisories…
Registry facts last checked 17 Nov 2026. Releases and advisories last read 17 Nov 2026.