Skip to content

Bump npm dependencies - #11

Merged
emanuelen5 merged 8 commits into
mainfrom
npm
Dec 1, 2026
Merged

emanuelen5 merged 8 commits into
mainfrom
npm

Conversation

@emanuelen5

Copy link
Copy Markdown
Collaborator

No description provided.

@emanuelen5 emanuelen5 self-assigned this Nov 30, 2026
@emanuelen5
emanuelen5 added this pull request to stack #12 November 30, 2026 21:50
Base automatically changed from webview to main November 30, 2026 21:53
@emanuelen5
emanuelen5 force-pushed the npm branch 2 times, most recently from 92f5616 to c69c59f Compare December 1, 2026 05:17
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.
@emanuelen5
emanuelen5 merged commit 66fdaa6 into main Dec 1, 2026
3 checks passed
@emanuelen5
emanuelen5 deleted the npm branch December 1, 2026 05:20
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