chai
6.3.0 · 30 Sep 2026MIT222.3M / weekRepositoryHomepagenpmAtom feed
5.3.3 is the newest release of 5.x.
In short
4 breaking
- Breaking
Chai now only supports EcmaScript Modules (ESM). This means your tests will need to either have
import {...} from 'chai'orimport('chai').require('chai')will cause failures in nodejs. If you're using ESM and seeing failures, it may be due to a bundler or transpiler which is incorrectly converting import statements into require calls. - Breaking
Dropped support for Internet Explorer.
- Breaking
Dropped support for NodeJS < 18.
- Breaking
Minimum supported browsers are now Firefox 100, Safari 14.1, Chrome 100, Edge 100. Support for browsers prior to these versions is "best effort" (bug reports on older browsers will be assessed individually and may be marked as wontfix).
Release note
Breaking changes
- Breaking
Chai now only supports EcmaScript Modules (ESM). This means your tests will need to either have
import {...} from 'chai'orimport('chai').require('chai')will cause failures in nodejs. If you're using ESM and seeing failures, it may be due to a bundler or transpiler which is incorrectly converting import statements into require calls. - Breaking
Dropped support for Internet Explorer.
- Breaking
Dropped support for NodeJS < 18.
- Breaking
Minimum supported browsers are now Firefox 100, Safari 14.1, Chrome 100, Edge 100. Support for browsers prior to these versions is "best effort" (bug reports on older browsers will be assessed individually and may be marked as wontfix).
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.