Skip to content

fix(deps): move glob 10/13 and minimatch 9/10 copies to their patched majors - #151

Merged
ChiragAgg5k merged 1 commit into
mainfrom
fix/glob-minimatch-major
Dec 4, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
fix/glob-minimatch-major

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

Fixes three Dependabot alerts that need a major version bump:

Old copy Consumers
glob 13 Jest 30 (jest-config, jest-runtime, @jest/reporters); @expo/config / @expo/config-plugins 55 nested under @bacons/apple-targets
glob 10 test-exclude@7.0.2 (Jest coverage); @bacons/apple-targets@5.0.0
minimatch 10 @expo/fingerprint@0.22.0, @typescript-eslint/typescript-estree@8.72.1, test-exclude@7.0.2
minimatch 9 only the glob 10 copies above

Scoped npm overrides move only those copies. The glob@7 and minimatch@3 copies used by ESLint and the old test-exclude are untouched.

"glob@^10.0.0": "^14.0.6",
"glob@^13.0.0": "^14.0.6",
"minimatch@^9.0.0": "^11.0.10",
"minimatch@^10.0.0": "^11.0.10"

Why the major is safe here

  • glob 10 → 13 only drops Node < 20 (11), removes the CLI --shell option (12) and moves the CLI to glob-bin (13). The library API is unchanged, and .nvmrc pins Node 22.
  • glob 13 → 14 changes are: minimatch 11 matching, isRegExp() renamed, the walker returning arrays, ignore patterns starting with / rooted differently, and the debug option removed.
  • minimatch 11 removes makeRe(), Minimatch#regexp, AST, debug, matchOne() and slashSplit(), and Minimatch.set items are no longer RegExps.
  • I read every consumer's locked source. They only call globSync() / glob.sync() / glob() with cwd, absolute, nodir, dot, posix and relative ignore globs, plus new Minimatch(p, { dot }), .match(), .negate, .pattern and minimatch(a, b, opts). None of the removed APIs are used.

Verified locally (Node 22, npm 11)

  • npm ci, npm run format:check, npm run lint, npm run typecheck and npm run doctor (expo-doctor) pass.
  • npm run test:unit passes: 9 suites, 68 tests.
  • .github/scripts/entitlements.sh (expo prebuild --platform ios, which runs @bacons/apple-targets and @expo/config-plugins glob lookups) passes with no change to ios-entitlements/.
  • Smoke test against the new versions: test-exclude include/exclude/glob/globSync, and @expo/fingerprint ignore-path matching.
  • npm audit no longer reports glob or minimatch.

Lockfile note: besides the moved copies, the lockfile only drops the glob 10 / minimatch 9 subtree (jackspeak, @isaacs/cliui, foreground-child, nested path-scurry / lru-cache / brace-expansion, …) and adds @isaacs/nonrecursive-glob-match. npm 11 also wanted to prune some unrelated optional peer entries (react-native-web and friends). I kept those exactly as they were, so they aren't part of this change.

🤖 Generated with Claude Code

… majors

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@appwrite

appwrite Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Code review

Commit Status Tier Verdict Details
ce81468 Reviewed Reviewed 🟢 S · Ready to merge ✅ Approved View review

The intended dependency copies resolve to the patched versions, and npm ci completed with no audit vulnerabilities.

Adds scoped npm overrides to move the affected glob 10/13 and minimatch 9/10 dependency copies to patched major versions. Updates the lockfile to resolve those copies to glob 14.0.7 and minimatch 11.0.10, along with their updated dependency tree.

Walkthrough (2)
File Change
package.json Adds overrides targeting the affected glob and minimatch dependency ranges.
package-lock.json Updates affected dependency resolutions and prunes obsolete transitive packages.

Reviewed ce81468

Tip

Comment @appwrite review to re-run, or mention @appwrite with a question.

@appwrite appwrite Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Tier S · Looks good to merge. Summary

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