react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
Upgrading react-router From 8.3.1 to 8.5.2
4 releases in betweenevery note read
Reading releases, release notes and advisories…
- 3
- changes to make
- 0
- advisories fixed
- 5
- new
- 45
- fixes
Start here
Before you upgrade
Tick each one off as you go- Breaking8.4.0
- Deprecated8.5.0
- Deprecated8.4.0
Release by release
- Fixed
Keep navigation metadata consistent after a submission action throws an error
- Fixed
Cancel the discarded response body for
HEADrequests, so a resource route streaming a file no longer leaks its file descriptor - Fixed
Preserve streamed
<Suspense>boundaries during hydration in development - Fixed
Fix submissions to root form actions containing search parameters or a hash when a
basenameis configured
- Fixed
- New
Add an opt-in
<Await unstable_promise={promise}>implementation based on React'suse()API - Fixed
Fix
URIError: URI malformedwhen anssr: falsedev server receives a URL path with a malformed percent-encoding - Fixed
Bound server route manifest processing for paths with expensive route expansion
- Fixed
Encode commas within paths sent to the lazy route discovery manifest endpoint so routes with commas in their paths are discovered correctly
- New
- Deprecated
Deprecate React Router's view transition APIs in favor of React's
<ViewTransition>component, available in React 19.3 and later - New
Add an
unstable_fetchprop to<HydratedRouter>to customize JavaScript-issued manifest and server data requests in conventional Framework Mode - New
Support API-only Framework Mode with runtime server data loading, actions, revalidation, and lazy route discovery
- New
Add
unstable_useRouteDiscoveryfor application-controlled route discovery in conventional Framework Mode
- Deprecated
- Breaking
⚠️ This contains some breaking changes to exported
UNSAFE_contexts, so please review carefully if you are using those unsafe exports - Deprecated
Deprecate the
createStaticRouter({ branches })option - New
Add a Data Mode
future.unstable_routePatternMatchingflag for more efficient route matching powered by@remix-run/route-pattern - Fixed
Prevent stale route discovery during manifest version-mismatch recovery
- Breaking
2 other lines we could not sort, mostly version bumps
- 8.5.0
Return middleware short-circuit responses as-is for document requests in RSC modes, including resource routes, instead of decoding non-RSC bodies as Flight
- 8.4.0
Document access control requirements for RSC Server Functions
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.