Zod version 3.20.3 is a patch release focusing on refinements and internal improvements over the previous stable version, 3.20.2. While the core functionalities of this TypeScript-first schema declaration and validation library for static type inference remain consistent, developers can expect subtle enhancements and bug fixes under the hood. Examining the dist property, the file count has increased from 44 to 46, and the unpacked size has marginally grown from 544597 to 556117 bytes. This suggests that there are likely new files or modifications impacting the overall size of the package, which is not breaking changes for the developers.
Crucially, the dependency specifications (dependencies and devDependencies) remain identical between the two versions, indicating that the core build and testing tools have not been updated, meaning that older projects using v3.20.2 will find it easy to upgrade. The most apparent distinction is the release date, with version 3.20.3 published on February 8, 2023, considerably later than the previous version released on December 12, 2022. Users seeking the most up-to-date fixes and refinements should upgrade to version 3.20.3. Overall, this minor patch release ensures enhanced stability and potentially improved performance for developers already leveraging Zod for schema validation in TypeScript projects.
All the vulnerabilities related to the version 3.20.3 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.