By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Zod v4 Available with Major Performance Improvements and Introduction of Zod Mini
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > Zod v4 Available with Major Performance Improvements and Introduction of Zod Mini
News

Zod v4 Available with Major Performance Improvements and Introduction of Zod Mini

News Room
Last updated: 2025/08/23 at 7:14 AM
News Room Published 23 August 2025
Share
SHARE

Zod, the TypeScript-first schema validation library, has released version 4 as a stable milestone. The new version delivers performance improvements, reduced bundle size, and updated API including a new simplified, tree-shakable mini package.

Zod v4 introduces a series of changes across three key areas: performance, API design, and tooling support. Benchmarks published by the maintainers show 14x faster string parsing, 7x faster array parsing, and 6.5x faster object parsing compared to Zod 3. These improvements are paired with reductions in TypeScript type instantiation, helping projects compile faster in large codebases.

Another headline feature in this release is the introduction of @zod/mini, a lightweight distribution weighing just ~1.9 KB gzipped, designed for tree-shakable validation in modern frontend applications. One of the core advantages to Zod Mini appears to be the ability for it to tree-shake, which was difficult with the regular version of Zod. To enable this, Zod Mini generally uses wrapper functions instead of methods, so in regular Zod, a developer might use:

 


import * as z from "zod";

z.string().optional();


Whereas in Zod Mini, the same functionality is achieved using a wrapper function:

 


import * as z from "zod/mini"; 

z.optional(z.string());

The mini library is around 6x smaller than the standard Zod v4 package.

API refinements also feature prominently in Zod v4. Format helpers such as z.email(), z.uuid(), and z.url() have been promoted to top-level functions, replacing method calls and improving tree-shaking. Error handling has been unified under a single error parameter, replacing the previous fragmented approach (message, required_error, invalid_type_error).

Developers can also now attach strongly typed metadata to schemas, enabling new workflows such as schema-driven form generation.

Zod v4 further introduces built-in JSON Schema conversion via .toJSONSchema(), eliminating the need for external libraries to bridge Zod schemas into standardized formats.

For teams upgrading from v3, an unofficial codemod (zod-v3-to-v4) is available to automate common migration tasks. The maintainers have also published a migration guide detailing breaking changes and recommendations for a smoother transition.

Community feedback has highlighted both performance and metadata as standout features. On r/reactjs, one developer noted:

The most exciting thing to me is the addition of custom metadata, which means Zod is now a viable schema type for form generation.

In a video overview, TypeScript educator Matt Pocock emphasized that Zod v4 is not only faster but also commented particularly on the performance of TypeScript due to the lower number of TypeScript instantiations. He also discussed the introduction of @zod/mini, and that having a tree-shakable Zod is so good for the front-end.

Early adopters have expressed enthusiasm for the release. NextJS Weekly described Zod v4 as a monster upgrade, with developers citing speed, smaller bundles, and extensibility as compelling reasons to migrate.

Zod is an open-source project widely adopted across TypeScript ecosystems for runtime validation, schema inference, and API contracts. To upgrade, developers can head over to the migration guide in the documentation.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Free Professional Job Description Templates for Google Docs
Next Article 5 Must-See Netflix Trailers For Shows Coming in August, September, and Beyond
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

My Experience With KCDC 2025: Is It Worth Going to? | HackerNoon
Computing
6 Movies on Prime Video You’ve Never Heard Of (but Should Watch Tonight)
News
Your orange iPhone 17 Pro will look like this in Apple’s new phone case
News
BingX Welcomes 100+ Affiliates To BingXperience Bali 2025, Strengthening Community Ties and Openness | HackerNoon
Computing

You Might also Like

News

6 Movies on Prime Video You’ve Never Heard Of (but Should Watch Tonight)

10 Min Read
News

Your orange iPhone 17 Pro will look like this in Apple’s new phone case

4 Min Read
News

Best Innerspring Mattress in 2025

3 Min Read
News

X Agrees to Settle $500M Class Action Lawsuit Over 2022 Layoffs

5 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?