What’s New

mocha

Frameworks & Libraries

mocha release notes.

Latest v11.7.7 · by mochaWebsitemochajs/mocha

Changelog

v12.0.0-rc.2

Pre-release
12.0.0-rc.2 (2026-07-20)
⚠ BREAKING CHANGES
  • replace he dependency with manual HTML encoding
🌟 Features
🩹 Fixes
  • deps: update dependency js-yaml to v5 (#6117) (2fb44ff)
  • replace he dependency with manual HTML encoding (9f85d71)
  • strip ANSI sequences from xunit output (bf76999)
📚 Documentation
  • move legacy site link to bottom of homepage (#6093) (f3e7d37)
🧹 Chores
  • add "Protect Release Please Manifest" workflow (#6099) (2d7bc22)
  • add v12 RC 1 release notes (#5848) (275ce51)
  • deps: bump unexpected to 13 and remove unused plugins (#6135) (b587012)
  • deps: update actions/checkout action to v7 (#6114) (857945d)
  • deps: update actions/github-script action to v9 (#6091) (a017f08)
  • deps: update dependency eslint to v10.7.0 (#6134) (26d73d3)
  • deps: update dependency eslint-plugin-n to v18.2.2 (#6137) (9d925f0)
  • deps: update dependency globals to v17.7.0 (#6126) (864fb80)
  • deps: update dependency js-yaml to v4.3.0 (#6141) (bd4fcf4)
  • deps: update dependency knip to v6.24.0 (#6110) (bab1d4e)
  • deps: update dependency knip to v6.26.0 (#6145) (c7cfbe9)
  • deps: update dependency prettier to v3.9.5 (#6142) (55df0d1)
  • deps: update dependency webpack to v5.108.4 (#6150) (4e072d1)
  • deps: update dependency webpack-cli to v7.2.1 (#6151) (19978d7)
  • deps: update playwright monorepo to v1.61.0 (#6108) (7ad398e)
  • fix RC 1 blog publish time, rename to ...-rc-1 (#6106) (00d59bc)
  • raise timeout for node-unit Mocha spec to fix flaky hook (#6118) (31ee8c5)
  • require exact fixture references in integration tests (#6096) (d602cc7)
  • retry touch in dir-add watch test to reduce flakiness (#6119) (061cb52)
  • upgrade Astro to 7.1.1 (#6149) (a5f1caa)
🤖 Automation
  • deps: bump actions/setup-node from 6 to 7 in the github-actions group across 1 directory (#6146) (a73e34c)

v12.0.0-rc.1

Pre-release
12.0.0-rc.1 (2026-06-20)
⚠ BREAKING CHANGES
  • change root package.json type to module (#6078)
🌟 Features
📚 Documentation
🧹 Chores
  • configure Release Please for RC (#6083) (8f3a61c)
  • deps: update dependency @types/node to v24.13.0 (#6066) (fb1998a)
  • deps: update dependency eslint-plugin-n to v18.1.0 (#6072) (6f56135)
  • deps: update dependency knip to v6.16.1 (#6067) (b204395)
  • deps: update dependency rollup to v4.61.0 (#6050) (87696d5)
  • deps: update dependency rollup to v4.62.0 (#6103) (69e04bf)
  • deps: update eslint monorepo to v10.5.0 (#6100) (ac372e0)
  • explain "trivial changes", update PR template (#6075) (6cbe3d5)
  • fix "remove 'waiting for author' " workflow (#6090) (b80d44b)
  • fix formatting on new remove-waiting-label file (#6062) (bfcb02a)
  • fix Release Please manifest (#6097) (cfd9cf7)
  • remove "status: waiting for author" label on review request (#5983) (fa3488d)
  • replace Karma with Playwright for browser tests (#6031) (7c9b004)
  • restore cursor in watch failure diagnostics (#6102) (d640269)
  • synchronize watch integration tests on observed runs instead of sleeps (#6058) (84af186)
  • upgrade Astro and its deps (#6089) (66cdd8f)
  • use 1st-party script for blocked-pr.yml (#6085) (54aee06)
🤖 Automation
  • deps: bump codecov/codecov-action from 6 to 7 in the github-actions group (#6051) (00db758)

v12.0.0-beta-9.6

Pre-release
12.0.0-beta-9.6 (2026-06-10)
🩹 Fixes
  • require serializer.mjs in parallel worker pool files (#6055) (ffdf37c)
  • surface global setup/teardown errors with a non-zero exit code (#5994) (ad81ec6)
📚 Documentation
  • clarify supported mocha version for ESM configuration (#6027) (5921837)
  • fix inconsistencies in docs (#6000) (6310d0e)
  • include the released version in the npm badge alt text (#5959) (de924ba)
  • modernize spies example, drop should.js (#6016) (3b321a3)
🧹 Chores
  • add "descriptions" item to "AI-generated code" (#6041) (efe6167)
  • deps: update dependency js-yaml to v4.2.0 (#6047) (8df3ba6)
  • deps: update dependency knip to v6.15.0 (#6043) (0c03d7d)
  • rollback devDep npm-run-all2 to v8 for Node 20 (#6040) (d7d095b)
🤖 Automation
  • deps: bump astro from 6.1.9 to 6.4.4 in /docs (#6046) (f47bcf5)

v12.0.0-beta-9.5

Pre-release
12.0.0-beta-9.5 (2026-06-03)
⚠ BREAKING CHANGES
  • remove bin/_mocha and convert bin/ and entry points to ESM (#6017)
🌟 Features
  • remove bin/_mocha and convert bin/ and entry points to ESM (#6017) (930972a)
🩹 Fixes
  • lookupFiles() now returns string[] for direct file paths (#5941) (4718476), closes #5940
  • prevent diff hang on large/complex objects (#5898) (6695fba)
🧹 Chores
🤖 Automation
  • deps: bump joelwmale/webhook-action in the github-actions group (#6032) (75c618d)

v12.0.0-beta-9.4

Pre-release
12.0.0-beta-9.4 (2026-05-16)
⚠ BREAKING CHANGES
  • remove unused legacy errors.js functions (#5835)
🩹 Fixes
  • deps: update dependency @astrojs/starlight to ^0.39.0 (#5952) (eed10ac)
📚 Documentation
  • add TypeScript setup guide (#5863) (af63dcf)
  • fix correctness issues in error codes, CLI defaults, and config docs (#5860) (bd54205)
  • modernize DEVELOPMENT.md for new contributors (#5865) (5122ad7)
🧹 Chores
  • convert lib/cli/cli.mjs to ESM (#5909) (6e91a89)
  • convert dot, min, and list reporters to esm (#5907) (b19b696)
  • convert run-option-metadata and exports interface to ESM (#5910) (27b0814)
  • deps: update dependency @types/node to v24 (#5958) (ef113d7)
  • deps: update dependency eslint to v10.3.0 (#5945) (18cf178)
  • deps: update dependency eslint-plugin-n to v18 (#5948) (99f0e4a)
  • deps: update dependency globals to v17.6.0 (#5946) (412070c)
  • deps: update dependency knip to v6.12.1 (#5942) (e29003d)
  • deps: update dependency knip to v6.6.1 (#5927) (7c48496)
  • deps: update dependency knip to v6.7.0 (#5933) (441c32a)
  • deps: update dependency nyc to v18 (#5846) (1fea247)
  • deps: update dependency semver to v7.8.0 (#5957) (0cbb43c)
  • deps: update dependency sinon to v22 (#5949) (54dcfda)
  • deps: update dependency webpack-cli to v7 (#5871) (9d367e1)
  • deps: update googleapis/release-please-action action to v5 (#5929) (f32085f)
  • dev-deps: upgrade webpack from v6 to v7 + remove obsolete fail-on-errors-webpack-plugin (#5908) (103ad41)
  • document CJS and MJS config file priority (#5923) (09a1106)
  • fix Knip issues (#5919) (1b3d604)
  • migrate core interfaces and utilities to ESM (#5930) (1ad23ab)
  • migrate reporters to ESM (#5928) (f6a62ca)
  • remove unused legacy errors.js functions (#5835) (4116368)
  • tag alpha releases as alpha, not next (#5951) (8e29413), closes #5947