Skip to content

chore(deps): update dependency mocha to v11#656

Open
renovate-bot wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
renovate-bot:renovate/mocha-11.x
Open

chore(deps): update dependency mocha to v11#656
renovate-bot wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
renovate-bot:renovate/mocha-11.x

Conversation

@renovate-bot
Copy link
Copy Markdown
Contributor

@renovate-bot renovate-bot commented Mar 27, 2026

This PR contains the following updates:

Package Change Age Confidence
mocha (source) ^9.0.0^11.0.0 age confidence

Release Notes

mochajs/mocha (mocha)

v11.7.5

Compare Source

🩹 Fixes
🧹 Chores

v11.7.4

Compare Source

🩹 Fixes
📚 Documentation
  • migrate remaining legacy wiki pages to main documentation (#​5465) (bff9166)
🧹 Chores

v11.7.3

Compare Source

🩹 Fixes
  • use original require() error for TS files if ERR_UNKNOWN_FILE_EXTENSION (#​5408) (ebdbc48)
📚 Documentation
🤖 Automation
  • deps: bump actions/setup-node in the github-actions group (#​5459) (48c6f40)

v11.7.2

Compare Source

🩹 Fixes
📚 Documentation
🧹 Chores
🤖 Automation
  • deps: bump actions/checkout in the github-actions group (#​5419) (03ac2d0)

v11.7.1

Compare Source

🩹 Fixes
🧹 Chores

v11.7.0

Compare Source

🌟 Features

v11.6.0

Compare Source

🌟 Features

v11.5.0

Compare Source

🌟 Features

v11.4.0

Compare Source

🌟 Features
📚 Documentation
  • added CHANGELOG.md note around 11.1 yargs-parser update (#​5362) (618415d)

v11.3.0

Compare Source

🌟 Features
📚 Documentation
🧹 Chores

v11.2.2

Compare Source

🩹 Fixes
📚 Documentation

v11.2.1

Compare Source

🩹 Fixes
📚 Documentation
🧹 Chores

v11.2.0

Compare Source

🌟 Features
📚 Documentation
🧹 Chores

v11.1.0

Compare Source

🌟 Features
  • bump yargs to 17 (#​5165) (8f1c8d8)
    • Note that this also included a version bump of yargs-parser from ^20.2.9 to ^21.1., which fixed a bug that caused extra quotes in file paths to be removed.
      See #​5341 for more information.
  • replace strip-ansi with util.stripVTControlCharacters (#​5267) (3c191c0), closes #​5265

v11.0.2

Compare Source

🩹 Fixes
  • catch exceptions setting Error.stackTraceLimit (#​5254) (259f8f8)
  • error handling for unexpected numeric arguments passed to cli (#​5263) (210d658)
📚 Documentation

v11.0.1

Compare Source

🌟 Features
📚 Documentation

v11.0.0

Compare Source

⚠ BREAKING CHANGES
  • adapt new engine range for Mocha 11 (#​5216)
🌟 Features
🩹 Fixes
📚 Documentation

v10.8.2

Compare Source

🩹 Fixes
📚 Documentation
  • indicate 'exports' interface does not work in browsers (#​5181) (14e640e)
🧹 Chores
  • fix docs builds by re-adding eleventy and ignoring gitignore again (#​5240) (881e3b0)
🤖 Automation

v10.8.1

Compare Source

🩹 Fixes

v10.8.0

Compare Source

🌟 Features
🩹 Fixes
📚 Documentation
🧹 Chores

v10.7.3

Compare Source

🩹 Fixes

v10.7.0

Compare Source

🎉 Enhancements

v10.6.1

Compare Source

🐛 Fixes

v10.6.0

Compare Source

🎉 Enhancements

v10.5.2

Compare Source

🐛 Fixes

v10.5.1

Compare Source

🐛 Fixes

v10.5.0

Compare Source

🎉 Enhancements
🐛 Fixes
🔩 Other

v10.4.0

Compare Source

🎉 Enhancements
🐛 Fixes
🔩 Other

v10.3.0

Compare Source

This is a stable release equivalent to 10.30.0-prerelease.

v10.2.0

Compare Source

🎉 Enhancements
🐛 Fixes
📖 Documentation

v10.1.0

Compare Source

🎉 Enhancements
🔩 Other

v10.0.0

Compare Source

💥 Breaking Changes
🔩 Other

Also thanks to @​ea2305 and @​SukkaW for improvements to our documentation.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Mar 27, 2026

/gcbrun

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the mocha test framework from version 9 to 11 across several packages, including authenticating-users, background, bookshelf, gce, and sessions. A critical compatibility issue was identified in the background service: Mocha v11 requires Node.js 18 or higher, but the current deployment scripts target the nodejs10 runtime, which will lead to build failures during installation.

"child_process": "^1.0.2",
"@google-cloud/functions": "^3.0.0",
"mocha": "^9.0.0",
"mocha": "^11.0.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

This update to Mocha v11 introduces a significant breaking change: it requires Node.js version 18.0.0 or higher. The previous version, v9, supported much older Node.js versions.

Your project appears to use older Node.js runtimes. For example, the integration tests for the background sample deploy a Google Cloud Function with the nodejs10 runtime (background/test/app.test.js line 38).

// background/test/app.test.js:38
cp.execSync(
  `gcloud functions deploy translate-${uniqueID} --runtime nodejs10 ...`
);

Merging this change without updating your Node.js environments (both for CI and for the samples themselves) will likely cause the build to fail during npm install. This is a critical issue that needs to be addressed. Please verify and update the Node.js versions used across this repository to be compatible with Mocha v11.

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.

3 participants