chai
6.3.0 · 30 Sep 2026MIT222.3M / weekRepositoryHomepagenpmAtom feed
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,.increaseand.decreaseassertions.chai.utilis now exposed @DingoEatingFuzzAdd
.includesand.containsaliases (for.includeand.contain).Add
.any.keys()and.all.keys()qualifiers.Add
assert.sameDeepMembers().Add
assert.isAbove()andassert.isBelow().propertyanddeep.propertynow pass if a value is set toundefined.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.