Zod is a TypeScript-first schema declaration and validation library, known for its static type inference, making it a popular choice for developers seeking robust data validation in their TypeScript projects. Comparing versions 1.9.0 and 1.9.1 reveals subtle but important changes. Both versions share the same core dependencies and devDependencies, indicating a focus on stability. These include testing frameworks like Jest and Ts-Jest, linters like TSLint, and tools like Prettier to ensure code quality and consistency. The TypeScript version supported is 3.2.
The key difference lies in the dist section. Version 1.9.1 increased the fileCount to 113 from 112 in 1.9.0 and the unpackedSize grew from 254737 bytes to 256178 bytes. This suggests that version 1.9.1 includes minor code improvements or bug fixes, potentially addressing reported issues or optimizing performance. The release dates also highlight this, with version 1.9.1 released approximately a week after 1.9.0.
For developers considering Zod, these point releases signify the project's commitment to continuous improvement. While the core functionality likely remains the same, upgrading to version 1.9.1 is recommended to benefit from the latest refinements and ensure compatibility. Always refer to the changelog on the official repository for detailed lists of changes.
All the vulnerabilities related to the version 1.9.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.