Skip to content

chore(deps): re-resolve the dev toolchain past its advisories - #7

Merged
robrigo merged 1 commit into
mainfrom
chore/refresh-dev-lockfile
Aug 19, 2026
Merged

chore(deps): re-resolve the dev toolchain past its advisories#7
robrigo merged 1 commit into
mainfrom
chore/refresh-dev-lockfile

Conversation

@robrigo

@robrigo robrigo commented Aug 19, 2026

Copy link
Copy Markdown

Why

Sixteen dev-scope alerts on the root yarn.lock all have patched releases, but the lockfile froze mocha at a release that pins js-yaml, minimatch and serialize-javascript to exact versions, so a plain refresh could not reach most of them. Re-resolving mocha inside its declared ^10 range lifts those pins to ranges that admit the patches (js-yaml 4.3.1, minimatch 5.1.9, brace-expansion 1.1.18/2.1.4, braces 3.0.3, picomatch 2.3.2, webpack 5.109.2). serialize-javascript has no patched 6.x, so a resolutions entry carries both consumers (mocha, terser-webpack-plugin) to 7.1.0. Nothing here reaches consumers: the published build is plain tsc and every touched line is dev toolchain.

Validation

yarn install --frozen-lockfile, yarn run build, and the VM suite all pass with the same executed count as before the change (35 passing), including under mocha --parallel, the only mode that loads serialize-javascript. scripts/packaging.test.sh 8/8 and scripts/release-notes.test.sh 12/12. yarn run build-web fails with an identical nineteen node-builtin resolution errors on the old and new lockfile (node-rsa imports; CI does not run this target), a pre-existing red carried as found.

Security scanners flag sixteen dev-scope dependency lines in the root lockfile, all with patched releases available. Most were unreachable only because the lockfile froze mocha at a release that pins js-yaml, minimatch and serialize-javascript to exact versions; re-resolving mocha inside its declared ^10 range lifts those pins to ranges that admit the patches. serialize-javascript is the one line no 6.x patch covers, so a resolutions entry carries both consumers to 7.x; the suite passes under mocha --parallel, the only mode that loads it. None of this reaches consumers: the published build is plain tsc and every touched line sits under the dev toolchain. The browser bundle target fails to compile with the same nineteen node-builtin resolution errors before and after, so that pre-existing red is carried as found.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refreshes the development toolchain to patched dependency versions.

Changes:

  • Re-resolves Mocha and Webpack dependencies.
  • Forces serialize-javascript 7.1.0 through Yarn resolutions.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
package.json Adds the security resolution.
yarn.lock Records patched dev-tool dependencies.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@robrigo
robrigo merged commit 46539cb into main Aug 19, 2026
5 checks passed
@robrigo
robrigo deleted the chore/refresh-dev-lockfile branch August 19, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants