Change8

Migrating to Zod v3.25.62

Version v3.25.62 introduces 1 breaking change. This guide details how to update your code.

Released: 6/11/2025

1
Breaking Changes
1
Migration Steps
1
Affected Symbols

⚠️ Check Your Code

If you use any of these symbols, you need to read this guide:

json schema types

Breaking Changes

Issue #1

The '| undefined' type has been removed from JSON schema types. This may cause TypeScript compilation errors if your code relies on explicit undefined checks for these schema properties.

Migration Steps

  1. 1
    Update codebases that explicitly use 'undefined' when interacting with JSON schema types to handle the narrowed type definitions.

Release Summary

Release 3.25.62 focuses on refining JSON schema types by removing 'undefined' from their definitions.

Need More Details?

View the full release notes and all changes for Zod v3.25.62.

View Full Changelog