Packages

react-router

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

Your version

7.0.2

3 Dec 2024Where it was published

7.18.6 is the newest release of 7.x.

In short

2 fixed

Security

13 advisories affect 7.0.2; 7.18.0 fixes them

8 more

Release note

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

Patch Changes

  • Temporarily only use one build in export map so packages can have a peer dependency on react router

  • Generate wide matches and params types for current route and child routes

    At runtime, matches includes child route matches and params include child route path parameters.
    But previously, we only generated types for parent routes in matches; for params, we only considered the parent routes and the current route.
    To align our generated types more closely to the runtime behavior, we now generate more permissive, wider types when accessing child route information.

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.