Upgrade mocha: 8.3.2 → 9.0.3 (major)
Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳ ️ mocha (8.3.2 → 9.0.3) · Repo · Changelog
Release Notes
9.0.3
9.0.3 / 2021-07-25
🐛 Fixes
9.0.2
9.0.2 / 2021-07-03
🐛 Fixes
🔩 Other
9.0.1
9.0.1 / 2021-06-18
🔩 OtherWe 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)
9.0.0
9.0.0 / 2021-06-07
💥 Breaking ChangesMocha is going ESM-first! This means that it will now use ESM
import(test_file)
to load the test files, instead of the CommonJSrequire(test_file)
. This is not a problem, asimport
can also load most files thatrequire
does. In the rare cases where this fails, it will fallback torequire(...)
. 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
8.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.
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 40 commits:
Release v9.0.3
update CHANGELOG for v9.0.3 [ci skip]
Fix exception rethrow from js config file (#4702)
Fix: using custom interface in parallel mode (#4688)
ESM: fix swallowing MODULE_NOT_FOUND errors in case of type:module (#4687)
Release v9.0.2
update CHANGELOG for v9.0.2 [ci skip]
Update production dependencies (#4674)
Make "-r <dir>" work with new import-first loading (#4668)
Fix: karma-mocha should run both browser bundles (#4663)
GHA: don't run CI tests for 'push' events on tags (#4664)
Release v9.0.1
update CHANGELOG for v9.0.1 [ci skip]
Browser: add separate build in ES2018 (#4657)
ESM: proper version check in hasStableEsmImplementation (#4653)
Release v9.0.0
update CHANGELOG for v9.0.0 [ci skip]
Update production dependencies (#4643)
Add new option "--dry-run" (#4640)
Deprecate "Runner(suite: Suite, delay: boolean)" (#4646)
Limit the size of 'actual'/'expected' before generating diff (#4638)
Import-first loading of test files (#4635)
Fix: control stringification of error message (#4128)
Remove deprecated "utils.lookupFiles()" (#4636)
GH actions: delete old workflow runs (#4637) [ci skip]
Consume log-symbols alternate to code for win32 in reporters/base (#4389)
Drop support of Node v10 (#4633)
Release v8.4.0
update CHANGELOG for v8.4.0 [ci skip]
Change CLI file parsing errors to use an error code (#4502)
docs: add "options.require" to Mocha constructor (#4630) [ci skip]
GH actions: add Node v16 (#4629)
Watch for test files are crashed (#4614)
Run browser tests on forked PRs by a dedicated label (#4616)
docs: dynamic tests with top-level await (#4617) [ci skip]
Remove unused test.retries(n) (#4611)
GH actions: stale workflow (#4613) [ci skip]
Run eslint check correctly with forked PRs (#4606)
Update README sponsors/backers (#4605) [ci skip]
docs: update missed default extensions (#4608) [ci skip]
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase
.
All Depfu comment commands
- @depfu rebase
- Rebases against your default branch and redoes this update
- @depfu recreate
- Recreates this PR, overwriting any edits that you've made to it
- @depfu merge
- Merges this PR once your tests are passing and conflicts are resolved
- @depfu close
- Closes this PR and deletes the branch
- @depfu reopen
- Restores the branch and reopens this PR (if it's closed)
- @depfu pause
- Ignores all future updates for this dependency and closes this PR
- @depfu pause [minor|major]
- Ignores all future minor/major updates for this dependency and closes this PR
- @depfu resume
- Future versions of this dependency will create PRs again (leaves this PR as is)