Packages

react-router

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

Upgrading react-router From 7.3.0 to 7.4.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 7.3.0Newest 7.x7.18.6Clears its 14 advisories7.18.0Latest8.5.1
  1. 7.3.0yours
  2. 7.4.0target
1
change to make
0
advisories fixed
0
new
5
fixes

Before you upgrade

Tick each one off as you go
  • Breaking7.4.0

Security

Release by release

  1. 7.4.0

    Migration needed19 Mar 20255 fixes
    • 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

    • Fixed

      Fix root loader data on initial load redirects in SPA mode

    • Fixed

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

    • Fixed

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

    • Fixed

      UNSTABLE: Fix RequestHandler loadContext parameter type when middleware is enabled

    • Fixed

      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

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.