Packages

react-router

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

Your version

8.5.2

18 Nov 2026Where it was published

In short

14 fixed

Release note

The section about react-router of a note shared by several packages.

Patch Changes

  • Keep navigation metadata consistent after a submission action throws an error

    • Use the committed history action for loader dataStrategy navigation types and loading navigation history actions

  • Cancel the discarded response body for HEAD requests, so a resource route streaming a file no longer leaks its file descriptor

    • Keep observing nested deferred promise rejections after cancelling a data response so they cannot crash the server

  • Preserve streamed <Suspense> boundaries during hydration in development

    • Wrap the critical CSS reset in React.startTransition to prevent React 19 from silently discarding the server HTML and rendering the boundary on the client

  • Fix submissions to root form actions containing search parameters or a hash when a basename is configured

  • Fix href() to throw for null required parameters and omit null splat parameters without a trailing slash, matching the behavior for undefined and the defined types

  • Fix generated MetaArgs.matches types to stop at the current route instead of appending an unknown, possibly undefined tail

  • Improve path generation and URL validation across href(), generatePath(), links, forms, fetchers, and redirects

  • Stop redirect(), redirectDocument() and replace() from setting status: 302 on the ResponseInit passed to them

    • Later responses created from the same init object no longer get status 302, and a frozen init no longer throws

  • Clear an <Await> render error when it receives a new resolve value, so the error element no longer stays on screen after navigating to a route whose data renders fine

  • Run clientMiddleware during RSC client navigations and preserve it when route components update via HMR

  • Handle HEAD resource responses consistently in RSC Framework and RSC Data modes

  • Fix initial rendering of RSC routes with a clientLoader and no HydrateFallback

  • Fix <ScrollRestoration> throwing an uncaught error before hydration when sessionStorage is unavailable

    • The inline restore script already logged the storage error, but its cleanup call accessed sessionStorage again and threw (e.g. Chrome with "Block all cookies", sandboxed cross-origin iframes)

    • The error is still logged with console.error; only the second, uncaught throw is removed

  • Fix useBlocker leaving behind a stale blocker that keeps blocking navigation after its component is hidden and shown again with <Activity>, or after the router is recreated

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.