Releases: open-circle/valibot
v1.7.1 (to-json-schema)
Many thanks to @dinwwwh and @chatman-media for contributing to this release.
- Fix
$refgeneration to encode definition keys containing/or~as JSON Pointer tokens (pull request #1482)
v1.4.1
v1.7.0 (to-json-schema)
- Change build target to ES2020 so distributed output stays compatible with environments that lack support for newer syntax (pull request #1455)
- Change Valibot peer dependency to v1.4.0
v1.4.0
Many thanks to @ksaurav24, @heiwen, @compulim, @ysknsid25, @alaycock-stripe, @IlyaSemenov, @wszgrcy, @LMGO, @yslpn, @EltonLobo07 and @Eronmmer 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
isoDateTimeSecondvalidation action to validate ISO date times with seconds (pull request #1418) - Add
toCamelCase,toKebabCase,toPascalCaseandtoSnakeCasetransformation actions to convert strings between common naming conventions (pull request #1457) - Change internal
ReadonlyOutputKeysandOutputWithReadonlytypes ofobjectschemas andWithReadonlytype ofrecordschemas to improve TypeScript type performance (pull request #1442) - Change hot paths to reduce object allocations and improve runtime performance (pull request #1437)
- Change build target to ES2020 so distributed output stays compatible with environments that lack support for newer syntax (pull request #1455)
- Change internal
_LruCacheto use a TypeScriptprivatemethod instead of a#privateclass field to avoid runtime helpers in the transpiled output (pull request #1455) - Change internal
_isValidObjectKeyto useObject.prototype.hasOwnProperty.callinstead ofObject.hasOwnso the distributed output stays compatible with runtimes that lack the ES2022Object.hasOwnbuiltin (pull request #1421) - Change
flattenmethod to accept readonly issue arrays (pull request #1269) - Fix potential
RangeErrorcaused by spreading large issue arrays (pull request #1437) - Fix
creditCardvalidation action to reject Mastercard numbers with invalid lengths (pull request #1462) - Fix
intersectschema to no longer mutate input values, allowing frozen objects and arrays to be merged (pull request #1463)
v1.2.0 (i18n)
- Add Uzbek (uz) translations (pull request #1452)
- Change Valibot peer dependency to
^1.4.0
v1.3.1
v1.6.0 (to-json-schema)
- Add support for
neverschema (pull request #1430) - Add support for
endsWith,gtValue,hash,includes,isoTimeSecond,isoWeek,isrc,ltValue,mac,mac48,mac64,notValue,notValues,rfcEmail,safeInteger,slug,startsWithandvaluesactions (pull request #1430) - Add JSON compatibility validation for the requirements of
value,values,notValueandnotValuesactions (pull request #1430) - Add inferred
typeforenumandpicklistschemas (pull request #1430) - Change Valibot peer dependency to v1.3.0
v1.3.0
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
guardtransformation action to narrow types using type predicates (pull request #1204) - Add
parseBooleantransformation action to parse boolean values from strings and other types (pull request #1251) - Add
isrcvalidation action to validate ISRC codes (pull request #1373) - Add
cachemethod for caching schema output by input (pull request #1170) - Add
domainvalidation action to validate domain names (pull request #1284) - Add
jwsCompactvalidation action to validate JWS compact strings (pull request #1348) - Fix
creditCardvalidation action to allow 13-digit Visa card numbers (pull request #1347) - Fix
isoTimestampvalidation action to allow optional space before UTC offset for PostgreSQLtimestamptzcompatibility (pull request #1195) - Fix types for deeply readonly default and fallback values
v1.1.0 (i18n)
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)
- 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