Packages

react-router

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

Your version

7.4.0

19 Mar 2025Where it was published

7.18.6 is the newest release of 7.x.

In short

1 breaking5 fixed

  • Breaking

    UNSTABLE(BREAKING): If a middleware throws an error, ensure we only bubble the error itself via next() and are no longer leaking the MiddlewareError implementation detail

Security

14 advisories affect 7.4.0; 7.18.0 fixes them

9 more

Release note

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

Patch Changes

  • Fix root loader data on initial load redirects in SPA mode

  • Load ancestor pathless/index routes in lazy route discovery for upwards non-eager-discoery routing

  • Fix shouldRevalidate behavior for clientLoader-only routes in ssr:true apps

  • UNSTABLE: Fix RequestHandler loadContext parameter type when middleware is enabled

  • UNSTABLE: Update Route.unstable_MiddlewareFunction to have a return value of Response | undefined instead of Response | void becaue you should not return anything if you aren't returning the Response

  • Breaking

    UNSTABLE(BREAKING): If a middleware throws an error, ensure we only bubble the error itself via next() and are no longer leaking the MiddlewareError implementation detail

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.