react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
5.3.4 is the newest release of 5.x.
In short
9 fixed3 changed
Release note
Updates
Reduced component depth in withRouter() HOC.
Changed misleading warning when withRouter is used outside a Router
Reduced install size and bundle size by switching to mini-create-react-context
Bugfixes
Fixed display name for router context consumer and provider
Fixed infinite loop caused by Redirect in some scenarios (017f692 and 2ce1d32)
Fixed license issue for react context polyfill (f9849c8, then 992af48)
Fixed Redirect throwing an exception in StaticRouter without context
Fixed regression in matchPath that caused an exception for empty paths
Fixed page reload when an exception was thrown in Link onClick
Fixed warning about createRef or useRef values in wrappedComponentRef when using withRouter()
Fixed withRouter() wrapped component inside NavLink not working properly
Fixed CJS build - previously, incorrect exports were emitted
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.