Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: open-circle/valibot

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

v1.3.0 (to-json-schema)

01 Jun 18:28

Choose a tag to compare

Many thanks to @Xiot for contributing to this release.

  • Add ignoreActions configuration to be able to ignore specific actions during conversion
  • Add typeMode configuration to be able to control whether to convert input or output type of schema
  • Add ConversionContext, OverrideSchemaContext, OverrideActionContext and OverrideRefContext to exports
  • Change JSDoc comments to improve documentation
  • Change build step to tsdown and Rolldown

v1.2.0 (to-json-schema)

17 May 04:51

Choose a tag to compare

Many thanks to @cruzdanilo and @Xiot for contributing to this release.

  • Add support for title, description and examples in metadata action (pull request #1189)
  • Add new override configurations to override default behaviour of JSON Schema conversion (pull request #1197)
  • Add storage for global definitions with addGlobalDefs and getGlobalDefs (pull request #1197)
  • Add new toJsonSchemaDefs function to convert Valibot schema definitions to JSON Schema definitions (pull request #1197)

v1.1.0 (to-json-schema)

06 May 04:36

Choose a tag to compare

Many thanks to @sruenwg, @muningis and @EltonLobo07 for contributing to this release.

  • Add support for minEntries and maxEntries action (pull request #1100)
  • Add support for entries action (pull request #1156)
  • Change Valibot peer dependency to v1.1.0
  • Fix toJsonSchema to be independent of definition order (pull request #1133)
  • Fix additionalItems for tuple schemas and add minItems (pull request #1126)

v1.1.0

06 May 04:11

Choose a tag to compare

Many thanks to @EltonLobo07, @sacrosanctic, @muningis, @EskiMojo14, @MOZGIII, @vktrl and @jasperteo 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 message method to overwrite local error message configuration of a schema (pull request #1103)
  • Add summarize method to summarize issues into a pretty-printable multi-line string (pull request #1158)
  • Add getTitle, getDescription and getMetadata methods to extract metadata of a schema (pull request #1154)
  • Add minEntries and maxEntries validation action to validate number of object entries (pull request #1100)
  • Add entries and notEntries validation action to validate number of object entries (pull request #1156)
  • Add parseJson and stringifyJson transformation action to parse and stringify JSON (pull request #1137)
  • Add flavor transformation action to flavor the output type of a schema (pull request #950)
  • Add support for bigints to multipleOf validation action (pull request #1164)
  • Change implementation of variant and variantAsync schema to improve performance by aborting validation of discriminators early (pull request #1110)
  • Change name of NanoIDAction and NanoIDIssue interface to NanoIdAction and NanoIdIssue (pull request #1171)
  • Fix internal MarkOptional type to fix input and output type of objects in edge cases (issue #1176)