Repository navigation
Upgrade vulnerable dependencies (Dependabot backlog, November 2026) - #2210
Conversation
Move every package with an open Dependabot alert to a patched version. Most are lockfile-only updates within existing ranges (yarn up -R). @rollup/plugin-terser moves to ^1.0.2 to pick up serialize-javascript 7. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (97.78%) is below the target coverage (100.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #2210 +/- ##
===========================================
- Coverage 100.00% 97.78% -2.22%
===========================================
Files 71 71
Lines 1364 1398 +34
Branches 509 518 +9
===========================================
+ Hits 1364 1367 +3
- Misses 0 31 +31 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
| "@rollup/plugin-dynamic-import-vars": "^2.1.2", | ||
| "@rollup/plugin-node-resolve": "^16.0.0", | ||
| "@rollup/plugin-terser": "^0.4.4", | ||
| "@rollup/plugin-terser": "^1.0.2", |
There was a problem hiding this comment.
Not blocking, since you verified docker build on this branch, but worth a follow-up:
@rollup/plugin-terser 1.0.0's breaking change is "upgrade serialize-javascript to v7 and node to v20", and both @rollup/plugin-terser@1.0.2 and serialize-javascript@7.1.4 now declare engines.node: ">=20.0.0". The Dockerfile that runs this plugin (yarn build-pattern-lib) is still on node:19.8.1-alpine. Yarn doesn't enforce engines, so this version happens to work, but any 1.x patch that uses a Node 20 API would break the pattern-library image at deploy time rather than in CI. Could we open a small follow-up to move the Dockerfile to a maintained Node (20/22/24)?
There was a problem hiding this comment.
Agreed. I will open a follow-up PR that moves the Dockerfile to a maintained Node and rebuilds the pattern-library image to confirm it.
Consolidated upgrade of the packages with open Dependabot alerts (Vanta SOC2 "packages checked for vulnerabilities" tests). One PR instead of the individual Dependabot PRs.
How
resolutionsadded.package.jsononly changes one devDependency range:@rollup/plugin-terser^0.4.4 -> ^1.0.2 (see below). Everything else moved inyarn.lockwithyarn up -R <pkg>within the existing semver ranges.dependencies(highlight.js,wouter-preact) andpeerDependenciesare unchanged.tar6 (vianode-gyp9, pulled in by the fsevents optional build) is fixed by movingnode-gypto 13.1.0, which uses tar 7 and drops the oldmake-fetch-happen/cacache/http-proxy-agenttree (this also removes@tootallnate/once).serialize-javascript6.0.2 is only reachable through@rollup/plugin-terser0.4.x, so that plugin moves to 1.0.2 (serialize-javascript 7.1.4, terser 5.36 -> 5.51). It is only used to minify the pattern library website bundle (yarn build-pattern-lib), not the publishedlib/.Build-output check
yarn build->lib/): built on origin/main and on this branch and diffed. The only difference is the inlined Babel_toPrimitivehelper inlib/hooks/use-synced-ref.jsandlib/util/listener-collection.js(from@babel/helpers7.29.13). The new helper adds atypeof Symbolguard; behaviour is the same. Type declarations are identical.docker buildof origin/main and of this branch (the Dockerfile still usesnode:19.8.1-alpine) both succeed. Only the minified JS bundles differ by a few bytes (terser 5.51); CSS is byte-identical. The new container serves the index page and bundle.Versions
Alerts expected to close
62 of 63 open alerts: critical 3/3, high 32/32, medium 24/24, low 3/4.
Deferred
deepmerge4.2.2 (1 low, via@rollup/plugin-node-resolve): no patched version exists.CI note:
codecov/projectcodecov/projectreported 97.78% on this PR. That is a known flake, not a coverage change. The same 97.78% failure is on main at 8fde089 and 3312fb5 (e77d43a and 1b352cc are back to 100%).What happens: after the tests, vitest globs
coverage.includeto find "untested" files and ignores the ones already in the coverage map. Now and then a file that was covered (for examplePopover.tsx,pagination.tsor a one-line*Context.ts) is not filtered out. Vitest then instruments it again from source and merges the copy, which adds duplicate, never-hit statements. Locally the same thing happens on origin/main: across repeatedyarn testruns, 0 to 2 duplicated statements usually, and sometimes a whole file. Thecijob (format, lint, typecheck, tests) passes.codecov/projectis not a required check. Re-running the job doesn't clear it because Codecov merges uploads for the same commit.Testing (local)
yarn checkformatting,yarn lint,yarn typecheck: pass.yarn test: 666/666 pass.yarn build: pass, with thelib/comparison above.docker build(pattern library image): pass, with the comparison above.No code or test changes were needed.
🤖 Generated with Claude Code