@react-router/dev
8.5.2 · 18 Nov 2026MIT4.5M / weekRepositoryHomepagenpmAtom feed
Upgrading @react-router/dev From 7.18.6 to 8.5.2
10 releases in betweenevery note read
Reading releases, release notes and advisories…
- 9
- changes to make
- 0
- advisories fixed
- 12
- new
- 24
- fixes
Start here
Before you upgrade
Tick each one off as you go- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking8.0.0
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
- New
Add a Web Streams default server entry for non-Node Framework mode apps
- New
Detect
nubas a supported package manager when installing framework dependencies - New
Add the
future.unstable_enableNodeReadableStreamflag to opt Node Framework mode apps into usingrenderToReadableStreaminstead ofrenderToPipeableStream - Fixed
Detect user
rolldownOptionsconfig in Vite 8+
- New
- Fixed
Fix a regression with the new prerendering plugin where the
react-router.config.tsbuildEndhook would run before prerendering was completed - Fixed
Fixed
react-router typegencrashes under the Bun runtime when Babel default imports are already unwrapped - Fixed
Replace the deprecated
envFile:falseVite config withenvDir:falseto eliminate a deprecation warning when using vite@8.1.0+ - Fixed
Only add the
"node"Vite server condition for Framework mode apps that declare a Node server adapter dependency
- Fixed
30 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.