v1.0.0-rc.0
This is a summary of the changes between v0 and v1. Many thanks to everyone who contributed to this release.
- Add
assert
method to assert values (issue #862) - Add
checkItemsAsync
action (pull request #856) - Add
graphemes
,maxGraphemes
,minGraphemes
andnotGraphemes
action (pull request #853) - Add
words
,maxWords
,minWords
andnotWords
action - Add
args
andreturns
action to transform functions (issue #243) - Add
rfcEmail
action to validate RFC 5322 email addresses (pull request #912) - Add new overload signature to
pipe
andpipeAync
method to support unlimited pipe items of same input and output type (issue #852) - Add
@__NO_SIDE_EFFECTS__
notation to improve tree shaking (pull request #995) - Add
exactOptional
andexactOptionalAsync
schema (PR #1013) - Change types and implementation to support Standard Schema
- Change behaviour of
minValue
andmaxValue
forNaN
(pull request #843) - Change type and behaviour of
nullable
,nullableAsync
,nullish
,nullishAsync
,optional
,optionalAsync
,undefinedable
andundefinedableAsync
for undefined default value (issue #878) - Change type signature of
partialCheck
andpartialCheckAsync
action to add.pathList
property in a type-safe way - Change type signature of
findItem
action to support type predicates (issue #867) - Change validation of missing object entries in
looseObject
,looseObjectAsync
,object
,objectAsync
,objectWithRest
,objectWithRestAsync
,strictObject
andstrictObject
(PR #1013) - Change type signature of
optional
andoptionalAsync
when used within an object schema (PR #1013) - Change
MarkOptional
type to fix order of entries and TS error when using generic schemas (issue #1021) - Change
VariantOption
andVariantOptionAsync
type to fix TS error when using generic schemas (issue #842) - Change implementation of
variant
andvariantAsync
to support optional discriminators usingexactOptional
,exactOptionalAsync
,optional
,optionalAsync
,nullish
ornullishAsync
- Refactor
bytes
,maxBytes
,minBytes
andnotBytes
action - Fix implementation of
nonOptional
,nonOptionalAsync
,nonNullable
,nonNullableAsync
,nonNullish
andnonNullishAsync
schema in edge cases (issue #909) - Fix instantiation error for
any
inPathKeys
type (issue #929) - Fix TypeScript error of
keyof
method for objects with many keys (pull request #988) - Fix options filtering in
enum_
schema (pull request #941)