Zod version 3.21.1 represents a minor update to the popular TypeScript-first schema declaration and validation library, building upon the foundation laid by version 3.21.0. While the core functionalities remain consistent, a key difference lies in the increased unpackedSize (601560 vs 601270), suggesting internal adjustments or additions of non-code assets, potentially related to documentation or testing resources. Developers leveraging Zod for runtime data validation can expect identical API behavior and type inference capabilities in both versions. Primarily useful for correcting small issues in the immediate prior release, this new version might also include minor enhancements that contribute to the overall stability and developer experience.
Zod empowers developers to define schemas with a concise, readable syntax, ensuring data conforms to expected structures during runtime, automatically inferring static TypeScript types from these schemas, greatly simplifying type management and eliminating redundant type definitions. The consistent set of development dependencies between these two versions, encompassing tools like typescript, eslint, jest and rollup, guarantees a familiar and well-supported development environment for Zod contributors and underscores the project's commitment to code quality and maintainability. The quick release cycle, evidenced by the short releaseDate interval, also suggests a focus on rapid iteration and responsive bug fixes. Therefore, upgrading when possible will allow your systems to stay up to date with the latest stability improvements.
All the vulnerabilities related to the version 3.21.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.