react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
Upgrading react-router From 7.9.6 to 7.10.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 2
- new
- 6
- fixes
Before you upgrade
Tick each one off as you go- Breaking7.10.0
Security
13 advisories still affect 7.10.0
- React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretationmoderate · GHSA-2j2x-hqr9-3h42
- React Router vulnerable to XSS via Open Redirectshigh · GHSA-2w69-qvjg-hvjx
- React Router: Arbitrary Constructor Injection via deserializeErrors() in React Router SSR Hydrationmoderate · GHSA-337j-9hxr-rhxg
Upgrading to 7.18.0 clears them.
Release by release
- Breaking
⚠️ This is a breaking change if you have begun using
fetcher.unstable_reset() - New
Add new
unstable_useTransitionsflag to routers to give users control over the usage ofReact.startTransitionandReact.useOptimistic. - New
Optimize href() to avoid backtracking regex on splat
- Fixed
Fix a Framework Mode bug where the
defaultShouldRevalidateparameter toshouldRevalidatewould not be correct afteractionreturned a 4xx/5xx response (truewhen it should have beenfalse)
- Breaking
4 other lines we could not sort, mostly version bumps
- 7.10.0
The
match.shouldLoadAPI is now marked deprecated in favor of these more powerful alternatives - 7.10.0
If you're using this API in a custom
dataStrategytoday, you can swap to the new API at your convenience: - 7.10.0
match.shouldRevalidateArgsis the argument that will be passed to the routeshouldRevaliatefunction - 7.10.0
Combined with the parameter accepted by
match.shouldCallHandler, you can define a custom revalidation behavior for yourdataStrategy:
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.