Skip to content

Releases: open-circle/valibot

v1.3.1

18 Mar 23:02

Choose a tag to compare

  • Change MAC48_REGEX, MAC64_REGEX and MAC_REGEX to drop the i flag for better JSON Schema compatibility (pull request #1430)
  • Change hash action to use case-expanded character classes instead of the i flag (pull request #1430)

v1.6.0 (to-json-schema)

17 Mar 22:31

Choose a tag to compare

  • Add support for never schema (pull request #1430)
  • Add support for endsWith, gtValue, hash, includes, isoTimeSecond, isoWeek, isrc, ltValue, mac, mac48, mac64, notValue, notValues, rfcEmail, safeInteger, slug, startsWith and values actions (pull request #1430)
  • Add JSON compatibility validation for the requirements of value, values, notValue and notValues actions (pull request #1430)
  • Add inferred type for enum and picklist schemas (pull request #1430)
  • Change Valibot peer dependency to v1.3.0

v1.3.0

17 Mar 08:03

Choose a tag to compare

Many thanks to @EskiMojo14, @yslpn, @alexilyaev, @idleberg, @BerkliumBirb and @frenzzy for contributing to this release.

Read the release notes on our website for a quick overview of the most exciting new features in this release.

  • Add guard transformation action to narrow types using type predicates (pull request #1204)
  • Add parseBoolean transformation action to parse boolean values from strings and other types (pull request #1251)
  • Add isrc validation action to validate ISRC codes (pull request #1373)
  • Add cache method for caching schema output by input (pull request #1170)
  • Add domain validation action to validate domain names (pull request #1284)
  • Add jwsCompact validation action to validate JWS compact strings (pull request #1348)
  • Fix creditCard validation action to allow 13-digit Visa card numbers (pull request #1347)
  • Fix isoTimestamp validation action to allow optional space before UTC offset for PostgreSQL timestamptz compatibility (pull request #1195)
  • Fix types for deeply readonly default and fallback values

v1.1.0 (i18n)

17 Mar 23:07

Choose a tag to compare

Many thanks to @mreleftheros, @adamvx, @illispi, @Abilovv599, @mtergel, @yslpn, @martinzilak, @jhirvioja, @komu, @ganaena and @tats-u for contributing to this release.

  • Add Greek (el) translations (pull request #1311)
  • Add Slovak (sk) translations (pull request #1334)
  • Add Finnish (fi) translations (pull request #1318)
  • Add Azerbaijani (az) translations (pull request #1409)
  • Add Mongolian (mn) translations (pull request #1224)
  • Add new and missing actions to translations (pull request #1306)
  • Change Valibot peer dependency to ^1.3.0
  • Fix ISO 639-1 code for Korean (ko) (pull request #1306)

v1.5.0 (to-json-schema)

12 Dec 03:01
69a7af7

Choose a tag to compare

  • Add support for JSON Schema draft-2020-12 and OpenAPI 3.0 Schema Object format
  • Add propertyNames support to record schemas for key validation constraints
  • Add support for toBigint, toBoolean, toDate, toNumber and toString actions for typeMode: 'input'
  • Add new toStandardJsonSchema function to convert Valibot schemas to Standard JSON Schema format
  • Change return type from JSONSchema7 to a custom JsonSchema type

v0.1.2 (zod-to-valibot)

07 Dec 23:36

Choose a tag to compare

  • Fix CLI usage to use scoped package name @valibot/zod-to-valibot

v0.1.1 (zod-to-valibot)

06 Dec 23:49

Choose a tag to compare

  • Fix CLI jscodeshift resolution when installed via npx

v0.1.0 (zod-to-valibot)

06 Dec 23:48

Choose a tag to compare

  • Initial release

v1.4.0 (to-json-schema)

03 Dec 04:50

Choose a tag to compare

Many thanks to @stefanprobst, @sruenwg and @cruzdanilo for contributing to this release.

  • Add support for examples action
  • Add support for integer when used with minValue and maxValue actions (pull request #1367)
  • Change Valibot peer dependency to v1.2.0
  • Fix conversion of exactOptional object properties (pull request #1220)
  • Fix conversion of variant to use oneOf instead of anyOf (pull request #1193)

v1.2.0

24 Nov 23:33

Choose a tag to compare

Many thanks to @EskiMojo14, @makenowjust, @ysknsid25 and @jacekwilczynski for contributing to this release.

Read the release notes on our website for a quick overview of the most exciting new features in this release.

  • Add toBigint, toBoolean, toDate, toNumber and toString transformation actions (pull request #1212)
  • Add examples action to add example values to a schema (pull request #1199)
  • Add getExamples method to extract example values from a schema (pull request #1199)
  • Add isbn validation action to validate ISBN-10 and ISBN-13 strings (pull request #1097)
  • Add exports for RawCheckAddIssue, RawCheckContext, RawCheckIssueInfo, RawTransformAddIssue, RawTransformContext and RawTransformIssueInfo types for better developer experience with rawCheck and rawTransform actions (pull request #1359)
  • Change build step to tsdown
  • Fix ReDoS vulnerability in EMOJI_REGEX used by emoji action