Skip to content

rebuild default bundle with patched deps - #658

Closed
dyk1454683243-sudo wants to merge 3 commits into
isaacs:mainfrom
dyk1454683243-sudo:cursor/refresh-default-bundle-5cd5
Closed

dyk1454683243-sudo wants to merge 3 commits into
isaacs:mainfrom
dyk1454683243-sudo:cursor/refresh-default-bundle-5cd5

Conversation

@dyk1454683243-sudo

@dyk1454683243-sudo dyk1454683243-sudo commented Sep 20, 2026 •

Copy link
Copy Markdown

The default glob entry ships dist/*/index.min.js, which bundles
minimatch and brace-expansion. glob/raw loads those packages from
node_modules. After glob@13.0.6, a consumer can resolve patched
minimatch@10.2.6 / brace-expansion@5.0.12 for glob/raw while the
published default bundle still contains the pre-fix copies.

On current main the lockfile still pinned brace-expansion@5.0.5
(affected by GHSA-jxxr-4gwj-5jf2 and later brace-expansion advisories
through 5.0.8). Rebuilding without refreshing the lockfile would keep
shipping that copy.

This updates the lockfile to minimatch@10.2.6 and
brace-expansion@5.0.12, and adds a regression test that:

brace-expansion@5.0.8+ advertises engines.node 20 || >=22. glob
already dropped Node 18 from CI. Pinning 5.0.7 would keep the Node 18
engine advertisement but remain in the advisory range.

A new glob release is needed for npm consumers. Updating a consumer
lockfile does not replace code already compiled into index.min.js.

fix: #657

cursoragent and others added 3 commits September 20, 2026 14:45
The published CommonJS and ESM min bundles freeze copies of
minimatch and brace-expansion. Refresh the lockfile so those
copies include the nested-extglob and numeric-range fixes, and
assert the bundled versions stay current.

fix: isaacs#657

Co-authored-by: David <dyk1454683243-sudo@users.noreply.github.com>
Importing index.min.js pulled bundled dependency sources into
coverage via source maps and failed the complete-coverage check.

Co-authored-by: David <dyk1454683243-sudo@users.noreply.github.com>
Versions 5.0.6 through 5.0.8 still sit in later DoS advisory
ranges. Keep the lockfile on the patched 5.0.12 release.

re: isaacs#657

Co-authored-by: David <dyk1454683243-sudo@users.noreply.github.com>
@isaacs isaacs closed this Sep 21, 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.

glob@13.0.6 default bundle retains pre-fix minimatch and brace-expansion copies

3 participants