Zod is a TypeScript-first schema declaration and validation library, designed to provide static type inference for developers. Comparing versions 1.6.1 and 1.6.0, the core functionalities remain consistent, focusing on schema definition and data validation with strong typing. Both versions are independent of external dependencies, allowing for lightweight integration in diverse JavaScript and TypeScript projects. Each version uses the same suite of developer tools including Jest for testing, TSLint for code linting, Nodemon for development server management, ts-jest for TypeScript testing with Jest, Prettier for code formatting, and TypeScript for compilation. The testing environment is enhanced by @types/jest for improved type definitions, and make-coverage-badge helps manage test coverage reporting.
The primary difference lies in the internal package size and release date. Version 1.6.1, released on May 16, 2020, has a slightly larger unpacked size of 226,282 bytes compared to version 1.6.0's 226,106 bytes, released on May 8, 2020. This subtle adjustment might indicate minor bug fixes, performance improvements, or internal code refactoring. While the API likely remains unchanged between these versions, developers should always consult the official changelog for any specific updates. Developers benefit from Zod's ability to define schemas and validate data ensuring type safety and robustness in their applications. The similarity in development dependencies between versions implies a consistent development and testing process.
All the vulnerabilities related to the version 1.6.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.