HISTORY.md
5.07 KB
History
7.4.0
New features
- docs: add note about typescript definitions to readme (13c7a90)
Bug fixes
- docs: remove errant semicolon from example code (9053f95)
- docs: clarify the behaviour of between and inRange (88a2f61)
- tests: ensure tests run in non-es6 environments (4bae637)
Other changes
- deps: update please-release-me (72377bf)
- project: migrate to gitlab (19919b5)
- package: update authors (9848df0)
7.3.0
- feature: add primitive predicate (3114d7f)
7.2.1
- fix: perf tweaks for tight loops (8a9919d)
- chore: update ci config (136f185)
7.2.0
- feature: return the target value from assertions (73da792)
- chore: add release script dependency (cacc348)
- fix: make assert throw for any falsy value (4f15c73)
7.1
- Implement
nonEmptyObject. Thanks to Victor Bakke. - Implement
nonEmptyArray. Thanks to Victor Bakke. - Fix error messages on assertions that take a string as their last argument.
- Add support for custom error types in assertions.
- Throw TypeErrors by default.
7.0
- Breaking changes:
- Rename
instancetoinstanceStrict. - Combine
builtInanduserDefinedto form newinstancepredicate.
- Rename
- Exclude non-src files from npm package
6.0
- Breaking change:
eithermodifier removed.
- Eliminated some string duplication.
5.1
- Fix broken implementation of
maybe.array.of.
5.0
- Breaking changes:
isMappredicate removed (seebuiltIn).errorpredicate removed (seebuiltIn).
- Implement
builtInpredicate. - Implement
userDefinedpredicate. - Implement
emptyStringpredicate. - Implement
infinitypredicate.
4.3
- Implement
isMap. Thanks to Ryan Temple.
4.2
- Implement
includes.
4.1
- Implement
equal.
4.0
- Breaking changes:
- Rename
unemptyString=>nonEmptyString. - Support derived error objects in
error.
- Rename
- Fix HTMLElement instance predicate bug in Safari.
3.3
- Implement
greaterOrEqual. - Implement
lessOrEqual. - Implement
inRange. - Fix default error message for
function. Thanks to Paul Jolly.
3.2
- Implement
arrayLike - Implement
iterable - Implement
array.of - Implement
arrayLike.of - Implement
iterable.of - Implement
object.of - Fix unhandled exception when dereferencing undefined data inside
map.
3.1
- Accept a single predicate in
map. - Remove assertions from
hasLengthandlike.
3.0
- Breaking changes:
- Rename
length=>hasLength. - Drop
webUrl. (sorry @bahmutov!)
- Rename
- Turn
assert,notandmaybeinto standalone functions as well as modifiers. - Implement
matchfor general regex-matching. Possibly of interest to former users ofwebUrl,gitUrlandemail. - Implement
contains. - Implement
between. - Implement
greater. - Implement
less. - Implement
zero. - Implement
emptyArray. - Implement
error. - Fix errant check that property counts match in
map.
2.2
- Ensure
datepredicate returnsfalsefor invalid dates.
2.1
- Add
either.
2.0
- Breaking changes:
- Drop ES3 support.
- Rename
verify=>assert. - Remame
nulled=>null. - Switch
definedtoundefinedfor consistency withnull. - Tightened implementation of
webUrlto reject more cases. - Drop
gitUrl. (sorry @galniv!) - Drop
email. (sorry @rodrigo!) - Drop
floatNumber. (sorry @rodrigo!) - Rename
oddNumber,evenNumber,positiveNumber,negativeNumber,intNumber=>odd,even,positive,negative,integer. - Rename
bool=>boolean. - Rename
every=>all.
- Add predicate
assigned. - Add
applybatch operation. - Delete superfluous unit tests.
1.4
- Implement
boolpredicate. Thanks to Clinton Skakun.
1.3
- Implement
email,intNumberandfloatNumberpredicates. Thanks to Rodrigo González. - Infinity is not a number.
- Implement
definedandnulled. Thanks to Alejandro Villanueva. - Speculatively fix conflict with angular-mocks.
1.2
- Implement
notmodifier. - Implement
gitUrlpredicate. Thanks to Gal Niv.
1.1
- Replace
check.maybe.verify.xxxwithcheck.verify.maybe.xxx.
1.0
- API overhaul:
- Predicates exported as
check.xxxrather thancheck.isXxx. - Verifiers exported as
check.verify.xxxrather thancheck.verifyXxx. Thanks to Marc-Olivier Ricard.
- Predicates exported as
- Unit tests added for error messages.
0.8
- Added
isWebUrlandverifyWebUrl. Thanks to Gleb Bahmutov.
0.7
- Added
check.maybemodifier. Thanks to Marc-Olivier Ricard. - Added
check.map,check.everyandcheck.anybatch operations. Thanks to Marc-Olivier Ricard. - Harmonised the node and browser unit tests.