☕️ Classic, reliable, trusted test framework for Node.js and the browser
chore: switch 'linkify-changelog.js' to ESM (#4812) [ci skip]
Juerg Bf297790fb7d9
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 469aec0c..9f83aa2f 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,7 +4,7 @@- [#4807](https://github.com/mochajs/mocha/issues/4807): `import` throws wrong error if loader is used ([**@giltayar**](https://github.com/giltayar))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#4777](https://github.com/mochajs/mocha/issues/4777): Add Node v17 to CI test matrix ([**@outsideris**](https://github.com/outsideris))@@ -14,7 +14,7 @@- [#4769](https://github.com/mochajs/mocha/issues/4769): Browser: re-enable `bdd` ES6 style import ([**@juergba**](https://github.com/juergba))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#4764](https://github.com/mochajs/mocha/issues/4764): Revert deprecation of `EVENT_SUITE_ADD_*` events ([**@beatfactor**](https://github.com/beatfactor))@@ -24,10 +24,10 @@- [#4746](https://github.com/mochajs/mocha/issues/4746): Browser: stop using all global vars in `browser-entry.js` ([**@PaperStrike**](https://github.com/PaperStrike))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#4754](https://github.com/mochajs/mocha/issues/4754): Remove dependency wide-align ([**@juergba**](https://github.com/juergba))-- [#4736](https://github.com/mochajs/mocha/issues/4736): ESM: remove code for Node versions <10 ([**@juergba**](https://github.com/juergba))+- [#4736](https://github.com/mochajs/mocha/issues/4736): ESM: remove code for Node versions <10 ([**@juergba**](https://github.com/juergba))# 9.1.1 / 2021-08-28@@ -59,13 +59,13 @@- [#4668](https://github.com/mochajs/mocha/issues/4668): ESM: make `--require <dir>` work with new `import`-first loading ([**@giltayar**](https://github.com/giltayar))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#4674](https://github.com/mochajs/mocha/issues/4674): Update production dependencies ([**@juergba**](https://github.com/juergba))# 9.0.1 / 2021-06-18-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#4657](https://github.com/mochajs/mocha/issues/4657): Browser: add separate bundle for modern browsers ([**@juergba**](https://github.com/juergba))@@ -97,7 +97,7 @@ We added a separate browser bundle `mocha-es2018.js` in javascript ES2018, as we- [#4128](https://github.com/mochajs/mocha/issues/4128): Fix: control stringification of error message ([**@syeutyu**](https://github.com/syeutyu))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#4646](https://github.com/mochajs/mocha/issues/4646): Deprecate `Runner(suite: Suite, delay: boolean)` signature ([**@juergba**](https://github.com/juergba))- [#4643](https://github.com/mochajs/mocha/issues/4643): Update production dependencies ([**@juergba**](https://github.com/juergba))@@ -157,7 +157,7 @@ Also thanks to [**@outsideris**](https://github.com/outsideris) for various impr- [#4503](https://github.com/mochajs/mocha/issues/4503): Add GH Actions workflow status badge ([**@outsideris**](https://github.com/outsideris))- [#4494](https://github.com/mochajs/mocha/issues/4494): Add example of generating tests dynamically with a closure ([**@maxwellgerber**](https://github.com/maxwellgerber))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#4556](https://github.com/mochajs/mocha/issues/4556): Upgrade all dependencies to latest stable ([**@AviVahl**](https://github.com/AviVahl))- [#4543](https://github.com/mochajs/mocha/issues/4543): Update dependencies yargs and yargs-parser ([**@juergba**](https://github.com/juergba))@@ -177,11 +177,11 @@ Also thanks to [**@akeating**](https://github.com/akeating) for a documentation# 8.2.0 / 2020-10-16-The major feature added in v8.2.0 is addition of support for [_global fixtures_](https://mochajs.org/#global-fixtures).+The major feature added in v8.2.0 is addition of support for [*global fixtures*](https://mochajs.org/#global-fixtures).-While Mocha has always had the ability to run setup and teardown via a hook (e.g., a `before()` at the top level of a test file) when running tests in serial, Mocha v8.0.0 added support for parallel runs. Parallel runs are _incompatible_ with this strategy; e.g., a top-level `before()` would only run for the file in which it was defined.+While Mocha has always had the ability to run setup and teardown via a hook (e.g., a `before()` at the top level of a test file) when running tests in serial, Mocha v8.0.0 added support for parallel runs. Parallel runs are *incompatible* with this strategy; e.g., a top-level `before()` would only run for the file in which it was defined.-With [global fixtures](https://mochajs.org/#global-fixtures), Mocha can now perform user-defined setup and teardown _regardless_ of mode, and these fixtures are guaranteed to run _once and only once_. This holds for parallel mode, serial mode, and even "watch" mode (the teardown will run once you hit Ctrl-C, just before Mocha finally exits). Tasks such as starting and stopping servers are well-suited to global fixtures, but not sharing resources--global fixtures do _not_ share context with your test files (but they do share context with each other).+With [global fixtures](https://mochajs.org/#global-fixtures), Mocha can now perform user-defined setup and teardown *regardless* of mode, and these fixtures are guaranteed to run *once and only once*. This holds for parallel mode, serial mode, and even "watch" mode (the teardown will run once you hit Ctrl-C, just before Mocha finally exits). Tasks such as starting and stopping servers are well-suited to global fixtures, but not sharing resources--global fixtures do *not* share context with your test files (but they do share context with each other).Here's a short example of usage:@@ -216,7 +216,7 @@ For detailed information, please see the [documentation](https://mochajs.org/#gl- [#4434](https://github.com/mochajs/mocha/issues/4434): Output of `json` reporter now contains `speed` ("fast"/"medium"/"slow") property ([**@wwhurin**](https://github.com/wwhurin))- [#4464](https://github.com/mochajs/mocha/issues/4464): Errors thrown by serializer in parallel mode now have error codes ([**@evaline-ju**](https://github.com/evaline-ju))-_For implementors of custom reporters:_+*For implementors of custom reporters:*- [#4409](https://github.com/mochajs/mocha/issues/4409): Parallel mode and custom reporter improvements ([**@boneskull**](https://github.com/boneskull)):- Support custom worker-process-only reporters (`Runner.prototype.workerReporter()`); reporters should subclass `ParallelBufferedReporter` in `mocha/lib/nodejs/reporters/parallel-buffered`@@ -262,11 +262,11 @@ Thanks to [**@AviVahl**](https://github.com/AviVahl), [**@donghoon-song**](httpsIn this release, Mocha now builds its browser bundle with Rollup and Babel, which will provide the project's codebase more flexibility and consistency.-While we've been diligent about backwards compatibility, it's _possible_ consumers of the browser bundle will encounter differences (other than an increase in the bundle size). If you _do_ encounter an issue with the build, please [report it here](https://github.com/mochajs/mocha/issues/new?labels=unconfirmed-bug&template=bug_report.md&title=).+While we've been diligent about backwards compatibility, it's *possible* consumers of the browser bundle will encounter differences (other than an increase in the bundle size). If you *do* encounter an issue with the build, please [report it here](https://github.com/mochajs/mocha/issues/new?labels=unconfirmed-bug\&template=bug\_report.md\&title=).This release **does not** drop support for IE11.-Other community contributions came from [**@Devjeel**](https://github.com/Devjeel), [**@Harsha509**](https://github.com/Harsha509) and [**@sharath2106**](https://github.com/sharath2106). _Thank you_ to everyone who contributed to this release!+Other community contributions came from [**@Devjeel**](https://github.com/Devjeel), [**@Harsha509**](https://github.com/Harsha509) and [**@sharath2106**](https://github.com/sharath2106). *Thank you* to everyone who contributed to this release!> Do you read Korean? See [this guide to running parallel tests in Mocha](https://blog.outsider.ne.kr/1489), translated by our maintainer, [**@outsideris**](https://github.com/outsideris).@@ -293,7 +293,7 @@ Other community contributions came from [**@Devjeel**](https://github.com/Devjee- [#4343](https://github.com/mochajs/mocha/issues/4343): Clean up some API docs ([**@craigtaub**](https://github.com/craigtaub))- [#4318](https://github.com/mochajs/mocha/issues/4318): Sponsor images are now self-hosted ([**@Munter**](https://github.com/Munter))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#4293](https://github.com/mochajs/mocha/issues/4293): Use Rollup and Babel in build pipeline; add source map to published files ([**@Munter**](https://github.com/Munter))@@ -307,7 +307,7 @@ The obligatory patch after a major.# 8.0.0 / 2020-06-10-In this major release, Mocha adds the ability to _run tests in parallel_. Better late than never! Please note the **breaking changes** detailed below.+In this major release, Mocha adds the ability to *run tests in parallel*. Better late than never! Please note the **breaking changes** detailed below.Let's welcome [**@giltayar**](https://github.com/giltayar) and [**@nicojs**](https://github.com/nicojs) to the maintenance team!@@ -344,17 +344,17 @@ Let's welcome [**@giltayar**](https://github.com/giltayar) and [**@nicojs**](htt- [#4245](https://github.com/mochajs/mocha/issues/4245): Add ability to run tests in parallel for Node.js (see [docs](https://mochajs.org/#parallel-tests)) ([**@boneskull**](https://github.com/boneskull))- :exclamation: See also [#4244](https://github.com/mochajs/mocha/issues/4244); [Root Hook Plugins (docs)](https://mochajs.org/#root-hook-plugins) -- _root hooks must be defined via Root Hook Plugins to work in parallel mode_+ :exclamation: See also [#4244](https://github.com/mochajs/mocha/issues/4244); [Root Hook Plugins (docs)](https://mochajs.org/#root-hook-plugins) -- *root hooks must be defined via Root Hook Plugins to work in parallel mode*- [#4304](https://github.com/mochajs/mocha/issues/4304): `--require` now works with ES modules ([**@JacobLey**](https://github.com/JacobLey))-- [#4299](https://github.com/mochajs/mocha/issues/4299): In some circumstances, Mocha can run ES modules under Node.js v10 -- _use at your own risk!_ ([**@giltayar**](https://github.com/giltayar))+- [#4299](https://github.com/mochajs/mocha/issues/4299): In some circumstances, Mocha can run ES modules under Node.js v10 -- *use at your own risk!* ([**@giltayar**](https://github.com/giltayar))## :book: Documentation- [#4246](https://github.com/mochajs/mocha/issues/4246): Add documentation for parallel mode and Root Hook plugins ([**@boneskull**](https://github.com/boneskull))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#4200](https://github.com/mochajs/mocha/issues/4200): Drop mkdirp and replace it with fs.mkdirSync ([**@HyunSangHan**](https://github.com/HyunSangHan))@@ -386,7 +386,7 @@ Let's welcome [**@giltayar**](https://github.com/giltayar) and [**@nicojs**](htt- [#4235](https://github.com/mochajs/mocha/issues/4235): Enable emoji on website; enable normal ul elements ([**@boneskull**](https://github.com/boneskull))- [#4272](https://github.com/mochajs/mocha/issues/4272): Fetch sponsors at build time, show ALL non-skeevy sponsors ([**@boneskull**](https://github.com/boneskull))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#4249](https://github.com/mochajs/mocha/issues/4249): Refactoring improving encapsulation ([**@arvidOtt**](https://github.com/arvidOtt))- [#4242](https://github.com/mochajs/mocha/issues/4242): CI add job names, add Node.js v14 to matrix ([**@boneskull**](https://github.com/boneskull))@@ -395,7 +395,7 @@ Let's welcome [**@giltayar**](https://github.com/giltayar) and [**@nicojs**](htt# 7.1.2 / 2020-04-26-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#4251](https://github.com/mochajs/mocha/issues/4251): Prevent karma-mocha from stalling ([**@juergba**](https://github.com/juergba))- [#4222](https://github.com/mochajs/mocha/issues/4222): Update dependency mkdirp to v0.5.5 ([**@outsideris**](https://github.com/outsideris))@@ -442,7 +442,7 @@ Mocha supports writing your test files as ES modules:- [#4058](https://github.com/mochajs/mocha/issues/4058): Manage author list in AUTHORS instead of `package.json` ([**@outsideris**](https://github.com/outsideris))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#4138](https://github.com/mochajs/mocha/issues/4138): Upgrade ESLint v6.8 ([**@kaicataldo**](https://github.com/kaicataldo))@@ -460,7 +460,7 @@ Mocha supports writing your test files as ES modules:- [#4146](https://github.com/mochajs/mocha/issues/4146): Update copyright & trademark notices per OJSF ([**@boneskull**](https://github.com/boneskull))- [#4140](https://github.com/mochajs/mocha/issues/4140): Fix broken links ([**@KyoungWan**](https://github.com/KyoungWan))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#4133](https://github.com/mochajs/mocha/issues/4133): Print more descriptive error message ([**@Zirak**](https://github.com/Zirak))@@ -486,11 +486,11 @@ Mocha supports writing your test files as ES modules:- [#3980](https://github.com/mochajs/mocha/issues/3980): Refactor and improve `--watch` mode with chokidar ([**@geigerzaehler**](https://github.com/geigerzaehler)):- adds command-line options `--watch-files` and `--watch-ignore`- removes `--watch-extensions`-- [#3979](https://github.com/mochajs/mocha/issues/3979): Type "rs\\n" to restart tests ([**@broofa**](https://github.com/broofa))+- [#3979](https://github.com/mochajs/mocha/issues/3979): Type "rs\n" to restart tests ([**@broofa**](https://github.com/broofa))## :fax: Deprecations-These are _soft_-deprecated, and will emit a warning upon use. Support will be removed in (likely) the next major version of Mocha:+These are *soft*-deprecated, and will emit a warning upon use. Support will be removed in (likely) the next major version of Mocha:- [#3968](https://github.com/mochajs/mocha/issues/3968): Deprecate legacy configuration via `mocha.opts` ([**@juergba**](https://github.com/juergba))@@ -516,7 +516,7 @@ These are _soft_-deprecated, and will emit a warning upon use. Support will be r- [#4045](https://github.com/mochajs/mocha/issues/4045): Update README.md concerning GraphicsMagick installation ([**@HyunSangHan**](https://github.com/HyunSangHan))- [#3988](https://github.com/mochajs/mocha/issues/3988): Fix sponsors background color for readability ([**@outsideris**](https://github.com/outsideris))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#4118](https://github.com/mochajs/mocha/issues/4118): Update node-environment-flags to 1.0.6 ([**@kylef**](https://github.com/kylef))- [#4097](https://github.com/mochajs/mocha/issues/4097): Add GH Funding Metadata ([**@SheetJSDev**](https://github.com/SheetJSDev))@@ -548,7 +548,7 @@ These are _soft_-deprecated, and will emit a warning upon use. Support will be r## :bug: Fixes-- [#3955](https://github.com/mochajs/mocha/issues/3955): tty.getWindowSize is not a function inside a "worker_threads" worker ([**@1999**](https://github.com/1999))+- [#3955](https://github.com/mochajs/mocha/issues/3955): tty.getWindowSize is not a function inside a "worker\_threads" worker ([**@1999**](https://github.com/1999))- [#3970](https://github.com/mochajs/mocha/issues/3970): remove extraGlobals() ([**@juergba**](https://github.com/juergba))- [#3984](https://github.com/mochajs/mocha/issues/3984): Update yargs-unparser to v1.6.0 ([**@juergba**](https://github.com/juergba))- [#3983](https://github.com/mochajs/mocha/issues/3983): Package 'esm': spawn child-process for correct loading ([**@juergba**](https://github.com/juergba))@@ -587,7 +587,7 @@ These are _soft_-deprecated, and will emit a warning upon use. Support will be r- [#3915](https://github.com/mochajs/mocha/issues/3915), [#3929](https://github.com/mochajs/mocha/issues/3929): Increase tests coverage for `--watch` options ([**@geigerzaehler**](https://github.com/geigerzaehler))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#3953](https://github.com/mochajs/mocha/issues/3953): Collect test files later, prepares improvements to the `--watch` mode behavior ([**@geigerzaehler**](https://github.com/geigerzaehler))- [#3939](https://github.com/mochajs/mocha/issues/3939): Upgrade for npm audit ([**@boneskull**](https://github.com/boneskull))@@ -639,7 +639,7 @@ These are _soft_-deprecated, and will emit a warning upon use. Support will be r## :fax: Deprecations-These are _soft_-deprecated, and will emit a warning upon use. Support will be removed in (likely) the next major version of Mocha:+These are *soft*-deprecated, and will emit a warning upon use. Support will be removed in (likely) the next major version of Mocha:- [#3719](https://github.com/mochajs/mocha/issues/3719): Deprecate `this.skip()` for "after all" hooks ([**@juergba**](https://github.com/juergba))@@ -665,7 +665,7 @@ and some regressions:- [#3807](https://github.com/mochajs/mocha/issues/3807): Mocha website HTML tweaks ([**@plroebuck**](https://github.com/plroebuck))- [#3793](https://github.com/mochajs/mocha/issues/3793): Update config file example ".mocharc.yml" ([**@cspotcode**](https://github.com/cspotcode))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#3830](https://github.com/mochajs/mocha/issues/3830): Replace dependency "findup-sync" with "find-up" for faster startup ([**@cspotcode**](https://github.com/cspotcode))- [#3799](https://github.com/mochajs/mocha/issues/3799): Update devDependencies to fix many npm vulnerabilities ([**@XhmikosR**](https://github.com/XhmikosR))@@ -690,7 +690,7 @@ These issues were regressions.- [#3754](https://github.com/mochajs/mocha/issues/3754): Mocha again finds `test.js` when run without arguments ([**@plroebuck**](https://github.com/plroebuck))- [#3756](https://github.com/mochajs/mocha/issues/3756): Mocha again supports third-party interfaces via `--ui` ([**@boneskull**](https://github.com/boneskull))- [#3755](https://github.com/mochajs/mocha/issues/3755): Fix broken `--watch` ([**@boneskull**](https://github.com/boneskull))-- [#3759](https://github.com/mochajs/mocha/issues/3759): Fix unwelcome deprecation notice when Mocha run against languages (CoffeeScript) with implicit return statements; _returning a non-`undefined` value from a `describe` callback is no longer considered deprecated_ ([**@boneskull**](https://github.com/boneskull))+- [#3759](https://github.com/mochajs/mocha/issues/3759): Fix unwelcome deprecation notice when Mocha run against languages (CoffeeScript) with implicit return statements; *returning a non-`undefined` value from a `describe` callback is no longer considered deprecated* ([**@boneskull**](https://github.com/boneskull))## :book: Documentation@@ -726,7 +726,7 @@ These issues were regressions.- [#3652](https://github.com/mochajs/mocha/issues/3652): Switch from Jekyll to Eleventy ([**@Munter**](https://github.com/Munter))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#3677](https://github.com/mochajs/mocha/issues/3677): Add error objects for createUnsupportedError and createInvalidExceptionError ([**@boneskull**](https://github.com/boneskull))- [#3733](https://github.com/mochajs/mocha/issues/3733): Removed unnecessary processing in post-processing hook ([**@wanseob**](https://github.com/wanseob))@@ -756,7 +756,7 @@ Welcome [**@plroebuck**](https://github.com/plroebuck), [**@craigtaub**](https:/- `-d` is no longer an alias for `--debug`; `-d` is currently ignored- [#3275](https://github.com/mochajs/mocha/issues/3275): `--watch-extensions` no longer implies `js`; it must be explicitly added ([**@TheDancingCode**](https://github.com/TheDancingCode))- [#2908](https://github.com/mochajs/mocha/issues/2908): `tap` reporter emits error messages ([**@chrmod**](https://github.com/chrmod))-- [#2819](https://github.com/mochajs/mocha/issues/2819): When conditionally skipping in a `before` hook, subsequent `before` hooks _and_ tests in nested suites are now skipped ([**@bannmoore**](https://github.com/bannmoore))+- [#2819](https://github.com/mochajs/mocha/issues/2819): When conditionally skipping in a `before` hook, subsequent `before` hooks *and* tests in nested suites are now skipped ([**@bannmoore**](https://github.com/bannmoore))- [#627](https://github.com/mochajs/mocha/issues/627): Emit filepath in "timeout exceeded" exceptions where applicable ([**@boneskull**](https://github.com/boneskull))- [#3556](https://github.com/mochajs/mocha/issues/3556): `lib/template.html` has moved to `lib/browser/template.html` ([**@boneskull**](https://github.com/boneskull))- [#2576](https://github.com/mochajs/mocha/issues/2576): An exception is now thrown if Mocha fails to parse or find a `mocha.opts` at a user-specified path ([**@plroebuck**](https://github.com/plroebuck))@@ -765,7 +765,7 @@ Welcome [**@plroebuck**](https://github.com/plroebuck), [**@craigtaub**](https:/## :fax: Deprecations-These are _soft_-deprecated, and will emit a warning upon use. Support will be removed in (likely) the next major version of Mocha:+These are *soft*-deprecated, and will emit a warning upon use. Support will be removed in (likely) the next major version of Mocha:- `-gc` users should use `--gc-global` instead- Consumers of the function exported by `bin/options` should now use the `loadMochaOpts` or `loadOptions` (preferred) functions exported by the `lib/cli/options` module@@ -802,7 +802,7 @@ Enhancements introduced in [#3556](https://github.com/mochajs/mocha/issues/3556)- Support all allowed `node` flags as supported by the running version of `node` (also thanks to [**@demurgos**](https://github.com/demurgos))- Support any V8 flag by prepending `--v8-` to the flag name- All flags are also supported via config files, `package.json` properties, or `mocha.opts`- - Debug-related flags (e.g., `--inspect`) now _imply_ `--no-timeouts`+ - Debug-related flags (e.g., `--inspect`) now *imply* `--no-timeouts`- Use of e.g., `--debug` will automatically invoke `--inspect` if supported by running version of `node`- Support negation of any Mocha-specific command-line flag by prepending `--no-` to the flag name@@ -811,7 +811,7 @@ Enhancements introduced in [#3556](https://github.com/mochajs/mocha/issues/3556)- `Mocha` constructor supports all options-- `--extension` is now an alias for `--watch-extensions` and affects _non-watch-mode_ test runs as well. For example, to run _only_ `test/*.coffee` (not `test/*.js`), you can do `mocha --require coffee-script/register --extensions coffee`.+- `--extension` is now an alias for `--watch-extensions` and affects *non-watch-mode* test runs as well. For example, to run *only* `test/*.coffee` (not `test/*.js`), you can do `mocha --require coffee-script/register --extensions coffee`.- [#3552](https://github.com/mochajs/mocha/issues/3552): `tap` reporter is now TAP13-capable ([**@plroebuck**](https://github.com/plroebuck) & [**@mollstam**](https://github.com/mollstam))@@ -849,7 +849,7 @@ Enhancements introduced in [#3556](https://github.com/mochajs/mocha/issues/3556)- [#2819](https://github.com/mochajs/mocha/issues/2819): Update docs around skips and hooks ([**@bannmoore**](https://github.com/bannmoore))- Many improvements by [**@outsideris**](https://github.com/outsideris)-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#3557](https://github.com/mochajs/mocha/issues/3557): Use `ms` userland module instead of hand-rolled solution ([**@gizemkeser**](https://github.com/gizemkeser))- Many CI fixes and other refactors by [**@plroebuck**](https://github.com/plroebuck)@@ -869,7 +869,7 @@ Enhancements introduced in [#3556](https://github.com/mochajs/mocha/issues/3556)- [#3328](https://github.com/mochajs/mocha/pull/3328): Mocha-flavored [API docs](https://mochajs.org/api/)! ([@Munter](https://github.com/munter))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#3330](https://github.com/mochajs/mocha/pull/3330): Use `Buffer.from()` ([@harrysarson](https://github.com/harrysarson))- [#3295](https://github.com/mochajs/mocha/pull/3295): Remove redundant folder ([@DavNej](https://github.com/DajNev))@@ -896,7 +896,7 @@ Enhancements introduced in [#3556](https://github.com/mochajs/mocha/issues/3556)- [#3323](https://github.com/mochajs/mocha/pull/3323): Publish actual [API documentation](https://mochajs.org/api/)! ([@dfberry](https://github.com/dfberry), [@Munter](https://github.com/munter))- [#3299](https://github.com/mochajs/mocha/pull/3299): Improve docs around exclusive tests ([@nicgirault](https://github.com/nicgirault))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#3302](https://github.com/mochajs/mocha/pull/3302), [#3308](https://github.com/mochajs/mocha/pull/3308), [#3310](https://github.com/mochajs/mocha/pull/3310), [#3315](https://github.com/mochajs/mocha/pull/3315), [#3316](https://github.com/mochajs/mocha/pull/3316): Build matrix improvements ([more info](https://boneskull.com/mocha-and-travis-ci-build-stages/)) ([@outsideris](https://github.com/outsideris), [@boneskull](https://github.com/boneskull))- [#3272](https://github.com/mochajs/mocha/pull/3272): Refactor reporter tests ([@jMuzsik](https://github.com/jMuzsik))@@ -915,7 +915,7 @@ Welcome [@outsideris](https://github.com/outsideris) to the team!- [#3133](https://github.com/mochajs/mocha/issues/3133): Improve docs regarding "pending" behavior ([@ematicipo](https://github.com/ematicipo))- [#3276](https://github.com/mochajs/mocha/pull/3276), [#3274](https://github.com/mochajs/mocha/pull/3274): Fix broken stuff in `CHANGELOG.md` ([@tagoro9](https://github.com/tagoro9), [@honzajavorek](https://github.com/honzajavorek))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#3208](https://github.com/mochajs/mocha/issues/3208): Improve test coverage for AMD users ([@outsideris](https://github.com/outsideris))- [#3267](https://github.com/mochajs/mocha/pull/3267): Remove vestiges of PhantomJS from CI ([@anishkny](https://github.com/anishkny))@@ -935,13 +935,13 @@ This patch features a fix to address a potential "low severity" [ReDoS vulnerabi- [#3266](https://github.com/mochajs/mocha/pull/3266): Bump `diff` to v3.5.0 ([@anishkny](https://github.com/anishkny))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#3011](https://github.com/mochajs/mocha/issues/3011): Expose `generateDiff()` in `Base` reporter ([@harrysarson](https://github.com/harrysarson))# 5.0.2 / 2018-03-05-This release fixes a class of tests which report as _false positives_. **Certain tests will now break**, though they would have previously been reported as passing. Details below. Sorry for the inconvenience!+This release fixes a class of tests which report as *false positives*. **Certain tests will now break**, though they would have previously been reported as passing. Details below. Sorry for the inconvenience!## :bug: Fixes@@ -962,13 +962,13 @@ This release fixes a class of tests which report as _false positives_. **Certain});\`\`\`- Previously to this version, Mocha would have _silently swallowed_ the `chaos!` exception, and you wouldn't know. Well, _now you know_. Mocha cannot recover from this gracefully, so it will exit with a nonzero code.+ Previously to this version, Mocha would have *silently swallowed* the `chaos!` exception, and you wouldn't know. Well, *now you know*. Mocha cannot recover from this gracefully, so it will exit with a nonzero code.- **Maintainers of external reporters**: _If_ a test of this class is encountered, the `Runner` instance will emit the `end` event _twice_; you _may_ need to change your reporter to use `runner.once('end')` intead of `runner.on('end')`.+ **Maintainers of external reporters**: *If* a test of this class is encountered, the `Runner` instance will emit the `end` event *twice*; you *may* need to change your reporter to use `runner.once('end')` intead of `runner.on('end')`.- [#3093](https://github.com/mochajs/mocha/issues/3093): Fix stack trace reformatting problem ([@outsideris](https://github.com/outsideris))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#3248](https://github.com/mochajs/mocha/issues/3248): Update `browser-stdout` to v1.3.1 ([@honzajavorek](https://github.com/honzajavorek))@@ -989,14 +989,14 @@ Special thanks to [Wallaby.js](https://wallabyjs.com) for their continued suppor- [#3212](https://github.com/mochajs/mocha/pull/3212): Update [Wallaby.js](https://wallabyjs.com)-related docs ([@ArtemGovorov](https://github.com/ArtemGovorov))- [#3205](https://github.com/mochajs/mocha/pull/3205): Remove outdated cruft ([@boneskull](https://github.com/boneskull))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#3224](https://github.com/mochajs/mocha/pull/3224): Add proper Wallaby.js config ([@ArtemGovorov](https://github.com/ArtemGovorov))- [#3230](https://github.com/mochajs/mocha/pull/3230): Update copyright year ([@josephlin55555](https://github.com/josephlin55555))# 5.0.0 / 2018-01-17-Mocha starts off 2018 right by again dropping support for _unmaintained rubbish_.+Mocha starts off 2018 right by again dropping support for *unmaintained rubbish*.Welcome [@vkarpov15](https://github.com/vkarpov15) to the team!@@ -1027,7 +1027,7 @@ Welcome [@vkarpov15](https://github.com/vkarpov15) to the team!- [#3177](https://github.com/mochajs/mocha/pull/3177): Tweak `README.md` organization ([@xxczaki](https://github.com/xxczaki))- Misc updates ([@boneskull](https://github.com/boneskull))-## :nut_and_bolt: Other+## :nut\_and\_bolt: Other- [#3118](https://github.com/mochajs/mocha/issues/3118): Move TextMate Integration to [its own repo](https://github.com/mochajs/mocha.tmbundle) ([@Bamieh](https://github.com/Bamieh))- [#3185](https://github.com/mochajs/mocha/issues/3185): Add Node.js v9 to build matrix; remove v7 ([@xxczaki](https://github.com/xxczaki))diff --git a/package-lock.json b/package-lock.jsonindex b1ecf9eb..09fae06f 100644--- a/package-lock.json+++ b/package-lock.json@@ -92,9 +92,9 @@"pidtree": "^0.5.0","prettier": "^2.4.1","regenerator-runtime": "0.13.7",- "remark": "^14.0.1",- "remark-github": "^11.1.1",- "remark-inline-links": "^6.0.0",+ "remark": "^14.0.2",+ "remark-github": "^11.2.2",+ "remark-inline-links": "^6.0.1","requirejs": "^2.3.6","rewiremock": "^3.14.3","rimraf": "^3.0.2",@@ -106,7 +106,6 @@"strip-ansi": "^6.0.0","svgo": "^1.3.2","through2": "^4.0.2",- "to-vfile": "^6.1.0","touch": "^3.1.0","unexpected": "^11.14.0","unexpected-eventemitter": "^2.2.0",@@ -19986,9 +19985,9 @@}},"node_modules/remark": {- "version": "14.0.1",- "resolved": "https://registry.npmjs.org/remark/-/remark-14.0.1.tgz",- "integrity": "sha512-7zLG3u8EUjOGuaAS9gUNJPD2j+SqDqAFHv2g6WMpE5CU9rZ6e3IKDM12KHZ3x+YNje+NMAuN55yx8S5msGSx7Q==",+ "version": "14.0.2",+ "resolved": "https://registry.npmjs.org/remark/-/remark-14.0.2.tgz",+ "integrity": "sha512-A3ARm2V4BgiRXaUo5K0dRvJ1lbogrbXnhkJRmD0yw092/Yl0kOCZt1k9ZeElEwkZsWGsMumz6qL5MfNJH9nOBA==","dev": true,"dependencies": {"@types/mdast": "^3.0.0",@@ -20002,9 +20001,9 @@}},"node_modules/remark-github": {- "version": "11.2.0",- "resolved": "https://registry.npmjs.org/remark-github/-/remark-github-11.2.0.tgz",- "integrity": "sha512-3c/pSLPktel3ZskD8QYRBz9oqOeqSoUPAcafXGs6Sz9mIUdtAe6hGYfwUzjFF7Zmwv5QfXfa2TXbMUqmgxwK2w==",+ "version": "11.2.2",+ "resolved": "https://registry.npmjs.org/remark-github/-/remark-github-11.2.2.tgz",+ "integrity": "sha512-uO6q6NOszPFC/dMS6R0ExuMCk8XNuTptgw+eBfjsQiseyiDnUtUKBajN2fHtRo4wDtcjX2UTmZimmKGiYzZq+w==","dev": true,"dependencies": {"@types/mdast": "^3.0.0",@@ -20019,9 +20018,9 @@}},"node_modules/remark-inline-links": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/remark-inline-links/-/remark-inline-links-6.0.0.tgz",- "integrity": "sha512-Z9Dn4Zpwa1F7CCFC7f+WyxUpsG7X124zjoE7TICXwdlZo6smybxFLtnVnOxs5WF1YXChUf0fGlTOES1tQBQqyA==",+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/remark-inline-links/-/remark-inline-links-6.0.1.tgz",+ "integrity": "sha512-etdk1A0kRs+bXtT41XEFfyePOu583cmuHDF8bhAUfHJeCAPbPZpqmqZHD/wLhijIJV3ldjIvO4irM0jRGb1Dhg==","dev": true,"dependencies": {"@types/mdast": "^3.0.0",@@ -23228,20 +23227,6 @@"node": ">=0.12.0"}},- "node_modules/to-vfile": {- "version": "6.1.0",- "resolved": "https://registry.npmjs.org/to-vfile/-/to-vfile-6.1.0.tgz",- "integrity": "sha512-BxX8EkCxOAZe+D/ToHdDsJcVI4HqQfmw0tCkp31zf3dNP/XWIAjU4CmeuSwsSoOzOTqHPOL0KUzyZqJplkD0Qw==",- "dev": true,- "dependencies": {- "is-buffer": "^2.0.0",- "vfile": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },"node_modules/toidentifier": {"version": "1.0.0","resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",@@ -23796,36 +23781,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/unified/node_modules/vfile": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.1.1.tgz",- "integrity": "sha512-sfI+3MnGUodvAE2s3hXCcJxhcymXQgekdgqNf9WMcmWtZU65tPMaml5eGYREJfMJGHr4/0GPZgrN3UMgWjHXSQ==",- "dev": true,- "dependencies": {- "@types/unist": "^2.0.0",- "is-buffer": "^2.0.0",- "unist-util-stringify-position": "^3.0.0",- "vfile-message": "^3.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unified/node_modules/vfile-message": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.0.2.tgz",- "integrity": "sha512-UUjZYIOg9lDRwwiBAuezLIsu9KlXntdxwG+nXnjuQAHvBpcX3x0eN8h+I7TkY5nkCXj+cWVp4ZqebtGBvok8ww==",- "dev": true,- "dependencies": {- "@types/unist": "^2.0.0",- "unist-util-stringify-position": "^3.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },"node_modules/uniq": {"version": "1.0.1","resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz",@@ -24247,15 +24202,15 @@"dev": true},"node_modules/vfile": {- "version": "4.2.1",- "resolved": "https://registry.npmjs.org/vfile/-/vfile-4.2.1.tgz",- "integrity": "sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==",+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.3.0.tgz",+ "integrity": "sha512-Tj44nY/48OQvarrE4FAjUfrv7GZOYzPbl5OD65HxVKwLJKMPU7zmfV8cCgCnzKWnSfYG2f3pxu+ALqs7j22xQQ==","dev": true,"dependencies": {"@types/unist": "^2.0.0","is-buffer": "^2.0.0",- "unist-util-stringify-position": "^2.0.0",- "vfile-message": "^2.0.0"+ "unist-util-stringify-position": "^3.0.0",+ "vfile-message": "^3.0.0"},"funding": {"type": "opencollective",@@ -24263,39 +24218,13 @@}},"node_modules/vfile-message": {- "version": "2.0.4",- "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.4.tgz",- "integrity": "sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==",+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.1.0.tgz",+ "integrity": "sha512-4QJbBk+DkPEhBXq3f260xSaWtjE4gPKOfulzfMFF8ZNwaPZieWsg3iVlcmF04+eebzpcpeXOOFMfrYzJHVYg+g==","dev": true,"dependencies": {"@types/unist": "^2.0.0",- "unist-util-stringify-position": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/vfile-message/node_modules/unist-util-stringify-position": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz",- "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==",- "dev": true,- "dependencies": {- "@types/unist": "^2.0.2"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/vfile/node_modules/unist-util-stringify-position": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz",- "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==",- "dev": true,- "dependencies": {- "@types/unist": "^2.0.2"+ "unist-util-stringify-position": "^3.0.0"},"funding": {"type": "opencollective",@@ -41188,9 +41117,9 @@}},"remark": {- "version": "14.0.1",- "resolved": "https://registry.npmjs.org/remark/-/remark-14.0.1.tgz",- "integrity": "sha512-7zLG3u8EUjOGuaAS9gUNJPD2j+SqDqAFHv2g6WMpE5CU9rZ6e3IKDM12KHZ3x+YNje+NMAuN55yx8S5msGSx7Q==",+ "version": "14.0.2",+ "resolved": "https://registry.npmjs.org/remark/-/remark-14.0.2.tgz",+ "integrity": "sha512-A3ARm2V4BgiRXaUo5K0dRvJ1lbogrbXnhkJRmD0yw092/Yl0kOCZt1k9ZeElEwkZsWGsMumz6qL5MfNJH9nOBA==","dev": true,"requires": {"@types/mdast": "^3.0.0",@@ -41200,9 +41129,9 @@}},"remark-github": {- "version": "11.2.0",- "resolved": "https://registry.npmjs.org/remark-github/-/remark-github-11.2.0.tgz",- "integrity": "sha512-3c/pSLPktel3ZskD8QYRBz9oqOeqSoUPAcafXGs6Sz9mIUdtAe6hGYfwUzjFF7Zmwv5QfXfa2TXbMUqmgxwK2w==",+ "version": "11.2.2",+ "resolved": "https://registry.npmjs.org/remark-github/-/remark-github-11.2.2.tgz",+ "integrity": "sha512-uO6q6NOszPFC/dMS6R0ExuMCk8XNuTptgw+eBfjsQiseyiDnUtUKBajN2fHtRo4wDtcjX2UTmZimmKGiYzZq+w==","dev": true,"requires": {"@types/mdast": "^3.0.0",@@ -41213,9 +41142,9 @@}},"remark-inline-links": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/remark-inline-links/-/remark-inline-links-6.0.0.tgz",- "integrity": "sha512-Z9Dn4Zpwa1F7CCFC7f+WyxUpsG7X124zjoE7TICXwdlZo6smybxFLtnVnOxs5WF1YXChUf0fGlTOES1tQBQqyA==",+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/remark-inline-links/-/remark-inline-links-6.0.1.tgz",+ "integrity": "sha512-etdk1A0kRs+bXtT41XEFfyePOu583cmuHDF8bhAUfHJeCAPbPZpqmqZHD/wLhijIJV3ldjIvO4irM0jRGb1Dhg==","dev": true,"requires": {"@types/mdast": "^3.0.0",@@ -43809,16 +43738,6 @@}}},- "to-vfile": {- "version": "6.1.0",- "resolved": "https://registry.npmjs.org/to-vfile/-/to-vfile-6.1.0.tgz",- "integrity": "sha512-BxX8EkCxOAZe+D/ToHdDsJcVI4HqQfmw0tCkp31zf3dNP/XWIAjU4CmeuSwsSoOzOTqHPOL0KUzyZqJplkD0Qw==",- "dev": true,- "requires": {- "is-buffer": "^2.0.0",- "vfile": "^4.0.0"- }- },"toidentifier": {"version": "1.0.0","resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",@@ -44237,28 +44156,6 @@"resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.0.0.tgz","integrity": "sha512-NXRbBtUdBioI73y/HmOhogw/U5msYPC9DAtGkJXeFcFWSFZw0mCUsPxk/snTuJHzNKA8kLBK4rH97RMB1BfCXw==","dev": true- },- "vfile": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.1.1.tgz",- "integrity": "sha512-sfI+3MnGUodvAE2s3hXCcJxhcymXQgekdgqNf9WMcmWtZU65tPMaml5eGYREJfMJGHr4/0GPZgrN3UMgWjHXSQ==",- "dev": true,- "requires": {- "@types/unist": "^2.0.0",- "is-buffer": "^2.0.0",- "unist-util-stringify-position": "^3.0.0",- "vfile-message": "^3.0.0"- }- },- "vfile-message": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.0.2.tgz",- "integrity": "sha512-UUjZYIOg9lDRwwiBAuezLIsu9KlXntdxwG+nXnjuQAHvBpcX3x0eN8h+I7TkY5nkCXj+cWVp4ZqebtGBvok8ww==",- "dev": true,- "requires": {- "@types/unist": "^2.0.0",- "unist-util-stringify-position": "^3.0.0"- }}}},@@ -44608,47 +44505,25 @@}},"vfile": {- "version": "4.2.1",- "resolved": "https://registry.npmjs.org/vfile/-/vfile-4.2.1.tgz",- "integrity": "sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==",+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.3.0.tgz",+ "integrity": "sha512-Tj44nY/48OQvarrE4FAjUfrv7GZOYzPbl5OD65HxVKwLJKMPU7zmfV8cCgCnzKWnSfYG2f3pxu+ALqs7j22xQQ==","dev": true,"requires": {"@types/unist": "^2.0.0","is-buffer": "^2.0.0",- "unist-util-stringify-position": "^2.0.0",- "vfile-message": "^2.0.0"- },- "dependencies": {- "unist-util-stringify-position": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz",- "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==",- "dev": true,- "requires": {- "@types/unist": "^2.0.2"- }- }+ "unist-util-stringify-position": "^3.0.0",+ "vfile-message": "^3.0.0"}},"vfile-message": {- "version": "2.0.4",- "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.4.tgz",- "integrity": "sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==",+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.1.0.tgz",+ "integrity": "sha512-4QJbBk+DkPEhBXq3f260xSaWtjE4gPKOfulzfMFF8ZNwaPZieWsg3iVlcmF04+eebzpcpeXOOFMfrYzJHVYg+g==","dev": true,"requires": {"@types/unist": "^2.0.0",- "unist-util-stringify-position": "^2.0.0"- },- "dependencies": {- "unist-util-stringify-position": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz",- "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==",- "dev": true,- "requires": {- "@types/unist": "^2.0.2"- }- }+ "unist-util-stringify-position": "^3.0.0"}},"vlq": {diff --git a/package-scripts.js b/package-scripts.jsindex 75ef029d..76f5ccc3 100644--- a/package-scripts.js+++ b/package-scripts.js@@ -300,7 +300,7 @@ module.exports = {description: 'Update list of AUTHORS'},linkifyChangelog: {- script: 'node scripts/linkify-changelog.js',+ script: 'node scripts/linkify-changelog.mjs',description: 'Add/update GitHub links in CHANGELOG.md'},version: {diff --git a/package.json b/package.jsonindex 7dc76b4e..4f585450 100644--- a/package.json+++ b/package.json@@ -131,9 +131,9 @@"pidtree": "^0.5.0","prettier": "^2.4.1","regenerator-runtime": "0.13.7",- "remark": "^14.0.1",- "remark-github": "^11.1.1",- "remark-inline-links": "^6.0.0",+ "remark": "^14.0.2",+ "remark-github": "^11.2.2",+ "remark-inline-links": "^6.0.1","requirejs": "^2.3.6","rewiremock": "^3.14.3","rimraf": "^3.0.2",@@ -145,7 +145,6 @@"strip-ansi": "^6.0.0","svgo": "^1.3.2","through2": "^4.0.2",- "to-vfile": "^6.1.0","touch": "^3.1.0","unexpected": "^11.14.0","unexpected-eventemitter": "^2.2.0",diff --git a/scripts/linkify-changelog.js b/scripts/linkify-changelog.jsdeleted file mode 100644index fb1e19b4..00000000--- a/scripts/linkify-changelog.js+++ /dev/null@@ -1,25 +0,0 @@-'use strict';--/**- * Linkify CHANGELOG.md- */--const {writeFileSync} = require('fs');-const vfile = require('to-vfile');-const remark = require('remark');--const filepath = require.resolve('../CHANGELOG.md');--writeFileSync(- filepath,- remark()- .data('settings', {- listItemIndent: '1',- incrementListMarker: false,- gfm: true,- entities: false- })- .use([require('remark-inline-links'), require('remark-github')])- .processSync(vfile.readSync(filepath))- .toString()-);diff --git a/scripts/linkify-changelog.mjs b/scripts/linkify-changelog.mjsnew file mode 100644index 00000000..207511c4--- /dev/null+++ b/scripts/linkify-changelog.mjs@@ -0,0 +1,23 @@+/**+ * Linkify CHANGELOG.md+ */++import {readFileSync, writeFileSync} from 'fs';+import {remark} from 'remark';+import remarkGithub from 'remark-github';+import remarkInlineLinks from 'remark-inline-links';++const filepath = new URL('../CHANGELOG.md', import.meta.url);++writeFileSync(+ filepath,+ remark()+ .data('settings', {+ bullet: '-',+ incrementListMarker: false,+ listItemIndent: 'one'+ })+ .use([remarkGithub, remarkInlineLinks])+ .processSync(readFileSync(filepath))+ .toString()+);