Packages

react-router

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

Your version

7.11.0

17 Dec 2025Where it was published

7.18.6 is the newest release of 7.x.

In short

4 new4 fixed

Security

14 advisories affect 7.11.0; 7.18.0 fixes them

9 more

Release note

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

Minor Changes

  • Stabilize <HydratedRouter onError>/<RouterProvider onError>

Patch Changes

  • Add support for throwing redirect Response's at RSC render time

  • Support for throwing data() and Response from server component render phase. Response body is not serialized as async work is not allowed as error encoding phase. If you wish to transmit data to the boundary, throw data() instead.

  • Fix unstable_useTransitions prop on <Router> component to permit omission for backewards compatibility

  • routeRSCServerRequest replace fetchServer with serverResponse

  • [UNSTABLE] Add a new unstable_defaultShouldRevalidate flag to various APIs to allow opt-ing out of standard revalidation behaviors.

    If active routes include a shouldRevalidate function, then your value will be passed as defaultShouldRevalidate in those function so that the route always has the final revalidation determination.

    • <Form method="post" unstable_defaultShouldRevalidate={false}>

    • submit(data, { method: "post", unstable_defaultShouldRevalidate: false })

    • <fetcher.Form method="post" unstable_defaultShouldRevalidate={false}>

    • fetcher.submit(data, { method: "post", unstable_defaultShouldRevalidate: false })

    This is also available on non-submission APIs that may trigger revalidations due to changing search params:

    • <Link to="/" unstable_defaultShouldRevalidate={false}>

    • navigate("/?foo=bar", { unstable_defaultShouldRevalidate: false })

    • setSearchParams(params, { unstable_defaultShouldRevalidate: false })

  • Allow redirects to be returned from client side middleware

  • Handle dataStrategy implementations that return insufficient result sets by adding errors for routes without any available 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.