Packages

react-router

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

Upgrading react-router From 7.18.6 to 8.3.0

5 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 7.18.6Latest8.5.1

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
  • Breaking8.0.0

Security

  • Harden RSC CSRF code paths

    8.3.0

Release by release

  1. 8.3.0

    Security fix22 Jul 20261 new · 5 fixes
    • Security

      Harden RSC CSRF code paths

    • New

      Add CSP nonce support to RSC document rendering

    • Fixed

      Encode path params in href/generatePath per RFC 3986 path-segment rules instead of encodeURIComponent

    • Fixed

      Use crypto.randomUUID() for createMemorySessionStorage session ids

    • Fixed

      Fix NavLink not applying its pending state when to has a trailing slash

    • Fixed

      Preserve RSC route component metadata so routes with a clientLoader can skip unnecessary server requests once their components have rendered while still fetching missing server-rendered elements

    • Fixed

      Fix server crash (TypeError: Invalid state: Unable to enqueue) when a request is aborted while the RSC HTML stream has a pending flush

  2. 8.2.0

    8 Jul 20265 fixes
    • Fixed

      Fix href() to properly stringify and URL-encode param values, matching generatePath()

    • Fixed

      Fix dynamic param extraction for routes with optional static segments

    • Fixed

      Preserve navigation blocker state through a revalidation

    • Fixed

      Fix route ranking for dynamic parameters with static extension suffixes

    • Fixed

      Use ReactFormState types instead of unknown

  3. 8.1.0

    29 Jun 20261 new
    • New

      Return route metadata from server request, client navigation, and client fetcher instrumentations

  4. 8.0.1

    18 Jun 20261 fix
    • Fixed

      Remove the obsolete AppLoadContext type export accidentally left over from v7 now that middleware is always enabled and server request context is provided through RouterContextProvider.

  5. 8.0.0

    Migration needed17 Jun 20261 new · 5 fixes
    • Breaking

      Remove the future.v8_trailingSlashAwareDataRequests flag

    • Breaking

      Update tsconfig.json target/lib from ES2020 -> ES2022

    • Breaking

      Switch the published packages in packages/ to ESM-only.

    • Breaking

      Remove deprecated data parameter in favor of loaderData for meta APIs (to align with Route.ComponentProps)

1 other line we could not sort, mostly version bumps
  • Detect stale RSC clients during lazy route discovery and reload the destination document

    8.3.0

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.