Releases: jsr-core/unknownutil
Releases · jsr-core/unknownutil
v3.3.1
v3.3.0
What's Changed
- ☕ Add benchmark tests by @lambdalisue in #27
- Allow
isObjectOf
to specify an optional property by @Milly in #29
New Contributors
Full Changelog: v3.2.0...v3.3.0
v3.2.0
v3.1.1
v3.1.0
What's Changed
- 🌿 Improve tests of
is
module by @lambdalisue in #23 - 👍 Add
isInstanceOf<T>
,isBigInt
, andisSymbol
functions by @lambdalisue in #24
Full Changelog: v3.0.1...v3.1.0
v3.0.1
What's Changed
- 📝 Add note about design limitation of
isTupleOf
by @lambdalisue in #22
Full Changelog: v3.0.0...v3.0.1
v3.0.0
What's Changes
- 💥 The
assert*
functions are removed due to the presence of theassert
function - 💥 The
ensure*
functions are removed due to the presence of theensure
function - 💥 The
maybe*
functions are removed due to the presence of themaybe
function - 💥 The
isLike
is removed due to the presence ofisTupleOf<T>
andisObjectOf<T>
functions - 💥 The second argument of
isArray
is removed due to the presence of theisArrayOf<T>
function - 💥 The second argument of
isRecord
(new variant ofisObject
) is removed due to the presence of theisRecordOf<T>
function - 💥 The
isObject
is renamed toisRecord
- 👍 The
isOneOf<T>
function is added - 👍 All
is*
functions are exposed asis.*
as aliases
See details on #21
See Migration guide for migrationg from unknownutil v2 to v3.
Full Changelog: v2.1.1...v3.0.0
v2.1.1
v2.1.0
What's Changed
- 📦 Upgrade supported Deno version by @lambdalisue in #16
Full Changelog: v2.0.0...v2.1.0
v2.0.0
What's Changed
- 💥 Breaking API changes (v2) by @lambdalisue in #14
Full Changelog: v1.2.1...v2.0.0
Migration from v1 to v2
- Replace
ensure
orassert
to corresponding specific functions (e.g.
ensureString
orassertNumber
) - Rename
xxxxxNone
toxxxxxNullish
(e.g.isNone
toisNullish
) - Rename
ensureXXXXX
toassertXXXXX
(e.g.ensureString
toassertString
) - Rename
assumeXXXXX
toensureXXXXX
(e.g.assumeNumber
toensureNumber
)