Packages

chai

6.3.0 · 30 Sep 2026MIT222.3M / weekRepositoryHomepagenpmAtom feed

Upgrading chai From 2.0.0 to 6.3.0

53 releases in betweenevery note read

Other targets from 2.0.0Newest 2.x2.3.0
  1. 2.0.0yours
  2. 5 releases
  3. 3.0.0major
  4. 6 releases
  5. 4.0.0major
  6. 7 releases
  7. 4.3.1security
  8. 7 releases
  9. 4.3.9security
  10. 4 releases
  11. 5.0.0major
  12. 12 releases
  13. 6.0.0major
  14. 5 releases
  15. 6.3.0target

Before you upgrade

Tick each one off as you go
  • Breaking5.2.1
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0

Security

  • This release upgrades dependencies to address CVE-2023-43646 where a large function name can cause "catastrophic backtracking" (aka ReDOS attack) which can cause the test suite to hang.

    4.3.9
  • This fix also ensures pathval is updated to 1.1.1 to fix CVE-2020-7751

    4.3.1

Release by release

  1. 6.3.0

    30 Sep 20261 new · 6 fixes
    • New

      Correct some more types

    • Fixed

      Only consider unique expected keys in keys()

    • Fixed

      Support deep include oneOf assertions

    • Fixed

      Not.deep.oneOf failure message is missing the not

    • Fixed

      Preserve literal template tags in assertion values

    • Fixed

      Correct change JSDoc types & handle 0/empty string

    • Fixed

      Require callable iterators in iterable assertions

  2. 6.2.2

    22 Dec 20251 fix
    • Fixed

      Avoid BigInt literal in closeTo for runtime compat

  3. 6.2.1nothing new or fixed in the note

  4. 6.2.0

    27 Sep 20251 new
    • New

      events: Add addChainableMethod event

  5. 6.1.0

    27 Sep 20251 new
    • New

      Add eventEmitter (#1693) Adds an event emitter for hooking into method/property creation

  6. 6.0.1

    22 Aug 20251 fix
    • Fixed

      Keep function/class names in bundle

  7. 6.0.0

    22 Aug 20251 new
    • New

      Remove unbundled sources

  8. 5.3.3

    22 Aug 20251 fix
    • Fixed

      Keep names in bundle

52 other lines we could not sort, mostly version bumps
  • Drop NODE_AUTH_TOKEN from publish script

    6.3.0
  • Set esbuild target to es2021 to support Safari < 16.4

    6.2.1
  • Update core contributors

    5.3.2
  • Convert Assertion function to a class

    5.2.1
  • More typing

    5.2.1
  • Integrated chai-subset and added assert-based negation to containSubset

    5.2.0
  • Publish npm packages with provenance

    5.1.2
  • Set up ESLint for JSDoc comments

    5.1.1
  • Remove useless guards and add parentheses to constuctors

    5.1.0
  • Cleanup jsdoc comments

    5.1.0

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.