Packages

mocha

12.0.3 · 1 Oct 2026MIT14.6M / weekRepositoryHomepagenpmAtom feed

Upgrading mocha From 8.0.1 to 8.4.0

10 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 8.0.1Latest12.0.3
  1. 8.0.1yours
  2. 8.1.0security
  3. 1 release
  4. 8.1.2security
  5. 6 releases
  6. 8.4.0target
0
changes to make
0
advisories fixed
18
new
19
fixes

Security

Release by release

  1. 8.4.0

    7 May 20212 new · 1 fix
    • New

      CLI file parsing errors now have error codes (@evaline-ju)

    • New

      Add options.require to Mocha constructor for root hook plugins on parallel runs (@juergba)

    • Fixed

      Watch: Fix crash when reloading files (@outsideris)

  2. 8.3.2

    12 Mar 20211 new · 1 fix
  3. 8.3.1

    6 Mar 20212 fixes
    • Fixed

      Browser: Fix EvalError caused by regenerator-runtime (@snoack)

    • Fixed

      ESM: Allow import from mocha in parallel mode (@nicojs)

  4. 8.3.0

    11 Feb 20216 new · 1 fix
    • New

      Add error code for test timeout errors (@boneskull)

    • New

      Add BigInt support to stringify util function (@JosejeSinohui)

    • New

      Add file location when SyntaxError happens in ESM (@giltayar)

    • New

      Add support for typescript-style docstrings (@boneskull)

    • New

      Add GH Actions workflow status badge (@outsideris)

    • New

      Add example of generating tests dynamically with a closure (@maxwellgerber)

    • Fixed

      Fix require error when bundling Mocha with Webpack (@devhazem)

  5. 8.2.1

    2 Nov 20202 fixes
    • Fixed

      Fix problematic handling of otherwise-unhandled Promise rejections and erroneous "done() called twice" errors (@boneskull)

    • Fixed

      Avoid MaxListenersExceededWarning in watch mode (@boneskull)

  6. 8.2.0

    16 Oct 20208 new · 3 fixes
  7. 8.1.3

    28 Aug 20201 fix
    • Fixed

      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)

  8. 8.1.2

    Security fix25 Aug 20202 fixes
    • Security

      Update many dependencies (@GChuf)

    • Fixed

      Fix command-line flag incompatibility in forthcoming Node.js v14.9.0 (@boneskull)

    • Fixed

      Fix missing global variable in browser (@irrationnelle)

10 other lines we could not sort, mostly version bumps
  • Dynamically generating tests with top-level await and ESM test files (@juergba)

    8.4.0
  • Update default file extensions (@outsideris)

    8.4.0
  • Filter active sponsors/backers (@juergba)

    8.3.2
  • Update config file examples (@pkuczynski)

    8.3.2
  • Upgrade all dependencies to latest stable (@AviVahl)

    8.3.0
  • Various fixes by @sujin-park, @wwhurin & @Donghoon759

    8.1.2
  • Document how to use --enable-source-maps with Mocha (@bcoe)

    8.1.0
  • Clean up some API docs (@craigtaub)

    8.1.0
  • Sponsor images are now self-hosted (@Munter)

    8.1.0
  • Use Rollup and Babel in build pipeline; add source map to published files (@Munter)

    8.1.0

1 internal line (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.