Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Bump ajv from 6.12.6 to 7.0.1 in /tests #3433

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 17, 2020

Bumps ajv from 6.12.6 to 7.0.1.

Release notes

Sourced from ajv's releases.

v7.0.1

Update error message for maxLength/minLength keywords

v7.0.0

Please note: this document covers the changes from v6.12.6.

The main changes

  • support of JSON Schema draft-2019-09 features: unevaluatedProperties and unevaluatedItems, dynamic recursive references and other additional keywords.
  • comprehensive support for standalone validation code - compiling one or multiple schemas to standalone modules with one or multiple exports.
  • to reduce the mistakes in JSON schemas and unexpected validation results, strict mode is added - it prohibits ignored or ambiguous JSON Schema elements. See Strict mode and Options for more details
  • to make code injection from untrusted schemas impossible, code generation is fully re-written to be type-level safe against code injection.
  • to simplify Ajv extensions, the new keyword API that is used by pre-defined keywords is available to user-defined keywords - it is much easier to define any keywords now, especially with subschemas.
  • schemas are compiled to ES6 code (ES5 code generation is supported with an option).
  • to improve reliability and maintainability the code is migrated to TypeScript.
  • separate Ajv classes from draft-07 and draft-2019-09 support with different default imports (see Getting started or v7.0.0-beta.5 for the details).

Please note:

  • the support for JSON-Schema draft-04 is removed - if you have schemas using "id" attributes you have to replace them with "$id" (or continue using version 6 that will be supported until 02/28/2021).
  • all formats are separated to ajv-formats package - they have to be explicitly added if you use them.
  • Ajv instance can only be created with new keyword, as Ajv is now ES6 class.
  • browser bundles are automatically published to ajv-dist package (but still available on cdnjs.com).

Better TypeScript support:

  • Methods compile and compileAsync now return type-guards - see Getting started.
  • Method validate is a type-guard.
  • Better separation of asynchronous schemas on type level.
  • Type utility JSONSchemaType that generates the type for JSON Schema for type interface in the type parameter - it simplifies writing schemas (no unions support at the moment).

API changes:

  • addVocabulary - NEW method that allows to add an array of keyword definitions.
  • addKeyword - keyword name should be passed as property in definition object, not as the first parameter (old API works with "deprecated" warning). Also "inline" keywords support is removed, code generation keywords can now be defined with "code" keyword - the same definition format that is used by all pre-defined keywords
  • Ajv no longer allows to create the instance without new keyword (it is ES6 class).

Added options (and defaults):

  • strict: true - strict mode
  • strictTypes: "log" - prevent mistakes related to type keywords and keyword applicability (see Strict Types)
  • strictTuples: "log" - prevent incomplete tuple schemas (see Prohibit unconstrained tuples)
  • allowUnionTypes: false - allow multiple non-null types in "type" keyword
  • allowMatchingProperties: false - allow overlap between "properties" and "patternProperties" keywords
  • loopEnum: Infinity - optimise validation of enums, similar to loopRequired
  • validateFormats: true - enable format validation
  • code: {optimize: number|boolean} - control code optimisation
  • code: {es5: true} - generate ES5 code, the default is to generate ES6 code.
  • code: {lines: true} - add line breaks to generated code - simplifies debugging of compiled schemas when you need it

Changed options:

  • keywords - now expects the array of keyword definitions (old API works with "deprecated" warning)

Removed options:

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Dec 17, 2020
@mergify
Copy link
Contributor

mergify bot commented Dec 17, 2020

bors r+

bors bot added a commit that referenced this pull request Dec 17, 2020
3433: Bump ajv from 6.12.6 to 7.0.1 in /tests r=mergify[bot] a=dependabot[bot]

Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.12.6 to 7.0.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/ajv-validator/ajv/releases">ajv's releases</a>.</em></p>
<blockquote>
<h2>v7.0.1</h2>
<p>Update error message for <code>maxLength</code>/<code>minLength</code> keywords</p>
<h2>v7.0.0</h2>
<p>Please note: this document covers the changes from v6.12.6.</p>
<h1>The main changes</h1>
<ul>
<li>support of JSON Schema draft-2019-09 features: <a href="https://github.com/ajv-validator/ajv/blob/HEAD/json-schema.md#unevaluatedproperties"><code>unevaluatedProperties</code></a> and <a href="https://github.com/ajv-validator/ajv/blob/HEAD/json-schema.md#unevaluateditems"><code>unevaluatedItems</code></a>, <a href="https://github.com/ajv-validator/ajv/blob/HEAD/validation.md#extending-recursive-schemas">dynamic recursive references</a> and other <a href="https://github.com/ajv-validator/ajv/blob/HEAD/json-schema.md#json-schema-draft-2019-09">additional keywords</a>.</li>
<li>comprehensive support for <a href="">standalone validation code</a> - compiling one or multiple schemas to standalone modules with one or multiple exports.</li>
<li>to reduce the mistakes in JSON schemas and unexpected validation results, <a href="https://github.com/ajv-validator/ajv/blob/v7-beta/docs/strict-mode.md">strict mode</a> is added - it prohibits ignored or ambiguous JSON Schema elements. See <a href="https://github.com/ajv-validator/ajv/blob/v7-beta/docs/strict-mode.md">Strict mode</a> and <a href="https://github.com/ajv-validator/ajv/blob/v7-beta/docs/api.md">Options</a> for more details</li>
<li>to make code injection from untrusted schemas impossible, <a href="https://github.com/ajv-validator/ajv/blob/v7-beta/docs/codegen.md">code generation</a> is fully re-written to be type-level safe against code injection.</li>
<li>to simplify Ajv extensions, the new keyword API that is used by pre-defined keywords is available to user-defined keywords - it is much easier to define any keywords now, especially with subschemas.</li>
<li>schemas are compiled to ES6 code (ES5 code generation is supported with an option).</li>
<li>to improve reliability and maintainability the code is migrated to TypeScript.</li>
<li>separate Ajv classes from draft-07 and draft-2019-09 support with different default imports (see <a href="https://github.com/ajv-validator/ajv#usage">Getting started</a> or <a href="https://github.com/ajv-validator/ajv/releases/tag/v7.0.0-beta.5">v7.0.0-beta.5</a> for the details).</li>
</ul>
<p><strong>Please note</strong>:</p>
<ul>
<li>the support for JSON-Schema draft-04 is removed - if you have schemas using &quot;id&quot; attributes you have to replace them with &quot;$id&quot; (or continue using version 6 that will be supported until 02/28/2021).</li>
<li>all formats are separated to <a href="https://github.com/ajv-validator/ajv-formats">ajv-formats</a> package - they have to be explicitly added if you use them.</li>
<li>Ajv instance can only be created with <code>new</code> keyword, as Ajv is now ES6 class.</li>
<li>browser bundles are automatically published to ajv-dist package (but still available on cdnjs.com).</li>
</ul>
<h2>Better TypeScript support:</h2>
<ul>
<li>Methods <code>compile</code> and <code>compileAsync</code> now return type-guards - see <a href="https://github.com/ajv-validator/ajv/tree/v7-beta#usage">Getting started</a>.</li>
<li>Method <code>validate</code> is a type-guard.</li>
<li>Better separation of asynchronous schemas on type level.</li>
<li>Type utility JSONSchemaType<!-- raw HTML omitted --> that generates the type for JSON Schema for type interface in the type parameter - it simplifies writing schemas (no unions support at the moment).</li>
</ul>
<h2>API changes:</h2>
<ul>
<li>addVocabulary - NEW method that allows to add an array of keyword definitions.</li>
<li>addKeyword - keyword name should be passed as property in definition object, not as the first parameter (old API works with &quot;deprecated&quot; warning). Also &quot;inline&quot; keywords support is removed, code generation keywords can now be defined with &quot;code&quot; keyword - the same definition format that is used by all pre-defined keywords</li>
<li>Ajv no longer allows to create the instance without <code>new</code> keyword (it is ES6 class).</li>
</ul>
<h3>Added options (and defaults):</h3>
<ul>
<li>strict: true - strict mode</li>
<li>strictTypes: &quot;log&quot; - prevent mistakes related to type keywords and keyword applicability (see <a href="https://github.com/ajv-validator/ajv/blob/v7-beta/docs/strict-mode.md#strict-types">Strict Types</a>)</li>
<li>strictTuples: &quot;log&quot; - prevent incomplete tuple schemas (see <a href="https://github.com/ajv-validator/ajv/blob/v7-beta/docs/strict-mode.md#prohibit-unconstrained-tuples">Prohibit unconstrained tuples</a>)</li>
<li>allowUnionTypes: false - allow multiple non-null types in &quot;type&quot; keyword</li>
<li>allowMatchingProperties: false - allow overlap between &quot;properties&quot; and &quot;patternProperties&quot; keywords</li>
<li>loopEnum: Infinity - optimise validation of enums, similar to <code>loopRequired</code></li>
<li>validateFormats: true - enable format validation</li>
<li>code: {optimize: number|boolean} - control <a href="https://github.com/ajv-validator/ajv/blob/v7-beta/docs/codegen.md#code-optimization">code optimisation</a></li>
<li>code: {es5: true} - generate ES5 code, the default is to generate ES6 code.</li>
<li>code: {lines: true} - add line breaks to generated code - simplifies debugging of compiled schemas when you need it</li>
</ul>
<h3>Changed options:</h3>
<ul>
<li><code>keywords</code> - now expects the array of keyword definitions (old API works with &quot;deprecated&quot; warning)</li>
</ul>
<h3>Removed options:</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/ajv-validator/ajv/commit/616a725993d6d271ada3845f8b050ac226f3a217"><code>616a725</code></a> 7.0.1</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/dc55ff2a7e138ff69b84e2c52f1bffdcee984075"><code>dc55ff2</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1353">#1353</a> from nicksrandall/patch-1</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/b68927a5338c39f4c6a91e69cfe7f812ea149e00"><code>b68927a</code></a> Add user-friendly message for maxLength validation</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/cd7c6a8385464f818814ebb1e84cc703dc7ef02c"><code>cd7c6a8</code></a> 7.0.0</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/0809171ee4735a3a0c10d3d5202ea01b9d13601b"><code>0809171</code></a> docs: update to release v7</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/f1f4b7407c1c93cb763904b744f0ab8c4f769523"><code>f1f4b74</code></a> update build workflow</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/e9962b5b55a6f738c6c772ec24f41d81e0f4c386"><code>e9962b5</code></a> update website script</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/cd81777ba43854b5ae7892539669508d4427902a"><code>cd81777</code></a> update CONTRIBUTING</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/736e680fe03934574cf9acf3c4c9e618056bf673"><code>736e680</code></a> website workflow</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/12690aca66cbca594a16d85f2a0ce961f9b1877c"><code>12690ac</code></a> 7.0.0-rc.5</li>
<li>Additional commits viewable in <a href="https://github.com/ajv-validator/ajv/compare/v6.12.6...v7.0.1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ajv&package-manager=npm_and_yarn&previous-version=6.12.6&new-version=7.0.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually


</details>

3434: Bump typescript from 4.1.2 to 4.1.3 in /tests r=mergify[bot] a=dependabot[bot]

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.1.2 to 4.1.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/Microsoft/TypeScript/releases">typescript's releases</a>.</em></p>
<blockquote>
<h2>TypeScript 4.1.3</h2>
<p>For release notes, check out the <a href="https://devblogs.microsoft.com/typescript/announcing-typescript-4-1">release announcement</a>.</p>
<p>For the complete list of fixed issues, check out the</p>
<ul>
<li><a href="https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+milestone%3A%22TypeScript+4.1.0%22+is%3Aclosed+">fixed issues query for TypeScript v4.1.0 (Beta)</a>.</li>
<li><a href="https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+milestone%3A%22TypeScript+4.1.1%22+is%3Aclosed+">fixed issues query for TypeScript v4.1.1 (RC)</a>.</li>
<li><a href="https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+milestone%3A%22TypeScript+4.1.2%22+is%3Aclosed+">fixed issues query for TypeScript v4.1.2 (Stable)</a>.</li>
<li><a href="https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+milestone%3A%22TypeScript+4.1.3%22+is%3Aclosed+">fixed issues query for TypeScript v4.1.3 (Stable)</a>.</li>
</ul>
<p>Downloads are available on:</p>
<ul>
<li><a href="https://www.npmjs.com/package/typescript">npm</a></li>
<li><a href="https://marketplace.visualstudio.com/items?itemName=TypeScriptTeam.TypeScript-41">Visual Studio 2017/2019</a> (<a href="https://github.com/Microsoft/TypeScript/wiki/Updating-TypeScript-in-Visual-Studio-2017">Select new version in project options</a>)</li>
<li><a href="https://www.nuget.org/packages/Microsoft.TypeScript.MSBuild">NuGet package</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/microsoft/TypeScript/commit/b512d91a351c474b1530f87faf6e5c53fb71c30d"><code>b512d91</code></a> Bump version to 4.1.3 and LKG</li>
<li><a href="https://github.com/microsoft/TypeScript/commit/3c736255e407f75a0faa6b70ad8b290d084f948e"><code>3c73625</code></a> Properly cache types for shared control flow nodes (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/41665">#41665</a>) (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/41906">#41906</a>)</li>
<li><a href="https://github.com/microsoft/TypeScript/commit/1e9518cb3531704145c038b469cbe38e3368e023"><code>1e9518c</code></a> Cherry-pick PR <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/41758">#41758</a> into release-4.1 (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/41862">#41862</a>)</li>
<li><a href="https://github.com/microsoft/TypeScript/commit/abf88154d22e5fb050fba2916325e48675381cbf"><code>abf8815</code></a> Undo <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/39258">#39258</a> (isArray changes) see overview at <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/41808">#41808</a> (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/41849">#41849</a>)</li>
<li><a href="https://github.com/microsoft/TypeScript/commit/9b6625895bf6a75da1ad679bc77f0ea388a05734"><code>9b66258</code></a> Add missed resolveSymbol in commonjs import resolution (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/41479">#41479</a>) (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/41691">#41691</a>)</li>
<li><a href="https://github.com/microsoft/TypeScript/commit/9d25e593ab722d9cf203690de94e36f8588e968e"><code>9d25e59</code></a> Adds Format param to the tsserver session (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/41614">#41614</a>)</li>
<li>See full diff in <a href="https://github.com/Microsoft/TypeScript/compare/v4.1.2...v4.1.3">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=typescript&package-manager=npm_and_yarn&previous-version=4.1.2&new-version=4.1.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@bors
Copy link
Contributor

bors bot commented Dec 17, 2020

Build failed (retrying...):

bors bot added a commit that referenced this pull request Dec 17, 2020
3433: Bump ajv from 6.12.6 to 7.0.1 in /tests r=mergify[bot] a=dependabot[bot]

Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.12.6 to 7.0.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/ajv-validator/ajv/releases">ajv's releases</a>.</em></p>
<blockquote>
<h2>v7.0.1</h2>
<p>Update error message for <code>maxLength</code>/<code>minLength</code> keywords</p>
<h2>v7.0.0</h2>
<p>Please note: this document covers the changes from v6.12.6.</p>
<h1>The main changes</h1>
<ul>
<li>support of JSON Schema draft-2019-09 features: <a href="https://github.com/ajv-validator/ajv/blob/HEAD/json-schema.md#unevaluatedproperties"><code>unevaluatedProperties</code></a> and <a href="https://github.com/ajv-validator/ajv/blob/HEAD/json-schema.md#unevaluateditems"><code>unevaluatedItems</code></a>, <a href="https://github.com/ajv-validator/ajv/blob/HEAD/validation.md#extending-recursive-schemas">dynamic recursive references</a> and other <a href="https://github.com/ajv-validator/ajv/blob/HEAD/json-schema.md#json-schema-draft-2019-09">additional keywords</a>.</li>
<li>comprehensive support for <a href="">standalone validation code</a> - compiling one or multiple schemas to standalone modules with one or multiple exports.</li>
<li>to reduce the mistakes in JSON schemas and unexpected validation results, <a href="https://github.com/ajv-validator/ajv/blob/v7-beta/docs/strict-mode.md">strict mode</a> is added - it prohibits ignored or ambiguous JSON Schema elements. See <a href="https://github.com/ajv-validator/ajv/blob/v7-beta/docs/strict-mode.md">Strict mode</a> and <a href="https://github.com/ajv-validator/ajv/blob/v7-beta/docs/api.md">Options</a> for more details</li>
<li>to make code injection from untrusted schemas impossible, <a href="https://github.com/ajv-validator/ajv/blob/v7-beta/docs/codegen.md">code generation</a> is fully re-written to be type-level safe against code injection.</li>
<li>to simplify Ajv extensions, the new keyword API that is used by pre-defined keywords is available to user-defined keywords - it is much easier to define any keywords now, especially with subschemas.</li>
<li>schemas are compiled to ES6 code (ES5 code generation is supported with an option).</li>
<li>to improve reliability and maintainability the code is migrated to TypeScript.</li>
<li>separate Ajv classes from draft-07 and draft-2019-09 support with different default imports (see <a href="https://github.com/ajv-validator/ajv#usage">Getting started</a> or <a href="https://github.com/ajv-validator/ajv/releases/tag/v7.0.0-beta.5">v7.0.0-beta.5</a> for the details).</li>
</ul>
<p><strong>Please note</strong>:</p>
<ul>
<li>the support for JSON-Schema draft-04 is removed - if you have schemas using &quot;id&quot; attributes you have to replace them with &quot;$id&quot; (or continue using version 6 that will be supported until 02/28/2021).</li>
<li>all formats are separated to <a href="https://github.com/ajv-validator/ajv-formats">ajv-formats</a> package - they have to be explicitly added if you use them.</li>
<li>Ajv instance can only be created with <code>new</code> keyword, as Ajv is now ES6 class.</li>
<li>browser bundles are automatically published to ajv-dist package (but still available on cdnjs.com).</li>
</ul>
<h2>Better TypeScript support:</h2>
<ul>
<li>Methods <code>compile</code> and <code>compileAsync</code> now return type-guards - see <a href="https://github.com/ajv-validator/ajv/tree/v7-beta#usage">Getting started</a>.</li>
<li>Method <code>validate</code> is a type-guard.</li>
<li>Better separation of asynchronous schemas on type level.</li>
<li>Type utility JSONSchemaType<!-- raw HTML omitted --> that generates the type for JSON Schema for type interface in the type parameter - it simplifies writing schemas (no unions support at the moment).</li>
</ul>
<h2>API changes:</h2>
<ul>
<li>addVocabulary - NEW method that allows to add an array of keyword definitions.</li>
<li>addKeyword - keyword name should be passed as property in definition object, not as the first parameter (old API works with &quot;deprecated&quot; warning). Also &quot;inline&quot; keywords support is removed, code generation keywords can now be defined with &quot;code&quot; keyword - the same definition format that is used by all pre-defined keywords</li>
<li>Ajv no longer allows to create the instance without <code>new</code> keyword (it is ES6 class).</li>
</ul>
<h3>Added options (and defaults):</h3>
<ul>
<li>strict: true - strict mode</li>
<li>strictTypes: &quot;log&quot; - prevent mistakes related to type keywords and keyword applicability (see <a href="https://github.com/ajv-validator/ajv/blob/v7-beta/docs/strict-mode.md#strict-types">Strict Types</a>)</li>
<li>strictTuples: &quot;log&quot; - prevent incomplete tuple schemas (see <a href="https://github.com/ajv-validator/ajv/blob/v7-beta/docs/strict-mode.md#prohibit-unconstrained-tuples">Prohibit unconstrained tuples</a>)</li>
<li>allowUnionTypes: false - allow multiple non-null types in &quot;type&quot; keyword</li>
<li>allowMatchingProperties: false - allow overlap between &quot;properties&quot; and &quot;patternProperties&quot; keywords</li>
<li>loopEnum: Infinity - optimise validation of enums, similar to <code>loopRequired</code></li>
<li>validateFormats: true - enable format validation</li>
<li>code: {optimize: number|boolean} - control <a href="https://github.com/ajv-validator/ajv/blob/v7-beta/docs/codegen.md#code-optimization">code optimisation</a></li>
<li>code: {es5: true} - generate ES5 code, the default is to generate ES6 code.</li>
<li>code: {lines: true} - add line breaks to generated code - simplifies debugging of compiled schemas when you need it</li>
</ul>
<h3>Changed options:</h3>
<ul>
<li><code>keywords</code> - now expects the array of keyword definitions (old API works with &quot;deprecated&quot; warning)</li>
</ul>
<h3>Removed options:</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/ajv-validator/ajv/commit/616a725993d6d271ada3845f8b050ac226f3a217"><code>616a725</code></a> 7.0.1</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/dc55ff2a7e138ff69b84e2c52f1bffdcee984075"><code>dc55ff2</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1353">#1353</a> from nicksrandall/patch-1</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/b68927a5338c39f4c6a91e69cfe7f812ea149e00"><code>b68927a</code></a> Add user-friendly message for maxLength validation</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/cd7c6a8385464f818814ebb1e84cc703dc7ef02c"><code>cd7c6a8</code></a> 7.0.0</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/0809171ee4735a3a0c10d3d5202ea01b9d13601b"><code>0809171</code></a> docs: update to release v7</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/f1f4b7407c1c93cb763904b744f0ab8c4f769523"><code>f1f4b74</code></a> update build workflow</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/e9962b5b55a6f738c6c772ec24f41d81e0f4c386"><code>e9962b5</code></a> update website script</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/cd81777ba43854b5ae7892539669508d4427902a"><code>cd81777</code></a> update CONTRIBUTING</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/736e680fe03934574cf9acf3c4c9e618056bf673"><code>736e680</code></a> website workflow</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/12690aca66cbca594a16d85f2a0ce961f9b1877c"><code>12690ac</code></a> 7.0.0-rc.5</li>
<li>Additional commits viewable in <a href="https://github.com/ajv-validator/ajv/compare/v6.12.6...v7.0.1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ajv&package-manager=npm_and_yarn&previous-version=6.12.6&new-version=7.0.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@bors
Copy link
Contributor

bors bot commented Dec 17, 2020

Build failed:

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 20, 2020

Superseded by #3437.

@dependabot dependabot bot closed this Dec 20, 2020
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/tests/ajv-7.0.1 branch December 20, 2020 14:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants