ajv-validator/ajv (ajv)
### [`v8.17.1`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.17.1)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.16.0...v8.17.1)
#### What's Changed
- bump version to 8.17.1 by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2472](https://redirect.github.com/ajv-validator/ajv/pull/2472)
**Full Changelog**: https://github.com/ajv-validator/ajv/compare/v8.17.0...v8.17.1
#### Plus everything in 8.17.0 which failed to release
The only functional change is to switch from uri-js (which is no longer supported), to fast-uri. This is the second attempt and the team on fast-uri have been really helpful addressing the issues we found last time.
Revert "Revert fast-uri change ([https://github.com/ajv-validator/ajv/pull/2444](https://redirect.github.com/ajv-validator/ajv/pull/2444))" by [@gurgunday](https://redirect.github.com/gurgunday) in [https://github.com/ajv-validator/ajv/pull/2448](https://redirect.github.com/ajv-validator/ajv/pull/2448)
fix: ignore new eslint error for [@typescript-eslint/no-extraneous-class](https://redirect.github.com/typescript-eslint/no-extraneous-class) by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2455](https://redirect.github.com/ajv-validator/ajv/pull/2455)
docs: clarify behaviour of addVocabulary by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2454](https://redirect.github.com/ajv-validator/ajv/pull/2454)
docs: refactor to improve legibility by [@blottn](https://redirect.github.com/blottn) in [https://github.com/ajv-validator/ajv/pull/2432](https://redirect.github.com/ajv-validator/ajv/pull/2432)
Fix grammatical typo in managing-schemas.md by [@wetneb](https://redirect.github.com/wetneb) in [https://github.com/ajv-validator/ajv/pull/2305](https://redirect.github.com/ajv-validator/ajv/pull/2305)
docs: Fix broken strict-mode link by [@alexanderjsx](https://redirect.github.com/alexanderjsx) in [https://github.com/ajv-validator/ajv/pull/2459](https://redirect.github.com/ajv-validator/ajv/pull/2459)
feat: add test for encoded refs and bump fast-uri by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2449](https://redirect.github.com/ajv-validator/ajv/pull/2449)
fix: changes for [@typescript-eslint/array-type](https://redirect.github.com/typescript-eslint/array-type) rule by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2467](https://redirect.github.com/ajv-validator/ajv/pull/2467)
fixes [https://github.com/ajv-validator/ajv/issues/2217](https://redirect.github.com/ajv-validator/ajv/issues/2217) - clarify custom keyword naming by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2457](https://redirect.github.com/ajv-validator/ajv/pull/2457)
### [`v8.16.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.16.0)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.15.0...v8.16.0)
#### What's Changed
- Revert fast-uri change by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2444](https://redirect.github.com/ajv-validator/ajv/pull/2444)
**Full Changelog**: https://github.com/ajv-validator/ajv/compare/v8.15.0...v8.16.0
### [`v8.15.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.15.0)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.14.0...v8.15.0)
#### What's Changed
- Replace `uri-js` with `fast-uri` by [@vixalien](https://redirect.github.com/vixalien) in [https://github.com/ajv-validator/ajv/pull/2415](https://redirect.github.com/ajv-validator/ajv/pull/2415)
- Bump to 8.15.0 by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2442](https://redirect.github.com/ajv-validator/ajv/pull/2442)
#### New Contributors
- [@vixalien](https://redirect.github.com/vixalien) made their first contribution in [https://github.com/ajv-validator/ajv/pull/2415](https://redirect.github.com/ajv-validator/ajv/pull/2415)
**Full Changelog**: https://github.com/ajv-validator/ajv/compare/v8.14.0...v8.15.0
### [`v8.14.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.14.0)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.13.0...v8.14.0)
#### What's Changed
- readme: build badge by [@epoberezkin](https://redirect.github.com/epoberezkin) in [https://github.com/ajv-validator/ajv/pull/2424](https://redirect.github.com/ajv-validator/ajv/pull/2424)
- Update workflows by [@rotu](https://redirect.github.com/rotu) in [https://github.com/ajv-validator/ajv/pull/2410](https://redirect.github.com/ajv-validator/ajv/pull/2410)
- docs: add warning to maxLength / minLength by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2428](https://redirect.github.com/ajv-validator/ajv/pull/2428)
- fix: broken link in docs warning by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2431](https://redirect.github.com/ajv-validator/ajv/pull/2431)
- compileAsync a schema with discriminator and $ref, fixes [#2427](https://redirect.github.com/ajv-validator/ajv/issues/2427) by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2433](https://redirect.github.com/ajv-validator/ajv/pull/2433)
- bump version to 8.14.0 for publishing by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2440](https://redirect.github.com/ajv-validator/ajv/pull/2440)
#### New Contributors
- [@rotu](https://redirect.github.com/rotu) made their first contribution in [https://github.com/ajv-validator/ajv/pull/2410](https://redirect.github.com/ajv-validator/ajv/pull/2410)
**Full Changelog**: https://github.com/ajv-validator/ajv/compare/v8.13.0...v8.14.0
### [`v8.13.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.13.0)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.12.0...v8.13.0)
- add named exports
- update dependencies
- update node.js
### [`v8.12.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.12.0)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.11.2...v8.12.0)
- fix JTD serialisation (remove leading comma in objects with only optional properties) ([#2190](https://redirect.github.com/ajv-validator/ajv/issues/2190), [@piliugin-anton](https://redirect.github.com/piliugin-anton))
- empty JTD "values" schema ([#2191](https://redirect.github.com/ajv-validator/ajv/issues/2191))
- empty object to work with JTD utility type ([#2158](https://redirect.github.com/ajv-validator/ajv/issues/2158), [@erikbrinkman](https://redirect.github.com/erikbrinkman))
- fix JTD "discriminator" schema for objects with more than 8 properties ([#2194](https://redirect.github.com/ajv-validator/ajv/issues/2194))
- correctly narrow "number" type to "integer" ([#2192](https://redirect.github.com/ajv-validator/ajv/issues/2192), [@JacobLey](https://redirect.github.com/JacobLey))
- update Node.js versions in CI to 14, 16, 18 and 19
### [`v8.11.2`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.11.2)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.11.1...v8.11.2)
Update dependencies
Export ValidationError and MissingRefError ([https://github.com/ajv-validator/ajv/pull/1840](https://redirect.github.com/ajv-validator/ajv/pull/1840), [@dannyb648](https://redirect.github.com/dannyb648))
### [`v8.11.1`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.11.1)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.11.0...v8.11.1)
Update dependencies
Export ValidationError and MissingRefError ([#1840](https://redirect.github.com/ajv-validator/ajv/issues/1840), [@dannyb648](https://redirect.github.com/dannyb648))
### [`v8.11.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.11.0)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.10.0...v8.11.0)
Use root schemaEnv when resolving references in oneOf ([#1901](https://redirect.github.com/ajv-validator/ajv/issues/1901), [@asprouse](https://redirect.github.com/asprouse))
Only use equal function in generated code when it is used ([#1922](https://redirect.github.com/ajv-validator/ajv/issues/1922), [@bhvngt](https://redirect.github.com/bhvngt))
### [`v8.10.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.10.0)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.9.0...v8.10.0)
`uriResolver` option ([@zekth](https://redirect.github.com/zekth), [#1862](https://redirect.github.com/ajv-validator/ajv/issues/1862))
### [`v8.9.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.9.0)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.8.2...v8.9.0)
Option `code.esm` to generate ESM exports for standalone validation functions ([@rehanvdm](https://redirect.github.com/rehanvdm), [#1861](https://redirect.github.com/ajv-validator/ajv/issues/1861))
Support discriminator keyword with $ref in oneOf subschemas ([@dfeufel](https://redirect.github.com/dfeufel), [#1815](https://redirect.github.com/ajv-validator/ajv/issues/1815))
### [`v8.8.2`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.8.2)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.8.1...v8.8.2)
Use full RegExp string (with flags) as cache key, related to [https://github.com/ajv-validator/ajv-keywords/issues/220](https://redirect.github.com/ajv-validator/ajv-keywords/issues/220)
### [`v8.8.1`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.8.1)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.8.0...v8.8.1)
Fix `minContains: 0` ([#1819](https://redirect.github.com/ajv-validator/ajv/issues/1819))
### [`v8.8.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.8.0)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.7.1...v8.8.0)
Fix browser bundles in cdnjs
`regExp` option allowing to specify alternative RegExp engine, e.g. re2 ([@efebarlas](https://redirect.github.com/efebarlas))
### [`v8.7.1`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.7.1)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.7.0...v8.7.1)
Publish Ajv bundle for JSON Schema 2020-12 to cdnjs.com
### [`v8.7.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.7.0)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.6.3...v8.7.0)
Update JSON Schema Test Suite.
Change `minContains: 0` now correctly allows empty array.
### [`v8.6.3`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.6.3)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.6.2...v8.6.3)
Fix $ref resolution for schemas without $id ([@rbuckton](https://redirect.github.com/rbuckton), [#1725](https://redirect.github.com/ajv-validator/ajv/issues/1725))
Support standalone module import from ESM modules without using `.default` property ([@bhvngt](https://redirect.github.com/bhvngt), [#1757](https://redirect.github.com/ajv-validator/ajv/issues/1757))
Update code for breaking TS change - error in `catch` has type `unknown` ([#1760](https://redirect.github.com/ajv-validator/ajv/issues/1760))
### [`v8.6.2`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.6.2)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.6.1...v8.6.2)
Fix JTD serialiser ([#1691](https://redirect.github.com/ajv-validator/ajv/issues/1691))
### [`v8.6.1`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.6.1)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.6.0...v8.6.1)
Fix "not" keyword preventing validation of "allOf" and some other keywords ([#1668](https://redirect.github.com/ajv-validator/ajv/issues/1668))
### [`v8.6.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.6.0)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.5.0...v8.6.0)
Track evaluated properties with patternProperties that have always valid schemas (e.g., true) ([@P0lip](https://redirect.github.com/P0lip), [#1626](https://redirect.github.com/ajv-validator/ajv/issues/1626))
Option [`int32range`](https://ajv.js.org/options.html#int32range) to disable number range checking for `int32` and `uint32` type in [JTD schemas](https://ajv.js.org/json-type-definition.html)
### [`v8.5.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.5.0)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.4.0...v8.5.0)
Optimize validation code for `const` keyword with scalar values ([@SoAsEr](https://redirect.github.com/SoAsEr), [#1561](https://redirect.github.com/ajv-validator/ajv/issues/1561))
Add option `schemaId` to support [ajv-draft-04](https://redirect.github.com/ajv-validator/ajv-draft-04) - Ajv for JSON Schema drat-04.
### [`v8.4.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.4.0)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.3.0...v8.4.0)
JSON Type Definition schema options:
- parseDate: parse `timestamp` type as Date objects.
- allowDate: non-standard - allow date without time with `timestamp` type.
### [`v8.3.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.3.0)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.2.0...v8.3.0)
Typescript improvements:
- better error reporting for JSONSchemaType in case strictNullChecks option is disabled ([@erikbrinkman](https://redirect.github.com/erikbrinkman), [#1583](https://redirect.github.com/ajv-validator/ajv/issues/1583))
- support missed boolean type in JTDDataType ([@m00s](https://redirect.github.com/m00s), [#1587](https://redirect.github.com/ajv-validator/ajv/issues/1587))
JTD timestamp validation option ([@jrr](https://redirect.github.com/jrr), [#1584](https://redirect.github.com/ajv-validator/ajv/issues/1584)).
Docs corrections.
### [`v8.2.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.2.0)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.1.0...v8.2.0)
Add JTDDataType to compile signature ([@erikbrinkman](https://redirect.github.com/erikbrinkman), [#1547](https://redirect.github.com/ajv-validator/ajv/issues/1547))
Improve JSONSchemaType for records ([@erikbrinkman](https://redirect.github.com/erikbrinkman), [#1564](https://redirect.github.com/ajv-validator/ajv/issues/1564))
Use rollup for browser bundles ([@realityking](https://redirect.github.com/realityking), [#1533](https://redirect.github.com/ajv-validator/ajv/issues/1533))
Docs corrections
### [`v8.1.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.1.0)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.0.5...v8.1.0)
[unicodeRegExp option](https://ajv.js.org/options.html#unicoderegexp) to not use RegExp unicode flag that may be incompatible with some environments ([@asaid-0](https://redirect.github.com/asaid-0), [#1530](https://redirect.github.com/ajv-validator/ajv/issues/1530))
Fix JSONSchemaType ([@erikbrinkman](https://redirect.github.com/erikbrinkman), [#1541](https://redirect.github.com/ajv-validator/ajv/issues/1541))
Extended error message for invalid keyword values ([@pcwiek](https://redirect.github.com/pcwiek), [#1542](https://redirect.github.com/ajv-validator/ajv/issues/1542))
### [`v8.0.5`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.0.5)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.0.4...v8.0.5)
Fix: add source code back to npm package, 8.0.4 is breaking ajv-cli (and possibly other things)
### [`v8.0.4`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.0.4)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.0.3...v8.0.4)
Reduce npm bundle size
### [`v8.0.3`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.0.3)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.0.2...v8.0.3)
Improve JSONSchemaType errors ([@erikbrinkman](https://redirect.github.com/erikbrinkman), [#1525](https://redirect.github.com/ajv-validator/ajv/issues/1525))
### [`v8.0.2`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.0.2)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.0.1...v8.0.2)
Support RegExp formats in standalone code ([#1470](https://redirect.github.com/ajv-validator/ajv/issues/1470))
Add schema path to strictTuple error message ([@asaid-0](https://redirect.github.com/asaid-0), [#1519](https://redirect.github.com/ajv-validator/ajv/issues/1519))
### [`v8.0.1`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.0.1)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.0.0...v8.0.1)
Typescript: export function `getData` (for ajv-errors)
### [`v8.0.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.0.0)
[Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v7.2.4...v8.0.0)
This document describes changes from v7.2.4 to v8.0.0.
If you are migrating from v6 you can use [this document](https://redirect.github.com/ajv-validator/ajv/blob/master/docs/v6-to-v8-migration.md).
#### New features
Support JSON Schema draft-2020-12: [prefixItems](https://ajv.js.org/json-schema.html#prefixitems) keyword and changed semantics of [items](https://ajv.js.org/json-schema.html#items-in-draft-2020-12) keyword, [dynamic recursive references](https://ajv.js.org/guide/combining-schemas.html#extending-recursive-schemas).
OpenAPI [discriminator](https://ajv.js.org/json-schema.html#discriminator) keyword.
Improved JSON Type Definition support:
- errors consistent with JTD specification.
- error objects with additional properties to simplify error handling (see [Error objects](https://ajv.js.org/api.html#error-objects))
- internationalized error messages with [ajv-i18n](/packages/ajv-i18n)
TypeScript: support type unions in [JSONSchemaType](https://ajv.js.org/guide/typescript.html#type-safe-unions)
#### Other changes / improvements
Node.js require works without .default property - see examples in [Getting started](https://ajv.js.org/guide/getting-started.html)
Reduce runtime dependency for [standalone validation code](https://ajv.js.org/standalone.html)
Fix resolution of `$ref: "#"` when $id is present ([#815](https://redirect.github.com/ajv-validator/ajv/issues/815))
#### Breaking changes
Option [strict](https://ajv.js.org/options.html#strict) controls all [strict mode](https://ajv.js.org/strict-mode.html) restrictions
JSON Schema validation errors changes:
- `dataPath` property replaced with `instancePath`
- "should" replaced with "must" in the messages
- property name is removed from "propertyName" keyword error message (it is still available in `error.params.propertyName`).
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
7.2.4
->8.17.1
Release Notes
ajv-validator/ajv (ajv)
### [`v8.17.1`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.17.1) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.16.0...v8.17.1) #### What's Changed - bump version to 8.17.1 by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2472](https://redirect.github.com/ajv-validator/ajv/pull/2472) **Full Changelog**: https://github.com/ajv-validator/ajv/compare/v8.17.0...v8.17.1 #### Plus everything in 8.17.0 which failed to release The only functional change is to switch from uri-js (which is no longer supported), to fast-uri. This is the second attempt and the team on fast-uri have been really helpful addressing the issues we found last time. Revert "Revert fast-uri change ([https://github.com/ajv-validator/ajv/pull/2444](https://redirect.github.com/ajv-validator/ajv/pull/2444))" by [@gurgunday](https://redirect.github.com/gurgunday) in [https://github.com/ajv-validator/ajv/pull/2448](https://redirect.github.com/ajv-validator/ajv/pull/2448) fix: ignore new eslint error for [@typescript-eslint/no-extraneous-class](https://redirect.github.com/typescript-eslint/no-extraneous-class) by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2455](https://redirect.github.com/ajv-validator/ajv/pull/2455) docs: clarify behaviour of addVocabulary by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2454](https://redirect.github.com/ajv-validator/ajv/pull/2454) docs: refactor to improve legibility by [@blottn](https://redirect.github.com/blottn) in [https://github.com/ajv-validator/ajv/pull/2432](https://redirect.github.com/ajv-validator/ajv/pull/2432) Fix grammatical typo in managing-schemas.md by [@wetneb](https://redirect.github.com/wetneb) in [https://github.com/ajv-validator/ajv/pull/2305](https://redirect.github.com/ajv-validator/ajv/pull/2305) docs: Fix broken strict-mode link by [@alexanderjsx](https://redirect.github.com/alexanderjsx) in [https://github.com/ajv-validator/ajv/pull/2459](https://redirect.github.com/ajv-validator/ajv/pull/2459) feat: add test for encoded refs and bump fast-uri by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2449](https://redirect.github.com/ajv-validator/ajv/pull/2449) fix: changes for [@typescript-eslint/array-type](https://redirect.github.com/typescript-eslint/array-type) rule by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2467](https://redirect.github.com/ajv-validator/ajv/pull/2467) fixes [https://github.com/ajv-validator/ajv/issues/2217](https://redirect.github.com/ajv-validator/ajv/issues/2217) - clarify custom keyword naming by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2457](https://redirect.github.com/ajv-validator/ajv/pull/2457) ### [`v8.16.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.16.0) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.15.0...v8.16.0) #### What's Changed - Revert fast-uri change by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2444](https://redirect.github.com/ajv-validator/ajv/pull/2444) **Full Changelog**: https://github.com/ajv-validator/ajv/compare/v8.15.0...v8.16.0 ### [`v8.15.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.15.0) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.14.0...v8.15.0) #### What's Changed - Replace `uri-js` with `fast-uri` by [@vixalien](https://redirect.github.com/vixalien) in [https://github.com/ajv-validator/ajv/pull/2415](https://redirect.github.com/ajv-validator/ajv/pull/2415) - Bump to 8.15.0 by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2442](https://redirect.github.com/ajv-validator/ajv/pull/2442) #### New Contributors - [@vixalien](https://redirect.github.com/vixalien) made their first contribution in [https://github.com/ajv-validator/ajv/pull/2415](https://redirect.github.com/ajv-validator/ajv/pull/2415) **Full Changelog**: https://github.com/ajv-validator/ajv/compare/v8.14.0...v8.15.0 ### [`v8.14.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.14.0) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.13.0...v8.14.0) #### What's Changed - readme: build badge by [@epoberezkin](https://redirect.github.com/epoberezkin) in [https://github.com/ajv-validator/ajv/pull/2424](https://redirect.github.com/ajv-validator/ajv/pull/2424) - Update workflows by [@rotu](https://redirect.github.com/rotu) in [https://github.com/ajv-validator/ajv/pull/2410](https://redirect.github.com/ajv-validator/ajv/pull/2410) - docs: add warning to maxLength / minLength by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2428](https://redirect.github.com/ajv-validator/ajv/pull/2428) - fix: broken link in docs warning by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2431](https://redirect.github.com/ajv-validator/ajv/pull/2431) - compileAsync a schema with discriminator and $ref, fixes [#2427](https://redirect.github.com/ajv-validator/ajv/issues/2427) by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2433](https://redirect.github.com/ajv-validator/ajv/pull/2433) - bump version to 8.14.0 for publishing by [@jasoniangreen](https://redirect.github.com/jasoniangreen) in [https://github.com/ajv-validator/ajv/pull/2440](https://redirect.github.com/ajv-validator/ajv/pull/2440) #### New Contributors - [@rotu](https://redirect.github.com/rotu) made their first contribution in [https://github.com/ajv-validator/ajv/pull/2410](https://redirect.github.com/ajv-validator/ajv/pull/2410) **Full Changelog**: https://github.com/ajv-validator/ajv/compare/v8.13.0...v8.14.0 ### [`v8.13.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.13.0) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.12.0...v8.13.0) - add named exports - update dependencies - update node.js ### [`v8.12.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.12.0) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.11.2...v8.12.0) - fix JTD serialisation (remove leading comma in objects with only optional properties) ([#2190](https://redirect.github.com/ajv-validator/ajv/issues/2190), [@piliugin-anton](https://redirect.github.com/piliugin-anton)) - empty JTD "values" schema ([#2191](https://redirect.github.com/ajv-validator/ajv/issues/2191)) - empty object to work with JTD utility type ([#2158](https://redirect.github.com/ajv-validator/ajv/issues/2158), [@erikbrinkman](https://redirect.github.com/erikbrinkman)) - fix JTD "discriminator" schema for objects with more than 8 properties ([#2194](https://redirect.github.com/ajv-validator/ajv/issues/2194)) - correctly narrow "number" type to "integer" ([#2192](https://redirect.github.com/ajv-validator/ajv/issues/2192), [@JacobLey](https://redirect.github.com/JacobLey)) - update Node.js versions in CI to 14, 16, 18 and 19 ### [`v8.11.2`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.11.2) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.11.1...v8.11.2) Update dependencies Export ValidationError and MissingRefError ([https://github.com/ajv-validator/ajv/pull/1840](https://redirect.github.com/ajv-validator/ajv/pull/1840), [@dannyb648](https://redirect.github.com/dannyb648)) ### [`v8.11.1`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.11.1) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.11.0...v8.11.1) Update dependencies Export ValidationError and MissingRefError ([#1840](https://redirect.github.com/ajv-validator/ajv/issues/1840), [@dannyb648](https://redirect.github.com/dannyb648)) ### [`v8.11.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.11.0) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.10.0...v8.11.0) Use root schemaEnv when resolving references in oneOf ([#1901](https://redirect.github.com/ajv-validator/ajv/issues/1901), [@asprouse](https://redirect.github.com/asprouse)) Only use equal function in generated code when it is used ([#1922](https://redirect.github.com/ajv-validator/ajv/issues/1922), [@bhvngt](https://redirect.github.com/bhvngt)) ### [`v8.10.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.10.0) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.9.0...v8.10.0) `uriResolver` option ([@zekth](https://redirect.github.com/zekth), [#1862](https://redirect.github.com/ajv-validator/ajv/issues/1862)) ### [`v8.9.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.9.0) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.8.2...v8.9.0) Option `code.esm` to generate ESM exports for standalone validation functions ([@rehanvdm](https://redirect.github.com/rehanvdm), [#1861](https://redirect.github.com/ajv-validator/ajv/issues/1861)) Support discriminator keyword with $ref in oneOf subschemas ([@dfeufel](https://redirect.github.com/dfeufel), [#1815](https://redirect.github.com/ajv-validator/ajv/issues/1815)) ### [`v8.8.2`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.8.2) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.8.1...v8.8.2) Use full RegExp string (with flags) as cache key, related to [https://github.com/ajv-validator/ajv-keywords/issues/220](https://redirect.github.com/ajv-validator/ajv-keywords/issues/220) ### [`v8.8.1`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.8.1) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.8.0...v8.8.1) Fix `minContains: 0` ([#1819](https://redirect.github.com/ajv-validator/ajv/issues/1819)) ### [`v8.8.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.8.0) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.7.1...v8.8.0) Fix browser bundles in cdnjs `regExp` option allowing to specify alternative RegExp engine, e.g. re2 ([@efebarlas](https://redirect.github.com/efebarlas)) ### [`v8.7.1`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.7.1) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.7.0...v8.7.1) Publish Ajv bundle for JSON Schema 2020-12 to cdnjs.com ### [`v8.7.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.7.0) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.6.3...v8.7.0) Update JSON Schema Test Suite. Change `minContains: 0` now correctly allows empty array. ### [`v8.6.3`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.6.3) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.6.2...v8.6.3) Fix $ref resolution for schemas without $id ([@rbuckton](https://redirect.github.com/rbuckton), [#1725](https://redirect.github.com/ajv-validator/ajv/issues/1725)) Support standalone module import from ESM modules without using `.default` property ([@bhvngt](https://redirect.github.com/bhvngt), [#1757](https://redirect.github.com/ajv-validator/ajv/issues/1757)) Update code for breaking TS change - error in `catch` has type `unknown` ([#1760](https://redirect.github.com/ajv-validator/ajv/issues/1760)) ### [`v8.6.2`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.6.2) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.6.1...v8.6.2) Fix JTD serialiser ([#1691](https://redirect.github.com/ajv-validator/ajv/issues/1691)) ### [`v8.6.1`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.6.1) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.6.0...v8.6.1) Fix "not" keyword preventing validation of "allOf" and some other keywords ([#1668](https://redirect.github.com/ajv-validator/ajv/issues/1668)) ### [`v8.6.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.6.0) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.5.0...v8.6.0) Track evaluated properties with patternProperties that have always valid schemas (e.g., true) ([@P0lip](https://redirect.github.com/P0lip), [#1626](https://redirect.github.com/ajv-validator/ajv/issues/1626)) Option [`int32range`](https://ajv.js.org/options.html#int32range) to disable number range checking for `int32` and `uint32` type in [JTD schemas](https://ajv.js.org/json-type-definition.html) ### [`v8.5.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.5.0) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.4.0...v8.5.0) Optimize validation code for `const` keyword with scalar values ([@SoAsEr](https://redirect.github.com/SoAsEr), [#1561](https://redirect.github.com/ajv-validator/ajv/issues/1561)) Add option `schemaId` to support [ajv-draft-04](https://redirect.github.com/ajv-validator/ajv-draft-04) - Ajv for JSON Schema drat-04. ### [`v8.4.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.4.0) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.3.0...v8.4.0) JSON Type Definition schema options: - parseDate: parse `timestamp` type as Date objects. - allowDate: non-standard - allow date without time with `timestamp` type. ### [`v8.3.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.3.0) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.2.0...v8.3.0) Typescript improvements: - better error reporting for JSONSchemaType in case strictNullChecks option is disabled ([@erikbrinkman](https://redirect.github.com/erikbrinkman), [#1583](https://redirect.github.com/ajv-validator/ajv/issues/1583)) - support missed boolean type in JTDDataType ([@m00s](https://redirect.github.com/m00s), [#1587](https://redirect.github.com/ajv-validator/ajv/issues/1587)) JTD timestamp validation option ([@jrr](https://redirect.github.com/jrr), [#1584](https://redirect.github.com/ajv-validator/ajv/issues/1584)). Docs corrections. ### [`v8.2.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.2.0) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.1.0...v8.2.0) Add JTDDataType to compile signature ([@erikbrinkman](https://redirect.github.com/erikbrinkman), [#1547](https://redirect.github.com/ajv-validator/ajv/issues/1547)) Improve JSONSchemaType for records ([@erikbrinkman](https://redirect.github.com/erikbrinkman), [#1564](https://redirect.github.com/ajv-validator/ajv/issues/1564)) Use rollup for browser bundles ([@realityking](https://redirect.github.com/realityking), [#1533](https://redirect.github.com/ajv-validator/ajv/issues/1533)) Docs corrections ### [`v8.1.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.1.0) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.0.5...v8.1.0) [unicodeRegExp option](https://ajv.js.org/options.html#unicoderegexp) to not use RegExp unicode flag that may be incompatible with some environments ([@asaid-0](https://redirect.github.com/asaid-0), [#1530](https://redirect.github.com/ajv-validator/ajv/issues/1530)) Fix JSONSchemaType ([@erikbrinkman](https://redirect.github.com/erikbrinkman), [#1541](https://redirect.github.com/ajv-validator/ajv/issues/1541)) Extended error message for invalid keyword values ([@pcwiek](https://redirect.github.com/pcwiek), [#1542](https://redirect.github.com/ajv-validator/ajv/issues/1542)) ### [`v8.0.5`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.0.5) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.0.4...v8.0.5) Fix: add source code back to npm package, 8.0.4 is breaking ajv-cli (and possibly other things) ### [`v8.0.4`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.0.4) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.0.3...v8.0.4) Reduce npm bundle size ### [`v8.0.3`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.0.3) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.0.2...v8.0.3) Improve JSONSchemaType errors ([@erikbrinkman](https://redirect.github.com/erikbrinkman), [#1525](https://redirect.github.com/ajv-validator/ajv/issues/1525)) ### [`v8.0.2`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.0.2) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.0.1...v8.0.2) Support RegExp formats in standalone code ([#1470](https://redirect.github.com/ajv-validator/ajv/issues/1470)) Add schema path to strictTuple error message ([@asaid-0](https://redirect.github.com/asaid-0), [#1519](https://redirect.github.com/ajv-validator/ajv/issues/1519)) ### [`v8.0.1`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.0.1) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v8.0.0...v8.0.1) Typescript: export function `getData` (for ajv-errors) ### [`v8.0.0`](https://redirect.github.com/ajv-validator/ajv/releases/tag/v8.0.0) [Compare Source](https://redirect.github.com/ajv-validator/ajv/compare/v7.2.4...v8.0.0) This document describes changes from v7.2.4 to v8.0.0. If you are migrating from v6 you can use [this document](https://redirect.github.com/ajv-validator/ajv/blob/master/docs/v6-to-v8-migration.md). #### New features Support JSON Schema draft-2020-12: [prefixItems](https://ajv.js.org/json-schema.html#prefixitems) keyword and changed semantics of [items](https://ajv.js.org/json-schema.html#items-in-draft-2020-12) keyword, [dynamic recursive references](https://ajv.js.org/guide/combining-schemas.html#extending-recursive-schemas). OpenAPI [discriminator](https://ajv.js.org/json-schema.html#discriminator) keyword. Improved JSON Type Definition support: - errors consistent with JTD specification. - error objects with additional properties to simplify error handling (see [Error objects](https://ajv.js.org/api.html#error-objects)) - internationalized error messages with [ajv-i18n](/packages/ajv-i18n) TypeScript: support type unions in [JSONSchemaType](https://ajv.js.org/guide/typescript.html#type-safe-unions) #### Other changes / improvements Node.js require works without .default property - see examples in [Getting started](https://ajv.js.org/guide/getting-started.html) Reduce runtime dependency for [standalone validation code](https://ajv.js.org/standalone.html) Fix resolution of `$ref: "#"` when $id is present ([#815](https://redirect.github.com/ajv-validator/ajv/issues/815)) #### Breaking changes Option [strict](https://ajv.js.org/options.html#strict) controls all [strict mode](https://ajv.js.org/strict-mode.html) restrictions JSON Schema validation errors changes: - `dataPath` property replaced with `instancePath` - "should" replaced with "must" in the messages - property name is removed from "propertyName" keyword error message (it is still available in `error.params.propertyName`).Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.