Zod version 3.9.8 is a minor release following version 3.9.7 of this TypeScript-first schema declaration and validation library. Both versions maintain the same core functionalities, providing developers with a robust and type-safe system for data validation and schema definition. A primary difference lies in the typescript version. Version 3.9.8 now indicates a version of ^4.4.3, while the previous stable version 3.9.7 targeted 4.3.
While the core dependencies remain the same, there might be subtle bug fixes, performance improvements, or internal tweaks included in version 3.9.8. The unpacked size has also increased slightly from '497241' to '501722'. Developers should be aware that any updates to devDependencies might incidentally affect the development workflow.
For developers already using Zod, upgrading to version 3.9.8 is generally recommended to benefit from the latest improvements and bug fixes, particularly if they've upgraded to TypeScript 4.4.3. Those starting new projects can directly adopt the latest version for the best experience. Consider reviewing Zod's changelog or release notes for a comprehensive list of changes and potential breaking changes before upgrading, though minor version bumps rarely introduce significant compatibility issues.
All the vulnerabilities related to the version 3.9.8 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.