Packages

chai

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

Upgrading chai From 3.1.0 to 3.5.0

5 releases in betweenevery note read

Other targets from 3.1.0Latest6.3.0
0
changes to make
0
advisories fixed
20
new
13
fixes

Release by release

  1. 3.5.0

    28 Jan 20163 new · 4 fixes
    • New

      Add assert.includeDeepMembers().

    • New

      Add Code of Conduct.

    • New

      Add badges for Slack and Gitter.

    • Fixed

      Fix error when using $ signs in messages.

    • Fixed

      Fix non ES5 compliant regexp.

    • Fixed

      (docs) Added JSDocs to 'should' interface.

    • Fixed

      Clarified assert.isObject & assert.isNotObject documentation.

  2. 3.4.1

    7 Nov 20152 fixes
    • Fixed

      Remove incorrect .throws() example.

    • Fixed

      Fix documentation syntax errors.

  3. 3.4.0

    21 Oct 20159 new · 3 fixes
    • New

      New assertion: expect(1).oneOf([1,2,3]) - for asserting that a given value is one of a set.

    • New

      .include() (and variants) will now give better error messages for bad object types. Before expect(undefined).to.include(1) would say "expected undefined to include 1", now says "object tested must be an array, an object, or a string but undefined given"

    • New

      .throw() (and variants) can now better determine the Error types, for example expect(foo).to.throw(node_assert.AssertionError) now works.

    • New

      .closeTo is now aliased as .approximately

  4. 3.3.0

    21 Sep 20154 new · 3 fixes
    • New

      Add assert.isNotTrue and assert.isNotFalse.

    • New

      frozen/extensible/sealed assertions behave the same in ES6 and ES5 environments.

    • New

      Simplify the .empty assertion.

    • New

      Add assert.isAtMost and assert.isAtLeast.

    • Fixed

      Fixed expect('').to.contain('') so it passes.

    • Fixed

      Fix stack trace tracking for property assertions.

    • Fixed

      Correct misplaced docs for assertions (isBelow, isAbove, isTrue).

  5. 3.2.0

    19 Jul 20154 new · 1 fix
    • New

      Re-encrypt travis API key

    • New

      Add respondsTo and satisfies as aliases

    • New

      Added links to contribution guidelines to README

    • New

      Various work on aliases

    • Fixed

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

16 other lines we could not sort, mostly version bumps
  • Clean browser before karma in Makefile.

    3.5.0
  • Update karma for build.

    3.5.0
  • BugFix: .empty changes from 3.3.0 have been reverted, as they caused breaking changes to arrays which manually set keys.

    3.4.0
  • Bugfix: Property assertions that fail now show a stack trace!

    3.3.0
  • Bugfix: If you've used the frozen, sealed or extensible assertions to test primitives (e.g. expect(1).to.be.frozen), you may have noticed that in older browsers (ES5) these fail, and in new ones (ES6) they pass. They have now been fixed to consistently pass

    3.3.0
  • The assert interface has been given the following new methods, to align better with other interfaces:, assert.isAtMost, assert.isAtLeast, assert.isNotTrue, assert.isNotFalse.

    3.3.0
  • expect/should..respondTo: respondsTo

    3.2.0
  • expect/should..satisfy: satisfies

    3.2.0
  • assert.ok: Assert.isOk

    3.2.0
  • assert.notOk: Assert.isNotOk

    3.2.0

3 internal lines (docs, tests, tooling) left out.

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.