Packages

chai

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

Your version

2.0.0

major11 Feb 2015Where it was published

2.3.0 is the newest release of 2.x.

In short

12 new2 fixed1 internal

Release note

Unfortunately with 1.10.0 - compatibility broke with older versions because of
the addChainableNoop. This change has been reverted.

Any plugins using addChainableNoop should cease to do so.

Any developers wishing for this behaviour can use dirty-chai
by @joshperry

Community Contributions

Code Features & Fixes

  • .keys() now accepts Objects, extracting keys from them.

  • .keys() no longer mutates passed arrays.

  • Add a new chainable keyword - .which.

  • Add .change, .increase and .decrease assertions.

  • chai.util is now exposed @DingoEatingFuzz

  • Add .includes and .contains aliases (for .include and .contain).

  • Add .any.keys() and .all.keys() qualifiers.

  • Add assert.sameDeepMembers().

  • Add assert.isAbove() and assert.isBelow().

  • property and deep.property now pass if a value is set to undefined.

  • Optimize deep equal in Arrays.

  • Revert #297 - allowing lint-friendly tests.

Documentation fixes

  • Copyright year updated in docs.

  • Fix documentation for overwriteChainableMethod.

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.