@react-router/dev
8.5.2 · 18 Nov 2026MIT4.5M / weekRepositoryHomepagenpmAtom feed
8.5.2 is the newest release of 8.x.
In short
3 new3 fixed3 internal
Release note
The section about @react-router/dev of a note shared by several packages.
Patch Changes
Fix critical CSS collection in dev registering server-only route imports as client dependencies, which triggered dependency re-optimization and full page reloads
Fix intermittent
Prerender: Request failed for ... connect ECONNREFUSEDerrors during prerenderingSend requests to the address the Vite preview server bound to
Avoid re-resolving
localhostfor each request, which could select a different address family (127.0.0.1vs::1)
Unstable Changes
⚠️ Unstable features are not recommended for production use
Add
ssr: "unstable_api-only"to retain a runtime server for loaders, actions, and route discovery while disabling production document renderingGenerate a root-only SPA shell when prerendering is disabled
Support prerendered pages and data files alongside runtime loaders and actions, with a SPA fallback for non-prerendered paths
Default API-only builds to lazy route discovery
Reject API-only configuration in RSC Framework Mode
Preserve server-only route exports in additional Vite server environments in both API-only and SSR modes
Serve prerendered pages and the SPA fallback in Vite preview while retaining live data requests and route discovery
Add the
future.unstable_customRouteDiscoveryflag to opt into application-controlled route discovery in conventional Framework ModeFix source maps for route modules in unstable RSC Framework Mode
Add
unstable_apiServerOriginto configure the origin for API-only loader, action, and route discovery requests
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.