Update chai: 4.2.0 → 4.3.0 (minor)
Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳ ️ chai (4.2.0 → 4.3.0) · Repo · Changelog
Release Notes
4.3.0
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. Theoperator
is a property of theAssertionError
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 called
getOperator`.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 adelta
is required (@eouw0o83hf)Docs
- Add contains flag to oneOf documentation (@voliva)
Tests
- Make sure that
useProxy
config is checked inoverwriteProperty
(@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)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 29 commits:
chai@4.3.0
chore: npm audit fix
Fix JSDoc name (#1354)
fix: unbox BigInt primitives in shouldGetter (#1349)
test: replaced arrow function for IE support (#1348)
chore(funding): display sponsor button for open collective (#1346)
feat: add Node.js ESM entry point with named and default exports (#1340)
docs: add missing apostrophes (#1344)
docs: add --save-dev to npm install command (#1289)
docs: Node version >=8 in README (#1306)
test: The Buffer() and new Buffer() constructors are deprecated (#1305)
feat: improve include error message (#1273)
Merge pull request #1242 from voliva/contains-oneOf
docs(oneOf): Add contains flag to oneOf documentation
feat(oneOf): expect(value).to.contain.oneOf([])
Adding operator attribute to assertion error (#1257)
chore(package): update lockfile package-lock.json
chore(package): update mocha to version 6.1.4
test: make sure that useProxy config is checked in overwriteProperty
chore: add node v10 and v12 to ci
chore: drop support for node v4, v6 and v9
Merge pull request #1248 from eouw0o83hf/master
Include some missed some test files
Add delta message to closeTo() error
test(oneOf): Add failing tests for contain.oneOf
Merge pull request #1216 from chaijs/fix-build
chore: fix sauce config for headless chrome
chore: update dev dependencies
chore: Removed phantomjs dependency (#1204)
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase
.
All Depfu comment commands
- @depfu rebase
- Rebases against your default branch and redoes this update
- @depfu recreate
- Recreates this PR, overwriting any edits that you've made to it
- @depfu merge
- Merges this PR once your tests are passing and conflicts are resolved
- @depfu close
- Closes this PR and deletes the branch
- @depfu reopen
- Restores the branch and reopens this PR (if it's closed)
- @depfu pause
- Ignores all future updates for this dependency and closes this PR
- @depfu pause [minor|major]
- Ignores all future minor/major updates for this dependency and closes this PR
- @depfu resume
- Future versions of this dependency will create PRs again (leaves this PR as is)