Zod is a popular TypeScript-first schema declaration and validation library known for its excellent static type inference capabilities. Comparing versions 1.11.12 and 1.11.13 reveals only subtle but important changes. Both versions share identical development dependencies, including tools like Jest for testing, TSLint for linting, and TypeScript for compilation, indicating a consistent development environment. The core library features and developer experience are likely very similar between the two.
However, digging into the "dist" section highlights a small difference: version 1.11.13 exhibits a slight increase in unpacked size (314258 bytes) compared to 1.11.12 (314232 bytes). Both versions have the same number of files (126), so the size difference likely stems from minor code adjustments, potentially bug fixes, or small feature enhancements. Furthermore, version 1.11.13 was released on March 22, 2021, whereas version 1.11.12 was released on March 18, 2021, indicating a short release cycle focused on addressing potential issues or delivering quick improvements. For developers, upgrading to 1.11.13 is recommended to benefit from any bug fixes or performance tweaks included in the newer version, though the changes appear to be incremental rather than transformative. Given the same number of files, the increase in size will likely be contained in one or very few of these.
All the vulnerabilities related to the version 1.11.13 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.