Repository navigation
Bump npm dependencies - #11
Merged
Merged
Conversation
emanuelen5
force-pushed
the
npm
branch
2 times, most recently
from
December 1, 2026 05:17
92f5616 to
c69c59f
Compare
ESLint 10 no longer reads .eslintrc, so move the configuration to a flat eslint.config.mjs with the same rules. The typescript-eslint package replaces the separate parser and plugin packages.
TypeScript 7 has no compiler API for typescript-eslint, which only supports TypeScript up to 6.0. Install TypeScript 7 as @typescript/native, which provides tsc, and point the typescript package at the @typescript/typescript6 compatibility package for typescript-eslint. TypeScript 7 always uses esModuleInterop, so import mocha and glob by their default export. It no longer has the node10 module resolution, so check the webview with the bundler resolution that matches esbuild, and it checks side-effect imports, so declare the stylesheet import.
Mocha 10 fails to start on Node 26, which loads the CommonJS file of its yargs dependency as an ES module. Mocha 12 is an ES module; the integration test runner still requires it, which the extension host's Node supports. Use the promise API of glob, which brings its own types.
Take @types/node from Node 20, which runs the extension host of the oldest VS Code the extension supports, instead of Node 16. jsdom 31 gives a new document focus from the start, where jsdom 30 only had focus once an element was focused. A newly opened webview has yet to be focused by VS Code, so say so in the test that covers it.
Even at their latest versions, vsce depends on minimatch 10, and mocha on minimatch 10 and glob 13, which npm audit reports as vulnerable to denial of service through crafted patterns. Override them with the next major versions, which keep the API that vsce and mocha use.
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.
No description provided.