node_modules/mocha/CHANGELOG.md

9.0.3 / 2021-07-25

:bug: Fixes

9.0.2 / 2021-07-03

:bug: Fixes

:nut_and_bolt: Other

9.0.1 / 2021-06-18

:nut_and_bolt: Other

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.

9.0.0 / 2021-06-07

:boom: Breaking Changes

Mocha is going ESM-first! This means that it will now use ESM import(test_file) to load the test files, instead of the CommonJS require(test_file). This is not a problem, as import can also load most files that require does. In the rare cases where this fails, it will fallback to require(...). This ESM-first approach is the next step in Mocha's ESM migration, and allows ESM loaders to load and transform the test file.

:tada: Enhancements

:bug: Fixes

:nut_and_bolt: Other

8.4.0 / 2021-05-07

:tada: Enhancements

:bug: Fixes

:book: Documentation

Also thanks to @outsideris for various improvements on our GH actions workflows.

8.3.2 / 2021-03-12

:bug: Fixes

:book: Documentation

8.3.1 / 2021-03-06

:bug: Fixes

8.3.0 / 2021-02-11

:tada: Enhancements

:bug: Fixes

:book: Documentation

:nut_and_bolt: Other

Also thanks to @outsideris and @HyunSangHan for various fixes to our website and documentation.

8.2.1 / 2020-11-02

Fixed stuff.

:bug: Fixes

Also thanks to @akeating for a documentation fix!

8.2.0 / 2020-10-16

The major feature added in v8.2.0 is addition of support for 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.

With 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:

// fixtures.js

// can be async or not
exports.mochaGlobalSetup = async function() {
  this.server = await startSomeServer({port: process.env.TEST_PORT});
  console.log(`server running on port ${this.server.port}`);
};

exports.mochaGlobalTeardown = async function() {
  // the context (`this`) is shared, but not with the test files
  await this.server.stop();
  console.log(`server on port ${this.server.port} stopped`);
};

// this file can contain root hook plugins as well!
// exports.mochaHooks = { ... }

Fixtures are loaded with --require, e.g., mocha --require fixtures.js.

For detailed information, please see the documentation and this handy-dandy flowchart to help understand the differences between hooks, root hook plugins, and global fixtures (and when you should use each).

:tada: Enhancements

For implementors of custom reporters:

:bug: Fixes

Thanks to @AviVahl, @donghoon-song, @ValeriaVG, @znarf, @sujin-park, and @majecty for other helpful contributions!

8.1.3 / 2020-08-28

:bug: Fixes

8.1.2 / 2020-08-25

:bug: Fixes

:lock: Security Fixes

:book: Documentation

8.1.1 / 2020-08-04

:bug: Fixes

8.1.0 / 2020-07-30

In 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.

This release does not drop support for IE11.

Other community contributions came from @Devjeel, @Harsha509 and @sharath2106. Thank you to everyone who contributed to this release!

Do you read Korean? See this guide to running parallel tests in Mocha, translated by our maintainer, @outsideris.

:tada: Enhancements

:bug: Fixes

:lock: Security Fixes

:book: Documentation & Website

:nut_and_bolt: Other

8.0.1 / 2020-06-10

The obligatory patch after a major.

:bug: Fixes

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.

Let's welcome @giltayar and @nicojs to the maintenance team!

:boom: Breaking Changes

:sparkles: WORKAROUND: Replace mocha.opts with a configuration file.

:sparkles: WORKAROUND: Replace usage of this.enableTimeout(false) in your tests with this.timeout(0).

:sparkles: WORKAROUND: Use an array instead (e.g., "spec": "foo.js,bar.js" becomes "spec": ["foo.js", "bar.js"]).

:tada: Enhancements

:exclamation: See also #4244; Root Hook Plugins (docs) -- root hooks must be defined via Root Hook Plugins to work in parallel mode

:book: Documentation

:nut_and_bolt: Other

:bug: Fixes

(All bug fixes in Mocha v8.0.0 are also breaking changes, and are listed above)

7.2.0 / 2020-05-22

:tada: Enhancements

:bug: Fixes

:book: Documentation

:nut_and_bolt: Other

7.1.2 / 2020-04-26

:nut_and_bolt: Other

:book: Documentation

7.1.1 / 2020-03-18

:lock: Security Fixes

:bug: Fixes

:book: Documentation

7.1.0 / 2020-02-26

:tada: Enhancements

#4038: Add Node.js native ESM support (@giltayar)

Mocha supports writing your test files as ES modules:

Note: Node.JS native ECMAScript Modules implementation has status: Stability: 1 - Experimental

:bug: Fixes

:book: Documentation

:nut_and_bolt: Other

7.0.1 / 2020-01-25

:bug: Fixes

:book: Documentation

:nut_and_bolt: Other

7.0.0 / 2020-01-05

:boom: Breaking Changes

:tada: Enhancements

: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:

:bug: Fixes

:mag: Coverage

:book: Documentation

:nut_and_bolt: Other

6.2.3 / 2020-03-25

:lock: Security Fixes

6.2.2 / 2019-10-18

:bug: Fixes

:book: Documentation

6.2.1 / 2019-09-29

:bug: Fixes

:book: Documentation

6.2.0 / 2019-07-18

:tada: Enhancements

:bug: Fixes

:book: Documentation

:mag: Coverage

:nut_and_bolt: Other

6.1.4 / 2019-04-18

:lock: Security Fixes

6.1.3 / 2019-04-11

:bug: Fixes

6.1.2 / 2019-04-08

:bug: Fixes

6.1.1 / 2019-04-07

:bug: Fixes

6.1.0 / 2019-04-07

:lock: Security Fixes

:tada: Enhancements

: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:

:bug: Fixes

and some regressions:

:book: Documentation

:nut_and_bolt: Other

6.0.2 / 2019-02-25

:bug: Fixes

Two more regressions fixed:

6.0.1 / 2019-02-21

The obligatory round of post-major-release bugfixes.

:bug: Fixes

These issues were regressions.

:book: Documentation

6.0.0 / 2019-02-18

:tada: Enhancements

:bug: Fixes

:book: Documentation

:nut_and_bolt: Other

6.0.0-1 / 2019-01-02

:bug: Fixes

6.0.0-0 / 2019-01-01

Documentation for this release can be found at next.mochajs.org!

Welcome @plroebuck, @craigtaub, & @markowsiak to the team!

:boom: Breaking Changes

: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:

Regarding the Mocha class constructor (from lib/mocha):

All of the above deprecations were introduced by #3556.

mocha.opts is now considered "legacy"; please prefer RC file or package.json over mocha.opts.

:tada: Enhancements

Enhancements introduced in #3556:

:bug: Fixes

:book: Documentation

:nut_and_bolt: Other

5.2.0 / 2018-05-18

:tada: Enhancements

:bug: Fixes

:book: Documentation

:nut_and_bolt: Other

5.1.1 / 2018-04-18

:bug: Fixes

5.1.0 / 2018-04-12

:tada: Enhancements

:bug: Fixes

:book: Documentation

:nut_and_bolt: Other

5.0.5 / 2018-03-22

Welcome @outsideris to the team!

:bug: Fixes

:book: Documentation

:nut_and_bolt: Other

5.0.4 / 2018-03-07

:bug: Fixes

5.0.3 / 2018-03-06

This patch features a fix to address a potential "low severity" ReDoS vulnerability in the diff package (a dependency of Mocha).

:lock: Security Fixes

:nut_and_bolt: Other

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!

:bug: Fixes

```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').

:nut_and_bolt: Other

5.0.1 / 2018-02-07

...your garden-variety patch release.

Special thanks to Wallaby.js for their continued support! :heart:

:bug: Fixes

:book: Documentation

:nut_and_bolt: Other

5.0.0 / 2018-01-17

Mocha starts off 2018 right by again dropping support for unmaintained rubbish.

Welcome @vkarpov15 to the team!

:boom: Breaking Changes

:tada: Enhancements

:bug: Fixes

:sunglasses: Developer Experience

:book: Documentation

:nut_and_bolt: Other



ymansiaux/shinyYM documentation built on March 20, 2022, 11:53 p.m.