Packages

react-router

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

Your version

8.4.0

15 Sep 2026Where it was published

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 }) option

    • createStaticRouter now caches route branches internally, ignores branches, and logs a deprecation warning when the option is provided

    • The deprecated EntryContext.branches property 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 dataStrategy result error

  • Switch 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.startViewTransition calls during initial hydration and router.revalidate() calls

  • Fix SingleFetchNoResultError thrown when a fetcher revalidates against a splat route during lazy route discovery

    • Track 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 cause of the Unable to decode turbo-stream response error

Unstable Changes

⚠️ Unstable features are not recommended for production use

  • Add a Data Mode future.unstable_routePatternMatching flag for more efficient route matching powered by @remix-run/route-pattern

    • Add an unstable_validateParams route 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.