Skip to content

Releases: fabian-hiller/valibot

v0.42.0

15 Sep 04:15
Compare
Choose a tag to compare

Many thanks to @ajfhs812, @andrew-d-jackson and @declanlscott for contributing to this release.

  • Add metadata action to add custom metadata to a schema
  • Add title metadata action to add a title to a schema (discussion #826)
  • Add decimal action to validate integer and float strings (pull request #823)
  • Rename decimal action to digits (pull request #823)
  • Rename NoPipe type to SchemaWithoutPipe
  • Fix inference of generics in IssueDotPath type (issue #814)

v0.2.0 (to-json-schema)

15 Sep 04:22
Compare
Choose a tag to compare

Many thanks to @ajfhs812 for contributing to this release.

  • Add support for title action (discussion #826)

v0.1.1 (to-json-schema)

14 Sep 23:15
Compare
Choose a tag to compare

Many thanks to @gcornut for contributing to this release.

  • Fix maximum call stack bug for recursive schemas
  • Fix invalid JSON Schema ouput for recursive schemas

v0.1.0 (to-json-schema)

13 Sep 17:41
Compare
Choose a tag to compare

Many thanks to @gcornut for contributing to this release.

  • Initial release

v0.41.0

01 Sep 18:17
Compare
Choose a tag to compare

Many thanks to @EltonLobo07, @ZerNico, @Andarist, @ruiaraujo012 and @merodiro for contributing to this release.

  • Change reference property of all action base types to be less strict (issue #799)
  • Change implementation of variant and variantAsync to improve performance and issues generation for nested variants with different discriminators (pull request #809)

v0.40.0

29 Aug 14:04
Compare
Choose a tag to compare

Many thanks to @jasperteo, @alecmev and @cruzdanilo for contributing to this release.

  • Add nanoid action to validate Nano IDs (pull request #789)
  • Add undefinedable and undefinedableAsync schema (issue #385)
  • Fix invalid output type for transformed optional object entries (issue #806)

v0.39.0

24 Aug 09:17
Compare
Choose a tag to compare

Many thanks to @tpetry, @incompletude, @ComradeVanti, @istonikula and @ShlokDesai33 for contributing to this release.

  • Add support for exactOptionalPropertyTypes config (issue #385)
  • Fix IssueDotPath type for pipe and pipeAsync method (issue #793)
  • Fix IssueDotPath type for variant and variantAsync schema (issue #700)

v0.38.0

20 Aug 14:18
Compare
Choose a tag to compare

Many thanks to @EltonLobo07, @samuba, @alecmev, @gflohr, @threehams and @carcinocron for contributing to this release.

  • Change expects and expected property by enclosing combined values in parentheses
  • Change question mark handling for optional, optionalAsync, nullish and nullishAsync schemas in objects
  • Fix TypeScript errors in TuplePath and QuestionMarkSchema type (issue #659, #776)
  • Fix missing TypeScript errors in pipe and pipeAsync method (pull request #785)

v0.37.0

30 Jul 14:41
Compare
Choose a tag to compare

Many thanks to @morinokami, @xcfox, @devcaeg, @shayneo, @sandros94, @slevithan, @thecotne and @EltonLobo07 for contributing to this release.

  • Add base64 action to validate Base64 strings (pull request #644)
  • Add description metadata action (pull request #747)
  • Add metadata feature to pipe and pipeAsync method (pull request #747)
  • Refactor HEXADECIMAL_REGEX (pull request #666)
  • Change unknown[] in LengthInput type to ArrayLike<unknown>
  • Change ArrayInput and ContentInput type to use MaybeReadonly
  • Change EMOJI_REGEX to be more accurate and strict (pull request #666)
  • Fix bug in fallback and fallbackAsync method for specific schemas (pull request #752)
  • Fix bug in fallbackAsync method for async schemas (pull request #732)

v0.36.0

05 Jul 14:13
Compare
Choose a tag to compare

Many thanks to @N0tExisting, @ksv90, @peterbe, @foster-hangdaan and @zougari47 for contributing to this release.

  • Add normalize action to normalize strings (issue #691)
  • Add support for async schemas to entriesFromList util
  • Add support for numbers and symbols to entriesFromList util (issue #492)
  • Add key property to SetPathItem type to improve DX (issue #693, #694)
  • Remove FunctionReference type and refactor code