Zod version 3.20.2 represents a minor update over its predecessor, 3.20.1, within this TypeScript-first schema declaration and validation library. Both versions maintain the core functionality of providing robust static type inference, ensuring type safety within TypeScript projects.
A key area of comparison lies in the "dist" section. Version 3.20.2 shows an unpacked size of 544597 bytes, slightly increased from 544026 bytes in version 3.20.1. This suggests minor internal adjustments or additions to the package, although not significant enough to warrant a major or minor version bump. The file count remains constant at 44, so the update is not caused by an increased number of files. The release dates also highlight the small period between them, meaning it was fastly patched (approximately 1 hour).
For developers, both versions offer identical sets of devDependencies, showcasing a stable build and test environment. Tools such as typescript, eslint, prettier, jest, and rollup are consistently used for development, linting, formatting, testing, and bundling, respectively. No changes have occurred in supported versions meaning any changes are likely to be backwards compatible.
The most important detail about the update its it's relative simplicity, as both packages only have minor differences, meaning compatibility will not be an issue.
All the vulnerabilities related to the version 3.20.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.