---
title: "chai 6.0.0 Breaking Changes on npm | Since.dev"
description: "What each chai release removed, renamed or changed: 55 breaking changes in 7 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/chai
last_updated: 2026-12-04
---

# chai breaking changes

chai 6.0.0 (August 22, 2025) is its newest release with breaking changes. The first: Removed lib.\*.js. Every breaking API change we have recorded in chai on npm: 55 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `6.3.0`, released September 30, 2026. [Source repository](https://github.com/chaijs/chai)

Its 5.0.0-alpha.0 release requires [Node.js 16](https://since.dev/calendar/nodejs/16.md) or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [5.2.0](#v-5-2-0) to [6.0.0](#v-6-0-0): 1 breaking change in 1 version.
- From [4.0.0](#v-4-0-0) to [6.0.0](#v-6-0-0): 14 breaking changes in 4 versions.

## chai 6.0.0 breaking changes

chai 6.0.0, released August 22, 2025: 1 breaking change.

- **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](https://github.com/chaijs/chai/releases/tag/v6.0.0)

## chai 5.2.0 breaking changes

chai 5.2.0, released February 14, 2025: 1 breaking change.

- **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](https://github.com/chaijs/chai/releases/tag/v5.2.0)

## chai 5.0.0 breaking changes

chai 5.0.0, released December 28, 2023: 7 breaking changes.

- **Removed**  

Node.js versions older than 18 are no longer supported. [github.com](https://github.com/chaijs/chai/releases/tag/v5.0.0)
- **Removed**  

Internet Explorer is no longer supported, and older Firefox, Safari, Chrome and Edge versions are best effort only. [github.com](https://github.com/chaijs/chai/releases/tag/v5.0.0)
- **Removed**  

Code using require('chai') will fail in Node.js. Switch to ESM import statements or dynamic import(). [github.com](https://github.com/chaijs/chai/releases/tag/v5.0.0)
- **Removed** `"chai"`  

"chai" was removed in chai 5.0.0 [npmjs.com](https://www.npmjs.com/package/chai/v/5.0.0)
- **Removed** `chai`  

chai was removed in chai 5.0.0 [npmjs.com](https://www.npmjs.com/package/chai/v/5.0.0)
- **Removed** `Chai`  

Chai was removed in chai 5.0.0 [npmjs.com](https://www.npmjs.com/package/chai/v/5.0.0)
- **Removed** `Object`  

Object was removed in chai 5.0.0 [npmjs.com](https://www.npmjs.com/package/chai/v/5.0.0)

## chai 5.0.0-alpha.0 breaking changes

chai 5.0.0-alpha.0, released December 28, 2023: 5 breaking changes.

- **Removed**  

Node.js 4 to 15 are no longer supported; stay on Chai 4 for those versions. [github.com](https://github.com/chaijs/chai/releases/tag/v5.0.0-alpha.0)
- **Removed**  

Chai 5 is ESM-only, so CommonJS environments must stay on Chai 4 or switch to ESM imports. [github.com](https://github.com/chaijs/chai/releases/tag/v5.0.0-alpha.0)
- **Removed**  

EdgeHTML and Chrome versions below 108 are no longer supported; stay on Chai 4 to test them. [github.com](https://github.com/chaijs/chai/releases/tag/v5.0.0-alpha.0)
- **Removed**  

Older Safari, Firefox and Chrome versions are no longer supported; stay on Chai 4 for them. [github.com](https://github.com/chaijs/chai/releases/tag/v5.0.0-alpha.0)
- **Removed**  

Internet Explorer 10 and 11 are no longer supported; stay on Chai 4 to test them. [github.com](https://github.com/chaijs/chai/releases/tag/v5.0.0-alpha.0)

## chai 4.0.0 breaking changes

chai 4.0.0, released May 26, 2017: 20 breaking changes.

- **Removed**  

Chai 4 no longer supports Node 0.10 and 0.12, whose LTS has ended. [github.com](https://github.com/chaijs/chai/releases/tag/4.0.0)
- **Removed** `chai.utils.getPathValue`  

The utils argument passed to chai.use no longer exports getPathValue; use the pathval module instead. [github.com](https://github.com/chaijs/chai/releases/tag/4.0.0)
- **Renamed** `assert.deepPropertyNotVal`  

Use notDeepPropertyVal instead of deepPropertyNotVal. [github.com](https://github.com/chaijs/chai/releases/tag/4.0.0)
- **Renamed** `assert.propertyNotVal`  

Use notPropertyVal instead of propertyNotVal. [github.com](https://github.com/chaijs/chai/releases/tag/4.0.0)
- **Behavior changed** `expect.change`  

These assertions are now method assertions with no chaining; code chaining off them will break. [github.com](https://github.com/chaijs/chai/releases/tag/4.0.0)
- **Behavior changed** `expect.empty`  

empty now throws TypeError for non-string primitives and functions. [github.com](https://github.com/chaijs/chai/releases/tag/4.0.0)
- **Behavior changed** `expect.equal`  

Large typed arrays are truncated in assertion messages based on the truncateThreshold config. [github.com](https://github.com/chaijs/chai/releases/tag/4.0.0)
- **Behavior changed** `expect.include`  

include now always uses strict equality unless deep is used; add deep for deep equality checks. [github.com](https://github.com/chaijs/chai/releases/tag/4.0.0)
- **Behavior changed** `expect.NaN`  

NaN assertion now checks only for NaN and nothing else, removing former false positives. [github.com](https://github.com/chaijs/chai/releases/tag/4.0.0)
- **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](https://github.com/chaijs/chai/releases/tag/4.0.0)

And 10 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## chai 4.0.0-canary.2 breaking changes

chai 4.0.0-canary.2, released May 26, 2017: 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](https://github.com/chaijs/chai/releases/tag/4.0.0-canary.2)
- **Behavior changed** `keys`  

Using .not.keys without a qualifier now means .not.all.keys. Review negated keys assertions that lacked a qualifier. [github.com](https://github.com/chaijs/chai/releases/tag/4.0.0-canary.2)

## Older versions

1 older version, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### chai 4.0.0-canary.1 breaking changes

chai 4.0.0-canary.1, released May 26, 2017: 19 breaking changes.

- **Removed** `getPathValue`  

The utils argument passed to chai.use no longer includes getPathValue. Use the pathval module instead. [github.com](https://github.com/chaijs/chai/releases/tag/4.0.0-canary.1)
- **Renamed** `assert.deepPropertyNotVal`  

assert.deepPropertyNotVal was renamed to assert.notDeepPropertyVal. Update calls to the new name. [github.com](https://github.com/chaijs/chai/releases/tag/4.0.0-canary.1)

And 17 more in this version.

## Related packages

- [chai-as-promised](https://since.dev/packages/npm/chai-as-promised.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
