Releases: open-circle/valibot
v1.5.0 (to-json-schema)
- Add support for JSON Schema draft-2020-12 and OpenAPI 3.0 Schema Object format
- Add
propertyNamessupport to record schemas for key validation constraints - Add support for
toBigint,toBoolean,toDate,toNumberandtoStringactions fortypeMode: 'input' - Add new
toStandardJsonSchemafunction to convert Valibot schemas to Standard JSON Schema format - Change return type from
JSONSchema7to a customJsonSchematype
v0.1.2 (zod-to-valibot)
- Fix CLI usage to use scoped package name
@valibot/zod-to-valibot
v0.1.1 (zod-to-valibot)
- Fix CLI
jscodeshiftresolution when installed vianpx
v0.1.0 (zod-to-valibot)
- Initial release
v1.4.0 (to-json-schema)
Many thanks to @stefanprobst, @sruenwg and @cruzdanilo for contributing to this release.
- Add support for
examplesaction - Add support for
integerwhen used withminValueandmaxValueactions (pull request #1367) - Change Valibot peer dependency to v1.2.0
- Fix conversion of
exactOptionalobject properties (pull request #1220) - Fix conversion of
variantto useoneOfinstead ofanyOf(pull request #1193)
v1.2.0
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,toNumberandtoStringtransformation actions (pull request #1212) - Add
examplesaction to add example values to a schema (pull request #1199) - Add
getExamplesmethod to extract example values from a schema (pull request #1199) - Add
isbnvalidation action to validate ISBN-10 and ISBN-13 strings (pull request #1097) - Add exports for
RawCheckAddIssue,RawCheckContext,RawCheckIssueInfo,RawTransformAddIssue,RawTransformContextandRawTransformIssueInfotypes for better developer experience withrawCheckandrawTransformactions (pull request #1359) - Change build step to tsdown
- Fix ReDoS vulnerability in
EMOJI_REGEXused byemojiaction
v1.3.0 (to-json-schema)
Many thanks to @Xiot for contributing to this release.
- Add
ignoreActionsconfiguration to be able to ignore specific actions during conversion - Add
typeModeconfiguration to be able to control whether to convert input or output type of schema - Add
ConversionContext,OverrideSchemaContext,OverrideActionContextandOverrideRefContextto exports - Change JSDoc comments to improve documentation
- Change build step to tsdown and Rolldown
v1.2.0 (to-json-schema)
Many thanks to @cruzdanilo and @Xiot for contributing to this release.
- Add support for title, description and examples in
metadataaction (pull request #1189) - Add new override configurations to override default behaviour of JSON Schema conversion (pull request #1197)
- Add storage for global definitions with
addGlobalDefsandgetGlobalDefs(pull request #1197) - Add new
toJsonSchemaDefsfunction to convert Valibot schema definitions to JSON Schema definitions (pull request #1197)
v1.1.0 (to-json-schema)
Many thanks to @sruenwg, @muningis and @EltonLobo07 for contributing to this release.
- Add support for
minEntriesandmaxEntriesaction (pull request #1100) - Add support for
entriesaction (pull request #1156) - Change Valibot peer dependency to v1.1.0
- Fix
toJsonSchemato be independent of definition order (pull request #1133) - Fix
additionalItemsfor tuple schemas and addminItems(pull request #1126)
v1.1.0
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
messagemethod to overwrite local error message configuration of a schema (pull request #1103) - Add
summarizemethod to summarize issues into a pretty-printable multi-line string (pull request #1158) - Add
getTitle,getDescriptionandgetMetadatamethods to extract metadata of a schema (pull request #1154) - Add
minEntriesandmaxEntriesvalidation action to validate number of object entries (pull request #1100) - Add
entriesandnotEntriesvalidation action to validate number of object entries (pull request #1156) - Add
parseJsonandstringifyJsontransformation action to parse and stringify JSON (pull request #1137) - Add
flavortransformation action to flavor the output type of a schema (pull request #950) - Add support for bigints to
multipleOfvalidation action (pull request #1164) - Change implementation of
variantandvariantAsyncschema to improve performance by aborting validation of discriminators early (pull request #1110) - Change name of
NanoIDActionandNanoIDIssueinterface toNanoIdActionandNanoIdIssue(pull request #1171) - Fix internal
MarkOptionaltype to fix input and output type of objects in edge cases (issue #1176)