Packages

ajv

8.20.0 · 24 Apr 2026MIT544M / weekRepositoryHomepagenpmAtom feed

Your version

7.2.1

7 Mar 2021Where it was published

7.2.4 is the newest release of 7.x.

In short

1 breaking2 fixed5 changed

  • Breaking

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

Security

1 advisory affects 7.2.1; 8.18.0 fixes them

Release note

Add tests and fix parsers compiled with ajv.compileParser from JTD schemas:

  • Fail on invalid JSON:

    • trailing comma in arrays/objects

    • invalid JSON numbers

    • control characters in strings

  • Fix parsing of u-escaped characters

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

Compiled parsers are now:

  • Consistent with JSON.parse in case of invalid JSON

  • Only parse data that is valid for JTD schema

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

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.