Packages

react-router

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

Your version

7.9.2

24 Sep 2025Where it was published

7.18.6 is the newest release of 7.x.

In short

2 new7 fixed

Security

13 advisories affect 7.9.2; 7.18.0 fixes them

8 more

Release note

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

Patch Changes

  • Update client-side router to run client middleware on initial load even if no loaders exist

    • Update createRoutesStub to run route middleware

      • You will need to set the <RoutesStub future={{ v8_middleware: true }} /> flag to enable the proper context type

  • Update Lazy Route Discovery manifest requests to use a singular comma-separated paths query param instead of repeated p query params

    • This is because Cloudflare has a hard limit of 100 URL search param key/value pairs when used as a key for caching purposes

    • If more that 100 paths were included, the cache key would be incomplete and could produce false-positive cache hits

  • [UNSTABLE] Add fetcher.unstable_reset() API

  • Made useOutlet element reference have stable identity in-between route chages

  • Enable full transition support for the rsc router

  • In RSC Data Mode, handle SSR'd client errors and re-try in the browser

  • Support middleware prop on <Route> for usage with a data router via createRoutesFromElements

  • Handle encoded question mark and hash characters in ancestor splat routes

  • Fail gracefully on manifest version mismatch logic if sessionStorage access is blocked

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.