chai
6.3.0 · 30 Sep 2026MIT222.3M / weekRepositoryHomepagenpmAtom feed
4.5.0 is the newest release of 4.x.
In short
3 new9 internal
Release note
This is a minor release.
Not many changes have got in since the last release but this one contains a very important change (#1257) which will allow jest users to get better diffs. From this release onwards, jest users will be able to see which operator was used in their diffs. The operator is a property of the AssertionError thrown when assertions fail. This flag indicates what kind of comparison was made.
This is also an important change for plugin maintainers. Plugin maintainers will now have access to the operator flag, which they can have access to through an utilmethod calledgetOperator`.
Thanks to all the amazing people that contributed to this release.
New Features
Allow
contain.oneOfto take an array of possible valuesAdding operator attribute to assertion error
The
closeToerror message will now inform the user when adeltais required
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.