mocha 9.0.0 → 9.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/lib/esm-utils.js +3 -1
- package/mocha-es2018.js +19698 -0
- package/mocha.js +2 -2
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
# 9.0.1 / 2021-06-18
|
|
2
|
+
|
|
3
|
+
## :nut_and_bolt: Other
|
|
4
|
+
|
|
5
|
+
- [#4657](https://github.com/mochajs/mocha/issues/4657): Browser: add separate bundle for modern browsers ([**@juergba**](https://github.com/juergba))
|
|
6
|
+
|
|
7
|
+
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**.
|
|
8
|
+
|
|
9
|
+
- [#4653](https://github.com/mochajs/mocha/issues/4653): ESM: proper version check in `hasStableEsmImplementation` ([**@alexander-fenster**](https://github.com/alexander-fenster))
|
|
10
|
+
|
|
1
11
|
# 9.0.0 / 2021-06-07
|
|
2
12
|
|
|
3
13
|
## :boom: Breaking Changes
|
package/lib/esm-utils.js
CHANGED
|
@@ -34,7 +34,9 @@ const hasStableEsmImplementation = (() => {
|
|
|
34
34
|
const [major, minor] = process.version.split('.');
|
|
35
35
|
// ESM is stable from v12.22.0 onward
|
|
36
36
|
// https://nodejs.org/api/esm.html#esm_modules_ecmascript_modules
|
|
37
|
-
|
|
37
|
+
const majorNumber = parseInt(major.slice(1), 10);
|
|
38
|
+
const minorNumber = parseInt(minor, 10);
|
|
39
|
+
return majorNumber > 12 || (majorNumber === 12 && minorNumber >= 22);
|
|
38
40
|
})();
|
|
39
41
|
|
|
40
42
|
exports.requireOrImport = hasStableEsmImplementation
|