Skip to content

Move to Node 22 and @vscode/vsce 4 - #44

Merged
Kinflou merged 2 commits into
mainfrom
deps/vsce-4-node-22
Nov 16, 2026
Merged

Kinflou merged 2 commits into
mainfrom
deps/vsce-4-node-22

Conversation

@Kinflou

@Kinflou Kinflou commented Nov 16, 2026

Copy link
Copy Markdown
Member

Replaces #40, which closed when #39's branch was deleted; rebased onto main after #39 merged. Moves the workflows from Node 20 to Node 22.23.5 and @vscode/vsce from ^2.22.0 to ^4.1.1 (4.1.1 is the latest). Together they clear 6 more alerts; 2 are left (below).

Node 20 to 22

Node 20 reached end of life on 2026-04-30 and @vscode/vsce 4 declares engines.node >= 22. Every node-version in the workflows is now 22.23.5, in the same pinned-exact style as the 20.20.2 it replaces: 22.23.5 is the newest 22.x (Jod, LTS, maintenance until 2027-04-30), and actions/setup-node installed it in CI.

  • ci.yml: Lint and Compile, Config schema, Package Test.
  • release.yml: the Build job (smoke test), Package, and Publish to Open VSX.
  • flatpak.yml: the compile job. (The sandbox job runs VSCodium's own Electron, not this Node.)
  • .fantasticonrc.js: a comment said CI runs Node 20; that is gone.

@types/node stays at ^18. It types the extension host's Node, not the build's, and the extension's floor is VS Code 1.75, whose host runs Node 16; moving the types to 22 would let the code call APIs that host does not have. Nothing in this change needs it, so I left it.

@vscode/vsce 2 to 4

I read the release notes of microsoft/vscode-vsce for every 3.x and 4.x release. What matters for vsce package:

  • Node baseline: 3.0.0 moved to Node 20, 4.0.0 to Node 22. 4.0.0 also replaced leven, chalk, glob (now tinyglobby), form-data and parse-semver, and trimmed the secretlint tree.
  • Packaging behaviour: 3.2.2 made packages reproducible and made command line options consistent in style; 3.4.0 (with fixes in 3.4.1, 3.4.2 and 3.6.0) scans the package for secrets and refuses .env files, which the Package jobs show this package passes; 3.5.0 made [Content_Types].xml deterministic; 3.6.0 sanitizes tags (below).
  • Not used here: new OIDC publishing, the legacy PAT migration prompt, verify-signature. This repo does not run vsce publish or login.

Both invocations in the workflows keep working, checked in the installed 4.1.1 (out/main.js) and by the Package jobs:

  • npx vsce package --yarn (ci.yml Package Test, scripts/package.sh) and npx vsce package --yarn [--target T] -o FILE (release.yml): --yarn, --target and -o, --out all still exist.
  • Publishing is ovsx publish (ovsx@1.3.0, which itself declares node >= 22 and depends on @vscode/vsce ^4), not vsce publish. On Node 20 that engine requirement was only a warning from npm install; on 22 it is met. No change to that step.

The .vsix, before and after

Compared the six packages of the release.yml dry run on #39 (vsce 2.x) with the ones on this pull request (vsce 4.1.1), file by file with each file's CRC (unzip -v). Same files and same content for every bundled dependency and the extension's out/, the icons, grammars and the bundled language server (the win32-x64 comline-lsp.exe is a different build from the one in the other run, as two CI builds of it are; the other four binaries are byte-identical). Differences, identical in all six packages:

vsce 2 vsce 4
README in the package extension/README.md (and in the manifest's Content.Details asset) extension/readme.md
changelog in the package extension/CHANGELOG.md (and Content.Changelog asset) extension/changelog.md
Tags in extension.vsixmanifest ... Comline Package ... ... ComlinePackage ... (the language alias is sanitized, 3.6.0)
[Content_Types].xml the Default entries in discovery order the same entries, sorted (3.5.0)
extension/package.json @vscode/vsce ^2.22.0 ^4.1.1
extension/CHANGELOG.md content the new entry in this pull request

The manifest points to the new lower-case paths, so the Marketplace (Open VSX) finds them. The tag is the one change a user could notice, as search metadata. Both are noted in the CHANGELOG.

Alerts

Cleared by this pull request (6): markdown-it 12.3.2 to 14.x (29, 53, 68, 69), linkify-it 3.0.3 to 5.x (40), uuid (25: no longer locked, vsce 4's @azure/identity drops it).

Remaining, computed from the new lock (8 became 2, so 52 of 54 are cleared in total on this stack, all 10 shipped ones included):

package locked alerts held by
minimatch 9.0.3 9 (needs 9.0.7), 79 (needs 11.0.1) @typescript-eslint ^6 pins 9.0.3 exactly (next pull request)

Alert 79 is the one to watch: it covers every minimatch from 7.0.0 to below 11.0.1, and vsce 4.1.1 itself depends on minimatch ^10.2.6, so the lock now also holds 10.2.6 (dev only), which that alert's range includes. It will not clear by an upgrade within the dependents' ranges. I'll come back to it in the last pull request.

CI

Earlier, as a stacked pull request, its ci.yml run came from throwaway #41 with base main: run 43775357326 passed (Lint and Compile, Package Test, Config schema, Language server pin; the packaging step's file list is the one above, 224 files). On this pull request itself: Release Extension (build, smoke test, all six Package jobs), Flatpak (VSCodium sandbox), Lint and CodeQL pass.

@Kinflou
Kinflou merged commit 2a105c4 into main Nov 16, 2026
28 checks passed
@Kinflou
Kinflou deleted the deps/vsce-4-node-22 branch November 16, 2026 00:42
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