unstale

npm / @remix-run/router

@remix-run/router

What changed in @remix-run/router 1 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-24.

9 breaking2 security5 new APIs and options

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

npx @unstale/cli init

@unstale/cli on npm

@remix-run/router 714 changes

Breaking changes 9

  • Cloudflare projects should use this plugin instead of the removed React Router Cloudflare dev proxy.

    7.0.0upgrade guide

  • The React Router Cloudflare dev proxy is removed; replace it with the cloudflare plugin from @cloudflare/vite-plugin.

    7.0.0upgrade guide

  • Use loaderData instead of deprecated data fields in meta arguments, matched route data, and useMatches() results.

    7.0.0upgrade guide

  • React Router v8 requires Node 22.22 or later.

    7.0.0upgrade guide

  • React Router v8 requires React and react-dom 19.2.7 or later.

    7.0.0upgrade guide

  • The re-export package is removed; import general APIs from react-router and DOM-specific APIs from react-router/dom.

    7.0.0upgrade guide

  • Use this import path for DOM-specific APIs after the react-router-dom re-export package is removed.

    7.0.0upgrade guide

  • This option is removed in v8 because event.requestContext.domainName becomes the default source for the request host, falling back to Host.

    7.0.0upgrade guide

  • Framework mode requires Vite 7 or later, along with the v8 Vite Environment API future flag.

    7.0.0upgrade guide

New APIs and options 5

  • Opting in enables middleware to run code before and after Response generation for a matched path.

    7.0.0upgrade guide

  • Opting in passes the raw HTTP request to handlers instead of normalizing its URL; use the sibling url parameter for the normalized location.

    7.0.0upgrade guide

  • Opting in splits client-side route exports into independently loaded chunks, allowing them to run while the route component downloads.

    7.0.0upgrade guide

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

    7.0.0upgrade guide

  • Opting in enables support for Vite's experimental Environment API; custom SSR build configuration may need to move under per-environment configuration.

    7.0.0upgrade guide

@remix-run/router 12 changes

Security 2

  • React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation

    1.23.3security advisory

  • React Router vulnerable to XSS via Open Redirects

    1.23.2security advisory