unstale

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 init

@unstale/cli on npm

valibot 185 changes

Breaking changes 11

  • Rejects non-ASCII characters accepted by Unicode case folding.

    1.5.0release notes

  • Drops the i flag for better JSON Schema compatibility.

    1.3.1release notes

  • No longer ignores empty strings as error messages.

    1.0.0release notes

  • Changes validation of missing object entries.

    1.0.0release notes

  • Changes behavior for NaN.

    1.0.0release notes

  • Changes types and behavior for an undefined default value.

    1.0.0release notes

  • Changes types and behavior for an undefined default value, and changes its type signature within object schemas.

    1.0.0release notes

  • Changes types and behavior for an undefined default value, and changes its type signature within object schemas.

    1.0.0release notes

  • The pipe tuple is readonly by default.

    1.0.0release notes

  • Exports only public types to reduce noise.

    1.0.0release notes

  • Types and implementation change to support Standard Schema.

    1.0.0release notes

Security 3

New APIs and options 36

  • Adds a validation action to validate the number of Unicode code points.

    1.5.0release notes

  • Adds a validation action to validate KSUIDs.

    1.5.0release notes

  • Adds a validation action for ISO date times with seconds.

    1.4.0release notes

  • Adds a transformation action to convert strings to camel case.

    1.4.0release notes

  • Adds a transformation action to convert strings to kebab case.

    1.4.0release notes

  • Adds a transformation action to convert strings to Pascal case.

    1.4.0release notes

  • Adds a transformation action to convert strings to snake case.

    1.4.0release notes

  • Adds a method for caching schema output by input.

    1.3.0release notes

  • Adds a validation action for domain names.

    1.3.0release notes

  • Adds a transformation action that narrows types using type predicates.

    1.3.0release notes

  • Adds a validation action for ISRC codes.

    1.3.0release notes

  • Adds a validation action for JWS compact strings.

    1.3.0release notes

  • Adds a transformation action to parse boolean values from strings and other types.

    1.3.0release notes

  • Adds an action for adding example values to a schema.

    1.2.0release notes

  • Adds a method for extracting example values from a schema.

    1.2.0release notes

  • Adds a validation action for ISBN-10 and ISBN-13 strings.

    1.2.0release notes

  • Exports this type to improve the developer experience with rawCheck and rawTransform actions.

    1.2.0release notes

  • Adds a transformation action that converts values to bigint.

    1.2.0release notes

  • Adds a transformation action that converts values to boolean.

    1.2.0release notes

  • Adds a transformation action that converts values to Date.

    1.2.0release notes

  • Adds a transformation action that converts values to number.

    1.2.0release notes

  • Adds a transformation action that converts values to string.

    1.2.0release notes

  • Adds args and returns actions for transforming functions.

    1.0.0release notes

  • Adds a method to assert values.

    1.0.0release notes

  • Adds an asynchronous action for checking items.

    1.0.0release notes

  • Adds a utility to improve tree shaking.

    1.0.0release notes

  • Adds exactOptional and exactOptionalAsync schemas.

    1.0.0release notes

  • Adds grapheme-related actions, including grapheme counting and minimum, maximum, and not-equal validations.

    1.0.0release notes

  • Adds greater-than and less-than validation actions.

    1.0.0release notes

  • Adds an overload signature supporting unlimited pipe items of the same input and output type.

    1.0.0release notes

  • Adds an overload signature supporting unlimited pipe items of the same input and output type.

    1.0.0release notes

  • Adds an action to validate RFC 5322 email addresses.

    1.0.0release notes

  • Adds an action to validate URL slugs.

    1.0.0release notes

  • Adds actions for easier multi-value validation.

    1.0.0release notes

  • Supports optional discriminators using exactOptional, exactOptionalAsync, optional, optionalAsync, nullish, or nullishAsync.

    1.0.0release notes

  • Adds word-related actions, including word counting and minimum, maximum, and not-equal validations.

    1.0.0release notes

Performance 5

  • Uses URL.canParse when available to avoid constructing URL objects.

    1.5.0release notes

  • Word count actions cache Intl.Segmenter for non-primitive locales instead of recreating it for each validation.

    1.4.2release notes

  • Changes hot paths to reduce object allocations and improve runtime performance.

    1.4.0release notes

  • Changes to improve TypeScript performance.

    1.0.0release notes

  • Adds a notation to improve tree shaking.

    1.0.0release notes

Behavior and default changes 4

  • The flatten method now accepts readonly issue arrays.

    1.4.0release notes

  • Changes the type signature to support type predicates.

    1.0.0release notes

  • Changes to support a space as a separator.

    1.0.0release notes

  • The action now supports ReadonlyMap and ReadonlySet.

    1.0.0release notes

Tooling 1

  • Changes the build target to ES2020 so distributed output stays compatible with environments that lack support for newer syntax.

    1.4.0release notes

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.

    1.5.0release notes

  • Merges matching NaN values and invalid dates.

    1.5.0release notes

  • Ignores inherited properties when merging objects, preserves own properties without invoking inherited setters, and does not change the output prototype.

    1.5.0release notes

  • Treats NaN as equal to itself.

    1.5.0release notes

  • Preserves the dataset value when JSON.stringify returns undefined.

    1.5.0release notes

  • Object schemas and their async variants correctly handle unknown input keys that collide with Object.prototype members.

    1.5.0release notes

  • The intersect schema now merges object keys that collide with Object.prototype members such as toString.

    1.4.2release notes

  • Fixes inferred input and output types for non-tuple array options, which were previously inferred as never.

    1.4.1release notes

  • Fixes validation to reject Mastercard numbers with invalid lengths.

    1.4.0release notes

  • Stops mutating input values, allowing frozen objects and arrays to be merged.

    1.4.0release notes

  • Fixes a potential RangeError caused by spreading large issue arrays.

    1.4.0release notes

  • The hash action uses case-expanded character classes instead of the i flag.

    1.3.1release notes

  • Allows 13-digit Visa card numbers.

    1.3.0release notes

  • Fixes types for deeply readonly default and fallback values.

    1.3.0release notes

  • Allows an optional space before the UTC offset for PostgreSQL timestamptz compatibility.

    1.3.0release notes

  • Changes to support floats that start with a dot.

    1.0.0release notes

  • Fixes options filtering in the schema.

    1.0.0release notes

  • Changes to support a space as a separator.

    1.0.0release notes

  • Fixes a TypeScript error for objects with many keys.

    1.0.0release notes

  • Fixes entry order and a TypeScript error when using generic schemas.

    1.0.0release notes

  • Fixes implementation edge cases.

    1.0.0release notes

  • Changes the type signature to add the .pathList property in a type-safe way.

    1.0.0release notes

  • Fixes the action for typed data with issues.

    1.0.0release notes

  • Fixes an instantiation error for any.

    1.0.0release notes

  • Fixes a TypeScript error when using generic schemas.

    1.0.0release notes

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.

    0.0.0upgrade guide

  • flatten now accepts only an array of issues, so pass error.issues instead of a ValiError.

    0.0.0upgrade guide

  • The merge function is no longer provided; combine object schema entries instead.

    0.0.0upgrade guide

New APIs and options 4

  • Added a schema that allows unknown object entries.

    0.0.0upgrade guide

  • Added a schema that allows unknown tuple items.

    0.0.0upgrade guide

  • Added a schema that disallows unknown object entries.

    0.0.0upgrade guide

  • Added a schema that disallows unknown tuple items.

    0.0.0upgrade guide