@react-router/dev
8.5.2 · 18 Nov 2026MIT4.5M / weekRepositoryHomepagenpmAtom feed
Upgrading @react-router/dev From 8.2.0 to 8.5.2
6 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
- Fixed
Fix action submissions behind an HTTPS reverse proxy in
react-router devandvite previewby usingX-Forwarded-Protowhen constructingrequest.url - Fixed
Pass development conditions as CLI flags when relaunching the dev process
- Fixed
Fix stack trace locations for split route modules when source maps are enabled in the
reactRouterVite plugin
- Fixed
- Fixed
Bump
@remix-run/node-fetch-serverdependency - Fixed
Generate JavaScript entry files at package build time so
react-router reveal --no-typescriptdoes not require Prettier at runtime
- Fixed
- New
Restart
react-router devwith--conditions=developmentwhen not already configured - New
Allow
typescript@7to be used - New
Add
unstable_rsc/client-versionclient build version virtual module - New
Support the
subResourceIntegrityconfig option in RSC Framework Mode
- New
18 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.