@react-router/dev
8.5.2 · 18 Nov 2026MIT4.5M / weekRepositoryHomepagenpmAtom feed
Upgrading @react-router/dev From 8.4.0 to 8.5.2
3 releases in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- Fixed
Cache client route chunk analysis using normalized route paths and disable dependency optimization in the child compiler, including explicitly included dependencies
- Fixed
Serialize concurrent type generation to prevent filesystem races between
react-router devandreact-router typegen - Fixed
Pass route component props to exports declared with export specifiers
- Fixed
Improve handling of prerendered redirect destinations in Framework Mode and unstable RSC Framework Mode
- Fixed
- Fixed
Use resolved Vite environment output directories when reading and writing build artifacts
- Fixed
Run prerendering after other Vite plugins finish their application build hooks
- Fixed
- New
Add
ssr: "unstable_api-only"to retain a runtime server for loaders, actions, and route discovery while disabling production document rendering - New
Add the
future.unstable_customRouteDiscoveryflag to opt into application-controlled route discovery in conventional Framework Mode - New
Add
unstable_apiServerOriginto configure the origin for API-only loader, action, and route discovery requests - Fixed
Fix critical CSS collection in dev registering server-only route imports as client dependencies, which triggered dependency re-optimization and full page reloads
- Fixed
Fix intermittent
Prerender: Request failed for ... connect ECONNREFUSEDerrors during prerendering - Fixed
Fix source maps for route modules in unstable RSC Framework Mode
- New
9 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.