mocha
12.0.3 · 1 Oct 2026MIT14.6M / weekRepositoryHomepagenpmAtom feed
Upgrading mocha From 2.3.1 to 12.0.3
119 releases in betweennotes for 90
Reading releases, release notes and advisories…
- 63+
- changes to make
- 0
- advisories fixed
- 113+
- new
- 162+
- fixes
Counted from 90 of 119 release notes, and the breaking changes of 6 pre-releases on the way to a major. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking11.0.0
- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0
- Breaking10.0.0
- Breaking9.0.0
- Breaking9.0.0
Security
- 10.3.0
Fix #4837 Update glob due to vulnerability in dep
- 8.1.2
Update many dependencies (@GChuf)
- 8.1.0
#4378, #4333: Update javascript-serialize (@martinoppitz, @wnghdcjfe)
- 8.1.0
Update yargs-unparser (@martinoppitz)
- 6.1.0
Update devDependencies to fix many npm vulnerabilities (@XhmikosR)
- 6.0.0
Avoid potential ReDoS when diffing large objects (@cyjake)
- 5.0.3
This patch features a fix to address a potential "low severity" ReDoS vulnerability in the diff package (a dependency of Mocha).
- 5.0.3
Bump
diffto v3.5.0 ([@anishkny]) - 3.5.0
Address CVE-2015-8315 via upgrade of debug ([@boneskull])
Release by release
- Fixed
Keep watching when the last test file is removed
- Fixed
Show require() error on unsupported directory import
- Fixed
Support
--Xone-char aliases
- Fixed
- Fixed
Fail nested tests on beforeEach failure
- Fixed
Give CLI reporter-option precedence over config file
- Fixed
Propagate spec file path on parallel worker death
- Fixed
Use find-up-simple to workaround ERR_PACKAGE_PATH_NOT_EXPORTED
- Fixed
Watch existing dirs so first run starts armed
- Fixed
- Fixed
Bump serialize-javascript to ^7.1.1
- Fixed
Keep unknown config values from becoming test specs
- Fixed
Only reject positional args that are entirely numeric
- Fixed
reporter: split err.stack at trailing frame block so embedded stacks render once
- Fixed
- Fixed
Fixup parsing negative numbers and quoted strings
- Fixed
Preserve FIFO descriptors when respawning
- Fixed
- New
Add --fail-hook-affected-tests option to report skipped tests as failed
- New
- Fixed
Make
describe().timeout()work
- Fixed
- Fixed
Swallow more
requireerrors from *ts files
- Fixed
- Fixed
Watch mode using chokidar v4
- Fixed
130 other lines we could not sort, mostly version bumps
- 11.7.3
deps: bump actions/setup-node in the github-actions group
- 11.7.2
deps: bump actions/checkout in the github-actions group
- 10.8.2
deps: bump the github-actions group with 1 update
- 10.3.0
Update can-i-use
- 10.2.0
Remove duplicated header (@PauloGoncalvesBH)
- 10.1.0
Browser: Increase contrast for replay buttons (@JoshuaKGoldberg)
- 10.1.0
Use standard
Promise.allSettledinstead of polyfill (@outsideris) - 10.1.0
Upgrade official GitHub actions to latest (@ddzz)
- 10.0.0
Update production dependencies (@juergba)
- 10.0.0
Replace deprecated
String.prototype.substr()(@CommanderRoot)
201 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.