All Versions
56
Latest Version
Avg Release Cycle
35 days
Latest Release
563 days ago

Changelog History
Page 3

  • v8.1.3 Changes

    August 28, 2020

    8.1.3 / 2020-08-28

    ๐Ÿฑ ๐Ÿ› Fixes

    • ๐Ÿ—„ #4425: Restore Mocha.utils.lookupFiles() and Webpack compatibility (both broken since v8.1.0); Mocha.utils.lookupFiles() is now deprecated and will be removed in the next major revision of Mocha; use require('mocha/lib/cli').lookupFiles instead (@boneskull)
  • v8.1.2 Changes

    August 25, 2020

    8.1.2 / 2020-08-25

    ๐Ÿฑ ๐Ÿ› Fixes

    ๐Ÿ”’ ๐Ÿ”’ Security Fixes

    ๐Ÿ“š ๐Ÿ“– Documentation

  • v8.1.1 Changes

    August 04, 2020

    8.1.1 / 2020-08-04

    ๐Ÿฑ ๐Ÿ› Fixes

    • #4394: Fix regression wherein certain reporters did not correctly detect terminal width (@boneskull)
  • v8.1.0 Changes

    July 30, 2020

    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.

    ๐Ÿฑ ๐ŸŽ‰ Enhancements

    • #4287: Use background colors with inline diffs for better visual distinction (@michael-brade)

    ๐Ÿฑ ๐Ÿ› Fixes

    ๐Ÿ”’ ๐Ÿ”’ Security Fixes

    ๐Ÿ“š ๐Ÿ“– Documentation & Website

    ๐Ÿ”ฉ Other

    • #4293: Use Rollup and Babel in build pipeline; add source map to published files (@Munter)
  • v8.0.1 Changes

    June 10, 2020

    8.0.1 / 2020-06-10

    The obligatory patch after a major.

    ๐Ÿฑ ๐Ÿ› Fixes

  • v8.0.0 Changes

    June 10, 2020

    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!

    ๐Ÿฑ ๐Ÿ’ฅ Breaking Changes

    #4164: Mocha v8.0.0 now requires Node.js v10.0.0 or newer. Mocha no longer supports the Node.js v8.x line ("Carbon"), which entered End-of-Life at the end of 2019 (@UlisesGascon)

    ๐Ÿ‘ #4175: Having been deprecated with a warning since v7.0.0, mocha.opts is no longer supported (@juergba)

    โ†ช โœจ WORKAROUND: Replace mocha.opts with a configuration file.

    #4260: Remove enableTimeout() (this.enableTimeout()) from the context object (@craigtaub)

    โ†ช โœจ WORKAROUND: Replace usage of this.enableTimeout(false) in your tests with this.timeout(0).

    #4315: The spec option no longer supports a comma-delimited list of files (@juergba)

    โ†ช โœจ WORKAROUND : Use an array instead (e.g., "spec": "foo.js,bar.js" becomes "spec": ["foo.js", "bar.js"]).

    #4309: Drop support for Node.js v13.x line, which is now End-of-Life (@juergba)

    #4282: --forbid-only will throw an error even if exclusive tests are avoided via --grep or other means (@arvidOtt)

    #4223: The context object's skip() (this.skip()) in a "before all" (before()) hook will no longer execute subsequent sibling hooks, in addition to hooks in child suites (@juergba)

    #4178: Remove previously soft-deprecated APIs (@wnghdcjfe):

    • Mocha.prototype.ignoreLeaks()
    • Mocha.prototype.useColors()
    • Mocha.prototype.useInlineDiffs()
    • Mocha.prototype.hideDiff()

    ๐Ÿฑ ๐ŸŽ‰ Enhancements

    #4245: Add ability to run tests in parallel for Node.js (see docs) (@boneskull)

    ๐Ÿ”Œ โ— See also #4244; Root Hook Plugins (docs) -- root hooks must be defined via Root Hook Plugins to work in parallel mode

    #4304: --require now works with ES modules (@JacobLey)

    ๐Ÿ‘‰ #4299: In some circumstances, Mocha can run ES modules under Node.js v10 -- use at your own risk! (@giltayar)

    ๐Ÿ“š ๐Ÿ“– Documentation

    • #4246: Add documentation for parallel mode and Root Hook plugins (@boneskull)

    ๐Ÿฑ ๐Ÿ› Fixes

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

  • v7.2.0 Changes

    May 22, 2020

    7.2.0 / 2020-05-22

    ๐Ÿฑ ๐ŸŽ‰ Enhancements

    ๐Ÿฑ ๐Ÿ› Fixes

    ๐Ÿ“š ๐Ÿ“– Documentation

    ๐Ÿ”ฉ Other

  • v7.1.2 Changes

    April 26, 2020

    7.1.2 / 2020-04-26

    ๐Ÿ”ฉ Other

    ๐Ÿ“š ๐Ÿ“– Documentation

  • v7.1.1 Changes

    March 18, 2020

    7.1.1 / 2020-03-18

    ๐Ÿ”’ ๐Ÿ”’ Security Fixes

    • #4204: Update dependencies mkdirp, yargs-parser and yargs (@juergba)

    ๐Ÿฑ ๐Ÿ› Fixes

    ๐Ÿ“š ๐Ÿ“– Documentation

  • v7.1.0 Changes

    February 26, 2020

    7.1.0 / 2020-02-26

    ๐Ÿฑ ๐ŸŽ‰ Enhancements

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

    โœ… Mocha supports writing your test files as ES modules:

    • Node.js only v12.11.0 and above
    • Node.js below v13.2.0, you must set --experimental-modules option
    • ๐Ÿ“š current limitations: please check our documentation
    • ๐Ÿ‘€ for programmatic usage: see API: loadFilesAsync()

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

    ๐Ÿฑ ๐Ÿ› Fixes

    ๐Ÿ“š ๐Ÿ“– Documentation

    ๐Ÿ”ฉ Other