Skip to content

deps: fix Dependabot alerts for vitest, minimatch and serialize-javascript - #127

Open
Lili Xu (llxu1) wants to merge 1 commit into
mainfrom
chore/fix-dependabot-alerts
Open

Lili Xu (llxu1) wants to merge 1 commit into
mainfrom
chore/fix-dependabot-alerts

Conversation

@llxu1

Copy link
Copy Markdown
Collaborator

Fixes the open Dependabot alerts (all transitive dev dependencies in package-lock.json).

Alert Package Advisory Fix
#147, #148 @vitest/mocker 4.1.11 GHSA-xp26-3454-mjgp, GHSA-qxg6-89mg-rqv8 Bump vitest / @vitest/coverage-v8 to ^4.1.12
#160 minimatch 10.2.5 GHSA-g3hv-75wg-m249 Override minimatch to ^11.0.1 (resolves 11.0.8)
#152 serialize-javascript 7.0.5 GHSA-m5mm-p8h7-m29v Raise override to ^7.1.3 (resolves 7.1.4)
#126 source-map-js GHSA-68fv-2mgg-jv7q Already at 1.2.2 in the lockfile; the alert should auto-close

Reviewer notes

  • minimatch 11 is a breaking release (path portions are matched with Matcher objects instead of RegExps, and makeRe/regexp/matchOne are removed). glob 13 depends on those internals, so this also overrides glob to ^14.0.6 (the release that adopts minimatch 11) and bumps the vscode package's glob devDependency. The public glob()/globSync() API used by mocha, vsce and tests/vscode/integration/suite/index.ts is unchanged.
  • @vscode/vsce only calls the top-level minimatch() function. vsce ls --no-dependencies returns the same packaged file list as main.
  • vitest stays on 4.x; there is no major version upgrade.

Validation

  • npm audit (public registry): 0 vulnerabilities
  • npm run build, npm run lint: pass
  • npx vitest run: 35 files / 619 tests pass

…e-javascript

- Bump vitest and @vitest/coverage-v8 to ^4.1.12 (@vitest/mocker GHSA-qxg6-89mg-rqv8, GHSA-xp26-3454-mjgp)
- Override minimatch to ^11.0.1 (GHSA-g3hv-75wg-m249)
- Override glob and bump the vscode devDependency to ^14.0.6, since glob 13 is incompatible with minimatch 11
- Raise serialize-javascript override to ^7.1.3 (GHSA-m5mm-p8h7-m29v)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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