Skip to content

chore: bump mocha from 11.8.0 to 12.0.0 in /prqlc/bindings/js - #6277

Merged
max-sixty merged 2 commits into
mainfrom
dependabot/npm_and_yarn/prqlc/bindings/js/mocha-12.0.0
Sep 3, 2026
Merged

chore: bump mocha from 11.8.0 to 12.0.0 in /prqlc/bindings/js#6277
max-sixty merged 2 commits into
mainfrom
dependabot/npm_and_yarn/prqlc/bindings/js/mocha-12.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 3, 2026

Copy link
Copy Markdown
Contributor

Bumps mocha from 11.8.0 to 12.0.0.

Release notes

Sourced from mocha's releases.

v12.0.0

12.0.0 (2026-08-31)

🩹 Fixes

  • fixup parsing negative numbers and quoted strings (#6250) (2962875)
  • preserve FIFO descriptors when respawning (#6254) (3bb317d)

📚 Documentation

🧹 Chores

v12.0.0-rc.6

12.0.0-rc.6 (2026-08-09)

🩹 Fixes

  • deps: update dependency starlight-blog to ^0.28.0 (#6153) (6b79044)
  • docs: restore homepage logo (#6183) (06e81a8)
  • docs: restore spacing around footer links (#6185) (163d751)
  • use main instead of exports for the package entry point (#6193) (c32a696)

📚 Documentation

  • blog: add community contributions post (#6172) (5fcc0fe)
  • blog: update community-contributions to 2026-community-sponsorships (5462d84)
  • fix blog/2026-community-sponsorships description (#6177) (98c4746)
  • sync CLI docs with v12 options and defaults (#6140) (579fd15)

🧹 Chores

  • deps: update dependency @​playwright/test to v1.62.1 (#6197) (dcc539a)
  • deps: update dependency eslint to v10.8.0 (#6196) (deeeec6)
  • deps: update dependency globals to v17.9.0 (#6201) (c2c6d63)
  • deps: update dependency knip to v6.31.0 (#6166) (b7cd1bd)
  • deps: update dependency sinon to v22.1.0 (#6188) (284f0c2)
  • deps: update dependency webpack to v5.109.2 (#6194) (badf733)
  • extract stripLeadingDashes helper + cover CLI arg-parsing edge cases (#6171) (867e175)
  • fix esm-utils tests when run without coverage (#6160) (c54539f)

... (truncated)

Changelog

Sourced from mocha's changelog.

12.0.0 (2026-08-31)

🩹 Fixes

  • fixup parsing negative numbers and quoted strings (#6250) (2962875)
  • preserve FIFO descriptors when respawning (#6254) (3bb317d)

📚 Documentation

🧹 Chores

12.0.0-rc.6 (2026-08-09)

🩹 Fixes

  • deps: update dependency starlight-blog to ^0.28.0 (#6153) (6b79044)
  • docs: restore homepage logo (#6183) (06e81a8)
  • docs: restore spacing around footer links (#6185) (163d751)
  • use main instead of exports for the package entry point (#6193) (c32a696)

📚 Documentation

  • blog: add community contributions post (#6172) (5fcc0fe)
  • blog: update community-contributions to 2026-community-sponsorships (5462d84)
  • fix blog/2026-community-sponsorships description (#6177) (98c4746)
  • sync CLI docs with v12 options and defaults (#6140) (579fd15)

🧹 Chores

  • deps: update dependency @​playwright/test to v1.62.1 (#6197) (dcc539a)
  • deps: update dependency eslint to v10.8.0 (#6196) (deeeec6)
  • deps: update dependency globals to v17.9.0 (#6201) (c2c6d63)
  • deps: update dependency knip to v6.31.0 (#6166) (b7cd1bd)
  • deps: update dependency sinon to v22.1.0 (#6188) (284f0c2)
  • deps: update dependency webpack to v5.109.2 (#6194) (badf733)
  • extract stripLeadingDashes helper + cover CLI arg-parsing edge cases (#6171) (867e175)
  • fix esm-utils tests when run without coverage (#6160) (c54539f)
  • keep stderr out of the JSON parsed by the FIFO test (#6187) (ea6489e)
  • limit token perms in protect-manifest workflow (#6175) (8cf0030)

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [mocha](https://github.com/mochajs/mocha) from 11.8.0 to 12.0.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md)
- [Commits](mochajs/mocha@v11.8.0...v12.0.0)

---
updated-dependencies:
- dependency-name: mocha
  dependency-version: 12.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies javascript Pull requests that update Javascript code labels Sep 3, 2026

@prql-bot prql-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

mocha 12 declares engines: { node: "^20.19.0 || >=22.12.0" } and ships as pure ESM ("type": "module"), with .cjs shims that require() those ESM modules — a pattern that only works on Node versions with require(esm) support. .github/workflows/test-js.yaml pins node-version: "21.x", which falls in the gap between those two ranges, so this bump takes the test-js job from green to a hard crash rather than a warning. npm only warns on EBADENGINE (no engine-strict in this repo), so npm ci succeeds and the failure surfaces at npm test.

Reproduced locally against mocha 12.0.0: ERR_REQUIRE_ESM at lib/cli/options.cjs under Node 21.7.3 (the final Node 21 release, which is what 21.x resolves to), and a clean pass under Node 22. npm cit in prqlc/bindings/js runs mocha tests, so all three test-js legs are affected — they were still in flight when I reviewed.

I've pushed the prerequisite Node pin bump (21.x24.x, matching .github/actions/build-js/action.yaml) onto this branch so the dependency bump can land on its own. Node 21 went EOL in June 2024, so the pin was overdue regardless. If you'd rather keep this PR to the dependency change alone, the workflow commit splits out cleanly.

Holding approval until CI is green at the new head.

Repro
$ npm install mocha@12.0.0
$ cat node_modules/mocha/package.json | jq '{type, engines}'
{ "type": "module", "engines": { "node": "^20.19.0 || >=22.12.0" } }

$ node-v21.7.3/bin/node node_modules/mocha/bin/mocha.js tests
/tmp/mochacheck/node_modules/mocha/lib/cli/options.cjs:12
const { parseMochaArgs } = require("./parse-args.js");
                           ^
Error [ERR_REQUIRE_ESM]: require() of ES Module .../lib/cli/parse-args.js from .../lib/cli/options.cjs not supported.

$ node --version && node node_modules/mocha/bin/mocha.js tests
v22.23.2
  smoke
    ✔ works
  1 passing (3ms)

mocha 12 declares engines ^20.19.0 || >=22.12.0 and ships as pure ESM with
.cjs shims that require() ESM, so it fails with ERR_REQUIRE_ESM on Node 21.
Node 21 has also been EOL since June 2024. 24.x matches the pin already used
by .github/actions/build-js.
@max-sixty
max-sixty merged commit 92cf7b3 into main Sep 3, 2026
45 checks passed
@max-sixty
max-sixty deleted the dependabot/npm_and_yarn/prqlc/bindings/js/mocha-12.0.0 branch September 3, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants