unstale

npm / @react-router/dev

@react-router/dev

What changed in @react-router/dev 7 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-25.

18 breaking2 security4 deprecations21 new APIs and options12 behavior and defaults13 tooling28 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@react-router/dev 843 changes

Breaking changes 10

  • API-only configuration is rejected in RSC Framework Mode.

    8.5.0release notes

  • The flag was removed, and prerendering with the Vite Environment API is now the default.

    8.0.0release notes

  • The flag was removed because trailing slash-aware data request URLs are now the default behavior.

    8.0.0release notes

  • The flag was removed because the Vite Environment API is always enabled.

    8.0.0release notes

  • The minimum supported Node.js version is now 22.22.0.

    8.0.0release notes

  • The dev proxy export was removed; use @cloudflare/vite-plugin instead.

    8.0.0release notes

  • The option replaces future.v8_splitRouteModules at the top level. It defaults to true; set it to false to keep route modules in one chunk or to "enforce" to require all routes to be splittable.

    7.0.0, 8.0.0release notesupgrade guide

  • Trailing slash-aware data request URLs are now the default behavior.

    8.0.0release notes

  • Vite 7 or later is required, and the Vite Environment API build path is mandatory.

    8.0.0release notes

  • Support for wrangler@3 as a peer dependency of @react-router/dev was dropped.

    8.0.0release notes

Security 1

  • Action submissions behind an HTTPS reverse proxy now construct request.url using X-Forwarded-Proto; configure proxies to overwrite client-supplied values.

    8.4.0release notes

Deprecations 1

  • The --no-typescript flag is deprecated ahead of its removal in React Router v9.

    8.3.1release notes

New APIs and options 7

  • This flag opts into application-controlled route discovery in conventional Framework Mode.

    8.5.0release notes

  • Set ssr: "unstable_api-only" to retain a runtime server for loaders, actions, and route discovery while disabling production document rendering; API-only builds default to lazy route discovery and support prerendered pages and data files with a SPA fallback.

    8.5.0release notes

  • Configure the origin for API-only loader, action, and route discovery requests.

    8.5.0release notes

  • RSC Framework Mode now supports the subResourceIntegrity config option.

    8.3.0release notes

  • Adds a client build version virtual module for RSC.

    8.3.0release notes

  • Custom app/entry.ssr.tsx files can import this virtual module and pass its hashes to React's importMap render option.

    8.3.0release notes

  • This flag opts Node Framework mode apps into renderToReadableStream instead of renderToPipeableStream; it has no effect when an app has its own entry.server.tsx.

    8.2.0release notes

Behavior and default changes 2

  • Non-Node Framework mode apps use a Web Streams default server entry with renderToReadableStream; apps using Node server adapter dependencies continue to use renderToPipeableStream.

    8.2.0release notes

  • The Vite server condition is added only for Framework mode apps that declare a Node server adapter dependency, preventing non-Node SSR runtimes from resolving Node-specific package exports by default.

    8.1.0release notes

Tooling 5

  • Vite preview serves prerendered pages and the SPA fallback while retaining live data requests and route discovery.

    8.5.0release notes

  • Using --no-typescript no longer requires Prettier at runtime because JavaScript entry files are generated at package build time.

    8.3.1release notes

  • Restarts the dev server with --conditions=development when that condition is not already configured.

    8.3.0release notes

  • TypeScript 7 can now be used with this package.

    8.3.0release notes

  • The framework dependency installer detects nub as a supported package manager.

    8.2.0release notes

Fixes and other changes 17

  • Improve handling of prerendered redirect destinations in Framework Mode and unstable RSC Framework Mode.

    8.5.2release notes

  • Serialize concurrent type generation to prevent filesystem races with react-router dev; report cleanup instructions if the lock cannot be acquired within 30 seconds.

    8.5.2release notes

  • Pass props such as loaderData and params to default, ErrorBoundary, and HydrateFallback exports, including re-exports and local aliases.

    8.5.2release notes

  • Preserve RSC client middleware when route components update via HMR.

    8.5.2release notes

  • Fix builds failing with “Vite RSC assets manifest not found” when using @vitejs/plugin-rsc 0.5.36 or later, including when the client build uses write: false.

    8.5.2release notes

  • Avoid adding isbot to dependencies when ssr is false.

    8.5.2release notes

  • Prerendering runs after other Vite plugins finish their application build hooks, and build resources close if another plugin's hook fails.

    8.5.1release notes

  • Build artifacts use resolved Vite environment output directories, preserving overrides applied during build environment creation.

    8.5.1release notes

  • Dev critical CSS collection no longer registers server-only route imports as client dependencies, avoiding dependency re-optimization and full page reloads.

    8.5.0release notes

  • Prerender requests use the Vite preview server's bound address and avoid re-resolving localhost, preventing intermittent connection-refused errors.

    8.5.0release notes

  • Source maps for route modules are fixed in unstable RSC Framework Mode.

    8.5.0release notes

  • Server-only route exports are preserved in additional Vite server environments in both API-only and SSR modes.

    8.5.0release notes

  • Development conditions are passed as CLI flags when the dev process is relaunched.

    8.4.0release notes

  • Stack trace locations for split route modules are fixed when source maps are enabled in the reactRouter Vite plugin.

    8.4.0release notes

  • Fixes crashes under the Bun runtime when Babel default imports are already unwrapped.

    8.1.0release notes

  • The buildEnd hook now runs after prerendering is completed when using the new prerendering plugin.

    8.1.0release notes

  • Internal prerender requests to the Vite preview server use node:http instead of fetch to fix a Windows libuv assertion during prerendering.

    8.0.0release notes

@react-router/dev 755 changes

Breaking changes 8

  • This unstable flag is no longer supported and errors during config resolution; use future.v8_trailingSlashAwareDataRequests instead.

    7.16.0release notes

  • Stabilizes the pass-through requests option under future.v8_passThroughRequests; update code that opted into the unstable version.

    7.15.0release notes

  • Stabilizes the prerender concurrency option as prerender.concurrency; update code that opted into the unstable version.

    7.15.0release notes

  • Submissions to UI routes from external origins are rejected as an additional layer of CSRF protection.

    7.12.0release notes

  • The routeRSCServerRequest API replaces fetchServer with serverResponse.

    7.11.0release notes

  • Stabilizes future.v8_splitRouteModules, replacing future.unstable_splitRouteModules; update react-router.config.ts if you use the unstable key.

    7.10.0release notes

  • Remove the future.v8_* flags because their behavior is now the default; Framework Mode reports an error if they remain in react-router.config.ts.

    7.0.0upgrade guide

  • The sibling url parameter is described as a URL instance with React Router's internal implementation details removed; request.url remains the original request URL.

    7.0.0upgrade guide

Security 1

  • Redirect locations in prerendered redirect HTML are escaped.

    7.13.2release notes

Deprecations 3

  • Future flag warnings are logged for this upcoming React Router v8 flag.

    7.16.0release notes

  • Future flag warnings are logged for this upcoming React Router v8 flag.

    7.16.0release notes

  • Future flag warnings are logged for this upcoming React Router v8 flag.

    7.16.0release notes

New APIs and options 14

  • RSC route modules use ServerComponent as the server-component counterpart to the default client component export.

    7.14.0release notes

  • RSC route modules can export ServerErrorBoundary as the server-component counterpart to ErrorBoundary.

    7.14.0release notes

  • RSC route modules can export ServerHydrateFallback as the server-component counterpart to HydrateFallback.

    7.14.0release notes

  • RSC route modules can export ServerLayout as the server-component counterpart to Layout.

    7.14.0release notes

  • When enabled, passes the raw HTTP request to handlers instead of normalizing request.url, reducing server-side overhead and allowing handlers to distinguish document from data requests.

    7.13.2release notes

  • Adds a URL parameter to route handler methods containing the normalized URL, including when the pass-through future flag is enabled.

    7.13.2release notes

  • Specify external origins permitted to submit to UI routes in the react-router.config.ts config.

    7.12.0release notes

  • Opt in to consistent request.pathname behavior for document and data requests when the browser URL has a trailing slash; this also changes the client-side .data request URL format.

    7.12.0release notes

  • RSC framework mode supports custom entrypoints.

    7.11.0release notes

  • Adds an option to run prerendering concurrently, potentially speeding up the build.

    7.9.5release notes

  • Enables middleware in Framework mode, allowing code to run before and after Response generation for a matched path.

    7.0.0upgrade guide

  • Passes the raw HTTP request to handlers instead of normalizing request.url; use the sibling url parameter for normalized routing logic.

    7.0.0upgrade guiderelease notes

  • Enables client-side route exports to be split into independently loaded chunks, improving performance for client-side data loading.

    7.0.0upgrade guide

  • Preserves trailing slash semantics in data request URLs, using /_.data for trailing-slash routes and the root data request.

    7.0.0upgrade guide

Behavior and default changes 10

  • Framework Mode build hooks ignore external server environments and process only the app's own server build when future.v8_viteEnvironmentApi is enabled.

    7.18.0release notes

  • When enabled, RSC route module server exports are no longer scanned by the client dependency optimizer.

    7.17.0release notes

  • This is the stabilized replacement for future.unstable_trailingSlashAwareDataRequests.

    7.16.0release notes

  • Adds subResourceIntegrity as a top-level option in react-router.config.ts, replacing the unstable future option.

    7.15.0release notes

  • RSC framework mode now supports prerendering.

    7.14.0release notes

  • RSC framework mode now supports SPA mode.

    7.14.0release notes

  • Prerendering now supports multiple server bundles when using v8_viteEnvironmentApi.

    7.14.0release notes

  • Redirect Responses can be thrown at RSC render time.

    7.11.0release notes

  • Stabilizes future.v8_viteEnvironmentApi, replacing future.unstable_viteEnvironmentApi; update react-router.config.ts if you use the unstable key.

    7.10.0release notes

  • Environment variables are loaded before routes.ts is evaluated, allowing route computation based on VITE_-prefixed environment variables.

    7.10.0release notes

Tooling 8

  • Vite server.watch config is now passed to the child compiler in development mode.

    7.18.0release notes

  • Consumers of the unstable_reactRouterRSC Vite plugin must install @vitejs/plugin-react and add the react plugin to their Vite plugins array.

    7.14.2release notes

  • TypeScript 6 is now supported by the peer dependency ranges.

    7.14.1release notes

  • The reveal command now supports RSC for entry.client, entry.rsc, and entry.ssr.

    7.14.0release notes

  • Vite 8 is now supported by @react-router/dev.

    7.14.0release notes

  • Vite preview is supported for previewing applications.

    7.11.0release notes

  • Moves RSCHydratedRouter and utils to the /dom export.

    7.9.5release notes

  • Enables support for Vite's experimental Environment API; custom configuration relying on isSsrBuild may need to move under per-environment configuration.

    7.0.0upgrade guide

Fixes and other changes 11

  • Future flag warning URLs are fixed, and each warning is logged only once.

    7.17.0release notes

  • Fixes server-build virtual module import paths when Vite base and React Router basename both match the app directory name.

    7.15.1release notes

  • Typegen now generates pages: never; in .react-router/types/+routes.ts when a route corresponds to 0 pages.

    7.14.2release notes

  • The unstable_reactRouterRSC Vite plugin more reliably splits route modules.

    7.14.2release notes

  • Fixes a crash when Unix socket files exist in the project root.

    7.13.2release notes

  • Fixes Maximum call stack size exceeded errors when HMR is triggered against code with cyclic imports.

    7.12.0release notes

  • The preview server skips SSR middleware in SPA mode.

    7.12.0release notes

  • Dynamically imports the ESM package pkg-types to fix issues on Node 20.18.

    7.10.1release notes

  • Loads the ESM-only p-map dependency with a dynamic import to avoid issues on Node 20.18 and below.

    7.9.6release notes

  • Route navigation no longer removes CSS link elements used by dynamic imports.

    7.9.5release notes

  • Typegen registers route module types only for routes within the app directory.

    7.9.5release notes