Zod, a TypeScript-first schema declaration and validation library, released version 3.22.2 on August 19, 2023, succeeding version 3.22.1, released on August 15, 2023. Both versions maintain the same core functionality, offering static type inference and aiming to simplify data validation in TypeScript projects. The description, dependencies, devDependencies, license, repository, author, and funding fields remain consistent between the two versions, underscoring the project's commitment to stability and community support.
The crucial distinctions lie within the dist object and the releaseDate. While the fileCount remains constant at 46, the unpackedSize sees a slight increase from 615767 bytes in version 3.22.1 to 616049 bytes in version 3.22.2, suggesting minor code additions, bug fixes, or documentation enhancements. Developers considering upgrading should investigate the commit history between these dates on the project's GitHub repository to understand the specific changes contributing to this size difference. The updated releaseDate confirms the recency of version 3.22.2. The changes while minimal, are still important to keep up with the latest improvements and bug fixes, so developers are encouraged to update to the newest version. Always consider any potential breaking changes (unlikely in a minor version bump) and compatibility with your existing codebase before upgrading.
Both versions offer a robust set of tools for schema definition and validation, making Zod a powerful asset for ensuring data integrity in TypeScript applications. The library helps create clean, type-safe APIs and data structures. Developers can download either version from the npm registry using npm install zod@3.22.1 or npm install zod@3.22.2 respectively.
All the vulnerabilities related to the version 3.22.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.