Releases: mochajs/mocha
v9.1.2
v9.1.1
9.1.1 / 2021-08-28
Please also note our announcements.
🐛 Fixes
- #4623:
XUNIT
andJSON
reporter crash inparallel
mode (@curtisman)
v9.1.0
v9.0.3
v9.0.2
v9.0.1
9.0.1 / 2021-06-18
🔩 Other
We added a separate browser bundle mocha-es2018.js
in javascript ES2018, as we skipped the transpilation down to ES5. This is an experimental step towards freezing Mocha's support of IE11.
- #4653: ESM: proper version check in
hasStableEsmImplementation
(@alexander-fenster)
v9.0.0
9.0.0 / 2021-06-07
💥 Breaking Changes
Mocha is going ESM-first! This means that it will now use ESM import(test_file)
to load the test files, instead of the CommonJS require(test_file)
. This is not a problem, as import
can also load most files that require
does. In the rare cases where this fails, it will fallback to require(...)
. This ESM-first approach is the next step in Mocha's ESM migration, and allows ESM loaders to load and transform the test file.
-
#4638: Limit the size of
actual
/expected
fordiff
generation (@juergba) -
#4389: Refactoring: Consuming log-symbols alternate to code for win32 in reporters/base (@MoonSupport)
🎉 Enhancements
🐛 Fixes
🔩 Other
v8.4.0
8.4.0 / 2021-05-07
🎉 Enhancements
- #4502: CLI file parsing errors now have error codes (@evaline-ju)
🐛 Fixes
- #4614: Watch: fix crash when reloading files (@outsideris)
📖 Documentation
- #4630: Add
options.require
to Mocha constructor forroot hook
plugins on parallel runs (@juergba) - #4617: Dynamically generating tests with
top-level await
and ESM test files (@juergba) - #4608: Update default file extensions (@outsideris)
Also thanks to @outsideris for various improvements on our GH actions workflows.
v8.3.2
8.3.2 / 2021-03-12
🐛 Fixes
- #4599: Fix regression in
require
interface (@alexander-fenster)
📖 Documentation
- #4601: Add build to GH actions run (@christian-bromann)
- #4596: Filter active sponsors/backers (@juergba)
- #4225: Update config file examples (@pkuczynski)