Packages

react-router

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

Your version

4.3.0

6 Jun 2018Where it was published

4.4.0 is the newest release of 4.x.

In short

2 new2 fixed9 changed

Release note

The major new things of this release are Redirect with params (see #5209) and the new generatePath API. We also cleaned up the code with Prettier, so browsing through it should be more enjoyable.

One other thing to mention, while I have your attention, is the deprecation of react-router-redux. It's no longer maintained and has a number of fundamental problems (particularly around time travel). Integrating Redux and the DOM History API is challenging because they don't maintain the same semantics and the resulting integration is error prone. Getting to the router context will be easier in future versions of React Router, so the main motivations for needing it will be going away. So, while I would advise against trying to integrate the two, for those that still want this functionality can turn to libraries like @supasate's connected-react-router.

Changes

  • Use the pretty option in generatePath

  • aria-current has incorrect value "true"

  • Redirect with parameters

  • Fix with missing pathname: <Link to="?foo=bar">

  • Escape NavLink path to allow special characters in path.

  • Expose generatePath

  • Use named import of history module.

  • Hoist dependencies for smaller UMD builds

  • Remove aria-current from navLink when inactive

  • Add invariant for missing "to" property on <Link>

  • Use Prettier on the code (e6f9017

  • Fix pathless route's match when parent is null

  • Use history.createLocation in <StaticRouter>

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.