Skip to content

chore: upgrade dependencies - #299

Merged
brunomenezes merged 19 commits into
mainfrom
chore/upgrade-dependencies
Sep 23, 2026
Merged

brunomenezes merged 19 commits into
mainfrom
chore/upgrade-dependencies

Conversation

@brunomenezes

Copy link
Copy Markdown
Member

Summary

Closes the remaining findings from the dependency audit. PR #297 took Next to 16 and PR #298 moved the toolchain to Node 24 / pnpm 11; this is the rest — two live advisories, the full drift sweep, and eight majors.

No user-facing changes.

What changed

Security — lodash 4.18.1 (GHSA-r5fr-rjxr-66jc) and drizzle-orm 0.45.2 (GHSA-gpj5-g38j-94v9). Both were inside existing ranges; neither was reachable in our code, but they cleared scanners.

Majors — prettier 3, ESLint 10, TypeScript 6, Storybook 10, Vite 8, jotai 3, framer-motion 13, graphql 17, Babel 8, react-ga4 3, jest-dom 7, dotenv-cli 11, Chromatic 18.

Removed — @storybook/blocks (dead since SB9, unused), babel-loader (no webpack config since #297), @babel/preset-react and @babel/plugin-transform-private-methods (both redundant under Babel 8), @eslint/eslintrc, @storybook/addon-onboarding. npm-run-all → npm-run-all2.

Drift — Apollo, Chakra, recharts, react-hook-form, libsql and the usual patch/minor set.

Code changes

Only three, all forced by a major:

  • Address.tsx / PoolHeader.tsx — Chakra 3.37's useBreakpointValue infers from the first entry and rejects a mixed {base:'1.688rem', sm:5} map. Fixed with an explicit <string | number> generic, which keeps the spacing token rather than hardcoding a rem value.
  • jest.config.js — react-ga4 3 ships ESM-only .mjs, which the transform pattern didn't match. Added mjs.
  • eslint.config.mjs — ESLint 10 removed --ext, so the lint script changed; the eslintrc compat layer was replaced with native flat configs.

The other 327 files are mechanical: 241 from the prettier 3 reformat (its own commit), 86 from the Storybook 10 story-import codemod (its own commit).

Deliberate debt

eslint-plugin-react-hooks v7 enables the React Compiler rules in its recommended preset — 55 errors against current code (set-state-in-effect ×41, plus purity, immutability, refs, use-memo). All 14 are disabled behind a TODO(deps-sweep) marker. That's a separate piece of work about how components use effects and refs, not a dependency bump.

eslint-plugin-react 7.37.5 has no ESLint 10 support at all (peers cap at ^9.7, and it calls the removed context.getFilename()), so an @eslint/compat shim stays until it ships one.

Reviewer notes

  • Commit 5 (Chakra UI to 3.37) is the one to read. Everything else is dependency metadata or a codemod.
  • Prettier is split into a bump commit and a formatting-only commit, so the reformat can be skimmed.
  • lint output is unchanged throughout: 75 warnings, 0 errors, same three rules, verified commit by commit.
  • TypeScript stops at 6.0.3 — the ecosystem isn't past it yet.

Verification

Full CI sequence green from a frozen install: format:check, lint, 128 suites / 618 tests, next build, build-storybook.

Beyond CI, the ENS cron path was run against live infrastructure — one request exercising graphql 17, Apollo, ethers and drizzle/libsql together: 742 entries refreshed in 7.5s through a single 742-alias subgraph query, 73 ENS names and 27 avatars persisted.

@brunomenezes
brunomenezes requested a review from tuler September 23, 2026 11:12
@brunomenezes brunomenezes self-assigned this Sep 23, 2026
@brunomenezes brunomenezes added the dependencies Pull requests that update a dependency file label Sep 23, 2026
@vercel

vercel Bot commented Sep 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
staking Ready Ready Preview Sep 23, 2026 11:12am UTC

Request Review

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedjest-environment-jsdom@​30.3.0 ⏵ 30.5.11001006292 +1100
Updatedjest@​30.3.0 ⏵ 30.5.110010069 +193 -2100
Updated@​typescript-eslint/​parser@​8.46.0 ⏵ 8.70.010010072 +198100
Updated@​storybook/​react@​9.1.20 ⏵ 10.6.099 +210077 +4100100
Added@​babel/​core@​8.0.5991007990100
Updated@​storybook/​nextjs-vite@​9.1.20 ⏵ 10.6.099 +110079 +3100100
Updated@​types/​lodash@​4.17.24 ⏵ 4.17.2510010080 +185100
Updated@​typescript-eslint/​eslint-plugin@​8.46.0 ⏵ 8.70.099 +110080 +198100
Updatedreact-icons@​5.6.0 ⏵ 5.7.0100 +1100100 +18880
Updatedjest-mock-extended@​4.0.0 ⏵ 4.0.110010010081100
Updatedreact-ga4@​2.1.0 ⏵ 3.0.1100 +110010081100
Updateddotenv-cli@​10.0.0 ⏵ 11.0.0100100100 +182 +2100
Updatedlodash@​4.17.23 ⏵ 4.18.1100100 +1887 +182100
Updatedvite@​7.3.6 ⏵ 8.3.099 +110082 +196100
Updateddate-fns@​4.1.0 ⏵ 4.4.0100 +11009283100
Updatedgraphql-tag@​2.12.6 ⏵ 2.12.7100 +110010085100
Updatedreact-chartjs-2@​5.3.0 ⏵ 5.3.11001009285100
Updatedchart.js@​4.5.0 ⏵ 4.5.1100 +110086 +185100
Updatedeslint-plugin-prettier@​5.5.4 ⏵ 5.5.6100 +1100100 +186100
Updated@​eslint/​js@​9.37.0 ⏵ 10.0.110010010087 -1100
Updatedchromatic@​13.3.0 ⏵ 18.8.19910088100100
Updatedstorybook@​9.1.20 ⏵ 10.6.09810088100100
Updated@​libsql/​client@​0.17.2 ⏵ 0.18.0100 +1100100 +188100
Updateddrizzle-orm@​0.45.1 ⏵ 0.45.298 +1100 +1688 +198 +1100
Updatedtypescript@​5.9.3 ⏵ 6.0.3100 +110090 +110090
Updatedhumanize-duration@​3.33.1 ⏵ 3.35.0100 +110010090 +9100
Updated@​testing-library/​dom@​10.4.1 ⏵ 10.4.299 +110010090100
Addednpm-run-all2@​9.0.39910010091100
Updated@​testing-library/​react@​16.3.2 ⏵ 16.3.3100 +110010091100
Updated@​eslint/​compat@​1.4.0 ⏵ 2.1.110010010092 +3100
Updatedjest-canvas-mock@​2.5.2 ⏵ 2.5.8100 +110010092 +5100
Updated@​chromatic-com/​storybook@​4.1.1 ⏵ 5.3.19910092 +1100 +2100
See 15 more rows in the dashboard

View full report

@socket-security

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Obfuscated code: npm drizzle-orm is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: package.json → npm/drizzle-orm@0.45.2

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/drizzle-orm@0.45.2. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 35853039175

Coverage remained the same at 66.43%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: Could not be determined — this PR's diff is too large for GitHub to return (406 error at GitHub).
  • 19 coverage regressions across 5 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

19 previously-covered lines in 5 files lost coverage.

File Lines Losing Coverage Coverage
src/components/stake/StakePoolUsers.tsx 7 0.0%
src/components/stake/UsersChart.tsx 5 75.71%
src/components/Address.tsx 3 90.14%
src/components/stake/TransactionInfoBanner.tsx 2 88.89%
src/components/wallet/provider.tsx 2 68.75%

Coverage Stats

Coverage Status
Relevant Lines: 3800
Covered Lines: 2648
Line Coverage: 69.68%
Relevant Branches: 1982
Covered Branches: 1193
Branch Coverage: 60.19%
Branches in Coverage %: Yes
Coverage Strength: 29.61 hits per line

💛 - Coveralls

@brunomenezes
brunomenezes merged commit d97c8d7 into main Sep 23, 2026
8 of 9 checks passed
@brunomenezes
brunomenezes deleted the chore/upgrade-dependencies branch September 23, 2026 16:58

This branch was successfully deployed

1 active deployment
Preview — a517d287 Deployed Sep 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants