Packages

react-router

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

Your version

7.8.2

22 Aug 2025Where it was published

7.18.6 is the newest release of 7.x.

In short

9 fixed

Security

14 advisories affect 7.8.2; 7.18.0 fixes them

9 more

Release note

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

Patch Changes

  • [UNSTABLE] Remove Data Mode future.unstable_middleware flag from createBrowserRouter

    • This is only needed as a Framework Mode flag because of the route modules and the getLoadContext type behavior change

    • In Data Mode, it's an opt-in feature because it's just a new property on a route object, so there's no behavior changes that necessitate a flag

  • [UNSTABLE] Add <RouterProvider unstable_onError>/<HydratedRouter unstable_onError> prop for client side error reporting

  • Server action revalidation opt out via $SKIP_REVALIDATION field

  • Properly escape interpolated param values in generatePath()

  • Maintain ReadonlyMap and ReadonlySet types in server response data.

  • [UNSTABLE] Delay serialization of .data redirects to 202 responses until after middleware chain

  • Fix TypeError if you throw from patchRoutesOnNavigation when no partial matches exist

  • Fix basename usage without a leading slash in data routers

  • [UNSTABLE] Update client middleware so it returns the data strategy results allowing for more advanced post-processing middleware

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.