All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
2.7.3 (2024-05-30)
- Add security vulnerability policy (a28cc58)
- Prettify (aaa9256)
- Upgrade
prettier-elastic
to v3 (7f10b2c)
2.7.2 (2022-08-05)
2.7.1 (2022-08-04)
2.7.0 (2022-08-03)
BigInt.coerce
andBigInt.ensure
(e49ad78)
2.6.1 (2022-07-29)
2.6.0 (2022-02-02)
constructor
validation utils (74b99bb)
2.5.0 (2021-03-08)
errorCode
option forensure*
utils (777a1f2)
2.4.0 (2021-03-08)
set/is
andset/ensure
utils (083ec23)
2.3.0 (2021-02-16)
map/is
andmap/ensure
utils (aafd1cb)
2.2.0 (2021-02-11)
- Support
ensureItem
option inarray/ensure
(8f74973)
2.1.0 (2020-08-21)
ensure
util for cumulated input validation (814c5a8)- Provide an alternative error message with
options.name
(c7751c0) - Support
%n
(meaningful name) token in error message resolver (b0f374e) - Support
min
validation for natural numbers (e703512) - Support custom Error constructors (c6ecb90)
- Fix typo in error message (2735533)
2.0.0 (2019-10-10)
allowedKeys
option for plain-object/ensure (f81e72e)ensurePropertyValue
option for plain-object/ensure (c5ff8fb)- Replace
coerceItem
withensureItem
option in iterable/ensure (721494f) - Seclude lib/resolve-error-message (12636d9)
- Validate options.ensureItem in iterable/ensure (78da6c1)
- iterable/ensure no longer supports
coerceItem
option. InsteadensureItem
was introduced
1.2.0 (2019-09-20)
- Improve error message so it's not confusing (97cd6b9)
- 'coerceItem' option for iterable/ensure (0818860)
1.1.0 (2019-09-20)
denyEmpty
option for iterables validation (301d071)
1.0.3 (2019-08-06)
- Recognize custom built ES5 era errors (6462fac)
1.0.2 (2019-08-06)
- Recognize host errors (e.g. DOMException) (96ef399)
1.0.1 (2019-04-08)
- ensure 'is' functions can't crash (59ceb78)
- array-length/coerce (af8ddec)
- array-length/ensure (d313eb6)
- array-like/ensure (45f1ddd)
- array-like/is (9a026a5)
- array/ensure (9db1515)
- array/is (9672839)
- date/ensure (44e25a0)
- date/is (0316558)
- ensure to not crash (3998348)
- ensure/number (134b5cb)
- error/ensure (d5c8a30)
- error/is-error (4d6b899)
- finite/coerce (accaad1)
- finite/ensure (51e4174)
- function/ensure (b624c9a)
- function/is (dab8026)
- integer/coerce (89dea2e)
- integer/ensure (44a7071)
- iterable/ensure (3d48841)
- iterable/is (cf09513)
- lib/is-to-string-tag-supported (c8c001d)
- natural-number/coerce (d08fdd9)
- natural-number/ensure (6c24d12)
- number/coerce (86ccf08)
- object/ensure (a9e8eed)
- object/is (d2d7251)
- plain-function/ensure (5186518)
- plain-function/is (51bc791)
- plain-object/ensure (91cf5e5)
- plain-object/is (4dcf393)
- promise/ensure (8d096a4)
- promise/is (a00de02)
- prototype/is (b23bdcc)
- reg-exp/ensure (6f7bbcb)
- reg-exp/is (9728519)
- safe-integer/coerce (b8549c4)
- safe-integer/ensure (a70ef3f)
- string/coerce (b25c71f)
- string/ensure (b62577d)
- support 'default' in resolveException (e08332a)
- switch config to ES3 based (37606d9)
- thenable/ensure (6762c0d)
- thenable/is (2711d70)
- time-value/coerce (27fd109)
- time-value/ensure (1f6a8ea)
- string/coerce: restrict toString acceptance (2a87100)
- value/ensure (dd6d8cb)
- value/is (fdf4763)