---
title: "ajv 8.20.0 Breaking Changes on npm | Since.dev"
description: "What each ajv release removed, renamed or changed: 175 breaking changes in 19 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/ajv
last_updated: 2026-12-04
---

# ajv breaking changes

ajv 8.20.0 (April 24, 2026) is its newest release with breaking changes. The first: Drops support for Node.js 16 and 21 and adds Node.js 22 and 24 in ajv 8.20.0. Every breaking API change we have recorded in ajv on npm: 175 breaking changes in 19 versions. Below, its 19 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `8.20.0`, released April 24, 2026. [Source repository](https://github.com/ajv-validator/ajv)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [7.2.2](#v-7-2-2) to [8.20.0](#v-8-20-0): 53 breaking changes in 11 versions.
- From [6.0.0](#v-6-0-0) to [8.20.0](#v-8-20-0): 163 breaking changes in 18 versions.

## ajv 8.20.0 breaking changes

ajv 8.20.0, released April 24, 2026: 1 breaking change.

- **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](https://github.com/ajv-validator/ajv/releases/tag/v8.20.0)

## ajv 8.18.0 breaking changes

ajv 8.18.0, released February 14, 2026: 1 breaking change.

- **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](https://github.com/ajv-validator/ajv/releases/tag/v8.18.0)

## ajv 8.13.0 breaking changes

ajv 8.13.0, released April 29, 2024: 2 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](https://github.com/ajv-validator/ajv/releases/tag/v8.13.0)
- **Signature changed** `JSONType`  

Was type JSONType = typeof \_jsonTypes\[number\]; now type JSONType = (typeof \_jsonTypes)\[number\]. [npmjs.com](https://www.npmjs.com/package/ajv/v/8.13.0)

## ajv 8.12.0 breaking changes

ajv 8.12.0, released January 3, 2023: 1 breaking change.

- **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](https://github.com/ajv-validator/ajv/releases/tag/v8.12.0)

## ajv 8.7.0 breaking changes

ajv 8.7.0, released November 8, 2021: 1 breaking change.

- **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](https://github.com/ajv-validator/ajv/releases/tag/v8.7.0)

## ajv 8.5.0 breaking changes

ajv 8.5.0, released May 20, 2021: 1 breaking change.

- **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](https://github.com/ajv-validator/ajv/releases/tag/v8.5.0)

## Older versions

13 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### ajv 8.3.0 breaking changes

ajv 8.3.0, released May 9, 2021: 1 breaking change.

- **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](https://www.npmjs.com/package/ajv/v/8.3.0)

### ajv 8.2.0 breaking changes

ajv 8.2.0, released April 27, 2021: 2 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](https://github.com/ajv-validator/ajv/releases/tag/v8.2.0)
- **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](https://www.npmjs.com/package/ajv/v/8.2.0)

### ajv 8.0.0 breaking changes

ajv 8.0.0, released March 27, 2021: 36 breaking changes.

- **Removed**  

Schemas using id must use $id instead, or stay on version 6. [github.com](https://github.com/ajv-validator/ajv/blob/master/docs/v6-to-v8-migration.md)
- **Removed** `cache`  

Map is used as cache with the schema object as key. [github.com](https://github.com/ajv-validator/ajv/blob/master/docs/v6-to-v8-migration.md)

And 34 more in this version.

### ajv 8.0.0-beta.1 breaking changes

ajv 8.0.0-beta.1, released March 27, 2021: 3 breaking changes.

- **Removed** `strictRequired`  

strictRequired option removed in ajv 8.0.0-beta.1 [github.com](https://github.com/ajv-validator/ajv/releases/tag/v8.0.0-beta.1)
- **Removed** `strictTuples`  

strictTuples option removed in ajv 8.0.0-beta.1 [github.com](https://github.com/ajv-validator/ajv/releases/tag/v8.0.0-beta.1)

And 1 more in this version.

### ajv 8.0.0-beta.0 breaking changes

ajv 8.0.0-beta.0, released March 27, 2021: 4 breaking changes.

- **Removed** `ErrorObject.dataPath`  

Code reading error.dataPath must read error.instancePath instead. [npmjs.com](https://www.npmjs.com/package/ajv/v/8.0.0)
- **Behavior changed**  

Code that matches on error message text must be updated for the new wording. [github.com](https://github.com/ajv-validator/ajv/releases/tag/v8.0.0-beta.0)

And 2 more in this version.

### ajv 7.2.2 breaking changes

ajv 7.2.2, released March 20, 2021: 1 breaking change.

- **Behavior changed** `JSONSchemaType`  

The JSONSchemaType type was simplified in this patch release. Check code that relies on its exact typing after upgrading. [github.com](https://github.com/ajv-validator/ajv/releases/tag/v7.2.2)

### ajv 7.2.1 breaking changes

ajv 7.2.1, released March 7, 2021: 1 breaking change.

- **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](https://github.com/ajv-validator/ajv/releases/tag/v7.2.1)

### ajv 7.2.0 breaking changes

ajv 7.2.0, released March 7, 2021: 2 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](https://github.com/ajv-validator/ajv/releases/tag/v7.2.0)
- **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](https://www.npmjs.com/package/ajv/v/7.2.0)

### ajv 7.1.1 breaking changes

ajv 7.1.1, released February 17, 2021: 1 breaking change.

- **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](https://www.npmjs.com/package/ajv/v/7.1.1)

### ajv 7.1.0 breaking changes

ajv 7.1.0, released February 11, 2021: 2 breaking changes.

- **Removed** `SchemaCxt.strictSchema`  

SchemaCxt.strictSchema was removed in ajv 7.1.0 [npmjs.com](https://www.npmjs.com/package/ajv/v/7.1.0)
- **Signature changed** `KeywordCxt.schema`  

Was readonly schema: any; now schema: any. [npmjs.com](https://www.npmjs.com/package/ajv/v/7.1.0)

### ajv 7.0.0 breaking changes

ajv 7.0.0, released December 15, 2020: 102 breaking changes.

- **Removed**  

Schemas using "id" must be changed to "$id". [github.com](https://github.com/ajv-validator/ajv/releases/tag/v7.0.0)
- **Removed**  

Formats must be explicitly added from ajv-formats if used. [github.com](https://github.com/ajv-validator/ajv/releases/tag/v7.0.0)

And 100 more in this version.

### ajv 7.0.0-beta.5 breaking changes

ajv 7.0.0-beta.5, released December 15, 2020: 1 breaking change.

- **Signature changed** `default`  

Use require("ajv").default to get the Ajv class. [npmjs.com](https://www.npmjs.com/package/ajv/v/7.0.0)

### ajv 6.0.0 breaking changes

ajv 6.0.0, released January 7, 2018: 12 breaking changes.

- **Removed**  

The nodent bundle is removed; the ajv-async package now includes nodent. [github.com](https://github.com/ajv-validator/ajv/releases/tag/v6.0.0)
- **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](https://github.com/ajv-validator/ajv/releases/tag/v6.0.0)

And 10 more in this version.

## Related packages

- [ajv-formats](https://since.dev/packages/npm/ajv-formats.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
