Zod is a TypeScript-first schema declaration and validation library, prized for its static type inference capabilities. Comparing versions 3.14.0 and 3.14.1, we see subtle yet potentially important differences for developers. Both versions maintain the same core set of development dependencies, including tools for testing (Jest, ts-jest), linting (ESLint), bundling (Rollup), and static analysis (dependency-cruiser). The author, license, funding, and repository information also remain consistent, indicating a stable and actively maintained project.
The key differences lie in the distribution metadata. Version 3.14.1 shows a slightly larger unpackedSize (332471 bytes) compared to version 3.14.0 (325297 bytes) and a higher fileCount (36 vs 34). This suggests that version 3.14.1 includes some additional files or code modifications that are not present in the earlier version, or some files have been updated. Though without further details, it is not possible to tell the content of the changes.
Developers considering upgrading should investigate the changelog or release notes for 3.14.1 to understand the specific changes. These could include bug fixes, performance improvements, new features, or even dependency updates that, while not reflected in the direct devDependencies, may affect compatibility. The slight increase in size shouldn't be a deterrent unless storage space is highly constrained, but understanding *why* the size increased is crucial for making an informed decision. If the changelog mentions critical bugfixes, it would be beneficial to upgrade to version 3.14.1.
All the vulnerabilities related to the version 3.14.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.