Repository navigation
fix(deps): remove the brace-expansion override, which broke minimatch - #477
Conversation
|
Warning Review limit reachedYou'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. View limit details
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
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
79b0248 to
9db31c4
Compare
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
This deletes the
brace-expansionoverride frompnpm-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.8and calls its namedexpandexport. 2.x exports a bare function, so with the override every brace pattern throwsTypeError: (0 , brace_expansion_1.expand) is not a function, at 2.1.4 and at 2.1.7 alike. Nothing noticed, becausewrapper.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: theenabled: falserule 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}')returnstrue, 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:lintpasses.app,presetBar,a11yandpresetResetspecs pass (56 tests).pnpm peers checkshows only the unmetvitepeer that main already has.renovate-config-validator --strictpasses.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
Chores
Documentation