版本发布 8
- Fix `intersect` schema to infer correct input and output types for non-tuple array options instead of `never` (pull request #1478)
- 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)
- Fix CLI usage to use scoped package name `@valibot/zod-to-valibot`
- Fix CLI `jscodeshift` resolution when installed via `npx`
- Initial release
Many thanks to @EskiMojo14, @makenowjust, @ysknsid25 and @jacekwilczynski for contributing to this release. > Read the [release notes](https://valibot.dev/blog/valibot-v1.2-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
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
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)