Zod, a TypeScript-first schema declaration and validation library, offers robust static type inference, ensuring type safety throughout your application. Version 3.13.4 refines the developer experience and internal efficiencies compared to its predecessor, version 3.13.3. While both versions share an identical suite of development dependencies, including tools for testing (Jest, ts-jest), linting (ESLint), bundling (Rollup) and TypeScript support (ts-node, @rollup/plugin-typescript), subtle improvements have been made.
A key difference lies in the dist object. Version 3.13.4 has slightly increased unpacked size of 415103 compared to a size of 414637 of the previous version which signals an update in the bundled JavaScript code, possibly reflecting bug fixes, performance enhancements, or new feature implementations. Crucially, the release date indicates that version 3.13.4 was published approximately two and a half hours after version 3.13.3 on March 2nd, 2022, suggesting a rapid follow-up release, potentially to address an urgent issue or incorporate last-minute fixes.
For developers, this incremental update signifies a commitment to stability and refinement. While the core API likely remains consistent, upgrading to version 3.13.4 is advisable, as it likely incorporates improvements and bug fixes that contribute to a more robust and reliable experience, especially when aiming to leverage TypeScript's static typing capabilities for data validation. Always check the official changelog for detailed information on specific changes.
All the vulnerabilities related to the version 3.13.4 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.