Releases: open-circle/valibot
v1.0.0-rc.3
Many thanks to @andreww2012 for contributing to this release.
- Change
_addIssueto not ignore empty strings as error message (pull request #1065)
v1.0.0-rc.2
Many thanks to @bjohn465, @wszgrcy and @AdaptCharm for contributing to this release.
v1.0.0-rc.1
Many thanks to @EltonLobo07, @is-jonreeves, @serkodev and @antfu for contributing to this release.
- Add
gtValueandltValueaction for greater than and less than validation (pull request #978, #985) - Add
valuesandnotValuesaction for easier multi-value validation (pull request #919) - Add
slugaction to validate URL slugs (pull request #910) - Add
entriesFromObjectsutil to improve tree shaking (pull request #1023)
v1.0.0-rc.0 (to-json-schema)
This is a summary of the changes between v0 and v1. Many thanks to everyone who contributed to this release.
- Add support for
exactOptionalandundefinedableschema - Add support for
base64,isoTime,isoDateTime,nonEmptyandurlaction (pull request #962) - Add support for
bic,cuid2,empty,decimal,digits,emoji,hex_color,hexadecimal,nanoid,octalandulidaction (pull request #998) - Change Valibot peer dependency to v1.0.0
- Change extraction of default value from
nullable,nullishandoptionalschema - Change
forcetoerrorModein config for better control (issue #889) - Change
additionalPropertiesforobjectandlooseObjectschema (pull request #1001)
v1.0.0-rc.0 (i18n)
This is a summary of the changes between v0 and v1. Many thanks to everyone who contributed to this release.
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
assertmethod to assert values (issue #862) - Add
checkItemsAsyncaction (pull request #856) - Add
graphemes,maxGraphemes,minGraphemesandnotGraphemesaction (pull request #853) - Add
words,maxWords,minWordsandnotWordsaction - Add
argsandreturnsaction to transform functions (issue #243) - Add
rfcEmailaction to validate RFC 5322 email addresses (pull request #912) - Add new overload signature to
pipeandpipeAyncmethod 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
exactOptionalandexactOptionalAsyncschema (PR #1013) - Change types and implementation to support Standard Schema
- Change behaviour of
minValueandmaxValueforNaN(pull request #843) - Change type and behaviour of
nullable,nullableAsync,nullish,nullishAsync,optional,optionalAsync,undefinedableandundefinedableAsyncfor undefined default value (issue #878) - Change type signature of
partialCheckandpartialCheckAsyncaction to add.pathListproperty in a type-safe way - Change type signature of
findItemaction to support type predicates (issue #867) - Change validation of missing object entries in
looseObject,looseObjectAsync,object,objectAsync,objectWithRest,objectWithRestAsync,strictObjectandstrictObject(PR #1013) - Change type signature of
optionalandoptionalAsyncwhen used within an object schema (PR #1013) - Change
MarkOptionaltype to fix order of entries and TS error when using generic schemas (issue #1021) - Change
VariantOptionandVariantOptionAsynctype to fix TS error when using generic schemas (issue #842) - Change implementation of
variantandvariantAsyncto support optional discriminators usingexactOptional,exactOptionalAsync,optional,optionalAsync,nullishornullishAsync - Refactor
bytes,maxBytes,minBytesandnotBytesaction - Fix implementation of
nonOptional,nonOptionalAsync,nonNullable,nonNullableAsync,nonNullishandnonNullishAsyncschema in edge cases (issue #909) - Fix instantiation error for
anyinPathKeystype (issue #929) - Fix TypeScript error of
keyofmethod for objects with many keys (pull request #988) - Fix options filtering in
enum_schema (pull request #941)
v1.0.0-beta.15
Many thanks to @andersk, @cloudkite and @thecotne for contributing to this release.
- Change implementation of
variantandvariantAsyncto support optional discriminators usingexactOptional,exactOptionalAsync,optional,optionalAsync,nullishornullishAsync - Change implementation of
looseObject,looseObjectAsync,object,objectAsync,objectWithRest,objectWithRestAsync,strictObjectandstrictObjectto supportfallbackandfallbackAsyncfor missing entries (PR #1031)
v1.0.0-beta.5 (to-json-schema)
- Add support for
exactOptionalschema
v1.0.0-beta.14
Many thanks to @m-kutnik and @AndreiCravtov for contributing to this release.
v1.0.0-beta.13
Many thanks to @andersk, @EltonLobo07, @xcfox, @Bilboramix, @genki, @ivands, @bachmacintosh, @sandros94, @Hugos68 and @typed-sigterm for contributing to this release.
See discussion #1022 and issue #983 for more details and context on this release.
- Add
exactOptionalandexactOptionalAsyncschema (PR #1013) - Change validation of missing object entries in
looseObject,looseObjectAsync,object,objectAsync,objectWithRest,objectWithRestAsync,strictObjectandstrictObject(PR #1013) - Change type signature of
optionalandoptionalAsyncwhen used within an object schema (PR #1013)