Packages

chai

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

Upgrading chai From 3.3.0 to 3.4.0

1 release in betweenevery note read

Other targets from 3.3.0Newest 3.x3.5.0Latest6.3.0
  1. 3.3.0yours
  2. 3.4.0target
0
changes to make
0
advisories fixed
9
new
3
fixes

Release by release

  1. 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

1 other line we could not sort, mostly version bumps
  • BugFix: .empty changes from 3.3.0 have been reverted, as they caused breaking changes to arrays which manually set keys.

    3.4.0

1 internal line (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.