Skip to content

fix(deps): remove the brace-expansion override, which broke minimatch - #477

Merged
wormeyman merged 2 commits into
mainfrom
fix/brace-expansion-2.1.7
Oct 20, 2026
Merged

wormeyman merged 2 commits into
mainfrom
fix/brace-expansion-2.1.7

Conversation

@wormeyman

@wormeyman wormeyman commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

This deletes the brace-expansion override from pnpm-workspace.yaml. Earlier, this PR only moved the override from 2.1.4 to 2.1.7. It changed after finding that the override itself was breaking its only consumer.

The bug: since @vue/test-utils 2.5.0 (#396), brace-expansion is reached through js-beautify 2.0.3, then editorconfig 3.0.2 and glob 13.0.6, then minimatch 10.2.6. minimatch 10.2.6 declares brace-expansion: ^5.0.8 and calls its named expand export. 2.x exports a bare function, so with the override every brace pattern throws TypeError: (0 , brace_expansion_1.expand) is not a function, at 2.1.4 and at 2.1.7 alike. Nothing noticed, because wrapper.html() never reaches minimatch.

What changes:

  • pnpm-workspace.yaml: the override is gone. A short comment in its place says why, and says to read the range of every parent (pnpm why) before pinning a transitive package again.
  • pnpm-lock.yaml: brace-expansion 2.1.4 becomes 5.0.12, and balanced-match moves to 4.0.4 (21 lines).
  • .github/renovate.json5: the enabled: false rule for brace-expansion goes, and the security PR note no longer names it.
  • CLAUDE.md: it no longer lists brace-expansion as a hold.

Checked locally:

  • minimatch('a2', 'a{1,2}') returns true, through the real js-beautify path.
  • pnpm audit: no known vulnerabilities. Main currently shows the 3 brace-expansion advisories: GHSA-6j4f-fj2g-mc7p, GHSA-qhr7-859c-m2p7 and GHSA-q2hr-2g5m-vwhr.
  • pnpm run verify:lint passes.
  • The app, presetBar, a11y and presetReset specs pass (56 tests).
  • pnpm peers check shows only the unmet vite peer that main already has.
  • renovate-config-validator --strict passes.

An earlier run on the 2.1.7 version of this branch found wrapper.html() byte-identical for PresetBar. For App, only the build stamp's timestamp differed.

Reached in dev and tests only. It never enters a deployed artifact.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EdUbVVSnMbzGbAUT94sk5k

Summary by CodeRabbit

  • Bug Fixes

    • Improved dependency compatibility by allowing the supported parser-related package versions to resolve without an outdated version constraint.
    • Restored compatibility with current matching and expansion behavior.
  • Chores

    • Updated automated security-update coverage to monitor the package normally rather than excluding it.
  • Documentation

    • Updated maintenance guidance to reflect current dependency policies and verification steps for future security-related holds.

@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 46 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f90008b8-b956-43ec-a7c2-c74a7f1f789b
📥 Commits

Reviewing files that changed from the base of the PR and between 9db31c4 and 758d965.

⛔ Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing: 3
  • .github/renovate.json5
  • CLAUDE.md
  • pnpm-workspace.yaml

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a0aac61f-d79a-45c1-938e-436ddf712673
📥 Commits

Reviewing files that changed from the base of the PR and between 79b0248 and 9db31c4.

⛔ Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing: 3
  • .github/renovate.json5
  • CLAUDE.md
  • pnpm-workspace.yaml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The workspace removes the brace-expansion 2.1.4 override and documents normal 5.x resolution. Renovate configuration and maintenance guidance no longer disable or list brace-expansion as an active override.

Changes: brace-expansion Resolution Update

Layer / File(s) Summary
Workspace dependency resolution
pnpm-workspace.yaml
The workspace removes the brace-expansion 2.1.4 override and documents the 5.x compatibility requirement for minimatch 10.2.6.
Renovate and maintenance guidance
.github/renovate.json5, CLAUDE.md
Renovate no longer disables brace-expansion updates. The guidance states that no package is currently disabled and records the override removal date.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 9db31

This change removes a pinned dependency override and updates related maintenance notes. The reviewed context shows no concrete risk to merging.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main changeset: removing the brace-expansion override to address its incompatibility with minimatch.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (3 skipped: 3 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

The override pinned brace-expansion to a 2.x maintenance backport for its
DoS advisories. Since @vue/test-utils 2.5.0 (#396) its only consumer is
minimatch 10.2.6 (via js-beautify > editorconfig and glob), which declares
`brace-expansion: ^5.0.8` and calls the named `expand` export that 2.x
does not have. So every minimatch brace pattern threw
`TypeError: (0 , brace_expansion_1.expand) is not a function`, at 2.1.4
and at 2.1.7 alike. Nothing noticed, because wrapper.html() never reaches
minimatch.

Without the pin pnpm resolves brace-expansion 5.0.12 and balanced-match
4.0.4. minimatch('a2', 'a{1,2}') returns true again, and pnpm audit goes
from 5 findings to none here (the 3 brace-expansion advisories, plus
shell-quote and source-map-js, which #449 and #465 already fixed on main).

The renovate.json5 rule that disabled brace-expansion and the
vulnerabilityAlerts note about its flat advisory range go too, and
CLAUDE.md stops listing it as a hold.

Checked: verify:lint, the app/presetBar/a11y/presetReset specs (56
tests), pnpm peers check (only the unmet `vite` peer main already has),
renovate-config-validator --strict.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EdUbVVSnMbzGbAUT94sk5k
@wormeyman
wormeyman force-pushed the fix/brace-expansion-2.1.7 branch from 79b0248 to 9db31c4 Compare October 20, 2026 19:14
@wormeyman wormeyman changed the title fix(deps): brace-expansion 2.1.4 -> 2.1.7 for three parser DoS advisories fix(deps): remove the brace-expansion override, which broke minimatch Oct 20, 2026
@claude

claude Bot commented Oct 20, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@wormeyman
wormeyman merged commit 568f490 into main Oct 20, 2026
10 checks passed
@wormeyman
wormeyman deleted the fix/brace-expansion-2.1.7 branch October 20, 2026 22:07
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