Skip to content

Raise the locked versions behind the open advisories, within the current ranges - #39

Merged
Kinflou merged 1 commit into
mainfrom
deps/refresh-lockfile
Nov 16, 2026
Merged

Kinflou merged 1 commit into
mainfrom
deps/refresh-lockfile

Conversation

@Kinflou

@Kinflou Kinflou commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Clears 46 of the 54 open Dependabot alerts, including all 10 against what the .vsix ships. package.json is untouched: the diff is yarn.lock (12 packages) and a CHANGELOG line. The 8 left need a range change or a major version; they belong to the next two pull requests, plus one that needs a decision (below).

How

I removed the lock entries of the packages the alerts name (brace-expansion, minimatch, flatted, form-data, js-yaml, picomatch, qs, tmp, undici) and ran yarn install, which re-resolves exactly those to the newest version their dependents' ranges allow and leaves every other entry alone. Lockfile stays v1.

A plain yarn upgrade was my first try and is not what this is. It moves 66 packages, and among them the @azure/* family under @vscode/vsce ^2 (via @azure/identity) to versions whose engines.node is >=22: yarn install --frozen-lockfile then fails on the Node 20 the workflows use (error @azure/identity@4.14.1: The engine "node" is incompatible). That update belongs with the Node 22 move in the next pull request. It also clears no alert beyond these, except uuid (alert 25), which is only dropped by that Azure update.

The alerts come from gh api repos/ComlineProject/comline-vscode/dependabot/alerts. Dependabot only rescans main, so "cleared" below is computed: each alert's vulnerable_version_range against the version(s) of that package in the new yarn.lock (an alert is one locked version of a package, so a package with three locked copies has three alerts per advisory).

Shipped (runtime): all 10 cleared

The only packaged dependency is vscode-languageclient.

package was now alerts
minimatch (via vscode-languageclient) 5.1.6 5.1.9 4, 7, 10
brace-expansion (via minimatch) 2.0.2 2.1.8 23, 38, 41, 44, 62, 64, 66

What the .vsix carries

vsce package --yarn builds its file list from yarn list --prod, which hoists for the production tree alone, and copies from the top level of the real node_modules, where the development dependencies change what is hoisted. So the package holds the top-level copy of a package, which is not always the copy vscode-languageclient locks. Here that is minimatch, brace-expansion and balanced-match: the .vsix on main contains minimatch 3.1.2, brace-expansion 2.0.2 and balanced-match 1.0.2 (eslint 8's minimatch 3, hoisted), and nothing under vscode-languageclient/node_modules. With this change it contains minimatch 3.1.5 and brace-expansion 2.1.8, both outside every advisory range, so the shipped package is as clean as the lock says. It is not a regression introduced here; it is how the package has always been put together, and it matters in the last pull request of this stack (see there).

Package contents, main against this branch (the Package Test artifact, 225 against 224 files, compared by file name and CRC): the only file gone is brace-expansion/.github/FUNDING.yml; the only files whose content differs are CHANGELOG.md, and index.js, package.json and README.md of brace-expansion and minimatch (plus minimatch.js).

Development only: 36 cleared

package was now alerts
brace-expansion 1.x (eslint 8's minimatch 3) 1.1.12 1.1.22 37, 67
minimatch 3.x (eslint 8) 3.1.2 3.1.5 11
flatted 3.3.3 3.4.4 20
form-data 4.0.5 4.0.6 28
js-yaml 4.1.1 4.3.2 36, 39, 50, 52
picomatch 2.3.1 2.3.2 22
qs 6.14.1 6.17.1 1, 26, 73
tmp 0.2.5 0.2.7 27
undici (vsce, via cheerio) 7.18.2 7.30.2 14, 15, 17, 30, 31, 33, 34, 45, 46, 47, 48, 49, 55, 56, 57, 60, 61, 72, 75, 76, 77, 78

(side-channel, side-channel-list and a second hasown move as qs and form-data dependencies.)

Remaining: 8, all development only

package locked needs alerts held by
markdown-it 12.3.2 14.3.3 29, 53, 68, 69 @vscode/vsce ^2 (markdown-it ^12)
linkify-it 3.0.3 5.0.2 40 markdown-it 12
uuid 8.3.2 11.1.1 25 @azure/msal-node 3, from @azure/identity 4.13, which needs a newer @azure/* that needs Node 22
minimatch 9.0.3 9.0.7 (alert 9); 11.0.1 (alert 79) 9, 79 @typescript-eslint ^6 pins it exactly

@vscode/vsce 4 (the next pull request, which moves CI to Node 22) is what moves the first three. The minimatch 9.0.3 pin goes with typescript-eslint 8 (the pull request after).

CI

All checks pass on this pull request, including Lint and Compile and Package Test (yarn install --frozen-lockfile, yarn compile, yarn test, npx vsce package --yarn) and the release.yml dry run, which builds and packages the six platform .vsix files (Package (...), all green).

@Kinflou
Kinflou force-pushed the deps/refresh-lockfile branch from ba8f552 to 4726857 Compare November 15, 2026 23:22
@Kinflou Kinflou changed the title Refresh the lockfile within the current ranges, clearing the shipped advisories Raise the locked versions behind the open advisories, within the current ranges Nov 15, 2026
@Kinflou
Kinflou marked this pull request as ready for review November 16, 2026 00:00
@Kinflou
Kinflou merged commit 4f81c21 into main Nov 16, 2026
24 checks passed
@Kinflou
Kinflou deleted the deps/refresh-lockfile branch November 16, 2026 00:01
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.

1 participant