Ajv-errors versions 3.0.0 and 2.0.1 are both designed to extend the Ajv validator with custom error messages defined directly within JSON schemas, improving the user experience and debugging capabilities. The primary difference lies in their peer dependency: version 3.0.0 mandates Ajv version 8.0.1 or higher whereas version 2.0.1 requires Ajv version 7.0.0. This change reflects an update to align with the latest major release of Ajv, which likely incorporates performance improvements, bug fixes, and potentially new features in the core validation library.
For developers considering an upgrade, the move to Ajv 8.0.1 in ajv-errors 3.0.0 is significant. They should first ensure their existing schemas and validation logic are compatible with Ajv 8. If so, upgrading to ajv-errors 3.0.0 allows leveraging the most up-to-date features and optimizations of both libraries. Both versions share a similar development setup, utilizing TypeScript, ESLint, Prettier, and Jest for a robust development pipeline. Developers can expect the same MIT license and repository location for both. The core functionality of adding custom error messages to JSON schema validations remains consistent, enabling developers to provide more informative and user-friendly feedback when validation fails. The unpacked size is also similar, meaning no increase in overhead.
The are not vulnerabilities for the version 3.0.0 of the package ajv-errors