Packages

mocha

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

Upgrading mocha From 3.1.2 to 12.0.3

101 releases in betweennotes for 89

Reading releases, release notes and advisories…

Other targets from 3.1.2Newest 3.x3.5.3
  1. 3.1.2yours
  2. 5 releases
  3. 3.5.0security
  4. 3 releases
  5. 4.0.0major
  6. 2 releases
  7. 5.0.0major
  8. 2 releases
  9. 5.0.3security
  10. 5 releases
  11. 6.0.0security
  12. 2 releases
  13. 6.1.0security
  14. 8 releases
  15. 7.0.0major
  16. 5 releases
  17. 8.0.0major
  18. 1 release
  19. 8.1.0security
  20. 1 release
  21. 8.1.2security
  22. 7 releases
  23. 9.0.0major
  24. 11 releases
  25. 10.0.0major
  26. 2 releases
  27. 10.3.0security
  28. 11 releases
  29. 11.0.0major
  30. 18 releases
  31. 12.0.0major
  32. 2 releases
  33. 12.0.3target
  34. 29 pre
63+
changes to make
0
advisories fixed
111+
new
157+
fixes

Counted from 89 of 101 release notes, and the breaking changes of 6 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

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

    21 May 20261 fix
    • Fixed

      Make describe().timeout() work

  7. 11.7.5

    5 Nov 20251 fix
    • Fixed

      Swallow more require errors from *ts files

  8. 11.7.4

    1 Oct 20251 fix
    • Fixed

      Watch mode using chokidar v4

130 other lines we could not sort, mostly version bumps
  • deps: bump actions/setup-node in the github-actions group

    11.7.3
  • deps: bump actions/checkout in the github-actions group

    11.7.2
  • deps: bump the github-actions group with 1 update

    10.8.2
  • 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

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