Packages

react-router

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

Your version

7.4.1

28 Mar 2025Where it was published

7.18.6 is the newest release of 7.x.

In short

1 new2 fixed

Security

14 advisories affect 7.4.1; 7.18.0 fixes them

9 more

Release note

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

Patch Changes

  • Fix types on unstable_MiddlewareFunction to avoid type errors when a middleware doesn't return a value

  • Dedupe calls to route.lazy functions

  • Add support for route.unstable_lazyMiddleware function to allow lazy loading of middleware logic.

    Breaking change for unstable_middleware consumers

    The route.unstable_middleware property is no longer supported in the return value from route.lazy. If you want to lazily load middleware, you must use route.unstable_lazyMiddleware.

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.