This Pull Request updates dependency mocha from ^4.0.0 || ^3.0.0 || ^2.3.0 to ^4.0.0 || ^3.0.0 || ^2.3.0 || ^5.0.0
Release Notes
### [`v5.0.0`](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#500--2018-01-17)
Mocha starts off 2018 right by again dropping support for *unmaintained rubbish*.
Welcome [@vkarpov15] to the team!
#### :boom: Breaking Changes
- **[#3148]: Drop support for IE9 and IE10** ([@Bamieh])
Practically speaking, only code which consumes (through bundling or otherwise) the userland [buffer](https://npm.im/buffer) module should be affected. However, Mocha will no longer test against these browsers, nor apply fixes for them.
#### :tada: Enhancements
- [#3181]: Add useful new `--file` command line argument ([documentation](https://mochajs.org/#--file-file)) ([@hswolff])
#### :bug: Fixes
- [#3187]: Fix inaccurate test duration reporting ([@FND])
- [#3202]: Fix bad markup in HTML reporter ([@DanielRuf])
#### :sunglasses: Developer Experience
- [#2352]: Ditch GNU Make for [nps](https://npm.im/nps) to manage scripts ([@TedYav])
#### :book: Documentation
- [#3137]: Add missing `--no-timeouts` docs ([@dfberry])
- [#3134]: Improve `done()` callback docs ([@maraisr])
- [#3135]: Fix cross-references ([@vkarpov15])
- [#3163]: Fix tpyos ([@tbroadley])
- [#3177]: Tweak `README.md` organization ([@xxczaki])
- Misc updates ([@boneskull])
#### :nut_and_bolt: Other
- [#3118]: Move TextMate Integration to [its own repo](https://github.com/mochajs/mocha.tmbundle) ([@Bamieh])
- [#3185]: Add Node.js v9 to build matrix; remove v7 ([@xxczaki])
- [#3172]: Markdown linting ([@boneskull])
- Test & Netlify updates ([@Munter], [@boneskull])
[#3148]: `https://github.com/mochajs/mocha/issues/3148`
[#3181]: `https://github.com/mochajs/mocha/issues/3181`
[#3187]: `https://github.com/mochajs/mocha/issues/3187`
[#3202]: `https://github.com/mochajs/mocha/pull/3202`
[#2352]: `https://github.com/mochajs/mocha/issues/2352`
[#3137]: `https://github.com/mochajs/mocha/issues/3137`
[#3134]: `https://github.com/mochajs/mocha/issues/3134`
[#3135]: `https://github.com/mochajs/mocha/issues/3135`
[#3163]: `https://github.com/mochajs/mocha/pull/3163`
[#3177]: `https://github.com/mochajs/mocha/pull/3177`
[#3118]: `https://github.com/mochajs/mocha/issues/3118`
[#3185]: `https://github.com/mochajs/mocha/issues/3185`
[#3172]: `https://github.com/mochajs/mocha/issues/3172`
[@hswolff]: https://github.com/hswolff
[@FND]: https://github.com/FND
[@DanielRuf]: https://github.com/DanielRuf
[@TedYav]: https://github.com/TedYav
[@dfberry]: https://github.com/dfberry
[@maraisr]: https://github.com/maraisr
[@vkarpov15]: https://github.com/vkarpov15
[@tbroadley]: https://github.com/tbroadley
---
### [`v5.0.1`](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#501--2018-02-07)
...your garden-variety patch release.
Special thanks to [Wallaby.js](https://wallabyjs.com) for their continued support! :heart:
#### :bug: Fixes
- [#1838]: `--delay` now works with `.only()` ([@silviom])
- [#3119]: Plug memory leak present in v8 ([@boneskull])
#### :book: Documentation
- [#3132], [#3098]: Update `--glob` docs ([@outsideris])
- [#3212]: Update [Wallaby.js](https://wallabyjs.com)-related docs ([@ArtemGovorov])
- [#3205]: Remove outdated cruft ([@boneskull])
#### :nut_and_bolt: Other
- [#3224]: Add proper Wallaby.js config ([@ArtemGovorov])
- [#3230]: Update copyright year ([@josephlin55555])
[#1838]: `https://github.com/mochajs/mocha/issues/1838`
[#3119]: `https://github.com/mochajs/mocha/issues/3119`
[#3132]: `https://github.com/mochajs/mocha/issues/3132`
[#3098]: `https://github.com/mochajs/mocha/issues/3098`
[#3212]: https://github.com/mochajs/mocha/pulls/3212
[#3205]: https://github.com/mochajs/mocha/pulls/3205
[#3224]: https://github.com/mochajs/mocha/pulls/3224
[#3230]: https://github.com/mochajs/mocha/pulls/3230
[@silviom]: https://github.com/silviom
[@outsideris]: https://github.com/outsideris
[@ArtemGovorov]: https://github.com/ArtemGovorov
[@josephlin55555]: https://github.com/josephlin55555
---
### [`v5.0.2`](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#502--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!
#### :bug: Fixes
- [#3226]: Do not swallow errors that are thrown asynchronously from passing tests ([@boneskull]). Example:
```js
it('should actually fail, sorry!', function (done) {
// passing assertion
assert(true === true);
// test complete & is marked as passing
done();
// ...but something evil lurks within
setTimeout(() => {
throw new Error('chaos!');
}, 100);
});
```
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')`.
- [#3093]: Fix stack trace reformatting problem ([@outsideris])
#### :nut_and_bolt Other
- [#3248]: Update `browser-stdout` to v1.3.1 ([@honzajavorek])
[#3248]: `https://github.com/mochajs/mocha/issues/3248`
[#3226]: `https://github.com/mochajs/mocha/issues/3226`
[#3093]: `https://github.com/mochajs/mocha/issues/3093`
[@honzajavorek]: https://github.com/honzajavorek
---
### [`v5.0.3`](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#503--2018-03-06)
This patch features a fix to address a potential "low severity" [ReDoS vulnerability](https://snyk.io/vuln/npm:diff:20180305) in the [diff](https://npm.im/diff) package (a dependency of Mocha).
#### :lock: Security Fixes
- [#3266]: Bump `diff` to v3.5.0 ([@anishkny])
#### :nut_and_bolt: Other
- [#3011]: Expose `generateDiff()` in `Base` reporter ([@harrysarson])
[#3266]: `https://github.com/mochajs/mocha/pull/3266`
[#3011]: `https://github.com/mochajs/mocha/issues/3011`
[@anishkny]: https://github.com/anishkny
[@harrysarson]: https://github.com/harrysarson
---
### [`v5.0.4`](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#504--2018-03-07)
#### :bug: Fixes
- [#3265]: Fixes regression in "watch" functionality introduced in v5.0.2 ([@outsideris])
[#3265]: `https://github.com/mochajs/mocha/issues/3265`
---
Commits
#### v5.0.0
- [`c1da848`](https://github.com/mochajs/mocha/commit/c1da848baee744fedb10ff55cf3c6c738b476aef) Update README.md
- [`5161639`](https://github.com/mochajs/mocha/commit/51616395ee584fea4ef0d71d243244bc571375ce) Fix typos
- [`ef981a2`](https://github.com/mochajs/mocha/commit/ef981a2794e564ccb08a48deeaf0450517ad054b) Link to unexpected.js on http. Cert errors on https
- [`3e85f89`](https://github.com/mochajs/mocha/commit/3e85f89026ccdfb874fa523641e6d3da94a57b61) Ensure consistent calculation of duration
- [`a554adb`](https://github.com/mochajs/mocha/commit/a554adb7bd672e3118ab3f43d4258f5c39baf768) Update .travis.yml
- [`3f314b6`](https://github.com/mochajs/mocha/commit/3f314b619174174d4f406ba610f95f4bdf652943) drop support for ie9 and ie10; closes `https://github.com/mochajs/mocha/issues/3148`
- [`95d2fe7`](https://github.com/mochajs/mocha/commit/95d2fe7d113852fc584cda4dbb79510d4b79271c) Update karma.conf.js
- [`dc12bd5`](https://github.com/mochajs/mocha/commit/dc12bd5ce81dfaf5dda290c5387024be7936117a) test setup for ESM support
- [`a723b8f`](https://github.com/mochajs/mocha/commit/a723b8f8da2977b5f7620c0cdbdb299a09ee78e4) lint Markdown; closes #3172
- [`b2697a7`](https://github.com/mochajs/mocha/commit/b2697a7f5fca1e953474b7ba9722d9ec98363111) add --no-timeouts to docs; closes #3137 (#3176)
- [`cb09e8b`](https://github.com/mochajs/mocha/commit/cb09e8bc752a4ad506dcb9c3c4def8dbd1c6622f) document Error/undefined params to the 'done' callback; closes #3134
- [`e54370e`](https://github.com/mochajs/mocha/commit/e54370eaa4b16db96f14157fdce06272e2b4ec68) replace phantomjs with puppeteer for browser tests; closes #3128
- [`565726d`](https://github.com/mochajs/mocha/commit/565726d8d4d17a6dc8683c08a43cf236d720e37e) Added Netlify config file
- [`e8b5592`](https://github.com/mochajs/mocha/commit/e8b55925d6e80e01f824c99a1fae63148a132671) Align netlify config with admin panel
- [`ac1dd70`](https://github.com/mochajs/mocha/commit/ac1dd704bce4f68a1b4044f748790c20b34e04c2) attempt to get travis working again
- [`5c6e99b`](https://github.com/mochajs/mocha/commit/5c6e99b50bd2a17c03a5ae6b52862bc60121bd91) update ESM tests to run against headless chrome instead of saucelabs' chrome only
- [`c7730a6`](https://github.com/mochajs/mocha/commit/c7730a623fd7398b968b0a3f00ad9574f31715af) Drop TextMate integration inside mocha closes `https://github.com/mochajs/mocha/issues/3118`
- [`0a3e32b`](https://github.com/mochajs/mocha/commit/0a3e32b81b3ca65c6795cce04fc9d9a8ad9f7a1c) Rewrite Makefile using NPS Scripts. Closes #2352
- [`7d8abe0`](https://github.com/mochajs/mocha/commit/7d8abe0168f74bd4551a73965d2f7ff42015203e) fix id and class definition
- [`50aec7a`](https://github.com/mochajs/mocha/commit/50aec7a249c7b2a28e2fdc18058829f48e6ee6d6) Add ability to pass in test files to be ran before positional files via --file (#3190)
- [`401997f`](https://github.com/mochajs/mocha/commit/401997f44dc54177d1f2dc74954be29df5e29d1d) update package-lock.json
- [`f8a1d2a`](https://github.com/mochajs/mocha/commit/f8a1d2a388f1a7fb25313703ee128f3cc7567656) docs(index): add missing doc link (#3203); closes #3135
- [`dc58252`](https://github.com/mochajs/mocha/commit/dc5825291be779122bea31fbf46593859eed638e) prep changelog for v5.0.0 [ci skip]
- [`a7267b4`](https://github.com/mochajs/mocha/commit/a7267b4b49c423abe0924e865597caa1750416c6) remove more references to make and Makefile
- [`9f61c04`](https://github.com/mochajs/mocha/commit/9f61c04db6f880acd9ca0dc2ca629e996fb3ab8d) finalize v5.0.0 CHANGELOG [ci skip]
- [`cc4a818`](https://github.com/mochajs/mocha/commit/cc4a8183ae63974297d74442a9787bcb8c78fd28) Release v5.0.0
#### v5.0.1
- [`c0ac1b9`](https://github.com/mochajs/mocha/commit/c0ac1b96a5856c9ae6a4fdd028f1bb89593f723a) fix travis "before script" script
- [`2fe2d01`](https://github.com/mochajs/mocha/commit/2fe2d0116e80f37956fcf799c96276ffb8dddab5) Revert "fix travis "before script" script"
- [`bca57f4`](https://github.com/mochajs/mocha/commit/bca57f438037b7ce2906b4b8f7ab4b9fba5d8102) clarify docs on html, xunit and 3p reporters; closes #1906
- [`2e7e4c0`](https://github.com/mochajs/mocha/commit/2e7e4c0c576996b87ca5a3bf226953bfa978d97a) rename "common-mistake" label to "faq"
- [`14fc030`](https://github.com/mochajs/mocha/commit/14fc03090413b038672ca80fd9cbbfb0ccfc0826) Add all supported wallaby editors
- [`f687d2b`](https://github.com/mochajs/mocha/commit/f687d2b0fb2e04b9ec9edfdfe58ce3ea513de369) update docs for the glob
- [`cd74322`](https://github.com/mochajs/mocha/commit/cd743228f0999ebfe8f88f224d6d61bc063de8ed) Slight copy update on docs for test directory
- [`b57f623`](https://github.com/mochajs/mocha/commit/b57f6234b75a1b25e0244ad9d04c4451414ee321) fix: When using --delay, .only() no longer works. Issue #1838
- [`3509029`](https://github.com/mochajs/mocha/commit/3509029e5da38daca0d650094117600b6617a862) update .gitignore to only ignore root mocha.js [ci skip]
- [`d975a6a`](https://github.com/mochajs/mocha/commit/d975a6a8455edb07477dc37a427c268aa59713ff) fix memory leak when run in v8; closes #3119
- [`b7377b3`](https://github.com/mochajs/mocha/commit/b7377b380202d2c0d5634dcb89dc50ea69961fb3) rename help-wanted to "help wanted" in stale.yml
- [`412cf27`](https://github.com/mochajs/mocha/commit/412cf278784d56b04dc165f88e8fb7999f437958) [Update] license year
- [`44aae9f`](https://github.com/mochajs/mocha/commit/44aae9f66db2efca550e5c9ac0dedaeac52d7e9e) add working wallaby config
- [`70027b6`](https://github.com/mochajs/mocha/commit/70027b60da7f409a40ea267e207aceac1ec1d286) update changelog for v5.0.1 [ci skip]
- [`09ce746`](https://github.com/mochajs/mocha/commit/09ce746aa925d35317f2624fd36c77a31bb68e24) Release v5.0.1
- [`73d55ac`](https://github.com/mochajs/mocha/commit/73d55ac4bc2d1f10121e6d37e62f2bff7520f166) fix typos in changelog [ci skip]
- [`c4ef568`](https://github.com/mochajs/mocha/commit/c4ef5687fa67ab97642a66ec25e05139e2d333ce) fix PR url
#### v5.0.2
- [`f71f347`](https://github.com/mochajs/mocha/commit/f71f3472d1049737ce0e2d2131753b468d45c66a) rename wallaby.js -> .wallaby.js
- [`ec8901a`](https://github.com/mochajs/mocha/commit/ec8901a23c5194b6f7e6eee9c2568e5020c944ce) remove unused functionality in utils module
- [`3537061`](https://github.com/mochajs/mocha/commit/3537061613886f9d37c0889d16f64dbdaf1583db) Update to correctly licensed browser-stdout version
- [`2c720a3`](https://github.com/mochajs/mocha/commit/2c720a35000da0fecf11ef65c20ca4292c226ad7) do not eat exceptions thrown asynchronously from passed tests; closes #3226
- [`5078fc5`](https://github.com/mochajs/mocha/commit/5078fc5325bf7bd02b6cf448792cd1584e052b73) persist paths in stack trace which have cwd as infix
- [`3792bef`](https://github.com/mochajs/mocha/commit/3792bef67b59add3b6d188e53f4d324e1488f159) add opencollective header image to assets/
- [`afcd08f`](https://github.com/mochajs/mocha/commit/afcd08f1fb6782d7d4f7d4d935250279f94d728a) add MAINTAINERS.md to .fossaignore [ci skip]
- [`0542c40`](https://github.com/mochajs/mocha/commit/0542c407fcc08be3a3e293d5df943f22d292e304) update README.md; closes #3191 [ci skip]
- [`6a796cb`](https://github.com/mochajs/mocha/commit/6a796cbbcd6c9f805e482c424327c82ed0398dbf) prepare CHANGELOG for v5.0.2 [ci skip]
- [`ff1bd9e`](https://github.com/mochajs/mocha/commit/ff1bd9eaa491a29d67fa6742766464efeb82ac29) update package-lock.json
- [`f2ee53c`](https://github.com/mochajs/mocha/commit/f2ee53c5ae4583b8117b842ffdbce6ed7387bcaf) Release v5.0.2
#### v5.0.3
- [`bdcb3c3`](https://github.com/mochajs/mocha/commit/bdcb3c371b2261101609b8c5feb4c6eb539223fb) exposes generateDiff function from base reporter
- [`660bccc`](https://github.com/mochajs/mocha/commit/660bcccdb70282cd160c2e18d750fc1dbe2f6a34) adds unit tests covering Base.generateDiff
- [`8df5727`](https://github.com/mochajs/mocha/commit/8df5727478a1a9294045ace7d67c4d192ee5dda0) Tidies up code after review
- [`aaaa5ab`](https://github.com/mochajs/mocha/commit/aaaa5abdd72e6d9db446c3c0d414947241ce6042) fix: ReDoS vuln in mocha@5.0.2 › diff@3.3.1 (#3266)
- [`70d9262`](https://github.com/mochajs/mocha/commit/70d9262d0f13906734e87e33f99afe3f4d61dff8) update CHANGELOG.md for v5.0.3 [ci skip]
- [`da6e5c9`](https://github.com/mochajs/mocha/commit/da6e5c967af4284c48ebd35adebdf5c76d1becd1) Release v5.0.3
#### v5.0.4
- [`eb09421`](https://github.com/mochajs/mocha/commit/eb094216bc022efd0557316b6615bda392613443) restore removed methods which still used
- [`868830a`](https://github.com/mochajs/mocha/commit/868830ae4355fa2dbe6184431ddddc8a84bfecdd) update CHANGELOG.md for v5.0.4 [ci skip]
- [`851ad29`](https://github.com/mochajs/mocha/commit/851ad29309b16878ad7c755158db263337cc4995) Release v5.0.4
This Pull Request updates dependency mocha from
^4.0.0 || ^3.0.0 || ^2.3.0
to^4.0.0 || ^3.0.0 || ^2.3.0 || ^5.0.0
Release Notes
### [`v5.0.0`](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#500--2018-01-17) Mocha starts off 2018 right by again dropping support for *unmaintained rubbish*. Welcome [@vkarpov15] to the team! #### :boom: Breaking Changes - **[#3148]: Drop support for IE9 and IE10** ([@Bamieh]) Practically speaking, only code which consumes (through bundling or otherwise) the userland [buffer](https://npm.im/buffer) module should be affected. However, Mocha will no longer test against these browsers, nor apply fixes for them. #### :tada: Enhancements - [#3181]: Add useful new `--file` command line argument ([documentation](https://mochajs.org/#--file-file)) ([@hswolff]) #### :bug: Fixes - [#3187]: Fix inaccurate test duration reporting ([@FND]) - [#3202]: Fix bad markup in HTML reporter ([@DanielRuf]) #### :sunglasses: Developer Experience - [#2352]: Ditch GNU Make for [nps](https://npm.im/nps) to manage scripts ([@TedYav]) #### :book: Documentation - [#3137]: Add missing `--no-timeouts` docs ([@dfberry]) - [#3134]: Improve `done()` callback docs ([@maraisr]) - [#3135]: Fix cross-references ([@vkarpov15]) - [#3163]: Fix tpyos ([@tbroadley]) - [#3177]: Tweak `README.md` organization ([@xxczaki]) - Misc updates ([@boneskull]) #### :nut_and_bolt: Other - [#3118]: Move TextMate Integration to [its own repo](https://github.com/mochajs/mocha.tmbundle) ([@Bamieh]) - [#3185]: Add Node.js v9 to build matrix; remove v7 ([@xxczaki]) - [#3172]: Markdown linting ([@boneskull]) - Test & Netlify updates ([@Munter], [@boneskull]) [#3148]: `https://github.com/mochajs/mocha/issues/3148` [#3181]: `https://github.com/mochajs/mocha/issues/3181` [#3187]: `https://github.com/mochajs/mocha/issues/3187` [#3202]: `https://github.com/mochajs/mocha/pull/3202` [#2352]: `https://github.com/mochajs/mocha/issues/2352` [#3137]: `https://github.com/mochajs/mocha/issues/3137` [#3134]: `https://github.com/mochajs/mocha/issues/3134` [#3135]: `https://github.com/mochajs/mocha/issues/3135` [#3163]: `https://github.com/mochajs/mocha/pull/3163` [#3177]: `https://github.com/mochajs/mocha/pull/3177` [#3118]: `https://github.com/mochajs/mocha/issues/3118` [#3185]: `https://github.com/mochajs/mocha/issues/3185` [#3172]: `https://github.com/mochajs/mocha/issues/3172` [@hswolff]: https://github.com/hswolff [@FND]: https://github.com/FND [@DanielRuf]: https://github.com/DanielRuf [@TedYav]: https://github.com/TedYav [@dfberry]: https://github.com/dfberry [@maraisr]: https://github.com/maraisr [@vkarpov15]: https://github.com/vkarpov15 [@tbroadley]: https://github.com/tbroadley --- ### [`v5.0.1`](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#501--2018-02-07) ...your garden-variety patch release. Special thanks to [Wallaby.js](https://wallabyjs.com) for their continued support! :heart: #### :bug: Fixes - [#1838]: `--delay` now works with `.only()` ([@silviom]) - [#3119]: Plug memory leak present in v8 ([@boneskull]) #### :book: Documentation - [#3132], [#3098]: Update `--glob` docs ([@outsideris]) - [#3212]: Update [Wallaby.js](https://wallabyjs.com)-related docs ([@ArtemGovorov]) - [#3205]: Remove outdated cruft ([@boneskull]) #### :nut_and_bolt: Other - [#3224]: Add proper Wallaby.js config ([@ArtemGovorov]) - [#3230]: Update copyright year ([@josephlin55555]) [#1838]: `https://github.com/mochajs/mocha/issues/1838` [#3119]: `https://github.com/mochajs/mocha/issues/3119` [#3132]: `https://github.com/mochajs/mocha/issues/3132` [#3098]: `https://github.com/mochajs/mocha/issues/3098` [#3212]: https://github.com/mochajs/mocha/pulls/3212 [#3205]: https://github.com/mochajs/mocha/pulls/3205 [#3224]: https://github.com/mochajs/mocha/pulls/3224 [#3230]: https://github.com/mochajs/mocha/pulls/3230 [@silviom]: https://github.com/silviom [@outsideris]: https://github.com/outsideris [@ArtemGovorov]: https://github.com/ArtemGovorov [@josephlin55555]: https://github.com/josephlin55555 --- ### [`v5.0.2`](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#502--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! #### :bug: Fixes - [#3226]: Do not swallow errors that are thrown asynchronously from passing tests ([@boneskull]). Example: ```js it('should actually fail, sorry!', function (done) { // passing assertion assert(true === true); // test complete & is marked as passing done(); // ...but something evil lurks within setTimeout(() => { throw new Error('chaos!'); }, 100); }); ``` 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')`. - [#3093]: Fix stack trace reformatting problem ([@outsideris]) #### :nut_and_bolt Other - [#3248]: Update `browser-stdout` to v1.3.1 ([@honzajavorek]) [#3248]: `https://github.com/mochajs/mocha/issues/3248` [#3226]: `https://github.com/mochajs/mocha/issues/3226` [#3093]: `https://github.com/mochajs/mocha/issues/3093` [@honzajavorek]: https://github.com/honzajavorek --- ### [`v5.0.3`](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#503--2018-03-06) This patch features a fix to address a potential "low severity" [ReDoS vulnerability](https://snyk.io/vuln/npm:diff:20180305) in the [diff](https://npm.im/diff) package (a dependency of Mocha). #### :lock: Security Fixes - [#3266]: Bump `diff` to v3.5.0 ([@anishkny]) #### :nut_and_bolt: Other - [#3011]: Expose `generateDiff()` in `Base` reporter ([@harrysarson]) [#3266]: `https://github.com/mochajs/mocha/pull/3266` [#3011]: `https://github.com/mochajs/mocha/issues/3011` [@anishkny]: https://github.com/anishkny [@harrysarson]: https://github.com/harrysarson --- ### [`v5.0.4`](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#504--2018-03-07) #### :bug: Fixes - [#3265]: Fixes regression in "watch" functionality introduced in v5.0.2 ([@outsideris]) [#3265]: `https://github.com/mochajs/mocha/issues/3265` ---Commits
#### v5.0.0 - [`c1da848`](https://github.com/mochajs/mocha/commit/c1da848baee744fedb10ff55cf3c6c738b476aef) Update README.md - [`5161639`](https://github.com/mochajs/mocha/commit/51616395ee584fea4ef0d71d243244bc571375ce) Fix typos - [`ef981a2`](https://github.com/mochajs/mocha/commit/ef981a2794e564ccb08a48deeaf0450517ad054b) Link to unexpected.js on http. Cert errors on https - [`3e85f89`](https://github.com/mochajs/mocha/commit/3e85f89026ccdfb874fa523641e6d3da94a57b61) Ensure consistent calculation of duration - [`a554adb`](https://github.com/mochajs/mocha/commit/a554adb7bd672e3118ab3f43d4258f5c39baf768) Update .travis.yml - [`3f314b6`](https://github.com/mochajs/mocha/commit/3f314b619174174d4f406ba610f95f4bdf652943) drop support for ie9 and ie10; closes `https://github.com/mochajs/mocha/issues/3148` - [`95d2fe7`](https://github.com/mochajs/mocha/commit/95d2fe7d113852fc584cda4dbb79510d4b79271c) Update karma.conf.js - [`dc12bd5`](https://github.com/mochajs/mocha/commit/dc12bd5ce81dfaf5dda290c5387024be7936117a) test setup for ESM support - [`a723b8f`](https://github.com/mochajs/mocha/commit/a723b8f8da2977b5f7620c0cdbdb299a09ee78e4) lint Markdown; closes #3172 - [`b2697a7`](https://github.com/mochajs/mocha/commit/b2697a7f5fca1e953474b7ba9722d9ec98363111) add --no-timeouts to docs; closes #3137 (#3176) - [`cb09e8b`](https://github.com/mochajs/mocha/commit/cb09e8bc752a4ad506dcb9c3c4def8dbd1c6622f) document Error/undefined params to the 'done' callback; closes #3134 - [`e54370e`](https://github.com/mochajs/mocha/commit/e54370eaa4b16db96f14157fdce06272e2b4ec68) replace phantomjs with puppeteer for browser tests; closes #3128 - [`565726d`](https://github.com/mochajs/mocha/commit/565726d8d4d17a6dc8683c08a43cf236d720e37e) Added Netlify config file - [`e8b5592`](https://github.com/mochajs/mocha/commit/e8b55925d6e80e01f824c99a1fae63148a132671) Align netlify config with admin panel - [`ac1dd70`](https://github.com/mochajs/mocha/commit/ac1dd704bce4f68a1b4044f748790c20b34e04c2) attempt to get travis working again - [`5c6e99b`](https://github.com/mochajs/mocha/commit/5c6e99b50bd2a17c03a5ae6b52862bc60121bd91) update ESM tests to run against headless chrome instead of saucelabs' chrome only - [`c7730a6`](https://github.com/mochajs/mocha/commit/c7730a623fd7398b968b0a3f00ad9574f31715af) Drop TextMate integration inside mocha closes `https://github.com/mochajs/mocha/issues/3118` - [`0a3e32b`](https://github.com/mochajs/mocha/commit/0a3e32b81b3ca65c6795cce04fc9d9a8ad9f7a1c) Rewrite Makefile using NPS Scripts. Closes #2352 - [`7d8abe0`](https://github.com/mochajs/mocha/commit/7d8abe0168f74bd4551a73965d2f7ff42015203e) fix id and class definition - [`50aec7a`](https://github.com/mochajs/mocha/commit/50aec7a249c7b2a28e2fdc18058829f48e6ee6d6) Add ability to pass in test files to be ran before positional files via --file (#3190) - [`401997f`](https://github.com/mochajs/mocha/commit/401997f44dc54177d1f2dc74954be29df5e29d1d) update package-lock.json - [`f8a1d2a`](https://github.com/mochajs/mocha/commit/f8a1d2a388f1a7fb25313703ee128f3cc7567656) docs(index): add missing doc link (#3203); closes #3135 - [`dc58252`](https://github.com/mochajs/mocha/commit/dc5825291be779122bea31fbf46593859eed638e) prep changelog for v5.0.0 [ci skip] - [`a7267b4`](https://github.com/mochajs/mocha/commit/a7267b4b49c423abe0924e865597caa1750416c6) remove more references to make and Makefile - [`9f61c04`](https://github.com/mochajs/mocha/commit/9f61c04db6f880acd9ca0dc2ca629e996fb3ab8d) finalize v5.0.0 CHANGELOG [ci skip] - [`cc4a818`](https://github.com/mochajs/mocha/commit/cc4a8183ae63974297d74442a9787bcb8c78fd28) Release v5.0.0 #### v5.0.1 - [`c0ac1b9`](https://github.com/mochajs/mocha/commit/c0ac1b96a5856c9ae6a4fdd028f1bb89593f723a) fix travis "before script" script - [`2fe2d01`](https://github.com/mochajs/mocha/commit/2fe2d0116e80f37956fcf799c96276ffb8dddab5) Revert "fix travis "before script" script" - [`bca57f4`](https://github.com/mochajs/mocha/commit/bca57f438037b7ce2906b4b8f7ab4b9fba5d8102) clarify docs on html, xunit and 3p reporters; closes #1906 - [`2e7e4c0`](https://github.com/mochajs/mocha/commit/2e7e4c0c576996b87ca5a3bf226953bfa978d97a) rename "common-mistake" label to "faq" - [`14fc030`](https://github.com/mochajs/mocha/commit/14fc03090413b038672ca80fd9cbbfb0ccfc0826) Add all supported wallaby editors - [`f687d2b`](https://github.com/mochajs/mocha/commit/f687d2b0fb2e04b9ec9edfdfe58ce3ea513de369) update docs for the glob - [`cd74322`](https://github.com/mochajs/mocha/commit/cd743228f0999ebfe8f88f224d6d61bc063de8ed) Slight copy update on docs for test directory - [`b57f623`](https://github.com/mochajs/mocha/commit/b57f6234b75a1b25e0244ad9d04c4451414ee321) fix: When using --delay, .only() no longer works. Issue #1838 - [`3509029`](https://github.com/mochajs/mocha/commit/3509029e5da38daca0d650094117600b6617a862) update .gitignore to only ignore root mocha.js [ci skip] - [`d975a6a`](https://github.com/mochajs/mocha/commit/d975a6a8455edb07477dc37a427c268aa59713ff) fix memory leak when run in v8; closes #3119 - [`b7377b3`](https://github.com/mochajs/mocha/commit/b7377b380202d2c0d5634dcb89dc50ea69961fb3) rename help-wanted to "help wanted" in stale.yml - [`412cf27`](https://github.com/mochajs/mocha/commit/412cf278784d56b04dc165f88e8fb7999f437958) [Update] license year - [`44aae9f`](https://github.com/mochajs/mocha/commit/44aae9f66db2efca550e5c9ac0dedaeac52d7e9e) add working wallaby config - [`70027b6`](https://github.com/mochajs/mocha/commit/70027b60da7f409a40ea267e207aceac1ec1d286) update changelog for v5.0.1 [ci skip] - [`09ce746`](https://github.com/mochajs/mocha/commit/09ce746aa925d35317f2624fd36c77a31bb68e24) Release v5.0.1 - [`73d55ac`](https://github.com/mochajs/mocha/commit/73d55ac4bc2d1f10121e6d37e62f2bff7520f166) fix typos in changelog [ci skip] - [`c4ef568`](https://github.com/mochajs/mocha/commit/c4ef5687fa67ab97642a66ec25e05139e2d333ce) fix PR url #### v5.0.2 - [`f71f347`](https://github.com/mochajs/mocha/commit/f71f3472d1049737ce0e2d2131753b468d45c66a) rename wallaby.js -> .wallaby.js - [`ec8901a`](https://github.com/mochajs/mocha/commit/ec8901a23c5194b6f7e6eee9c2568e5020c944ce) remove unused functionality in utils module - [`3537061`](https://github.com/mochajs/mocha/commit/3537061613886f9d37c0889d16f64dbdaf1583db) Update to correctly licensed browser-stdout version - [`2c720a3`](https://github.com/mochajs/mocha/commit/2c720a35000da0fecf11ef65c20ca4292c226ad7) do not eat exceptions thrown asynchronously from passed tests; closes #3226 - [`5078fc5`](https://github.com/mochajs/mocha/commit/5078fc5325bf7bd02b6cf448792cd1584e052b73) persist paths in stack trace which have cwd as infix - [`3792bef`](https://github.com/mochajs/mocha/commit/3792bef67b59add3b6d188e53f4d324e1488f159) add opencollective header image to assets/ - [`afcd08f`](https://github.com/mochajs/mocha/commit/afcd08f1fb6782d7d4f7d4d935250279f94d728a) add MAINTAINERS.md to .fossaignore [ci skip] - [`0542c40`](https://github.com/mochajs/mocha/commit/0542c407fcc08be3a3e293d5df943f22d292e304) update README.md; closes #3191 [ci skip] - [`6a796cb`](https://github.com/mochajs/mocha/commit/6a796cbbcd6c9f805e482c424327c82ed0398dbf) prepare CHANGELOG for v5.0.2 [ci skip] - [`ff1bd9e`](https://github.com/mochajs/mocha/commit/ff1bd9eaa491a29d67fa6742766464efeb82ac29) update package-lock.json - [`f2ee53c`](https://github.com/mochajs/mocha/commit/f2ee53c5ae4583b8117b842ffdbce6ed7387bcaf) Release v5.0.2 #### v5.0.3 - [`bdcb3c3`](https://github.com/mochajs/mocha/commit/bdcb3c371b2261101609b8c5feb4c6eb539223fb) exposes generateDiff function from base reporter - [`660bccc`](https://github.com/mochajs/mocha/commit/660bcccdb70282cd160c2e18d750fc1dbe2f6a34) adds unit tests covering Base.generateDiff - [`8df5727`](https://github.com/mochajs/mocha/commit/8df5727478a1a9294045ace7d67c4d192ee5dda0) Tidies up code after review - [`aaaa5ab`](https://github.com/mochajs/mocha/commit/aaaa5abdd72e6d9db446c3c0d414947241ce6042) fix: ReDoS vuln in mocha@5.0.2 › diff@3.3.1 (#3266) - [`70d9262`](https://github.com/mochajs/mocha/commit/70d9262d0f13906734e87e33f99afe3f4d61dff8) update CHANGELOG.md for v5.0.3 [ci skip] - [`da6e5c9`](https://github.com/mochajs/mocha/commit/da6e5c967af4284c48ebd35adebdf5c76d1becd1) Release v5.0.3 #### v5.0.4 - [`eb09421`](https://github.com/mochajs/mocha/commit/eb094216bc022efd0557316b6615bda392613443) restore removed methods which still used - [`868830a`](https://github.com/mochajs/mocha/commit/868830ae4355fa2dbe6184431ddddc8a84bfecdd) update CHANGELOG.md for v5.0.4 [ci skip] - [`851ad29`](https://github.com/mochajs/mocha/commit/851ad29309b16878ad7c755158db263337cc4995) Release v5.0.4This PR has been generated by Renovate Bot.