@tanstack/vue-router@1.170.31
TanStack/router@tanstack/vue-router@1.170.31Sep 9, 2026by github-actions[bot]
AI Summary
Validates navigation and redirect destinations, constrains prerender requests, and optimizes link bundle sizes across React, Solid, and Vue.
Key Highlights
- Validate navigation and redirect destinations
- Keep ambiguous relative URLs on the current origin
- Constrain prerender requests and output paths
- Reduce link bundle size by sharing pathname comparisons
New Features
- Validate navigation and redirect destinations
- Constrain prerender requests and output paths
- Reduce React link bundle size
- Share normalized pathname comparisons in Solid and Vue links
Full Release Notes
### Patch Changes
- [#8308](https://github.com/TanStack/router/pull/8308) [`9c1871c`](https://github.com/TanStack/router/commit/9c1871ccc88bc1157186b8b460941a304ec740b8) - 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.
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.
- Updated dependencies \[[`f9836f1`](https://github.com/TanStack/router/commit/f9836f16f0e25b0a8495f5e01e3f303b1cbc8725), [`9c1871c`](https://github.com/TanStack/router/commit/9c1871ccc88bc1157186b8b460941a304ec740b8), [`9871c06`](https://github.com/TanStack/router/commit/9871c0625806001d6bf373524821a00303438a91), [`0654c0a`](https://github.com/TanStack/router/commit/0654c0a1a427db24d9af13c1d6ad1217a588c0c9)]:
- @tanstack/router-core@1.171.29
- @tanstack/history@1.162.3