Packages

chai

6.3.0 · 30 Sep 2026MIT222.3M / weekRepositoryHomepagenpmAtom feed

Your version

3.2.0

19 Jul 2015Where it was published

3.5.0 is the newest release of 3.x.

In short

4 new1 fixed10 changed1 internal

Release note

This release fixes a bug with the previous additions in 3.1.0. assert.frozen/expect().to.be.frozen/.should.be.frozen all accidentally called Object.isSealed() instead. Now they correctly call Object.isFrozen().

If you're using these features, please upgrade immediately.

It also adds aliases for a lot of assert methods:

  • expect/should..respondTo: respondsTo

  • expect/should..satisfy: satisfies

  • assert.ok: Assert.isOk

  • assert.notOk: Assert.isNotOk

  • assert.extensible: Assert.isExtensible

  • assert.notExtensible: Assert.isNotExtensible

  • assert.sealed: Assert.isSealed

  • assert.notSealed: Assert.isNotSealed

  • assert.frozen: Assert.isFrozen

  • assert.notFrozen: Assert.isNotFrozen

Community Contributions

Code Features & Fixes

  • Re-encrypt travis API key

  • Add respondsTo and satisfies as aliases

  • Added links to contribution guidelines to README

  • Various work on aliases

  • Fix wrong call to the underlying method when checking if an object is frozen

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.