ajv-formats provides JSON Schema format validation add-ons for Ajv v8+, defining many standard `format` values like date, time, date-time, URI, email, UUID, IP addresses, and numeric and binary formats. It is useful when you want Ajv to enforce specific string formats in your schemas, with options for selecting formats and validation mode (for example, full vs fast).
Project status
- Actively maintained: The upstream repository shows a recent push on 2024-08-18, which suggests ongoing maintenance activity, though the provided tag-level update summaries stop in 2021.
- Update cadence: Known update activity from the listed versions is sparse (v2.1.0 in 2021-05, v2.1.1 in 2021-08, v3.0.0-rc.0 in 2021-11), and there is insufficient evidence here to describe a current post-2021 cadence.
AI summary generated Today
Recent updates
v3.0.0-rc.0
11/7/2021v3.0.0-rc.0 changes the built-in JSON Schema formats for RFC3339 time and date-time to enforce timezone handling, and adds new alternative formats for backwards compatibility. Specifically, `time` and `date-time` now require a timezone, while `iso-time` and `iso-date-time` allow optional timezones and preserve older comparison behavior for `formatMaximum` and `formatMinimum`.
BreakingFeaturesv2.1.1
8/14/2021Release v2.1.1 is a small patch intended to address an issue with the `byte` format validation. The diff shows additional changes to the internal format-regex definitions and test coverage, plus a dev dependency bump.
v2.1.0
5/4/2021v2.1.0 adds additional OpenAPI data type formats to the library. The main change is support for OpenAPI number formats like int32, int64, float, and double, implemented as Ajv format validators in src/formats.ts.
Featuresv2.0.2
4/2/2021v2.0.2 updates ajv-formats to work with Ajv v8 by changing the package’s ajv dependency and peer dependency configuration. The code changes also adjust module export behavior and some internal Ajv integration points.
Breakingv1.6.1
4/2/2021This release updates the package metadata to make `ajv` a direct dependency while marking the `ajv` peer dependency as optional, intended to improve compatibility with `npm --legacy-peer-deps`. It also adjusts CI workflow branch triggers.
v2.0.1
3/28/2021Release v2.0.1 primarily bumps the package version and updates Ajv to a newer release. The code changes are limited to dependency metadata in package.json, adjusting both peerDependencies and devDependencies for Ajv.
Breakingv2.0.0
3/27/2021v2.0.0 is described as an upgrade to support Ajv v8. The code changes include Ajv v8 API compatibility updates and a change to the package's module export interop.
v1.6.0
3/27/2021This release (v1.6.0) changes how ajv is consumed by switching ajv from a regular dependency to a peer dependency. It also updates README links to point at ajv documentation paths under the main branch.
Breakingv2.0.0-beta.3
3/23/2021This release, v2.0.0-beta.3, contains no functional code changes compared to v2.0.0-beta.2. The only observed change is an update to the package version in package.json.
v2.0.0-beta.2
3/23/2021This release bumps the package version to v2.0.0-beta.2 and updates the Ajv dependency used by ajv-formats. The only code change shown is a dependency specification update in package.json.