Skip to content

fix(vscode): bound brace-expansion resolution to avoid poisoned 5.x#467

Merged
lizhengfeng101 merged 1 commit into
mainfrom
fix/vscode-brace-expansion-lint
Jul 23, 2026
Merged

fix(vscode): bound brace-expansion resolution to avoid poisoned 5.x#467
lizhengfeng101 merged 1 commit into
mainfrom
fix/vscode-brace-expansion-lint

Conversation

@lizhengfeng101

Copy link
Copy Markdown
Collaborator

What

Bound the brace-expansion yarn resolution from the unbounded >=2.1.2 to >=2.1.2 <3, and regenerate extensions/vscode/yarn.lock.

Why

The resolutions entry added in #445 ("brace-expansion": ">=2.1.2") had no upper bound, so yarn resolved it to the poisoned 5.0.7 release. brace-expansion 5.x changed its export shape, so minimatch's import expand from 'brace-expansion' gets undefined, crashing yarn lint with brace_expansion_1.default is not a function.

This went unnoticed because the lint workflow (vscode-ext.yml, #444) was added ~4.5h after #445 merged, and it only runs on PRs touching extensions/vscode/** — never on push to main. All recent dependabot PRs failed identically, inheriting main's poisoned lockfile.

Changes

Verification

  • yarn lint — 0 errors
  • yarn compile — success
  • yarn test — 10 suites / 92 tests pass

The resolutions entry "brace-expansion": ">=2.1.2" had no upper bound,
so yarn resolved it to the poisoned 5.0.7 release whose changed export
shape breaks minimatch's default import, crashing `yarn lint` with
"brace_expansion_1.default is not a function".

Bound the range to ">=2.1.2 <3" (keeping the CVE-safe lower bound from
#445) and regenerate yarn.lock. brace-expansion now resolves to 2.1.2
and its transitive balanced-match back to 1.0.2. Lint, compile and the
92 unit tests all pass.
@github-actions

Copy link
Copy Markdown
Contributor

OpenCodeReview: No comments generated. Looks good to me.

@css521 css521 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@lizhengfeng101
lizhengfeng101 merged commit fc9cc76 into main Jul 23, 2026
13 checks passed
@lizhengfeng101
lizhengfeng101 deleted the fix/vscode-brace-expansion-lint branch July 23, 2026 13:18
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.

2 participants