Update vulnerable npm dependencies (brace-expansion, diff, fast-uri, nanoid) - #8957
Draft
Raymond Zhao (rzhao271) with Copilot wants to merge 2 commits into
Draft
Raymond Zhao (rzhao271) with Copilot wants to merge 2 commits into
Raymond Zhao (rzhao271) with Copilot wants to merge 2 commits into
Conversation
|
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
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.
Component Governance flagged several outdated/vulnerable transitive npm dependencies:
brace-expansion,diff,fast-uri, andnanoid.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 existingoverrides.mocha.diffpin inpackage.json. This is the only placediff's version is constrained — it's a transitive devDependency pulled in bymocha/sinon/ts-node, never imported directly insrc/orwebviews/.brace-expansion,fast-uri,nanoid: Updated vianpm updateto the latest versions already satisfying their existing dependents' (minimatch,ajv,postcss) semver ranges — no override needed.Notes on the
diffv8 breaking changev8 drops ES5 support (uses
TextDecoder/Uint8Array, compiles to ES6) and ships its own TypeScript types (dropping@types/diffsupport). Neither affects this repo:diffAPI usage exists outside string literals (e.g.linkType: 'diff').@types/diffdependency is present.No new overrides, resolutions,
--force, or--legacy-peer-depswere introduced — only the version value of a pre-existing override was updated.