Packages

react-router

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

Upgrading react-router From 6.14.2 to 8.5.1

99 releases in betweennotes for 93

Reading releases, release notes and advisories…

Other targets from 6.14.2Newest 6.x6.30.6Clears its 4 advisories7.18.0
  1. 6.14.2yours
  2. 32 releases
  3. 6.30.3security
  4. 3 releases
  5. 7.0.0major
  6. 35 releases
  7. 7.12.0security
  8. 12 releases
  9. 7.18.2security
  10. 4 releases
  11. 8.0.0major
  12. 3 releases
  13. 8.3.0security
  14. 3 releases
  15. 8.5.1target
54+
changes to make
4
advisories fixed
76+
new
293+
fixes

Counted from 93 of 99 release notes. Advisories are counted from the advisory database, in full.

Start here

Before you upgrade

Tick each one off as you go
  • Breaking8.4.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
  • 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
  • 6.30.3

Release by release

  1. 8.5.1

    27 Oct 20261 new · 16 fixes
    • New

      Add an opt-in <Await unstable_promise={promise}> implementation based on React's use() API

    • Fixed

      Fix URIError: URI malformed when an ssr: false dev server receives a URL path with a malformed percent-encoding

    • Fixed

      Bound server route manifest processing for paths with expensive route expansion

    • Fixed

      Encode commas within paths sent to the lazy route discovery manifest endpoint so routes with commas in their paths are discovered correctly

  2. 8.5.0

    Deprecation19 Oct 20263 new · 8 fixes
    • Deprecated

      Deprecate React Router's view transition APIs in favor of React's <ViewTransition> component, available in React 19.3 and later

    • New

      Add an unstable_fetch prop to <HydratedRouter> to customize JavaScript-issued manifest and server data requests in conventional Framework Mode

    • New

      Support API-only Framework Mode with runtime server data loading, actions, revalidation, and lazy route discovery

    • New

      Add unstable_useRouteDiscovery for application-controlled route discovery in conventional Framework Mode

  3. 8.4.0

    Migration needed15 Sep 20261 new · 7 fixes
    • Breaking

      ⚠️ This contains some breaking changes to exported UNSAFE_ contexts, so please review carefully if you are using those unsafe exports

    • Deprecated

      Deprecate the createStaticRouter({ branches }) option

    • New

      Add a Data Mode future.unstable_routePatternMatching flag for more efficient route matching powered by @remix-run/route-pattern

    • Fixed

      Prevent stale route discovery during manifest version-mismatch recovery

  4. 8.3.1

    28 Aug 20261 new · 6 fixes
    • New

      Add additional URL validation on client side navigations/redirects

    • Fixed

      Fix Expected fetcher: <key> error thrown on navigation when a fetcher is aborted during its post-action revalidation

    • Fixed

      Fix lazy route discovery caching a path as discovered when the triggering navigation was aborted after the manifest response settled but before the route tree was patched, which permanently (for the session) shadowed the real route behind a catch-all or produced 404s on every subsequent visit

    • Fixed

      Improve route matching performance for long paths

    • Fixed

      Improve validation of action request origins

    • Fixed

      Fix <ScrollRestoration> leaving history.scrollRestoration set to "auto" after a bfcache restore, which let the browser restore scroll on subsequent history traversals before the destination route had rendered

    • Fixed

      Properly respect the relative option in useSubmit/fetcher.submit when resolivng the action path

  5. 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

  6. 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

  7. 8.1.0

    29 Jun 20261 new
    • New

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

  8. 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.

25 other lines we could not sort, mostly version bumps
  • Return middleware short-circuit responses as-is for document requests in RSC modes, including resource routes, instead of decoding non-RSC bodies as Flight

    8.5.0
  • Document access control requirements for RSC Server Functions

    8.4.0
  • Detect stale RSC clients during lazy route discovery and reload the destination document

    8.3.0
  • 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
  • A parent route has only a loader (does not have a clientLoader)

    7.2.0
  • The parent route is pre-rendered

    7.2.0
  • The parent route has children routes which are not prerendered

    7.2.0

35 internal lines (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.