npm / valibot
valibot
What changed in valibot 0.0 to 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
14 breaking3 security40 new APIs and options5 performance4 behavior and defaults1 tooling25 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initvalibot 185 changes
Breaking changes 11
Rejects non-ASCII characters accepted by Unicode case folding.
Drops the i flag for better JSON Schema compatibility.
No longer ignores empty strings as error messages.
Changes validation of missing object entries.
Changes behavior for NaN.
Changes types and behavior for an undefined default value.
Changes types and behavior for an undefined default value, and changes its type signature within object schemas.
Changes types and behavior for an undefined default value, and changes its type signature within object schemas.
The pipe tuple is readonly by default.
Exports only public types to reduce noise.
Types and implementation change to support Standard Schema.
Security 3
Rejects ULIDs that exceed the maximum 128-bit value.
The flatten method now handles issue path keys that collide with Object.prototype members such as toString without throwing a TypeError.
Valibot has a ReDoS vulnerability in
EMOJI_REGEX
New APIs and options 36
Adds a validation action to validate the number of Unicode code points.
Adds a validation action to validate KSUIDs.
Adds a validation action for ISO date times with seconds.
Adds a transformation action to convert strings to camel case.
Adds a transformation action to convert strings to kebab case.
Adds a transformation action to convert strings to Pascal case.
Adds a transformation action to convert strings to snake case.
Adds a method for caching schema output by input.
Adds a validation action for domain names.
Adds a transformation action that narrows types using type predicates.
Adds a validation action for ISRC codes.
Adds a validation action for JWS compact strings.
Adds a transformation action to parse boolean values from strings and other types.
Adds an action for adding example values to a schema.
Adds a method for extracting example values from a schema.
Adds a validation action for ISBN-10 and ISBN-13 strings.
Exports this type to improve the developer experience with rawCheck and rawTransform actions.
Adds a transformation action that converts values to bigint.
Adds a transformation action that converts values to boolean.
Adds a transformation action that converts values to Date.
Adds a transformation action that converts values to number.
Adds a transformation action that converts values to string.
Adds args and returns actions for transforming functions.
Adds a method to assert values.
Adds an asynchronous action for checking items.
Adds a utility to improve tree shaking.
Adds exactOptional and exactOptionalAsync schemas.
Adds grapheme-related actions, including grapheme counting and minimum, maximum, and not-equal validations.
Adds greater-than and less-than validation actions.
Adds an overload signature supporting unlimited pipe items of the same input and output type.
Adds an overload signature supporting unlimited pipe items of the same input and output type.
Adds an action to validate RFC 5322 email addresses.
Adds an action to validate URL slugs.
Adds actions for easier multi-value validation.
Supports optional discriminators using exactOptional, exactOptionalAsync, optional, optionalAsync, nullish, or nullishAsync.
Adds word-related actions, including word counting and minimum, maximum, and not-equal validations.
Performance 5
Uses
URL.canParsewhen available to avoid constructing URL objects.Word count actions cache Intl.Segmenter for non-primitive locales instead of recreating it for each validation.
Changes hot paths to reduce object allocations and improve runtime performance.
Changes to improve TypeScript performance.
Adds a notation to improve tree shaking.
Behavior and default changes 4
The flatten method now accepts readonly issue arrays.
Changes the type signature to support type predicates.
Changes to support a space as a separator.
The action now supports ReadonlyMap and ReadonlySet.
Tooling 1
Changes the build target to ES2020 so distributed output stays compatible with environments that lack support for newer syntax.
Fixes and other changes 25
Clones issues from a cached dataset so parent schemas do not add their path item to the same issue on every cache hit.
Merges matching
NaNvalues and invalid dates.Ignores inherited properties when merging objects, preserves own properties without invoking inherited setters, and does not change the output prototype.
Treats
NaNas equal to itself.Preserves the dataset value when
JSON.stringifyreturnsundefined.Object schemas and their async variants correctly handle unknown input keys that collide with
Object.prototypemembers.The intersect schema now merges object keys that collide with Object.prototype members such as toString.
Fixes inferred input and output types for non-tuple array options, which were previously inferred as never.
Fixes validation to reject Mastercard numbers with invalid lengths.
Stops mutating input values, allowing frozen objects and arrays to be merged.
Fixes a potential RangeError caused by spreading large issue arrays.
The hash action uses case-expanded character classes instead of the i flag.
Allows 13-digit Visa card numbers.
Fixes types for deeply readonly default and fallback values.
Allows an optional space before the UTC offset for PostgreSQL
timestamptzcompatibility.Changes to support floats that start with a dot.
Fixes options filtering in the schema.
Changes to support a space as a separator.
Fixes a TypeScript error for objects with many keys.
Fixes entry order and a TypeScript error when using generic schemas.
Fixes implementation edge cases.
Changes the type signature to add the .pathList property in a type-safe way.
Fixes the action for typed data with issues.
Fixes an instantiation error for any.
Fixes a TypeScript error when using generic schemas.
valibot 0.07 changes
Breaking changes 3
The coerce method was removed as an insecure API; use pipe with transform to explicitly define input types.
flatten now accepts only an array of issues, so pass error.issues instead of a ValiError.
The merge function is no longer provided; combine object schema entries instead.
New APIs and options 4
Added a schema that allows unknown object entries.
Added a schema that allows unknown tuple items.
Added a schema that disallows unknown object entries.
Added a schema that disallows unknown tuple items.