Packages

react-router

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

Your version

6.1.0

10 Dec 2021Where it was published

6.30.6 is the newest release of 6.x.

In short

4 new1 fixed

Security

2 advisories affect 6.1.0; 7.18.0 fixes them

Release note

Bug fixes

  • Fixed a bug that broke support for base64 encoded IDs on nested routes

Features

  • <Outlet> can now receive a context prop. This value is passed to child routes and is accessible via the new useOutletContext hook. See the API docs for details.

  • <NavLink> can now receive a child function for access to its props.

Enhancements

  • Improved TypeScript signature for useMatch and matchPath. For example, when you call useMatch("foo/:bar/:baz"), the path is parsed and the return type will be PathMatch<"bar" | "baz">.

  • A few error message improvements

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.