chore(deps): major bumps — react-router 8, recharts 3, plugin-react 6, jest-dom 7, visualizer 7 - #457
Merged
Merged
Conversation
…, jest-dom 7, visualizer 7 Clears the last 2 open high-severity alerts (react-router). react-router 7.18.1 -> 8.3.0 (breaking): - v8 REMOVES the react-router-dom package entirely; everything DOM-specific collapsed into react-router in v7, and the compat shim is gone. Swapped all 225 importing files (src + tests + vi.mock/importActual targets) to 'react-router'. Every symbol the app uses — BrowserRouter, MemoryRouter, Routes, Route, Link, NavLink, Navigate, useNavigate, useLocation, useParams, useSearchParams, useBlocker — is exported from react-router in v8. The app never used RouterProvider/HydratedRouter (those would need react-router/dom), so no other import path changes. - v8 raises its Node floor to 22.22.0. Bumped the frontend engines field, moved every workflow's setup-node from 20 to 22, and added a root .node-version so Cloudflare Pages builds on 22 instead of defaulting to an older runtime and failing the engine check. - The other v8 majors (ESM-only publish, middleware always on, meta loaderData rename, hasErrorBoundary removal, v8_* flag removals) only affect data-router/framework mode. This app is declarative BrowserRouter with no loaders/actions/meta, so none apply. Also: recharts 2.15.4 -> 3.10.1, @vitejs/plugin-react 5 -> 6.0.4, @testing-library/jest-dom 6 -> 7.0.0, rollup-plugin-visualizer 6 -> 7.0.1. Supersedes Dependabot #446-#451. Verified: backend lint/build/tests 3541 passed; frontend lint 0 errors, build clean, 906 passed (no failures at all this run).
Contributor
Reviewer's GuideUpgrades the frontend routing stack to react-router v8 (removing react-router-dom), raises the Node runtime to 22 across the app and CI, and bumps several frontend build/test/charting dependencies, with accompanying lockfile and release-log updates. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Deploying studyhub with
|
| Latest commit: |
ae172a0
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://00bd0ddd.studyhub-2wc.pages.dev |
| Branch Preview URL: | https://chore-major-deps-2026-08.studyhub-2wc.pages.dev |
Contributor
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Fixed security issues:
- react-router (link)
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clears the last 2 open high-severity alerts (#176, #177 — react-router). Supersedes Dependabot #446–#451.
react-router 7.18.1 → 8.3.0 (the breaking one)
v8 removes the
react-router-dompackage entirely. In v7 everything DOM-specific had already collapsed intoreact-router;react-router-domwas kept only as a v6-compat convenience, and v8 drops it.vi.mock/vi.importActualtargets) toreact-router.react-routerin v8:BrowserRouter,MemoryRouter,Routes,Route,Link,NavLink,Navigate,useNavigate,useLocation,useParams,useSearchParams,useBlocker.RouterProvider/HydratedRouter(those move toreact-router/dom), so there are no other import-path changes.v8 raises its Node floor to 22.22.0, so:
engines.node→>=22.22.0setup-node→ 22 (was 20).node-versionso Cloudflare Pages builds on 22 rather than defaulting to an older runtime and tripping the engine check — this was the one silent deploy risk in the upgrade.Breaking changes that do NOT apply here (checked against the v8.0.0 changelog): ESM-only publish, middleware always-on +
RouterContextProvider,metadata→loaderDatarename,hasErrorBoundaryremoval, and thefuture.v8_*flag removals all affect data-router/framework mode. This app is declarativeBrowserRouterwith no loaders, actions, or meta.Other majors
Validation
react-router-domis gone from every lockfile andreact-router@8.3.0is the only entryAfter this merges, Dependabot alerts should be at 0.
playwright-smokeremains the known-red baseline (red on main since 2026-06-02).🤖 Generated with Claude Code
Summary by Sourcery
Upgrade routing and frontend tooling dependencies and align Node version requirements across the app and CI.
Bug Fixes:
Enhancements:
Build:
CI:
Documentation:
Tests:
Chores: