mocha
12.0.3 · 1 Oct 2026MIT14.6M / weekRepositoryHomepagenpmAtom feed
Upgrading mocha From 3.0.2 to 3.5.3
12 releases in betweennotes for 10
Reading releases, release notes and advisories…
- 1+
- change to make
- 0
- advisories fixed
- 13+
- new
- 13+
- fixes
Counted from 10 of 12 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking3.4.0
Security
- 3.5.0
Address CVE-2015-8315 via upgrade of debug ([@boneskull])
Release by release
- Fixed
Fix invalid entities in xUnit reporter first appearing in v3.5.1 ([@jkrems])
- Fixed
- Fixed
Fix AMD-related failures first appearing in v3.5.1 ([@boneskull])
- Fixed
- Fixed
Fix missing
xitexport for "require" interface ([@solodynamo])
- Fixed
- Security
Address CVE-2015-8315 via upgrade of debug ([@boneskull])
- New
WARNING: Support for non-ES5-compliant environments will be dropped starting with version 4.0.0 of Mocha!
- New
Add
--forbid-onlyand--forbid-pendingflags. Use these in CI or hooks to ensure tests aren't accidentally being skipped! ([@charlierudolph]) - New
Support Node.js 8's
--napi-modulesflag ([@jupp0r])
- Security
3.4.1 – 3.4.22 releases, nothing new or fixed in the notes
- Breaking
Mocha is now moving to a quicker release schedule: when non-breaking changes are merged, a release should happen that week.
- New
[#2793], [#2697]: add --allowUncaught to Node.js ([@lrowe])
- New
Add
--no-warningsand--trace-warningsflags ([@sonicdoe])
- Breaking
- New
Adds support for loading reporter from an absolute or relative path ([@sul4bh])
- New
Support
--inspect-brkon command-line ([@igwejk]) - New
Add coverage for node tests ([@c089], [@Munter])
- New
Add tests for loading reporters w/ relative/absolute paths ([@sul4bh])
- Fixed
Replace unicode chars w/ hex codes in HTML reporter ([@rotemdan])
- Fixed
Avoid test flake in "delay" test ([@boneskull])
- Fixed
Fix "projects" link in README.md ([@boneskull])
- New
- New
Improve timeout error messaging (@jeversmann, @boneskull)
- New
Add info about
--inspectflag to CLI help (@ughitsaaron) - Fixed
Fix crash when
--watchencounters broken symlinks (@villesau) - Fixed
Fix (old) regression; incorrect symbol shown in
listreporter (@Aldaviva)
- New
22 other lines we could not sort, mostly version bumps
- 3.5.1
- 3.5.1
Improve
--compilerscoverage ([@ScottFreeCode]) - 3.5.0
Mocha now has a code of conduct (thanks [@kungapal]!).
- 3.5.0
Old issues and PRs are now being marked "stale" by Probot's "Stale" plugin. If an issue is marked as such, and you would like to see it remain open, simply add a new comment to the ticket or PR.
- 3.5.0
Various CI-and-test-related fixes and improvements ([@boneskull], [@dasilvacontin], [@PopradiArpad], [@Munter], [@ScottFreeCode])
- 3.5.0
"Officially" support Node.js 8 ([@elergy])
- 3.4.0
allowUncaughtadded to commandline as--allow-uncaught(and bugfixed) - 3.4.0
warning-related Node flags
- 3.4.0
Reverts use of semistandard directly ([#2648]) ([@boneskull])
- 3.3.0
We've got coverage now!
25 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.