Packages

react-router

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

Your version

7.6.0

8 May 2025Where it was published

7.18.6 is the newest release of 7.x.

In short

1 new15 fixed1 internal

Security

13 advisories affect 7.6.0; 7.18.0 fixes them

8 more

Release note

The section about react-router of a note shared by several packages.

Minor Changes

  • Added a new react-router.config.ts routeDiscovery option to configure Lazy Route Discovery behavior.

    • By default, Lazy Route Discovery is enabled and makes manifest requests to the /__manifest path:

      • routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" }

    • You can modify the manifest path used:

      • routeDiscovery: { mode: "lazy", manifestPath: "/custom-manifest" }

    • Or you can disable this feature entirely and include all routes in the manifest on initial document load:

      • routeDiscovery: { mode: "initial" }

Patch Changes

  • Fix react-router module augmentation for NodeNext

  • Don't bundle react-router in react-router/dom CJS export

  • Fix bug where a submitting fetcher would get stuck in a loading state if a revalidating loader redirected

  • Fix hydration error if a server loader returned undefined

  • Fix initial load 404 scenarios in data mode

  • Stabilize useRevalidator's revalidate function

  • Preserve status code if a clientAction throws a data() result in framework mode

  • Be defensive against leading double slashes in paths to avoid Invalid URL errors from the URL constructor

    • Note we do not sanitize/normalize these paths - we only detect them so we can avoid the error that would be thrown by new URL("//", window.location.origin)

  • Remove Navigator declaration for navigator.connection.saveData to avoid messing with any other types beyond saveData in userland

  • Fix handleError params values on .data requests for routes with a dynamic param as the last URL segment

  • Don't trigger an ErrorBoundary UI before the reload when we detect a manifest verison mismatch in Lazy Route Discovery

  • Inline turbo-stream@2.4.1 dependency and fix decoding ordering of Map/Set instances

  • Only render dev warnings in DEV mode

  • UNSTABLE: Fix a few bugs with error bubbling in middleware use-cases

  • Short circuit post-processing on aborted dataStrategy requests

    • This resolves non-user-facing console errors of the form Cannot read properties of undefined (reading 'result')

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.