Zod is a TypeScript-first schema declaration and validation library, prized for its static type inference capabilities, allowing developers to define data shapes with TypeScript's type safety. Comparing versions 3.17.2 and 3.17.0, the core functionality and developer experience remain consistent, with the updates primarily focusing on internal improvements and bug fixes likely driven by community feedback and testing. Both versions share identical development dependencies, including tools for testing (Jest, ts-jest), linting (ESLint, Prettier), bundling (Rollup), and TypeScript support (ts-node, ts-morph).
While the core technologies stay the same, subtle changes are evident in the dist property. Version 3.17.2 shows a slightly larger unpackedSize of 455104 bytes compared to 3.17.0's 454677 bytes, which could be caused by minor code adjustments, potentially including performance enhancements or improved edge-case handling. The releaseDate also highlights the difference, with 3.17.2 being released later on May 22nd, 2022. Users should upgrade to the latest version (3.17.2) to ensure they are using the most stable and refined iteration of Zod with subtle enhancements and fixes. For developers already using Zod, this update offers a seamless transition, providing confidence in the library's continued stability and ongoing updates.
All the vulnerabilities related to the version 3.17.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.