Ajv-errors version 2.0.0 represents a significant upgrade from version 1.0.1, primarily driven by aligning with newer versions of its peer dependency, Ajv, the JSON Schema validator. Version 2.0.0 mandates Ajv version 7.0.0 or higher, while version 1.0.1 was built for Ajv version 5.0.0 or greater. This shift necessitates developers using ajv-errors to also upgrade their Ajv dependency, unlocking potentially better performance and new features in the validation library itself.
The updated version embraces a modern development toolchain. Version 2.0.0 incorporates TypeScript, ESLint, Prettier, and Jest for enhanced code quality, maintainability and testing. This contrasts sharply with the older version 1.0.1 that relied on tools like js-beautify and Mocha. Also Typescript definitions are now included in the package. Developers benefit from improved type safety, automated code formatting, and robust testing. This translates to fewer bugs, easier collaboration, and a smoother development experience.
Version 2.0.0 introduces several new dev dependencies. The unpacked size of the package also increased due to the additional dependencies included, which is something to keep in mind to avoid vulnerabilities. Both versions are licensed under the MIT license and maintain the same repository URL. Developers should carefully consider updating to version 2.0.0 to use newer versions of Ajv and take advantage of the modern tooling.
The are not vulnerabilities for the version 2.0.0 of the package ajv-errors