Skip to content

fix(deps): move glob 13 copies to glob 14 - #41

Merged
ChiragAgg5k merged 3 commits into
mainfrom
fix/glob-minimatch-major
Dec 4, 2026
Merged

ChiragAgg5k merged 3 commits into
mainfrom
fix/glob-minimatch-major

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

Fixes https://github.com/appwrite/starter-for-react-native/security/dependabot/184 (glob GHSA-qxr8-q827-836c), which is fixed only in glob 14.0.6.

The vulnerable copy is the dev-only top-level glob@13.0.7. It is required by Jest 30 (jest-config, jest-runtime and @jest/reporters, all glob ^13.0.6). Jest hasn't moved to glob 14 yet, so this adds one scoped npm override:

"glob@^13.0.0": "^14.0.6"

The glob@10 and glob@7 copies under test-exclude and jest-* are untouched. glob 14 brings its own nested minimatch@11.0.10, so the top-level minimatch@10 used by @expo/fingerprint doesn't change.

Why the major is safe here

  • 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.
  • Jest only calls glob.sync(pattern, { absolute, windowsPathsNoEscape }) and glob.sync(\${path}.*`). glob 14 still exports glob.sync/globSync` with the same options.
  • Node: glob 14 needs Node 18, 20 or >= 22, and CI runs Node 22.

Verified locally (Node 22, npm 11)

  • npm ci passes.
  • npm run build (expo export --platform web, with the CI env vars) passes.
  • npx tsc --noEmit passes.
  • A throwaway Jest test with --coverage runs and passes on glob 14.0.7.
  • jest-config, jest-runtime and @jest/reporters all resolve glob 14.0.7.
  • npm audit no longer reports GHSA-qxr8. The remaining glob 10 / minimatch 10 audit entries have no open Dependabot alert here.

🤖 Generated with Claude Code

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
54806de Reviewed Reviewed 🟢 S · Ready to merge ✅ Approved View review

The PR adds npm overrides to move the Jest glob dependency to glob 14 and updates the lockfile with the resulting dependency tree. CI now installs npm 11 before running the existing install and build steps.

Walkthrough (3)
File Change
.github/workflows/ci.yml Installs npm 11 in CI before npm ci.
package.json Adds scoped overrides for glob 13 and minimatch 10 ranges.
package-lock.json Locks glob 14 and its updated minimatch and path-scurry dependencies.

Reviewed 54806de

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

ChiragAgg5k and others added 2 commits December 4, 2026 15:18
npm 10 rejects the lockfile once package.json scopes overrides by version range (glob@^13.0.0); npm 11 resolves them. Same step starter-for-analog already runs.

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

Copy link
Copy Markdown
Member Author

@appwrite review

@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

@ChiragAgg5k
ChiragAgg5k merged commit 2e606da into main Dec 4, 2026
3 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the fix/glob-minimatch-major branch December 4, 2026 15:56
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