Zod version 3.21.2 is a minor patch release of the popular TypeScript-first schema declaration and validation library, following closely after version 3.21.1. Both versions maintain the same core functionality, offering developers a powerful and intuitive way to define schemas and validate data within their TypeScript projects, emphasizing static type inference for enhanced type safety. The primary difference lies in the dist metadata. Version 3.21.2 reflects a minor adjustment, increasing the unpackedSize from 601560 bytes in 3.21.1 to 602467 bytes. This suggests a relatively small change, potentially bug fixes, internal improvements, or minor documentation updates. For developers, this means upgrading from 3.21.1 to 3.21.2 is likely a low-risk operation, unlikely to introduce breaking changes. Because both versions share the same dependencies and devDependencies, including tools like typescript, eslint, jest, and rollup, the development environment and build process remain consistent. Zod's commitment to providing a robust validation solution and its focus on developer experience make it an excellent choice for applications requiring strong data integrity. While the differences between these specific versions are minimal, staying up-to-date ensures access to the latest refinements and stability improvements.
All the vulnerabilities related to the version 3.21.2 of the package
Zod denial of service vulnerability
Zod version 3.22.2 allows an attacker to perform a denial of service while validating emails.