Skip to content

Releases: chaijs/chai

4.3.3 / 2021-03-03

03 Mar 18:22
Compare
Choose a tag to compare

This reintroduces Assertion as an export in the mjs file. See #1378 & #1375

4.3.2 / 2021-03-03

03 Mar 18:20
Compare
Choose a tag to compare

This fixes a regression in IE11. See #1380 & #1379

4.3.1 / 2021-03-02

02 Mar 18:21
Compare
Choose a tag to compare

This releases fixed an engine incompatibility with 4.3.0

The 4.x.x series of releases will be compatible with Node 4.0. Please report any errors found in Node 4 as bugs, and they will be fixed.

The 5.x.x series, when released, will drop support for Node 4.0

This fix also ensures pathval is updated to 1.1.1 to fix CVE-2020-7751

4.3.0 / 2021-02-04

04 Feb 10:58
Compare
Choose a tag to compare

This is a minor release.

Not many changes have got in since the last release but this one contains a very important change (#1257) which will allow jest users to get better diffs. From this release onwards, jest users will be able to see which operator was used in their diffs. The operator is a property of the AssertionError thrown when assertions fail. This flag indicates what kind of comparison was made.

This is also an important change for plugin maintainers. Plugin maintainers will now have access to the operator flag, which they can have access to through an utilmethod calledgetOperator`.

Thanks to all the amazing people that contributed to this release.

New Features

  • Allow contain.oneOf to take an array of possible values (@voliva)
  • Adding operator attribute to assertion error (#1257) (@rpgeeganage)
  • The closeTo error message will now inform the user when a delta is required (@eouw0o83hf)

Docs

  • Add contains flag to oneOf documentation (@voliva)

Tests

  • Make sure that useProxy config is checked in overwriteProperty (@vieiralucas)
  • Add tests for contain.oneOf (@voliva )

Chores

  • Update mocha to version 6.1.4
  • Add node v10 and v12 to ci (@vieiralucas)
  • Drop support for node v4, v6 and v9 (@vieiralucas)
  • Fix sauce config for headless chrome (@meeber)
  • Update dev dependencies (@meeber)
  • Removed phantomjs dependency (#1204)

4.2.0 / 2018-09-25

26 Sep 09:40
Compare
Choose a tag to compare

This is a minor release. Thank you to all of our contributors and users!

New Features

Bug Fixes

Performance

Style

Tests

  • test(assert): increase coverage (#1084, #1085; @brutalcrozt)
  • test: stop modifying globals in Proxy tests (#1144; @meeber)

Docs

Chores

  • chore: update package-lock.json (#1198; @meeber)
  • Update mocha to the latest version (#1127)
  • chore: update dependencies (#1157; @meeber)
  • Update browserify to the latest version (#1135)
  • chore: update Node versions in Travis config (#1126; @meeber)
  • chore: remove Opera from Sauce config (#1125; @meeber)
  • chore: update dependencies (#1118; @meeber)
  • chore: update dependencies (#1074; @meeber)
  • Chore: change coverage service (coverall to codecov) (#927, #1073; @brutalcrozt)
  • chore: add package-lock.json (#1013; @meeber)

4.1.2 / 2017-08-31

31 Aug 21:39
Compare
Choose a tag to compare

This release fixes a bug when running in certain environments, and includes a few minor documentation fixes.

Bug Fixes

  • fix: update deep-eql to version 3.0.0 (#1020)
  • fix: replace code causing breakage under strict CSP (#1032; @Alhadis)

Docs

4.1.1 / 2017-08-05

05 Aug 07:29
Compare
Choose a tag to compare

This release includes a few bug and documentation fixes.

Bug Fixes

Docs

4.1.0 / 2017-07-11

12 Jul 00:13
Compare
Choose a tag to compare

This release includes one new feature and a few bug fixes.

New Features

Bug Fixes

  • Allow dates for isBelow and isAbove assertions (#980, #990; @v1adko)
  • fix: check target's type in .property assertion (#992; @meeber)

Chores

4.0.2 / 2017-06-05

05 Jun 19:31
Compare
Choose a tag to compare

We have another bugfix release, addressing some issues for WebPack 1 users.

Bug Fixes

  • Revert getting version information from package.json, some bundler tools like Webpack do not come default with json loaders despite Node being able to handle this. This change moves back to hardcoding the version number in the codebase. (#985, #986)

4.0.1 / 2017-05-31

31 May 21:18
Compare
Choose a tag to compare

4.0.1

Of course, any major release cannot go without a quick bugfix release shortly after - and here's ours!

Bug Fixes

  • Remove package.json browser field which was mistakenly added, and caused bundler tools like Browserify or Webpack to fail as it attempted to rebundle an already bundled file. (#978, #982)