react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
8.5.2 is the newest release of 8.x.
In short
1 deprecated1 new7 fixed1 changed
- Deprecated
Deprecate the
createStaticRouter({ branches })option
Release note
The section about react-router of a note shared by several packages.
Minor Changes
- Deprecated
Deprecate the
createStaticRouter({ branches })optioncreateStaticRouternow caches route branches internally, ignoresbranches, and logs a deprecation warning when the option is providedThe deprecated
EntryContext.branchesproperty remains available for compatibility but is always an empty array
Patch Changes
Prevent stale route discovery during manifest version-mismatch recovery
Keep concurrent manifest responses pending while a document reload is in progress
Report a discovery error when a previous reload failed to resolve a version mismatch instead of loading a stale route or reloading repeatedly
Fail pending requests if a document reload does not complete within five seconds or the document is restored from the back-forward cache, allowing subsequent requests to recover
Preserve lazy route module import errors during SPA navigations instead of replacing them with a missing
dataStrategyresult errorSwitch to more granular internal router contexts to avoid unnecessary route component re-renders when unrelated data router state changes
⚠️ This contains some breaking changes to exported
UNSAFE_contexts, so please review carefully if you are using those unsafe exports
Correctly escape streamed RSC redirect locations in meta tag attributes
Avoid unintended
document.startViewTransitioncalls during initial hydration androuter.revalidate()callsFix
SingleFetchNoResultErrorthrown when a fetcher revalidates against a splat route during lazy route discoveryTrack discovery per fetcher load so revalidation waits for the current load's discovery, even when the fetcher key is reused, while still restarting interrupted loaders after discovery completes
Preserve the underlying decode failure as the
causeof theUnable to decode turbo-stream responseerror
Unstable Changes
⚠️ Unstable features are not recommended for production use
Add a Data Mode
future.unstable_routePatternMatchingflag for more efficient route matching powered by@remix-run/route-patternAdd an
unstable_validateParamsroute field to reject invalid parameter values and continue matching
Document access control requirements for RSC Server Functions
Treat every Server Function as a public endpoint that must perform all of its own access control checks
Recommend route actions when access control should be provided by route middleware
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.