Repository navigation
Move to Node 22 and @vscode/vsce 4 - #44
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/vscefrom ^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/vsce4 declaresengines.node >= 22. Everynode-versionin the workflows is now22.23.5, in the same pinned-exact style as the20.20.2it replaces: 22.23.5 is the newest 22.x (Jod, LTS, maintenance until 2027-04-30), andactions/setup-nodeinstalled 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/nodestays 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:leven,chalk,glob(nowtinyglobby),form-dataandparse-semver, and trimmed thesecretlinttree..envfiles, which the Package jobs show this package passes; 3.5.0 made[Content_Types].xmldeterministic; 3.6.0 sanitizes tags (below).verify-signature. This repo does not runvsce publishorlogin.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) andnpx vsce package --yarn [--target T] -o FILE(release.yml):--yarn,--targetand-o, --outall still exist.ovsx publish(ovsx@1.3.0, which itself declaresnode >= 22and depends on@vscode/vsce^4), notvsce publish. On Node 20 that engine requirement was only a warning fromnpm install; on 22 it is met. No change to that step.The
.vsix, before and afterCompared 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'sout/, the icons, grammars and the bundled language server (thewin32-x64comline-lsp.exeis 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:extension/README.md(and in the manifest'sContent.Detailsasset)extension/readme.mdextension/CHANGELOG.md(andContent.Changelogasset)extension/changelog.mdTagsinextension.vsixmanifest... Comline Package ...... ComlinePackage ...(the language alias is sanitized, 3.6.0)[Content_Types].xmlDefaultentries in discovery orderextension/package.json@vscode/vsce^2.22.0extension/CHANGELOG.mdcontentThe 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-it12.3.2 to 14.x (29, 53, 68, 69),linkify-it3.0.3 to 5.x (40),uuid(25: no longer locked, vsce 4's@azure/identitydrops 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):
minimatch@typescript-eslint^6 pins 9.0.3 exactly (next pull request)Alert 79 is the one to watch: it covers every
minimatchfrom 7.0.0 to below 11.0.1, and vsce 4.1.1 itself depends onminimatch^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.ymlrun came from throwaway #41 with basemain: 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.