Skip to content

Releases: fabian-hiller/valibot

v1.0.0-rc.1

16 Feb 22:46
Compare
Choose a tag to compare

Many thanks to @EltonLobo07, @is-jonreeves, @serkodev and @antfu for contributing to this release.

  • Add gtValue and ltValue action for greater than and less than validation (pull request #978, #985)
  • Add values and notValues action for easier multi-value validation (pull request #919)
  • Add slug action to validate URL slugs (pull request #910)
  • Add entriesFromObjects util to improve tree shaking (pull request #1023)

v1.0.0-rc.0 (to-json-schema)

10 Feb 05:23
Compare
Choose a tag to compare

This is a summary of the changes between v0 and v1. Many thanks to everyone who contributed to this release.

  • Add support for exactOptional and undefinedable schema
  • Add support for base64, isoTime, isoDateTime, nonEmpty and url action (pull request #962)
  • Add support for bic, cuid2, empty, decimal, digits, emoji, hex_color, hexadecimal, nanoid, octal and ulid action (pull request #998)
  • Change Valibot peer dependency to v1.0.0
  • Change extraction of default value from nullable, nullish and optional schema
  • Change force to errorMode in config for better control (issue #889)
  • Change additionalProperties for object and looseObject schema (pull request #1001)

v1.0.0-rc.0 (i18n)

10 Feb 05:21
Compare
Choose a tag to compare

This is a summary of the changes between v0 and v1. Many thanks to everyone who contributed to this release.

  • Add new and missing actions to translations
  • Add Farsi (fa) translations (pull request #838)
  • Add Czech (cs) translations (pull request #886)
  • Add Vietnamese (vi) translations (pull request #951)
  • Change Valibot peer dependency to v1.0.0

v1.0.0-rc.0

10 Feb 05:16
Compare
Choose a tag to compare

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 and notGraphemes action (pull request #853)
  • Add words, maxWords, minWords and notWords action
  • Add args and returns action to transform functions (issue #243)
  • Add rfcEmail action to validate RFC 5322 email addresses (pull request #912)
  • Add new overload signature to pipe and pipeAync 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 and exactOptionalAsync schema (PR #1013)
  • Change types and implementation to support Standard Schema
  • Change behaviour of minValue and maxValue for NaN (pull request #843)
  • Change type and behaviour of nullable, nullableAsync, nullish, nullishAsync, optional, optionalAsync, undefinedable and undefinedableAsync for undefined default value (issue #878)
  • Change type signature of partialCheck and partialCheckAsync 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 and strictObject (PR #1013)
  • Change type signature of optional and optionalAsync 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 and VariantOptionAsync type to fix TS error when using generic schemas (issue #842)
  • Change implementation of variant and variantAsync to support optional discriminators using exactOptional, exactOptionalAsync, optional, optionalAsync, nullish or nullishAsync
  • Refactor bytes, maxBytes, minBytes and notBytes action
  • Fix implementation of nonOptional, nonOptionalAsync, nonNullable, nonNullableAsync, nonNullish and nonNullishAsync schema in edge cases (issue #909)
  • Fix instantiation error for any in PathKeys 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)

v1.0.0-beta.15

04 Feb 17:12
Compare
Choose a tag to compare
v1.0.0-beta.15 Pre-release
Pre-release

Many thanks to @andersk, @cloudkite and @thecotne for contributing to this release.

  • Change implementation of variant and variantAsync to support optional discriminators using exactOptional, exactOptionalAsync, optional, optionalAsync, nullish or nullishAsync
  • Change implementation of looseObject, looseObjectAsync, object, objectAsync, objectWithRest, objectWithRestAsync, strictObject and strictObject to support fallback and fallbackAsync for missing entries (PR #1031)

v1.0.0-beta.5 (to-json-schema)

22 Jan 00:27
Compare
Choose a tag to compare
Pre-release
  • Add support for exactOptional schema

v1.0.0-beta.14

22 Jan 19:06
Compare
Choose a tag to compare
v1.0.0-beta.14 Pre-release
Pre-release

Many thanks to @m-kutnik and @AndreiCravtov for contributing to this release.

  • Change MarkOptional type to fix order of entries and TS error when using generic schemas (issue #1021)
  • Change VariantOption and VariantOptionAsync type to fix TS error when using generic schemas (issue #842)

v1.0.0-beta.13

22 Jan 00:11
Compare
Choose a tag to compare
v1.0.0-beta.13 Pre-release
Pre-release

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 exactOptional and exactOptionalAsync schema (PR #1013)
  • Change validation of missing object entries in looseObject, looseObjectAsync, object, objectAsync, objectWithRest, objectWithRestAsync, strictObject and strictObject (PR #1013)
  • Change type signature of optional and optionalAsync when used within an object schema (PR #1013)

v1.0.0-beta.12

15 Jan 18:15
Compare
Choose a tag to compare
v1.0.0-beta.12 Pre-release
Pre-release

Many thanks to @KubaJastrz for contributing to this release.

  • Fix bug by removing invalid @__NO_SIDE_EFFECTS__ notation from assert, parse and parseAsync (issue #1015)

v1.0.0-beta.4 (to-json-schema)

08 Jan 23:49
Compare
Choose a tag to compare
Pre-release

Many thanks to @MathurAditya724, @43081j, @andersk, @pokutuna and @MentalGear for contributing to this release.

  • Add support for base64, isoTime, isoDateTime, nonEmpty and url action (pull request #962)
  • Add support for bic, cuid2, empty, decimal, digits, emoji, hex_color, hexadecimal, nanoid, octal and ulid action (pull request #998)
  • Change additionalProperties for object and looseObject schema (pull request #1001)