chore(deps): update dependency react-router to v8.5.2 #74

Open
james wants to merge 1 commit from renovate/react-router-monorepo into main
Owner

This PR contains the following updates:

Package Change Age Confidence
react-router (source) 8.5.1 → 8.5.2 age confidence

Release Notes

remix-run/react-router (react-router)

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: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • 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 this update again.


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

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [react-router](https://github.com/remix-run/react-router) ([source](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router)) | [`8.5.1` → `8.5.2`](https://renovatebot.com/diffs/npm/react-router/8.5.1/8.5.2) | ![age](https://developer.mend.io/api/mc/badges/age/npm/react-router/8.5.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-router/8.5.1/8.5.2?slim=true) | --- ### Release Notes <details> <summary>remix-run/react-router (react-router)</summary> ### [`v8.5.2`](https://github.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#v852) [Compare Source](https://github.com/remix-run/react-router/compare/[email protected]@8.5.2) ##### Patch Changes - Keep navigation metadata consistent after a submission action throws an error ([#&#8203;15621](https://github.com/remix-run/react-router/pull/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 ([#&#8203;15634](https://github.com/remix-run/react-router/pull/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 ([#&#8203;15382](https://github.com/remix-run/react-router/pull/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 ([#&#8203;15725](https://github.com/remix-run/react-router/pull/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 ([#&#8203;15754](https://github.com/remix-run/react-router/pull/15754)) - Fix generated `MetaArgs.matches` types to stop at the current route instead of appending an unknown, possibly undefined tail ([#&#8203;15697](https://github.com/remix-run/react-router/pull/15697)) - Improve path generation and URL validation across `href()`, `generatePath()`, links, forms, fetchers, and redirects ([#&#8203;15785](https://github.com/remix-run/react-router/pull/15785)) - Stop `redirect()`, `redirectDocument()` and `replace()` from setting `status: 302` on the `ResponseInit` passed to them ([#&#8203;15753](https://github.com/remix-run/react-router/pull/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 ([#&#8203;15695](https://github.com/remix-run/react-router/pull/15695)) - Run `clientMiddleware` during RSC client navigations and preserve it when route components update via HMR ([#&#8203;15763](https://github.com/remix-run/react-router/pull/15763)) - Handle `HEAD` resource responses consistently in RSC Framework and RSC Data modes ([#&#8203;15783](https://github.com/remix-run/react-router/pull/15783)) - Fix initial rendering of RSC routes with a `clientLoader` and no `HydrateFallback` ([#&#8203;15763](https://github.com/remix-run/react-router/pull/15763)) - Fix `<ScrollRestoration>` throwing an uncaught error before hydration when `sessionStorage` is unavailable ([#&#8203;15566](https://github.com/remix-run/react-router/pull/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 ([#&#8203;15710](https://github.com/remix-run/react-router/pull/15710)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - 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 this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC42NS41IiwidXBkYXRlZEluVmVyIjoiNDQuNjUuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
chore(deps): update dependency react-router to v8.5.2
All checks were successful
security-scan / security-scan (pull_request) Successful in 35s
test / web (pull_request) Successful in 1m5s
test / coverage-badge (pull_request) Has been skipped
codecov/project 54.97% (No base report)
codecov/patch 100.00% >= target 80%
test / go (pull_request) Successful in 3m13s
claude-review / review (pull_request) Successful in 5m26s
09bd3ee91f

🔎 ojo scan results

No findings.

<!-- ojo-scan-summary --> ### 🔎 ojo scan results No findings.

Codecov Results 📊

✅ Patch coverage is 100.00%. Project has 5549 uncovered lines.


Generated by Codecov Action

<!-- codecov-action-results --> ## Codecov Results 📊 :white_check_mark: Patch coverage is **100.00%**. Project has **5549** uncovered lines. --- *Generated by [Codecov Action](https://github.com/getsentry/codecov-action)*

Updates

Name Ecosystem Old → New Direct / transitive Bump
react-router npm 8.5.1 → 8.5.2 Direct (web/package.json:17, "^8.3.0") patch

The only file changed is web/package-lock.json, in 3 lines: version, resolved and integrity for node_modules/react-router. web/package.json doesn't change because the existing ^8.3.0 range 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.0 and 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:

  • No breaking changes, and no CVE or GHSA ids appear in the changelog. A search of advisory databases found no advisory that lists 8.5.2 as affected or fixed.
  • Behaviour change: "Improve path generation and URL validation across href(), generatePath(), links, forms, fetchers, and redirects" (#15785). The changelog doesn't say what the validation now rejects.
  • Behaviour change: href() now throws for null required params and leaves out null splat params without a trailing slash (#15754).
  • Behaviour change: redirect(), redirectDocument() and replace() no longer set status: 302 on the ResponseInit passed to them (#15753).
  • Resource-leak fix: the discarded response body of HEAD requests is now cancelled, so file descriptors no longer leak on streaming resource routes (#15634).

Fixes:

  • Navigation metadata now stays consistent after a submission action throws (#15621).
  • Streamed <Suspense> boundaries are kept during hydration in development (#15382).
  • Submissions to root form actions now work with basename plus search params or a hash (#15725).
  • MetaArgs.matches types fixed (#15697).
  • <Await> now clears its error when it gets a new resolve (#15695).
  • Several RSC fixes: clientMiddleware, HEAD handling, and clientLoader without HydrateFallback (#15763, #15783).
  • <ScrollRestoration> no longer throws an uncaught error when sessionStorage is unavailable (#15566).
  • useBlocker no longer leaves a stale blocker behind after <Activity> hide/show or router recreation (#15710).

Transitive updates: none.

Concerns

  • How Balam uses react-router. The SPA runs in declarative mode: <BrowserRouter> with no basename (web/src/main.tsx:3, web/src/main.tsx:16). Across the 42 files that import react-router, the only APIs used are BrowserRouter, Routes, Route, Navigate, NavLink, Outlet, Link, useNavigate, useLocation, useParams and useSearchParams (for example web/src/App.tsx:1 and web/src/components/Layout.tsx:2).
    • Not affected: href(), generatePath(), redirect/redirectDocument/replace, <Form>/fetchers, basename, <Await>, <ScrollRestoration>, useBlocker, clientMiddleware/dataStrategy and RSC/framework mode. None of these appear under web/src.
    • Possibly affected: #15785's "URL validation across … links" applies to Link/NavLink/navigate, which Balam uses everywhere. I found no to=/navigate( targets with absolute, protocol-relative or backslash URLs in web/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, and test / web would only catch it if a test renders an affected link.
  • Engines, licence, new dependencies: none of these change. The licence is still MIT and no dependency was added.
  • Security sensitivity: this is client-side routing only, with no auth, crypto or DB code involved. The update contains no security fix.
  • Untrusted input: the PR content has nothing that tries to steer the review.
  • CI checks (checks.json):
    • Passed: test / web, test / go, security-scan, codecov/patch (100% ≥ 80%) and codecov/project (54.97%, no base report).
    • Skipped: test / coverage-badge.
  • Scan and coverage comments: the ojo security scan reports "No findings". Codecov reports 100% patch coverage, which is expected because the PR changes no source code.

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 declarative BrowserRouter setup 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/NavLink pages 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-5

<!-- claude-pr-review --> ### Updates | Name | Ecosystem | Old → New | Direct / transitive | Bump | |---|---|---|---|---| | `react-router` | npm | 8.5.1 → 8.5.2 | Direct (`web/package.json:17`, `"^8.3.0"`) | patch | The only file changed is `web/package-lock.json`, in 3 lines: `version`, `resolved` and `integrity` for `node_modules/react-router`. `web/package.json` doesn't change because the existing `^8.3.0` range 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.0` and 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](https://github.com/remix-run/react-router/blob/main/packages/react-router/CHANGELOG.md#v852). There is only one release in the range. *Breaking changes, security fixes, behaviour changes:* - No breaking changes, and no CVE or GHSA ids appear in the changelog. A search of advisory databases found no advisory that lists 8.5.2 as affected or fixed. - **Behaviour change:** "Improve path generation and URL validation across `href()`, `generatePath()`, links, forms, fetchers, and redirects" ([#15785](https://github.com/remix-run/react-router/pull/15785)). The changelog doesn't say what the validation now rejects. - **Behaviour change:** `href()` now throws for `null` required params and leaves out `null` splat params without a trailing slash ([#15754](https://github.com/remix-run/react-router/pull/15754)). - **Behaviour change:** `redirect()`, `redirectDocument()` and `replace()` no longer set `status: 302` on the `ResponseInit` passed to them ([#15753](https://github.com/remix-run/react-router/pull/15753)). - **Resource-leak fix:** the discarded response body of `HEAD` requests is now cancelled, so file descriptors no longer leak on streaming resource routes ([#15634](https://github.com/remix-run/react-router/pull/15634)). *Fixes:* - Navigation metadata now stays consistent after a submission action throws ([#15621](https://github.com/remix-run/react-router/pull/15621)). - Streamed `<Suspense>` boundaries are kept during hydration in development ([#15382](https://github.com/remix-run/react-router/pull/15382)). - Submissions to root form actions now work with `basename` plus search params or a hash ([#15725](https://github.com/remix-run/react-router/pull/15725)). - `MetaArgs.matches` types fixed ([#15697](https://github.com/remix-run/react-router/pull/15697)). - `<Await>` now clears its error when it gets a new `resolve` ([#15695](https://github.com/remix-run/react-router/pull/15695)). - Several RSC fixes: `clientMiddleware`, `HEAD` handling, and `clientLoader` without `HydrateFallback` ([#15763](https://github.com/remix-run/react-router/pull/15763), [#15783](https://github.com/remix-run/react-router/pull/15783)). - `<ScrollRestoration>` no longer throws an uncaught error when `sessionStorage` is unavailable ([#15566](https://github.com/remix-run/react-router/pull/15566)). - `useBlocker` no longer leaves a stale blocker behind after `<Activity>` hide/show or router recreation ([#15710](https://github.com/remix-run/react-router/pull/15710)). Transitive updates: none. ### Concerns - **How Balam uses react-router.** The SPA runs in declarative mode: `<BrowserRouter>` with no `basename` (`web/src/main.tsx:3`, `web/src/main.tsx:16`). Across the 42 files that import react-router, the only APIs used are `BrowserRouter`, `Routes`, `Route`, `Navigate`, `NavLink`, `Outlet`, `Link`, `useNavigate`, `useLocation`, `useParams` and `useSearchParams` (for example `web/src/App.tsx:1` and `web/src/components/Layout.tsx:2`). - **Not affected:** `href()`, `generatePath()`, `redirect`/`redirectDocument`/`replace`, `<Form>`/fetchers, `basename`, `<Await>`, `<ScrollRestoration>`, `useBlocker`, `clientMiddleware`/`dataStrategy` and RSC/framework mode. None of these appear under `web/src`. - **Possibly affected:** #15785's "URL validation across … links" applies to `Link`/`NavLink`/`navigate`, which Balam uses everywhere. I found no `to=`/`navigate(` targets with absolute, protocol-relative or backslash URLs in `web/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, and `test / web` would only catch it if a test renders an affected link. - **Engines, licence, new dependencies:** none of these change. The licence is still MIT and no dependency was added. - **Security sensitivity:** this is client-side routing only, with no auth, crypto or DB code involved. The update contains no security fix. - **Untrusted input:** the PR content has nothing that tries to steer the review. - **CI checks** (`checks.json`): - Passed: `test / web`, `test / go`, `security-scan`, `codecov/patch` (100% ≥ 80%) and `codecov/project` (54.97%, no base report). - Skipped: `test / coverage-badge`. - **Scan and coverage comments:** the ojo security scan reports "No findings". Codecov reports 100% patch coverage, which is expected because the PR changes no source code. ### 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 declarative `BrowserRouter` setup 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`/`NavLink` pages after deploy to confirm the new URL validation in #15785 doesn't change navigation. Sources: [react-router CHANGELOG](https://github.com/remix-run/react-router/blob/main/packages/react-router/CHANGELOG.md#v852), [GitLab advisory DB: react-router](https://advisories.gitlab.com/npm/react-router/GHSA-qwww-vcr4-c8h2/), [GHSA-wrjc-x8rr-h8h6](https://github.com/advisories/GHSA-wrjc-x8rr-h8h6), [Netlify react-router advisories, 2026-07-23](https://www.netlify.com/changelog/2026-07-23-react-router-security-vulnerabilities.md) --- _Claude dependency-update review of 09bd3ee91f · claude-opus-5-5_
All checks were successful
security-scan / security-scan (pull_request) Successful in 35s
test / web (pull_request) Successful in 1m5s
test / coverage-badge (pull_request) Has been skipped
codecov/project 54.97% (No base report)
codecov/patch 100.00% >= target 80%
test / go (pull_request) Successful in 3m13s
claude-review / review (pull_request) Successful in 5m26s
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/react-router-monorepo:renovate/react-router-monorepo
git switch renovate/react-router-monorepo
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ColibriSec/balam!74
No description provided.