ajv breaking changes
Updated December 4, 2026
On this page
Latest version 8.20.0, released April 24, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 7.2.2 to 8.20.0: 53 breaking changes in 11 versions.
- From 6.0.0 to 8.20.0: 163 breaking changes in 18 versions.
ajv 8.20.0 breaking changes
- Removed
The release drops Node.js 16 and 21 support and adds Node.js 22 and 24. Users on Node.js 16 or 21 must upgrade their Node.js version before using this release. github.com
ajv 8.18.0 breaking changes
- Behavior changed
pattern
To mitigate ReDoS attacks, the pattern keyword used with $data now uses the RegExp engine set in the configured options. Code that relies on the default RegExp behavior for $data patterns may see different matching. github.com
ajv 8.13.0 breaking changes
- Configuration changed
The release adds named exports, updates dependencies and updates Node.js support; the notes do not describe any breaking change that existing code must handle. github.com - Signature changed
JSONType
Was type JSONType = typeof _jsonTypes[number]; now type JSONType = (typeof _jsonTypes)[number]. npmjs.com
ajv 8.12.0 breaking changes
- Removed
CI now runs on Node.js 14, 16, 18 and 19; the release notes list no Node.js version dropped. Check your own Node.js version against these. github.com
ajv 8.7.0 breaking changes
- Behavior changed
minContains
With minContains set to 0, an empty array now passes validation as the JSON Schema spec requires. Check schemas that relied on the old rejection of empty arrays. github.com
ajv 8.5.0 breaking changes
- Configuration changed
schemaId
The new schemaId option lets Ajv work with draft-04 schemas through the separate ajv-draft-04 package; existing configurations are unaffected unless they set this option. github.com
Older versions
13 older versions, each with its first changes. Sign up to see every change
Show 13 older versions
ajv 8.3.0 breaking changes
- Signature changed
JSONSchemaType
Was type JSONSchemaType<T, _partial extends boolean = false> = ({anyOf: readonly JSONSchemaType<T, _partial>[];} | {oneOf: readonly JSONSchemaType<T, _partial>[];} | ({type: (T extends number ? JSONType<"number" | "integer", _partial> : T... npmjs.com
ajv 8.2.0 breaking changes
- Signature changed
compile
The compile method signature now includes a JTDDataType parameter. Code calling compile with the previous arguments should still work, but review typings if you rely on the exact signature. github.com - Signature changed
JSONSchemaType
Was type JSONSchemaType<T, _partial extends boolean = false> = ({anyOf: readonly JSONSchemaType<T, _partial>[];} | {oneOf: readonly JSONSchemaType<T, _partial>[];} | ({type: (T extends number ? JSONType<"number" | "integer", _partial> : T... npmjs.com
ajv 8.0.0 breaking changes
- Removed
Schemas using id must use $id instead, or stay on version 6. github.com - Removed
cache
Map is used as cache with the schema object as key. github.com
And 34 more in this version.
ajv 8.0.0-beta.1 breaking changes
- Removed
strictRequired
strictRequired option removed in ajv 8.0.0-beta.1 github.com - Removed
strictTuples
strictTuples option removed in ajv 8.0.0-beta.1 github.com
And 1 more in this version.
ajv 8.0.0-beta.0 breaking changes
- Removed
ErrorObject.dataPath
Code reading error.dataPath must read error.instancePath instead. npmjs.com - Behavior changed
Code that matches on error message text must be updated for the new wording. github.com
And 2 more in this version.
ajv 7.2.2 breaking changes
- Behavior changed
JSONSchemaType
The JSONSchemaType type was simplified in this patch release. Check code that relies on its exact typing after upgrading. github.com
ajv 7.2.1 breaking changes
- Behavior changed
ajv.compileParser
Parsers compiled with ajv.compileParser from JTD schemas now fail on invalid JSON such as trailing commas, invalid JSON numbers and control characters in strings. Code that relied on accepting such input must be changed. github.com
ajv 7.2.0 breaking changes
- Configuration changed
strictRequired
A new strictRequired option logs or fails when properties listed in JSON Schema required are not defined in properties. It is off by default, so existing code is unaffected unless it opts in. github.com - Signature changed
JSONSchemaType
Was type JSONSchemaType<T, _partial extends boolean = false> = (T extends number ? {type: JSONType<"number" | "integer", _partial>; minimum?: number; maximum?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; multipleOf?... npmjs.com
ajv 7.1.1 breaking changes
- Signature changed
JSONSchemaType
Was type JSONSchemaType<T, _partial extends boolean = false> = (T extends number ? {type: JSONType<"number" | "integer", _partial>; minimum?: number; maximum?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; multipleOf?... npmjs.com
ajv 7.1.0 breaking changes
- Removed
SchemaCxt.strictSchema
SchemaCxt.strictSchema was removed in ajv 7.1.0 npmjs.com - Signature changed
KeywordCxt.schema
Was readonly schema: any; now schema: any. npmjs.com
ajv 7.0.0 breaking changes
- Removed
Schemas using "id" must be changed to "$id". github.com - Removed
Formats must be explicitly added from ajv-formats if used. github.com
And 100 more in this version.
ajv 7.0.0-beta.5 breaking changes
- Signature changed
default
Use require("ajv").default to get the Ajv class. npmjs.com
ajv 6.0.0 breaking changes
- Removed
The nodent bundle is removed; the ajv-async package now includes nodent. github.com - Removed
The v5 meta-schema is no longer bundled; schemas referring to it must move to draft-07 or another supported meta-schema. github.com
And 10 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.