Skip to content

Update react-router to v8.5.3 - #1883

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/react-router
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/react-router

Conversation

@renovate

@renovate renovate Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@react-router/dev (source) 8.5.1 → 8.5.3 age adoption passing confidence
react-router (source) 8.5.1 → 8.5.3 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

remix-run/react-router (@​react-router/dev)

v8.5.3

Compare Source

Patch Changes
  • Keep the dev server running when a route has an invalid export with ssr: false and prerender (#​15591)
    • Report the invalid export as a Vite error
  • Allow .server imports in Vitest tests that run in Node with the default middleware-mode server (#​15563)
    • Continue checking .server imports in Browser Mode and when the test runner's Vite server listens, such as single-project runs with --ui or --api
  • Fix a circular type error when arrow function route components access matches (#​15163)
    • Generate the current route's entry in Matches with loaderData directly to avoid a circular reference to the route module
  • Allow web workers to import JSX modules, including components that use hooks, during development (#​15635)
  • Updated dependencies:

v8.5.2

Compare Source

Patch Changes
  • Cache client route chunk analysis using normalized route paths and disable dependency optimization in the child compiler, including explicitly included dependencies (#​15329)
  • Serialize concurrent type generation to prevent filesystem races between react-router dev and react-router typegen (#​15293)
    • Report a timeout with cleanup instructions if the typegen lock cannot be acquired within 30 seconds
  • Pass route component props to exports declared with export specifiers (#​15544)
    • Pass props such as loaderData and params to default, ErrorBoundary, and HydrateFallback exports
    • Support re-exports such as export { default } from "./component" and local aliases such as export { Page as default }
  • Improve handling of prerendered redirect destinations in Framework Mode and unstable RSC Framework Mode (#​15786)
  • Declare an empty source map for the placeholder chunk of a route export that can't be split, so Rollup no longer warns that react-router:split-route-modules dropped the source map (#​15520)
  • Preserve RSC client middleware when route components update via HMR (#​15763)
  • Fix RSC Framework Mode builds failing with "Vite RSC assets manifest not found" when using @vitejs/plugin-rsc 0.5.36 or later (#​15672)
    • Preserve client version checks when the client build uses write: false
  • Avoid adding isbot to dependencies when ssr: false (#​15668)
  • Updated dependencies:
remix-run/react-router (react-router)

v8.5.3

Compare Source

Patch Changes
  • Forward all NavigateOptions from <RouterProvider>'s navigator.push() and navigator.replace() to router.navigate() (#​15781)
    • Options such as mask, defaultShouldRevalidate, flushSync, and viewTransition now reach the router from <Link>, useNavigate(), and useSearchParams() inside descendant <Routes> in Data and Framework modes
  • Prevent fetcher action revalidation from completing a navigation with stale route matches while lazy route discovery is pending (#​15731)
  • Fix a circular type error when arrow function route components access matches from Route.ComponentProps (#​15163)
    • Use the current route's loaderData type directly so TypeScript can resolve matches without evaluating the component's own props again
  • Fix useBlocker blocking a second time when the destination route updates search params in a mount effect (#​15538)
  • Read encType and formEncType case-insensitively in <Form> and useSubmit (#​15776)
    • Submit Multipart/Form-Data as multipart/form-data
  • Restore the router location of a masked hash history entry on back and forward navigation (#​15771)
  • Prevent <HydratedRouter> from re-rendering the previous route during navigation (#​15823)
    • Avoid a loop with <Navigate state={...} replace> that could exceed Safari's limit on history.replaceState() calls
  • Keep the current route's actionData while a submission to another route is loading (#​15716)
  • Reject excessively large optional route path combinations in matchPath. Each pattern may contain up to 12 optional (?) markers. (#​15827)
  • Let the browser handle clicks on links with a download attribute (#​15815)
    • Apply this behavior to <Link download> and custom links built with useLinkClickHandler
  • Suppress nonce hydration warnings when using <ServerRouter nonce> (#​15721)
    • Cover critical CSS and HTML link descriptors rendered by <Links>
    • Cover developer scripts rendered by the default root error boundary and hydrate fallback
  • Fix blocked back/forward navigations in a memory router landing on the wrong history entry when the requested delta goes past the first or last entry (#​15779)
  • Preserve caseSensitive on client routes in Framework Mode and createRoutesStub() (#​15808)
    • Forward route.caseSensitive in createClientRoutes() so client hydration, client-side navigation, lazy route discovery, and HMR match createServerRoutes() and createStaticHandlerDataRoutes()
    • Forward route.caseSensitive in createRoutesStub()
  • Preserve loader data for the current routes when a background fetcher finishes during a navigation (#​15806)
    • Keep layout content visible when the navigation reuses that data
  • Discard invalid persisted scroll positions so new positions can be saved when the page is hidden (#​15794)
  • Fix session.unset() to remove both regular and flashed values for the given key (#​15811)
    • Accept flash-only keys in typed sessions
  • Keep NavLink inactive in the prerendered Framework SPA fallback and set its active state from the browser URL after hydration (#​15818)
  • Handle leading double slashes in static router encodeLocation() (#​15805)
    • Prevent TypeError: Invalid URL during SSR in <ServerRouter>, <StaticRouterProvider>, and <StaticRouter>, including when rendering query-only or hash-only <NavLink> destinations on double-slash request URLs
  • Fix unhandled single-fetch stream completion rejections while preserving errors for callers awaiting completion or deferred values (#​15765)
  • Treat session cookies with an invalid payload shape as empty sessions (#​15809)
    • Pass only nonempty string session IDs to storage adapters
    • Accept only non-array objects as data for cookie-backed sessions
Unstable Changes

⚠️ Unstable features are not recommended for production use

  • Report RSC loader, action, and middleware errors through unstable_matchRSCServerRequest's onError handler (#​15598)
    • Log request errors with console.error by default unless the request was aborted
    • Report middleware errors that occur after a form action consumes the request body
    • Avoid duplicate logging when rendering the default error boundary during SSR in RSC Data and RSC Framework modes
  • Avoid false 404s in RSC Framework and RSC Data modes when navigating while eager route discovery is still streaming route definitions (#​15801)
  • Improve handling of invalid requests in RSC Framework and RSC Data modes (#​15828)

v8.5.2

Compare Source

Patch Changes
  • Keep navigation metadata consistent after a submission action throws an error (#​15621)
    • 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 (#​15634)
    • 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 (#​15382)
    • 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 (#​15725)
  • 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 (#​15754)
  • Fix generated MetaArgs.matches types to stop at the current route instead of appending an unknown, possibly undefined tail (#​15697)
  • Improve path generation and URL validation across href(), generatePath(), links, forms, fetchers, and redirects (#​15785)
  • Stop redirect(), redirectDocument() and replace() from setting status: 302 on the ResponseInit passed to them (#​15753)
    • 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 (#​15695)
  • Run clientMiddleware during RSC client navigations and preserve it when route components update via HMR (#​15763)
  • Handle HEAD resource responses consistently in RSC Framework and RSC Data modes (#​15783)
  • Fix initial rendering of RSC routes with a clientLoader and no HydrateFallback (#​15763)
  • Fix <ScrollRestoration> throwing an uncaught error before hydration when sessionStorage is unavailable (#​15566)
    • 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 (#​15710)

Configuration

📅 Schedule: (in timezone America/Los_Angeles)

  • Branch creation
    • Only on Monday (* * * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8e254b8
Status: ✅  Deploy successful!
Preview URL: https://db5a9129.mouseterm.pages.dev
Branch Preview URL: https://renovate-react-router.mouseterm.pages.dev

View logs

@renovate
renovate Bot force-pushed the renovate/react-router branch from 7730305 to 8e254b8 Compare November 25, 2026 23:10
@renovate renovate Bot changed the title Update react-router to v8.5.2 Update react-router to v8.5.3 Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant