Skip to content

chore(deps): upgrade mocha 10 → 11#1932

Merged
ryanio merged 1 commit intomainfrom
chore/upgrade-mocha-11
Mar 11, 2026
Merged

chore(deps): upgrade mocha 10 → 11#1932
ryanio merged 1 commit intomainfrom
chore/upgrade-mocha-11

Conversation

@ryanio
Copy link
Collaborator

@ryanio ryanio commented Mar 11, 2026

Summary

  • Upgrade mocha from ^10.0.0 to ^11.7.5 and @types/mocha to latest
  • Run npm audit fix to patch transitive dev dependency vulnerabilities

Mocha 11 is a minimal breaking release — Node.js minimum bumped to 18.18+ (we use 24.14) and internal deps updated. No test API changes.

All 642 unit tests pass without modification.

Remaining audit items: serialize-javascript and diff are pinned within mocha's own dependency tree — these need upstream fixes in mocha itself (tracked in mocha's repo).

Test plan

  • npm test — 642 passing
  • TypeScript compilation passes
  • CI green

🤖 Generated with Claude Code

Mocha 11 drops support for Node < 18.18 and updates internal
dependencies (glob, etc). No breaking API changes — all 642 tests
pass without modification.

Resolves the serialize-javascript RCE advisory (GHSA-5c6j-r48x-rmvq)
at the direct dependency level.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ryanio ryanio force-pushed the chore/upgrade-mocha-11 branch from 0276a91 to d9c84ed Compare March 11, 2026 20:14
@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedmocha@​10.8.2 ⏵ 11.7.59610095 +196100

View full report

@ryanio ryanio merged commit b83a877 into main Mar 11, 2026
8 checks passed
@ryanio ryanio deleted the chore/upgrade-mocha-11 branch March 11, 2026 20:23
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