Zod is a TypeScript-first schema declaration and validation library renowned for its static type inference capabilities, offering developers a streamlined approach to data validation within TypeScript projects. Comparing versions 3.12.0 and 3.12.1 reveals subtle yet potentially impactful changes. While the core description, development dependencies, license, repository details, author, and funding information remain consistent between the two releases, key differences lie in the dist object and the releaseDate.
The dist object details the package's distribution information. Zod 3.12.1 has a slightly larger unpacked size of 549581 bytes compared to 3.12.0's 545807 bytes, although both versions contain 61 files. This increase in size suggests that some code or assets within the package have been updated or added. Such updates could pertain to bug fixes, performance enhancements, or minor feature additions, all factors that developers usually consider when upgrading. Furthermore, the releaseDate differs significantly, with version 3.12.1 being released on March 1, 2022, and version 3.12.0 being released on February 23, 2022. This near one-week difference likely reflects a rapid response to address any critical bugs or issues discovered in the preceding version. Users should consider upgrading to the newer version (3.12.1) to leverage any improvements and fixes it contains, ensuring a smoother and more robust experience with Zod in their TypeScript applications.
All the vulnerabilities related to the version 3.12.1 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.