chore(deps): update dependency react-router to v8.5.2 #74
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/react-router-monorepo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
8.5.1→8.5.2Release Notes
remix-run/react-router (react-router)
v8.5.2Compare Source
Patch Changes
dataStrategynavigation types and loading navigation history actionsHEADrequests, so a resource route streaming a file no longer leaks its file descriptor (#15634)<Suspense>boundaries during hydration in development (#15382)React.startTransitionto prevent React 19 from silently discarding the server HTML and rendering the boundary on the clientbasenameis configured (#15725)href()to throw fornullrequired parameters and omitnullsplat parameters without a trailing slash, matching the behavior forundefinedand the defined types (#15754)MetaArgs.matchestypes to stop at the current route instead of appending an unknown, possibly undefined tail (#15697)href(),generatePath(), links, forms, fetchers, and redirects (#15785)redirect(),redirectDocument()andreplace()from settingstatus: 302on theResponseInitpassed to them (#15753)<Await>render error when it receives a newresolvevalue, so the error element no longer stays on screen after navigating to a route whose data renders fine (#15695)clientMiddlewareduring RSC client navigations and preserve it when route components update via HMR (#15763)HEADresource responses consistently in RSC Framework and RSC Data modes (#15783)clientLoaderand noHydrateFallback(#15763)<ScrollRestoration>throwing an uncaught error before hydration whensessionStorageis unavailable (#15566)sessionStorageagain and threw (e.g. Chrome with "Block all cookies", sandboxed cross-origin iframes)console.error; only the second, uncaught throw is removeduseBlockerleaving 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: (UTC)
🚦 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 this update again.
This PR has been generated by Mend Renovate CLI.
🔎 ojo scan results
No findings.
Codecov Results 📊
✅ Patch coverage is 100.00%. Project has 5549 uncovered lines.
Generated by Codecov Action
Updates
react-routerweb/package.json:17,"^8.3.0")The only file changed is
web/package-lock.json, in 3 lines:version,resolvedandintegrityfornode_modules/react-router.web/package.jsondoesn't change because the existing^8.3.0range already allows 8.5.2. No transitive dependencies move. The package's own dependency block (@remix-run/route-pattern ^0.22.1,cookie-es ^3.1.1),engines.node >=22.22.0and the peer ranges are all outside the diff and unchanged. No Go module, Docker image or workflow file is touched.Changelog
react-router 8.5.1 → 8.5.2. I used the release notes in the PR description and checked them against the upstream CHANGELOG. There is only one release in the range.
Breaking changes, security fixes, behaviour changes:
href(),generatePath(), links, forms, fetchers, and redirects" (#15785). The changelog doesn't say what the validation now rejects.href()now throws fornullrequired params and leaves outnullsplat params without a trailing slash (#15754).redirect(),redirectDocument()andreplace()no longer setstatus: 302on theResponseInitpassed to them (#15753).HEADrequests is now cancelled, so file descriptors no longer leak on streaming resource routes (#15634).Fixes:
<Suspense>boundaries are kept during hydration in development (#15382).basenameplus search params or a hash (#15725).MetaArgs.matchestypes fixed (#15697).<Await>now clears its error when it gets a newresolve(#15695).clientMiddleware,HEADhandling, andclientLoaderwithoutHydrateFallback(#15763, #15783).<ScrollRestoration>no longer throws an uncaught error whensessionStorageis unavailable (#15566).useBlockerno longer leaves a stale blocker behind after<Activity>hide/show or router recreation (#15710).Transitive updates: none.
Concerns
<BrowserRouter>with nobasename(web/src/main.tsx:3,web/src/main.tsx:16). Across the 42 files that import react-router, the only APIs used areBrowserRouter,Routes,Route,Navigate,NavLink,Outlet,Link,useNavigate,useLocation,useParamsanduseSearchParams(for exampleweb/src/App.tsx:1andweb/src/components/Layout.tsx:2).href(),generatePath(),redirect/redirectDocument/replace,<Form>/fetchers,basename,<Await>,<ScrollRestoration>,useBlocker,clientMiddleware/dataStrategyand RSC/framework mode. None of these appear underweb/src.Link/NavLink/navigate, which Balam uses everywhere. I found noto=/navigate(targets with absolute, protocol-relative or backslash URLs inweb/src, and the SSO callback only navigates to/login(web/src/pages/SsoCallback.tsx:24). Exposure looks low, but I couldn't check what #15785 now rejects at runtime, andtest / webwould only catch it if a test renders an affected link.checks.json):test / web,test / go,security-scan,codecov/patch(100% ≥ 80%) andcodecov/project(54.97%, no base report).test / coverage-badge.Summary
This is a single-package patch bump of
react-router(8.5.1 → 8.5.2) with no transitive churn. It brings routing bug fixes and stricter path/URL validation, and most of the changed APIs (href,redirect,useBlocker, RSC,basename) are ones Balam's declarativeBrowserRoutersetup doesn't use. All required CI checks passed and the security scan is clean.Safe to merge. As an optional extra, click through a few
Link/NavLinkpages after deploy to confirm the new URL validation in #15785 doesn't change navigation.Sources: react-router CHANGELOG, GitLab advisory DB: react-router, GHSA-wrjc-x8rr-h8h6, Netlify react-router advisories, 2026-07-23
Claude dependency-update review of
09bd3ee91f· claude-opus-5-5View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.