-
Notifications
You must be signed in to change notification settings - Fork 922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: update dependency ajv to v8 - autoclosed #2888
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feed416
to
f34d49a
Compare
f34d49a
to
42045bd
Compare
42045bd
to
3a84375
Compare
3a84375
to
5417a07
Compare
Zirak
added a commit
to Zirak/commitlint
that referenced
this pull request
Jun 16, 2022
ajv introduced some breaking changes from v6 to v7, and from v7 to v8. Most can be found in [their migration guide](https://ajv.js.org/v6-to-v8-migration.html). This commit addresses the following: - `ErrorObject.dataPath` was renamed to `ErrorObject.instacePath` - Wordings of some errors changed (e.g. "should" -> "must") - Strict mode does not allow a top-level `default` value - Strict tuple checking was confused by the `rule` array definition, see [Unconstrained tuples](https://ajv.js.org/strict-mode.html#unconstrained-tuples) - The `plugins` schema included an invalid object definition for `rules` - `schemaId` is no longer an ajv option - `missingRefs` no longer seems to affect the usage of ajv in the project - `addKeyword` has its signature changed The tests pass and everyone's seemingly happy; do say if anything's still scary-looking. Obsoletes conventional-changelog#2888.
7 tasks
Zirak
added a commit
to Zirak/commitlint
that referenced
this pull request
Jun 17, 2022
ajv introduced some breaking changes from v6 to v7, and from v7 to v8. Most can be found in [their migration guide](https://ajv.js.org/v6-to-v8-migration.html). This commit addresses the following: - `ErrorObject.dataPath` was renamed to `ErrorObject.instacePath` - Wordings of some errors changed (e.g. "should" -> "must") - Strict mode does not allow a top-level `default` value - Strict tuple checking was confused by the `rule` array definition, see [Unconstrained tuples](https://ajv.js.org/strict-mode.html#unconstrained-tuples) - The `plugins` schema included an invalid object definition for `rules` - `schemaId` is no longer an ajv option - `missingRefs` no longer seems to affect the usage of ajv in the project - `addKeyword` has its signature changed The tests pass and everyone's seemingly happy; do say if anything's still scary-looking. Obsoletes conventional-changelog#2888.
Zirak
added a commit
to Zirak/commitlint
that referenced
this pull request
Jun 23, 2022
ajv introduced some breaking changes from v6 to v7, and from v7 to v8. Most can be found in [their migration guide](https://ajv.js.org/v6-to-v8-migration.html). This commit addresses the following: - `ErrorObject.dataPath` was renamed to `ErrorObject.instacePath` - Wordings of some errors changed (e.g. "should" -> "must") - Strict mode does not allow a top-level `default` value - Disable [strict mode](https://ajv.js.org/strict-mode.html) - The `plugins` schema included an invalid object definition for `rules` - `schemaId` is no longer an ajv option - `missingRefs` no longer seems to affect the usage of ajv in the project - `addKeyword` has its signature changed The tests pass and everyone's seemingly happy; do say if anything's still scary-looking. Obsoletes conventional-changelog#2888.
escapedcat
pushed a commit
that referenced
this pull request
Jun 24, 2022
ajv introduced some breaking changes from v6 to v7, and from v7 to v8. Most can be found in [their migration guide](https://ajv.js.org/v6-to-v8-migration.html). This commit addresses the following: - `ErrorObject.dataPath` was renamed to `ErrorObject.instacePath` - Wordings of some errors changed (e.g. "should" -> "must") - Strict mode does not allow a top-level `default` value - Disable [strict mode](https://ajv.js.org/strict-mode.html) - The `plugins` schema included an invalid object definition for `rules` - `schemaId` is no longer an ajv option - `missingRefs` no longer seems to affect the usage of ajv in the project - `addKeyword` has its signature changed The tests pass and everyone's seemingly happy; do say if anything's still scary-looking. Obsoletes #2888.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^6.12.6
->^8.0.0
Release Notes
ajv-validator/ajv
v8.11.0
Compare Source
Use root schemaEnv when resolving references in oneOf (#1901, @asprouse)
Only use equal function in generated code when it is used (#1922, @bhvngt)
v8.10.0
Compare Source
uriResolver
option (@zekth, #1862)v8.9.0
Compare Source
Option
code.esm
to generate ESM exports for standalone validation functions (@rehanvdm, #1861)Support discriminator keyword with $ref in oneOf subschemas (@dfeufel, #1815)
v8.8.2
Compare Source
Use full RegExp string (with flags) as cache key, related to https://github.com/ajv-validator/ajv-keywords/issues/220
v8.8.1
Compare Source
Fix
minContains: 0
(#1819)v8.8.0
Compare Source
Fix browser bundles in cdnjs
regExp
option allowing to specify alternative RegExp engine, e.g. re2 (@efebarlas)v8.7.1
Compare Source
Publish Ajv bundle for JSON Schema 2020-12 to cdnjs.com
v8.7.0
Compare Source
Update JSON Schema Test Suite.
Change
minContains: 0
now correctly allows empty array.v8.6.3
Compare Source
Fix $ref resolution for schemas without $id (@rbuckton, #1725)
Support standalone module import from ESM modules without using
.default
property (@bhvngt, #1757)Update code for breaking TS change - error in
catch
has typeunknown
(#1760)v8.6.2
Compare Source
Fix JTD serialiser (#1691)
v8.6.1
Compare Source
Fix "not" keyword preventing validation of "allOf" and some other keywords (#1668)
v8.6.0
Compare Source
Track evaluated properties with patternProperties that have always valid schemas (e.g., true) (@P0lip, #1626)
Option
int32range
to disable number range checking forint32
anduint32
type in JTD schemasv8.5.0
Compare Source
Optimize validation code for
const
keyword with scalar values (@SoAsEr, #1561)Add option
schemaId
to support ajv-draft-04 - Ajv for JSON Schema drat-04.v8.4.0
Compare Source
JSON Type Definition schema options:
timestamp
type as Date objects.timestamp
type.v8.3.0
Compare Source
Typescript improvements:
JTD timestamp validation option (@jrr, #1584).
Docs corrections.
v8.2.0
Compare Source
Add JTDDataType to compile signature (@erikbrinkman, #1547)
Improve JSONSchemaType for records (@erikbrinkman, #1564)
Use rollup for browser bundles (@realityking, #1533)
Docs corrections
v8.1.0
Compare Source
unicodeRegExp option to not use RegExp unicode flag that may be incompatible with some environments (@asaid-0, #1530)
Fix JSONSchemaType (@erikbrinkman, #1541)
Extended error message for invalid keyword values (@pcwiek, #1542)
v8.0.5
Compare Source
Fix: add source code back to npm package, 8.0.4 is breaking ajv-cli (and possibly other things)
v8.0.4
Compare Source
Reduce npm bundle size
v8.0.3
Compare Source
Improve JSONSchemaType errors (@erikbrinkman, #1525)
v8.0.2
Compare Source
Support RegExp formats in standalone code (#1470)
Add schema path to strictTuple error message (@asaid-0, #1519)
v8.0.1
Compare Source
Typescript: export function
getData
(for ajv-errors)v8.0.0
Compare Source
This document describes changes from v7.2.4 to v8.0.0.
If you are migrating from v6 you can use this document.
New features
Support JSON Schema draft-2020-12: prefixItems keyword and changed semantics of items keyword, dynamic recursive references.
OpenAPI discriminator keyword.
Improved JSON Type Definition support:
TypeScript: support type unions in JSONSchemaType
Other changes / improvements
Node.js require works without .default property - see examples in Getting started
Reduce runtime dependency for standalone validation code
Fix resolution of
$ref: "#"
when $id is present (#815)Breaking changes
Option strict controls all strict mode restrictions
JSON Schema validation errors changes:
dataPath
property replaced withinstancePath
error.params.propertyName
).v7.2.4
Compare Source
Fix #1515: correctly initialize evaluated properties.
v7.2.3
Compare Source
Remove docs from npm package
v7.2.2
Compare Source
Docs correction
Simplified JSONSchemaType (@erikbrinkman)
Fix #1493 - incorrect reporting of missing required property with option
ownProperties: true
Fix #1501 - JTD not working correctly with many properties in the schema
v7.2.1
Compare Source
Add tests and fix parsers compiled with
ajv.compileParser
from JTD schemas:Compiled parsers are now:
It is a breaking change for compiled parsers compared with 7.2.0 that was released earlier on the same day.
v7.2.0
Compare Source
strictRequired option (off by default) - to log or fail if properties used in JSON Schema "required" are not defined in "properties" (@PBug90, #1403)
Compiled parsers (as fast as JSON.parse on valid JSON, but replace validation and fail much faster on invalid JSON) and serializers (10x+ faster than JSON.stringify) from JSON Type Definition schemas (#1454) - see examples in javascript and typescript
Please note: there are fixes to compiled parsers in 7.2.1
The website migrated to VuePress and documentation is restructured to make navigating Ajv documentation and learning easier - this is still work in progress, but already some improvement on the information structure. Any feedback/corrections would be very much appreciated!
Improved TypeScript support for JSONSchemaType:
Other improvements by @Fdawgs (#1466), @t7yang (#1472, #1473), @koba04 (#1460)
v7.1.1
Compare Source
Support readonly arrays with JSONSchemaType (@LinusU, #1447)
v7.1.0
Compare Source
Support for JSON Type Definition RFC 8927 - a simple schema language provided as an alternative to JSON Schema.
See these docs:
Allow ":" in keyword names (#1421, @teq0)
v7.0.4
Compare Source
Fix: duplicate functions in standalone validation code with mutually recursive schemas (#1361)
Fix: reference resolution when base URI change was not applied (#1414)
v7.0.3
Compare Source
Fixes:
Docs:
v7.0.2
Compare Source
Remove duplicate functions from standalone validation code (#1361)
v7.0.1
Compare Source
Update error message for
maxLength
/minLength
keywordsv7.0.0
Compare Source
Please note: this document covers the changes from v6.12.6.
The main changes
unevaluatedProperties
andunevaluatedItems
, dynamic recursive references and other additional keywords.Please note:
new
keyword, as Ajv is now ES6 class.post: true
in keyword definition.Better TypeScript support:
compile
andcompileAsync
now return type-guards - see Getting started.validate
is a type-guard.API changes:
new
keyword (it is ES6 class).Added options (and defaults):
loopRequired
Changed options:
keywords
- now expects the array of keyword definitions (old API works with "deprecated" warning)Removed options:
validateFormats: false
can be used instead, old format mode can be chosen via ajv-formats package.nullable
keyword is supported by default.jsPropertySyntax: true
(deprecated) can be used if old format is needed.ignoreKeywordsWithRef
(deprecated) can be used instead to ignore $ref siblings.code: {process: (code, schemaEnv: object) => string}
.code: {source: true}
.strict
.ajv.addFormat
orformats
option.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 has been generated by Mend Renovate. View repository job log here.