Packages

ajv

8.20.0 · 24 Apr 2026MIT544M / weekRepositoryHomepagenpmAtom feed

Upgrading ajv From 7.0.0 to 7.2.4

11 releases in betweenevery note read

Other targets from 7.0.0Clears its advisory8.18.0Latest8.20.0
  1. 7.0.0yours
  2. 7 releases
  3. 7.2.1breaking
  4. 2 releases
  5. 7.2.4target
1
change to make
0
advisories fixed
0
new
2
fixes

Before you upgrade

Tick each one off as you go
  • Breaking7.2.1

Security

1 advisory still affects 7.2.4

Upgrading to 8.18.0 clears it.

Release by release

  1. 7.2.2 – 7.2.43 releases, nothing new or fixed in the notes

  2. 7.2.1

    Migration needed7 Mar 20212 fixes
    • Breaking

      It is a breaking change for compiled parsers compared with 7.2.0 that was released earlier on the same day.

    • Fixed

      Fix parsing of u-escaped characters

    • Fixed

      Do not fail on duplicate object keys (consistent with JSON.parse)

  3. 7.0.1 – 7.2.07 releases, nothing new or fixed in the notes

13 other lines we could not sort, mostly version bumps
  • Trailing comma in arrays/objects

    7.2.1
  • Invalid JSON numbers

    7.2.1
  • Control characters in strings

    7.2.1
  • Consistent with JSON.parse in case of invalid JSON

    7.2.1
  • Only parse data that is valid for JTD schema

    7.2.1
  • JTDSchemaType<T> utility type to convert your data type into the type of JTD schema, to simplify its writing and to make sure it is consistent with your data type, with type inference support for ajv methods (@erikbrinkman, #1446, #1456, #1457, #1475) - see example here

    7.2.0
  • Alternatively, you can use JTDDataType<typeof schema> utility type to convert your JTD schema type into the type of data (@erikbrinkman, #1458) - see this example

    7.2.0
  • An informal document on Ajv site

    7.1.0
  • choosing schema language - comparison with JSON Schema

    7.1.0
  • oneOf error type (#1368, @G-Rath)

    7.0.3

1 internal line (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.