ajv
8.20.0 · 24 Apr 2026MIT544M / weekRepositoryHomepagenpmAtom feed
Upgrading ajv From 7.1.1 to 7.2.4
5 releases in betweenevery note read
- 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
- ajv has ReDoS when using `$data` optionmoderate · GHSA-2g4f-4pwh-qvx6
Upgrading to 8.18.0 clears it.
Release by release
7.2.2 – 7.2.43 releases, nothing new or fixed in the notes
- 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)
- Breaking
7.2.0nothing new or fixed in the note
7 other lines we could not sort, mostly version bumps
- 7.2.1
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.0
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
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.