Packages

react-router

8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed

Upgrading react-router From 7.6.0 to 7.18.6

36 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 7.6.0Clears its 13 advisories7.18.0Latest8.5.1
  1. 7.6.0yours
  2. 5 releases
  3. 7.8.0breaking
  4. 8 releases
  5. 7.9.6breaking
  6. 7.10.0breaking
  7. 2 releases
  8. 7.12.0security
  9. 3 releases
  10. 7.14.0breaking
  11. 2 releases
  12. 7.15.0breaking
  13. 5 releases
  14. 7.18.2security
  15. 3 releases
  16. 7.18.6target

Before you upgrade

Tick each one off as you go
  • Breaking7.15.0
  • Breaking7.15.0
  • Breaking7.14.0
  • Breaking7.10.0
  • Breaking7.9.6
  • Breaking7.8.0
  • Breaking7.8.0
  • Breaking7.8.0
  • Deprecated7.8.0

Security

  • react-router - Harden RSC CSRF codepaths.

    7.18.2
  • Add additional layer of CSRF protection by rejecting submissions to UI routes from external origins. If you need to permit access to specific external origins, you can specify them in the react-router.config.ts config allowedActionOrigins field.

    7.12.0

Release by release

  1. 7.18.6

    18 Nov 20269 fixes
    • Fixed

      react-router - Fix hydration of streamed Suspense boundaries in development with future.v8_viteEnvironmentApi

    • Fixed

      react-router - Handle HEAD response bodies consistently in Framework, RSC Framework, and RSC Data modes, preserving response metadata and deferred data handling

    • Fixed

      react-router - Improve path generation and URL validation across href(), generatePath(), links, forms, fetchers, and redirects

    • Fixed

      react-router - Preserve route parameters ending in .data in Single Fetch loader and action requests when future.v8_passThroughRequests is disabled

  2. 7.18.5

    27 Oct 20262 fixes
    • Fixed

      react-router - Bound route manifest processing during server rendering and RSC document/data requests by falling back to initial route discovery for paths with expensive ancestor expansion, accounting for the number and depth of candidate branches when using regex matching

    • Fixed

      react-router - Improve turbo-stream decoding validation and object property handling

  3. 7.18.4

    15 Sep 20262 fixes
    • Fixed

      react-router - Correctly escape streamed RSC redirect locations in meta tag attributes

    • Fixed

      react-router - Avoid unintended document.startViewTransition calls during initial hydration and router.revalidate() calls

  4. 7.18.3

    28 Aug 20264 fixes
    • Fixed

      react-router - Improve route matching performance for long paths

    • Fixed

      react-router - Improve validation of action request origins

    • Fixed

      react-router - Add additional URL validation on client side navigations/redirects

    • Fixed

      @react-router/node - fix: Prevent client disconnects during streaming from crashing the Node process

  5. 7.18.2

    Security fix28 Jul 2026
    • Security

      react-router - Harden RSC CSRF codepaths.

  6. 7.18.1

    29 Jun 20261 fix
    • Fixed

      react-router-dom - Fix incorrect package.json main field for CommonJS builds

  7. 7.18.0

    16 Jun 20268 fixes
    • Fixed

      Fix server handler prerender responses when using ssr: false and future.v8_trailingSlashAwareDataRequests: true. Avoids false positive "SPA Mode" detection when serving prerendered paths

    • Fixed

      Use the ServerRouter nonce for nonce-aware SSR components when they don't provide their own value so strict CSP pages can load them.

    • Fixed

      Use turbo-stream to serialize and deserialize Framework Mode hydration errors

    • Fixed

      Precompute route branch matchers to avoid recompiling route path regexes during matching

  8. 7.17.0

    4 Jun 20261 new
    • New

      Ship a subset of the official documentation inside the react-router package

4 other lines we could not sort, mostly version bumps
  • The match.shouldLoad API is now marked deprecated in favor of these more powerful alternatives

    7.10.0
  • If you're using this API in a custom dataStrategy today, you can swap to the new API at your convenience:

    7.10.0
  • match.shouldRevalidateArgs is the argument that will be passed to the route shouldRevaliate function

    7.10.0
  • Combined with the parameter accepted by match.shouldCallHandler, you can define a custom revalidation behavior for your dataStrategy:

    7.10.0

1 internal line (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.