Skip to content

Update vulnerable npm dependencies (brace-expansion, diff, fast-uri, nanoid) - #8957

Draft
Raymond Zhao (rzhao271) with Copilot wants to merge 2 commits into
mainfrom
copilot/update-vulnerable-npm-dependencies
Draft

Raymond Zhao (rzhao271) with Copilot wants to merge 2 commits into
mainfrom
copilot/update-vulnerable-npm-dependencies

Conversation

Copilot AI commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Component Governance flagged several outdated/vulnerable transitive npm dependencies: brace-expansion, diff, fast-uri, and nanoid. diff's major version bump (7 → 8) needed verification since it's a breaking change.

Changes

  • diff (7.0.0 → 8.0.3): Bumped the existing overrides.mocha.diff pin in package.json. This is the only place diff's version is constrained — it's a transitive devDependency pulled in by mocha/sinon/ts-node, never imported directly in src/ or webviews/.
  • brace-expansion, fast-uri, nanoid: Updated via npm update to the latest versions already satisfying their existing dependents' (minimatch, ajv, postcss) semver ranges — no override needed.

Notes on the diff v8 breaking change

v8 drops ES5 support (uses TextDecoder/Uint8Array, compiles to ES6) and ships its own TypeScript types (dropping @types/diff support). Neither affects this repo:

  • No direct diff API usage exists outside string literals (e.g. linkType: 'diff').
  • No @types/diff dependency is present.

No new overrides, resolutions, --force, or --legacy-peer-deps were introduced — only the version value of a pre-existing override was updated.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI changed the title [WIP] Update vulnerable npm dependencies Update vulnerable npm dependencies (brace-expansion, diff, fast-uri, nanoid) Sep 14, 2026
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.

Update vulnerable npm dependencies

2 participants