better-ajv-errors is a Node.js library that formats JSON Schema validation errors from ajv into more human-readable messages for CLI output or API-friendly JavaScript structures. It is useful when you want clearer, more helpful error text (including options like JSON line and column info, and optional color formatting).
Project status
- Actively maintained: The repository shows a very recent upstream push on 2026-08-12, and multiple versioned updates have been published in 2026.
- Update cadence: Releases appear to be relatively frequent in 2026 (for example, v5.0.0 on 2026-04-14, v6.0.0 on 2026-05-12, v7.0.0 on 2026-05-14), indicating an active development period rather than long stagnation.
AI summary generated
Recent updates
v7.0.0
v7.0.0 introduces a new `colors` option that controls how CLI output is colorized via user-provided functions. The library no longer relies on `kleur` for color output by default, so output becomes plain text unless `colors` is explicitly provided.
BreakingFeaturesv6.0.0
Release v6.0.0 is a major version focused on raising the minimum runtime and JSON Schema validator support level. The repo also updates build targets and a number of dev/tooling dependencies, and the test suite no longer includes Ajv v7 coverage.
Breakingv5.0.0
Release v5.0.0 primarily raises the supported Node.js version requirement. The code diff also shows a substantial internal test/tooling migration from Jest to Vitest, plus multiple dependency and build-target updates.
Breakingv4.0.1
v4.0.1 is published as a patch release with release notes only mentioning dependency updates. The provided code diff, however, shows largely test-only refactors (switching fixture loading to local path.join and fs/promises) and extensive formatting changes (quote style, indentation, snapshot header text), with no clear behavioral changes to the library's public API.
v4.0.0
Release v4.0.0 is a major version bump that modernizes the project baseline to Node.js 18+ and AJV v7+. The code diff also shows substantial tooling and dependency updates, plus removal of some test coverage around older AJV versions.
Breakingv3.0.1
This v3.0.1 release is intended as a patch, fixing a typo in the default validation error message. The code diff shows the error message rendering was adjusted, and test snapshots were updated to match the new exact output formatting.
v3.0.0
v3.0.0 makes the library depend on Ajv v6+ only, dropping Ajv v4 and v5 support. It also replaces chalk and @babel/code-frame with kleur and an internal code-frame implementation, and updates terminal output formatting (including removing emojis).
Breakingv2.1.3
v2.1.3 is a patch release focused on fixing how decorated JSON data paths are generated when the path points into array elements. The release notes mention specifically the array element decoration bugfix.
v2.1.2
Release v2.1.2 is a patch release that downgrades the library dependency chalk from v5 back to v4. In addition to the dependency change, the code for several validation error printers was modified to change how colored output is generated.
v2.1.1
Release v2.1.1 is described as a patch that fixes the library’s TypeScript types export for ESM. However, the code diff shows additional changes beyond the release notes, including Node engine requirements, dependency major-version bumps, and at least one runtime behavior change in JSON meta extraction for arrays.
Breaking