Zod, a TypeScript-first schema declaration and validation library, released version 1.0.2 shortly after its previous stable version, 1.0.1. Both versions, licensed under MIT, offer developers a powerful way to define data schemas directly in TypeScript and leverage static type inference for safer and more predictable code. The library's core function remains consistent: providing a robust validation system that catches errors early in the development process, improving code reliability. Developers will appreciate the simple yet expressive syntax for defining complex data structures, guaranteeing data integrity throughout their applications.
While the description and core functionality remained largely the same between versions 1.0.1 and 1.0.2, a few subtle differences are noteworthy. The author field was refined; version 1.0.1 listed "Colin McDonnell @vriad," which became "Colin McDonnell" with the email "colin@vriad.com" in version 1.0.2. This suggests an effort towards improved maintainer contact information. The slight increase in unpacked size (from 43778 to 44142) and file count (remained at 23) likely indicates minor code improvements, bug fixes, or potentially the addition of small features during this release. Users should upgrade to benefit from these minor fixes and improvements. The library is hosted on GitHub under the vriad/zod repository.
All the vulnerabilities related to the version 1.0.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.