Repository navigation
fix(deps): resolve transitive advisories - #559
Conversation
Update koa, lodash, lodash-es, webpack, mdast-util-to-hast and glob within their declared ranges. Add overrides where a parent pins or caps the version: postcss below next, cross-spawn below clipboardy, and katex. Closes #556 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMUX3EU35poH13xMgG
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis dependency-only change resolves actionable transitive advisories by updating packages within declared compatibility ranges and adding narrowly scoped npm overrides for cross-spawn, katex, and postcss where parent constraints block patched versions. The lockfile is regenerated to reflect the updated dependency graph, including webpack's removed transitive packages; validation covers installation, lint/build, release tests, dependency-tree consistency, generated output stability, and Mermaid/Katex browser rendering. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #559 +/- ##
=======================================
Coverage 70.89% 70.89%
=======================================
Files 23 23
Lines 5638 5638
Branches 190 190
=======================================
Hits 3997 3997
Misses 1636 1636
Partials 5 5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Fixed security issues:
Linked issues
#556 fix(deps): resolve transitive advisories · 9 of 10 met · 1 to check by hand
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Update koa from 2.16.1 | ✅ Met | The lockfile resolves koa to 2.16.4. |
| 2 | Update lodash from 4.17.23 | ✅ Met | The lockfile resolves lodash to 4.18.1. |
| 3 | Update lodash-es from 4.17.21 | ✅ Met | The lockfile resolves lodash-es to 4.18.1. |
| 4 | Update webpack from 5.100.2 | ✅ Met | The lockfile resolves webpack to 5.112.2. |
| 5 | Update mdast-util-to-hast from 13.2.0 | ✅ Met | The lockfile resolves mdast-util-to-hast to 13.2.1. |
| 6 | Update glob 10.4.5 under sucrase | ✅ Met | The sucrase-nested glob resolves to 10.5.0. |
| 7 | Override postcss pinned by next | ✅ Met | The root override targets next, and the lockfile resolves postcss to 8.5.32. |
| 8 | Override cross-spawn under clipboardy | ✅ Met | The root override targets clipboardy, and its nested cross-spawn resolves to 6.0.6. |
| 9 | Override katex capped by nextra and mermaid | ✅ Met | The root override resolves katex to 0.18.10. |
| 10 | The packages, docs site and tests still build and pass | 👀 Check by hand (runtime) | Confirm the build and test checks pass in CI; the PR description reports local build and release-test success, but says browser tests were not run locally. |
Sourcery assessment
Approved.
Summary
Resolves the transitive advisories that have a usable fix. Light lane: dependency and configuration changes only, no component code. I reviewed the diff myself.
Updated within the declared ranges:
Overrides in the root
package.json, because the parent pins or caps the version:postcssalso moves from 8.5.23 to 8.5.32 at the root, asnextnow shares that copy.webpack5.112 no longer depends onterser-webpack-pluginand a few other packages, which is why they leave the lockfile.How it was verified
npm cifrom the new lockfile, thennpm run lint(includes the build of all packages and the docs): 19 of 19 tasks pass.node --test scripts/release.test.js: 25 of 25 pass.tw-styles.tsfiles are byte-identical todev.npm ls postcss katex cross-spawn mermaidreports no invalid entries.uuid,lodash-esandkatexreach the site through it: in headless Chromium against the built docs, the diagram on/docs/providersrenders with 8 nodes and no page or console errors. A temporary page (not committed) with math in a node label ($$x^2$$) renders throughkatex0.18 as well.Not covered here
next-mdx-remote,zod,minimatchanddeepmergehave no fix that fits this PR. They are handled as Dependabot alert dismissals, with the reasons given there. An override ofnext-mdx-remoteto 6.0.0 rewrote about 12,000 lockfile lines, andnextra2 uses the Zod 3 API (z.function().returns()).Closes #556
🤖 Generated with Claude Code
https://claude.ai/code/session_011FSoqMUX3EU35poH13xMgG
Summary by Sourcery
Update dependencies and overrides to resolve fixable transitive security advisories without changing application components.
Bug Fixes:
Tests: