Skip to content

Commit 00a895f

Browse files
committed
Release v6.0.2
1 parent 1edce76 commit 00a895f

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
Two more regressions fixed:
66

7-
- #3768: Test file paths no longer dropped from `mocha.opts` (@boneskull)
8-
- #3767: `--require` does not break on module names that look like certain `node` flags (@boneskull)
7+
- [#3768](https://github.com/mochajs/mocha/issues/3768): Test file paths no longer dropped from `mocha.opts` ([**@boneskull**](https://github.com/boneskull))
8+
- [#3767](https://github.com/mochajs/mocha/issues/3767): `--require` does not break on module names that look like certain `node` flags ([**@boneskull**](https://github.com/boneskull))
99

1010
# 6.0.1 / 2019-02-21
1111

@@ -675,8 +675,11 @@ Thanks to all our contributors, sponsors and backers! Keep on the lookout for a
675675
## :boom: Breaking Changes
676676

677677
- :warning: Due to the increasing difficulty of applying security patches made within its dependency tree, as well as looming incompatibilities with Node.js v7.0, **Mocha no longer supports Node.js v0.8**.
678+
678679
- :warning: **Mocha may no longer be installed by versions of `npm` less than `1.4.0`.** Previously, this requirement only affected Mocha's development dependencies. In short, this allows Mocha to depend on packages which have dependencies fixed to major versions (`^`).
680+
679681
- `.only()` is no longer "fuzzy", can be used multiple times, and generally just works like you think it should. :joy:
682+
680683
- To avoid common bugs, when a test injects a callback function (suggesting asynchronous execution), calls it, _and_ returns a `Promise`, Mocha will now throw an exception:
681684

682685
\```js
@@ -694,9 +697,13 @@ Thanks to all our contributors, sponsors and backers! Keep on the lookout for a
694697
The above test will fail with `Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.`.
695698

696699
- When a test timeout value _greater than_ `2147483648` is specified in any context (`--timeout`, `mocha.setup()`, per-suite, per-test, etc.), the timeout will be _disabled_ and the test(s) will be allowed to run indefinitely. This is equivalent to specifying a timeout value of `0`. See [MDN](https://developer.mozilla.org/docs/Web/API/WindowTimers/setTimeout#Maximum_delay_value) for reasoning.
700+
697701
- The `dot` reporter now uses more visually distinctive characters when indicating "pending" and "failed" tests.
702+
698703
- Mocha no longer supports [component](https://www.npmjs.com/package/component).
704+
699705
- The long-forsaken `HTMLCov` and `JSONCov` reporters--and any relationship to the "node-jscoverage" project--have been removed.
706+
700707
- `spec` reporter now omits leading carriage returns (`\r`) in non-TTY environment.
701708

702709
## :tada: Enhancements

‎package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mocha",
3-
"version": "6.0.1",
3+
"version": "6.0.2",
44
"description": "simple, flexible, fun test framework",
55
"keywords": [
66
"mocha",

0 commit comments

Comments
 (0)