This release contains some small breaking changes. Most people are unlikely to
notice them - but here are the breaking changes:
- Switched from "Component" builds to "Browserify" builds for Browsers. If
you're using RequireJS with Chai, you might notice a change (chai used to
be a global, now it won't be - instead you'll have torequire
it). .has.property('foo', undefined)
will now specifically test to make sure
that the value'foo'
is actually undefined - before it simply tested that
the key existed (but could have a value)..to.be.a('type')
has changed to support more types, including ES6 types
such as'promise'
,'symbol'
,'float32array'
etc, this also means using
ES6'sSymbol.toStringTag
affects the behaviour.to.be.a()
. In addition to
this, Errors have the type of'error'
.assert.ifError()
now follows Node'sassert.ifError()
behaviour - in other
words, if the first argument is truthy, it'll throw it.- ReleaseNotes.md is no longer maintained, see the Github Releases Page instead.
- History.md is no longer maintained, see the Github Commit Log instead.
Community Contributions
Code Features & Fixes
- #403
assert.ifError()
behaves like Node.js: it throws if the first argument is present.
By @cjqed - #419 assertion-error bumped to
^1.0.1
By @keithamus (special thanks to @simonzack for his work on assertion-error) - #421 replace type.js with type-detect module.
By @Charminbear - #439 Add
.matches()
as alias for.match()
.
By @thejameskyle - #451 Switch to using Browserify for the build system.
By @csnover - #452
.property('foo', undefined)
now actually checks to see ifobj.foo === undefined
(before it did not).
By @onefifth - #460 Automate release process as much as possible
By @keithamus
Documentation fixes
- #397 Improve docs for
.assert()
By @astorije - #401 Add some badges to the Readme.
By @keithamus - #424 Fix typo in docs for
.keys()
By @astorije - #429 Deprecate
.length(n)
from the docs - use.lengthOf(n)
instead.
By @valscion - #444 Change
.length(n)
examples to.lengthOf(n)
instead.
By @keithamus - #458 Remove stray character in
assert.notInclude
docs
By @BinaryMuse