---
title: "Valibot v1.2: Type coercion, AI metadata, and ISBN validation"
url: https://daily.dev/posts/valibot-v1-2-type-coercion-ai-metadata-and-isbn-validation-xruxrp8mp
source_url: https://valibot.dev/blog/valibot-v1.2-release-notes
type: article
source: "Valibot: The modular and type safe schema library"
published: 2026-08-23T12:23:38.709Z
updated: 2026-08-23T12:55:56.440Z
tags: ["javascript", "typescript"]
reading_time: 4
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Valibot v1.2: Type coercion, AI metadata, and ISBN validation

**[Valibot: The modular and type safe schema library](https://daily.dev/sources/valibot)** · 4 min read · 0 upvotes · 0 comments

## Summary

Valibot v1.2 introduces five new type coercion transformation actions (toBigint, toBoolean, toDate, toNumber, toString) useful for parsing form data and query parameters, unlike Zod's z.coerce these can be composed anywhere in a pipeline. A new examples() action attaches machine-readable example values to schemas for AI tool integration and documentation. Built-in isbn() validation now supports ISBN-10 and ISBN-13 formats with checksum verification. The release also fixes an important ReDoS vulnerability in the emoji action's regex pattern, with users of that action urged to upgrade immediately. The build system switched from tsup to tsdown, and LambdaTest joins as a new partner.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://valibot.dev/blog/valibot-v1.2-release-notes>

## Questions this post answers

### Is there a security vulnerability in Valibot's emoji validation action?

Yes, Valibot versions before 1.2 contain a ReDoS (Regular Expression Denial of Service) vulnerability in the EMOJI_REGEX pattern used by the emoji action. An attacker could craft input strings that cause excessive CPU usage. The regex pattern was fixed in v1.2 while keeping the same validation behavior, so anyone using the emoji action should upgrade immediately.

_daily.dev surfaces security fixes like this so validation libraries in your stack stay patched._

### How do Valibot's type coercion actions differ from Zod's z.coerce?

Valibot v1.2 adds toBigint, toBoolean, toDate, toNumber, and toString transformation actions that, unlike Zod's z.coerce, can be composed anywhere within a validation pipeline rather than only at the start. This gives finer control over when transformations happen, for example converting a string to a number and then applying integer and range checks in sequence, useful for parsing form data and query parameters.

_developers comparing Zod and Valibot for schema validation can track library differences on daily.dev._

### Does Valibot support ISBN validation?

Yes, Valibot v1.2 added a built-in isbn() action validating both ISBN-10 and ISBN-13 formats, accepting hyphens and spaces as separators and checking the checksum for mathematical correctness. Example valid formats include '0-306-40615-2' for ISBN-10 and '978-0-306-40615-7' for ISBN-13, making it suited for library systems and bookstore applications handling book identifiers.

_daily.dev helps developers building catalog or bookstore apps keep up with validation library features._

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#typescript](https://daily.dev/tags/typescript)

[View this post on daily.dev](https://daily.dev/posts/valibot-v1-2-type-coercion-ai-metadata-and-isbn-validation-xruxrp8mp)
