valibot
1.5.0 · 9 Sep 2026MIT32M / weekRepositoryHomepagenpmAtom feed
In short
2 new7 fixed2 changed
Release note
Many thanks to @tats-u, @idleberg, @yslpn, @francisjohnjohnston-web, @MaxFreedomPollard, @mahirhir, @ItzXynx, @LeSingh1, @maxtaran2010, @ysknsid25, @cyyynthia, @spokodev and @sanjibani for contributing to this release.
Add
codePoints,maxCodePoints,minCodePointsandnotCodePointsvalidation actions to validate the number of Unicode code points (pull request #888)Add
ksuidvalidation action to validate KSUIDs (pull request #1370)Change Standard Schema properties to use eager initialization for faster schema construction and replace internal
_getStandardPropsutility with_standardSchema(pull request #1534)Change
urlaction to useURL.canParsewhen available to avoid constructing URL objects (pull request #1608)Fix
stringifyJsonaction to preserve the dataset value whenJSON.stringifyreturnsundefined(pull request #1476)Fix
literalschema andvalue,values,notValueandnotValuesactions to treatNaNas equal to itself (pull request #1573)Fix
intersectschema to merge matchingNaNvalues and invalid dates (pull request #1573)Fix
cacheandcacheAsyncmethods to clone the issues of a cached dataset, preventing parent schemas from adding their path item to the same issue on every cache hit (pull request #1620)Fix
strictObject,looseObject,objectWithRestand their async variants to correctly handle unknown input keys that collide withObject.prototypemembers (pull request #1523)Fix
intersectandintersectAsyncschemas to ignore inherited properties when merging objects and preserve own properties without invoking inherited setters or changing the output prototype (pull request #1621)Fix
ulidaction to reject ULIDs that exceed the maximum 128-bit value (pull request #1498)Fix
emailaction to reject non-ASCII characters accepted by Unicode case folding (pull request #1075)