Back to Explore

readmeio/better-ajv-errors

GitHub
1 watchersOpen source

Last release:

@readme/better-ajv-errors formats JSON Schema validation errors from ajv into more readable messages for developers. It is useful when your schema validation fails and you want to print clearer CLI output (or JavaScript-friendly error objects) instead of raw ajv errors.

Project status

  • Active maintenance: The repo shows ongoing upstream activity (last upstream push on 2026-08-03), but the most recent documented package update in the provided history is 2.4.0 (2025-10-24), so published updates appear intermittent as of 2026-08-13.
  • Update cadence: From 2.2.x (Feb 2025) to 2.3.x (late Feb 2025), then to 2.4.0 (Oct 2025), updates arrived in bursts and then paused for about 10 months before today. There is no provided evidence of a newer released version after 2.4.0.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • 2.4.0

    Release 2.4.0 is primarily described as dependency chores, including several @babel/runtime bumps and updating GitHub Actions workflow versions. However, the actual diff also shows a tooling migration and several code-level safety changes using optional chaining that are not mentioned in the release notes.

    Breaking
  • 2.3.2

    Release 2.3.2 updates the package version metadata and modifies TypeScript typings. The only substantive code change shown in the diff is a change to the return type conditional logic in typings based on the `options.format` value.

  • 2.3.1

    Version 2.3.1 makes a small but potentially breaking change to the output format when using the `cli-array` format option. The release notes provided do not describe any functional behavior changes, but the code and test snapshots show a change in return type.

  • 2.3.0

    Release 2.3.0 adds a new output format option, `cli-array`, intended for hybrid CLI output. The core library now supports returning either a single CLI string (`cli`) or an array of CLI error strings (`cli-array`).

    Features
  • 2.2.1

    Release 2.2.1 is a small patch release focused on addressing an intermittent error related to `undefined loc`. The code diff shows a targeted change in how PatternValidationError builds the codeframe path, and additional test/fixture updates to cover OpenAPI version mismatch behavior.

  • 2.2.0

    Release 2.2.0 focuses on refactoring error message formatting by removing emoji characters from the generated validation error code frames. The main user-visible change is that error strings and snapshots no longer contain the emoji prefixes that previously appeared in the messages.

    Breaking
  • 2.1.2

    Release 2.1.2 has no specific change descriptions in the provided release notes (only a changelog compare link). The code diff shows only version metadata updates in package.json and package-lock.json, with no functional code changes visible.

  • 2.1.1

    This release is a patch bump from 2.1.0 to 2.1.1. The release notes do not list any specific changes beyond a compare link, but the code diff shows a behavioral change in how additional-property validation errors are colorized.

  • 2.1.0

    Release 2.1.0 switches the library's colored error output from Chalk to Picocolors. It also updates Babel runtime in the lockfile and results in corresponding snapshot changes due to different ANSI escape sequence output.

    Features
  • 2.0.0

    Release 2.0.0 is primarily a tooling and dependency overhaul, including a migration of the test suite from Jest to Vitest and a major set of CI and GitHub Actions version bumps. It also changes package metadata (scope/name) and updates TypeScript typings and developer tooling configuration.

    BreakingFeatures