Back to Explore

open-circle/valibot

GitHub
6 updates · last 90 days1 watchersOpen source

Last release:

Valibot is a modular, type-safe TypeScript library for validating and transforming structured data at runtime using schemas. It is useful for checking incoming data (for example server requests, form inputs, or configuration files) with small bundles and a no-dependencies approach, providing APIs like parse, safeParse, and type guards.

Project status

  • Actively maintained, with recent activity on GitHub (last upstream push on 2026-06-28) and multiple package updates published in 2026 (March, May, June).
  • Update cadence appears fairly steady, roughly every 2 to 8 weeks in 2026 (e.g., 2026-03-17/18, 2026-05-05/24, 2026-06-08, 2026-06-28).

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v1.4.2

    Release v1.4.2 focuses on correctness fixes around string word counting and safe merging/flattening of issue paths whose keys may collide with Object.prototype members. The diff also includes substantial website and build infrastructure changes (Cloudflare deployment tooling, headers/redirects) that are not described in the provided release notes.

    Security
  • v1.7.1-to-json-schema

    v1.7.1-to-json-schema fixes JSON Schema `$ref` generation so that definition keys containing `/` or `~` are encoded using JSON Pointer token escaping. The code changes align with the release notes, but the commit also includes a large set of unrelated website and i18n modifications that are not mentioned in the release notes.

  • v1.4.1

    Release v1.4.1 documents a type inference fix for the `intersect` schema when options are provided as a non-tuple array. The code diff also includes multiple undocumented website and tooling changes, including a syntax highlighting migration from `@mapbox/rehype-prism` to Shiki.

  • v1.7.0-to-json-schema

    This release bumps the published versions of the monorepo packages @valibot/to-json-schema (v1.7.0) and @valibot/i18n (v1.2.0) and updates their peer dependency on Valibot to ^1.4.0. The provided release notes only mention the ES2020 build target change and the Valibot peer bump, but the code diff also includes additional compatibility details from Valibot v1.4.

    Breaking
  • v1.2.0-i18n

    The v1.2.0-i18n release notes document two changes: adding Uzbek (uz) translations and updating the Valibot peer dependency to ^1.4.0. However, the actual code diff includes many additional changes, including new exports/actions and several type and runtime behavior adjustments that are not mentioned in the release notes.

    BreakingFeatures
  • v1.4.0

    Valibot v1.4.0 adds new ISO datetime validation for timestamps with seconds and introduces string case transformation actions. The release also includes multiple runtime and TypeScript type-performance improvements, plus fixes to edge-case behaviors in issue flattening, credit card validation, and schema intersection input handling.

    BreakingFeatures
  • v1.3.1

    v1.3.1 release notes state that specific MAC-related regexes (MAC48_REGEX, MAC64_REGEX, MAC_REGEX) were updated to drop the `i` flag for JSON Schema compatibility, and that the `hash` action was updated to use case-expanded character classes instead of the `i` flag. However, the provided code diff shows additional regex constants were modified beyond what the release notes describe. The diff also includes unrelated i18n package changes adding Greek translations and updating package versions/exports.

  • v1.1.0-i18n

    Release v1.1.0-i18n, per the release notes, focuses on adding more i18n translations and a Valibot peer dependency tweak. However, the provided code diff shows substantial new validation actions and multiple behavioral changes to existing validators that are not described in the release notes.

    Features
  • v1.6.0-to-json-schema

    v1.6.0-to-json-schema adds conversion support for the new Valibot `never` schema and multiple additional action types (string/content actions, MAC/ISRC, time variants, numeric comparisons, and hash-based actions). It also expands JSON Schema compatibility checks for `value`, `values`, `notValue`, and `notValues`, and updates the `valibot` peer dependency to v1.3.0.

    BreakingFeatures
  • v1.3.0

    v1.3.0 adds several new validation and transformation actions, including guard-based type narrowing, parseBoolean, ISRC, domain, and JWS compact validation. It also introduces a cache method to cache schema output by input, and includes fixes to specific validation behaviors and some type definitions.

    Features
  • v1.5.0-to-json-schema

    v1.5.0 adds support for generating JSON Schema draft-2020-12 and OpenAPI 3.0 Schema Object output, including record `propertyNames` validation and additional input-only `to*` actions. It also introduces `toStandardJsonSchema` and changes the exported JSON Schema type from `JSONSchema7` to a custom `JsonSchema` type.

    BreakingFeatures
  • v0.1.2-zod-to-valibot

    Release v0.1.2 updates the codemod CLI documentation and usage examples to reference the scoped package name `@valibot/zod-to-valibot`. The code diff also updates internal website usage to import the transform from the scoped package.

    Breaking