Packages

mocha

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

Upgrading mocha From 2.2.4 to 12.0.3

122 releases in betweennotes for 70

Reading releases, release notes and advisories…

Other targets from 2.2.4Newest 2.x2.5.3
3.0.0 has no release note on GitHub or in the repository's changelog, so its breaking changes are missing from the counts below.
  1. 2.2.4yours
  2. 15 releases
  3. 3.0.0major
  4. 10 releases
  5. 3.5.0security
  6. 3 releases
  7. 4.0.0major
  8. 2 releases
  9. 5.0.0major
  10. 2 releases
  11. 5.0.3security
  12. 5 releases
  13. 6.0.0security
  14. 11 releases
  15. 7.0.0major
  16. 5 releases
  17. 8.0.0major
  18. 3 releases
  19. 8.1.2security
  20. 7 releases
  21. 9.0.0major
  22. 11 releases
  23. 10.0.0major
  24. 2 releases
  25. 10.3.0security
  26. 11 releases
  27. 11.0.0major
  28. 18 releases
  29. 12.0.0major
  30. 2 releases
  31. 12.0.3target
  32. 32 pre
60+
changes to make
0
advisories fixed
85+
new
111+
fixes

Counted from 70 of 122 release notes, and the breaking changes of 4 pre-releases on the way to a major. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking11.0.0
  • Breaking10.0.0
  • Breaking10.0.0
  • Breaking10.0.0
  • Breaking10.0.0
  • Breaking10.0.0
  • Breaking10.0.0
  • Breaking10.0.0
  • Breaking9.0.0
  • Breaking9.0.0

Security

  • Fix #4837 Update glob due to vulnerability in dep

    10.3.0
  • Update many dependencies (@GChuf)

    8.1.2
  • Avoid potential ReDoS when diffing large objects (@cyjake)

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

    5.0.3
  • Bump diff to v3.5.0 ([@anishkny])

    5.0.3
  • Address CVE-2015-8315 via upgrade of debug ([@boneskull])

    3.5.0

Release by release

  1. 12.0.3

    1 Oct 20263 fixes
    • Fixed

      Keep watching when the last test file is removed

    • Fixed

      Show require() error on unsupported directory import

    • Fixed

      Support --X one-char aliases

  2. 12.0.2

    17 Sep 20265 fixes
    • Fixed

      Fail nested tests on beforeEach failure

    • Fixed

      Give CLI reporter-option precedence over config file

    • Fixed

      Propagate spec file path on parallel worker death

    • Fixed

      Use find-up-simple to workaround ERR_PACKAGE_PATH_NOT_EXPORTED

    • Fixed

      Watch existing dirs so first run starts armed

  3. 12.0.1

    11 Sep 20264 fixes
    • Fixed

      Bump serialize-javascript to ^7.1.1

    • Fixed

      Keep unknown config values from becoming test specs

    • Fixed

      Only reject positional args that are entirely numeric

    • Fixed

      reporter: split err.stack at trailing frame block so embedded stacks render once

  4. 12.0.0

    31 Aug 20262 fixes
    • Fixed

      Fixup parsing negative numbers and quoted strings

    • Fixed

      Preserve FIFO descriptors when respawning

  5. 11.8.0

    2 Aug 20261 new
    • New

      Add --fail-hook-affected-tests option to report skipped tests as failed

  6. 11.7.1 – 11.7.66 releases, no release note

  7. 11.7.0

    18 Jun 20251 new
    • New

      Use require to load esm

  8. 11.6.0

    9 Jun 20251 new
    • New

      Bump workerpool from ^6.5.1 to ^9.2.0

94 other lines we could not sort, mostly version bumps
  • Update can-i-use

    10.3.0
  • Remove duplicated header (@PauloGoncalvesBH)

    10.2.0
  • Browser: Increase contrast for replay buttons (@JoshuaKGoldberg)

    10.1.0
  • Use standard Promise.allSettled instead of polyfill (@outsideris)

    10.1.0
  • Upgrade official GitHub actions to latest (@ddzz)

    10.1.0
  • Update production dependencies (@juergba)

    10.0.0
  • Replace deprecated String.prototype.substr() (@CommanderRoot)

    10.0.0
  • Revert deprecation of EVENT_SUITE_ADD_* events (@beatfactor)

    9.1.3
  • Remove dependency wide-align (@juergba)

    9.1.2
  • ESM: Remove code for Node versions <10 (@juergba)

    9.1.2

152 internal lines (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.