chai breaking changes
Updated December 4, 2026
On this page
Latest version 6.3.0, released September 30, 2026. Source repository
Its 5.0.0-alpha.0 release requires Node.js 16 or later. Node.js end of life dates.
- From 5.2.0 to 6.0.0: 1 breaking change in 1 version.
- From 4.0.0 to 6.0.0: 14 breaking changes in 4 versions.
chai 6.0.0 breaking changes
- Removed
lib.*.js
Chai is now bundled into a single file, so the lib/*.js files are gone. Code importing them directly must import ./index.js instead. github.com
chai 5.2.0 breaking changes
- Removed
The release drops the old CommonJS entrypoints. Code that loads chai through those legacy entrypoints must switch to the remaining supported entrypoint. github.com
chai 5.0.0 breaking changes
- Removed
Node.js versions older than 18 are no longer supported. github.com - Removed
Internet Explorer is no longer supported, and older Firefox, Safari, Chrome and Edge versions are best effort only. github.com - Removed
Code using require('chai') will fail in Node.js. Switch to ESM import statements or dynamic import(). github.com - Removed
"chai"
"chai" was removed in chai 5.0.0 npmjs.com - Removed
chai
chai was removed in chai 5.0.0 npmjs.com - Removed
Chai
Chai was removed in chai 5.0.0 npmjs.com - Removed
Object
Object was removed in chai 5.0.0 npmjs.com
chai 5.0.0-alpha.0 breaking changes
- Removed
Node.js 4 to 15 are no longer supported; stay on Chai 4 for those versions. github.com - Removed
Chai 5 is ESM-only, so CommonJS environments must stay on Chai 4 or switch to ESM imports. github.com - Removed
EdgeHTML and Chrome versions below 108 are no longer supported; stay on Chai 4 to test them. github.com - Removed
Older Safari, Firefox and Chrome versions are no longer supported; stay on Chai 4 for them. github.com - Removed
Internet Explorer 10 and 11 are no longer supported; stay on Chai 4 to test them. github.com
chai 4.0.0 breaking changes
- Removed
Chai 4 no longer supports Node 0.10 and 0.12, whose LTS has ended. github.com - Removed
chai.utils.getPathValue
The utils argument passed to chai.use no longer exports getPathValue; use the pathval module instead. github.com - Renamed
assert.deepPropertyNotVal
Use notDeepPropertyVal instead of deepPropertyNotVal. github.com - Renamed
assert.propertyNotVal
Use notPropertyVal instead of propertyNotVal. github.com - Behavior changed
expect.change
These assertions are now method assertions with no chaining; code chaining off them will break. github.com - Behavior changed
expect.empty
empty now throws TypeError for non-string primitives and functions. github.com - Behavior changed
expect.equal
Large typed arrays are truncated in assertion messages based on the truncateThreshold config. github.com - Behavior changed
expect.include
include now always uses strict equality unless deep is used; add deep for deep equality checks. github.com - Behavior changed
expect.NaN
NaN assertion now checks only for NaN and nothing else, removing former false positives. github.com - Behavior changed
expect.ownProperty
After ownProperty or own.property the assertion subject changes to the property value, so chained assertions act on the value. github.com
And 10 more in this version. Sign up to see every change
chai 4.0.0-canary.2 breaking changes
- Removed
Chai 4 requires Node 4.0 or later. Stay on chai 3.5.0 if you must run older Node versions. github.com - Behavior changed
keys
Using .not.keys without a qualifier now means .not.all.keys. Review negated keys assertions that lacked a qualifier. github.com
Older versions
1 older version, each with its first changes. Sign up to see every change
Show 1 older version
chai 4.0.0-canary.1 breaking changes
- Removed
getPathValue
The utils argument passed to chai.use no longer includes getPathValue. Use the pathval module instead. github.com - Renamed
assert.deepPropertyNotVal
assert.deepPropertyNotVal was renamed to assert.notDeepPropertyVal. Update calls to the new name. github.com
And 17 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.