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

Commit

Permalink
Merge #3520
Browse files Browse the repository at this point in the history
3520: Bump ajv from 6.12.6 to 7.2.0 in /tests r=mergify[bot] a=dependabot[bot]

Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.12.6 to 7.2.0.
<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.2.0</h2>
<p>strictRequired option (off by default) - to log or fail if properties used in JSON Schema &quot;required&quot; are not defined in &quot;properties&quot; (<a href="https://github.com/PBug90"><code>@​PBug90</code></a>, <a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1403">#1403</a>)</p>
<p>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 (<a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1454">#1454</a>) - see examples in <a href="https://ajv.js.org/guide/getting-started.html#parsing-and-serializing-json">javascript</a> and <a href="https://ajv.js.org/guide/typescript.html#type-safe-parsers-and-serializers">typescript</a></p>
<p>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!</p>
<p>Improved TypeScript support for JSONSchemaType:</p>
<ul>
<li>JTDSchemaType<!-- raw HTML omitted --> 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 (<a href="https://github.com/erikbrinkman"><code>@​erikbrinkman</code></a>, <a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1446">#1446</a>, <a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1456">#1456</a>, <a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1457">#1457</a>, <a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1475">#1475</a>) - see <a href="https://ajv.js.org/guide/typescript.html#utility-types-for-schemas">example here</a></li>
<li>Alternatively, you can use JTDDataType<!-- raw HTML omitted --> utility type to convert your JTD schema type into the type of data (<a href="https://github.com/erikbrinkman"><code>@​erikbrinkman</code></a>, <a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1458">#1458</a>) - see <a href="https://ajv.js.org/guide/typescript.html#utility-type-for-jtd-data-type">this example</a></li>
</ul>
<p>Other improvements by <a href="https://github.com/Fdawgs"><code>@​Fdawgs</code></a> (<a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1466">#1466</a>), <a href="https://github.com/t7yang"><code>@​t7yang</code></a> (<a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1472">#1472</a>, <a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1473">#1473</a>), <a href="https://github.com/koba04"><code>@​koba04</code></a> (<a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1460">#1460</a>),</p>
<h2>v7.1.1</h2>
<p>Support readonly arrays with JSONSchemaType (<a href="https://github.com/LinusU"><code>@​LinusU</code></a>, <a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1447">#1447</a>)</p>
<h2>v7.1.0</h2>
<p>Support for JSON Type Definition RFC 8927 - a simple schema language provided as an alternative to JSON Schema.</p>
<p>See these docs:</p>
<ul>
<li>an <a href="https://github.com/ajv-validator/ajv/blob/master/docs/json-type-definition.md">informal document</a> in Ajv repo</li>
<li><a href="https://datatracker.ietf.org/doc/rfc8927/">RFC8927</a></li>
<li><a href="https://github.com/ajv-validator/ajv#choosing-schema-language">choosing schema language</a> - comparison with JSON Schema</li>
</ul>
<p>Allow &quot;:&quot; in keyword names (<a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1421">#1421</a>, <a href="https://github.com/teq0"><code>@​teq0</code></a>)</p>
<h2>v7.0.4</h2>
<p>Fix: duplicate functions in standalone validation code with mutually recursive schemas (<a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1361">#1361</a>)
Fix: reference resolution when base URI change was not applied (<a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1414">#1414</a>)</p>
<h2>v7.0.3</h2>
<p>Fixes:</p>
<ul>
<li>oneOf error type (<a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1368">#1368</a>, <a href="https://github.com/G-Rath"><code>@​G-Rath</code></a>)</li>
<li>remove multiple imports (rollup/plugins#745)</li>
</ul>
<p>Docs:</p>
<ul>
<li>Using in ES5 (<a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1364">#1364</a>, <a href="https://github.com/aladdin-add"><code>@​aladdin-add</code></a>)</li>
<li>Option strictTypes: false has to be used with json-schema-secure schema (<a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1373">#1373</a>)</li>
</ul>
<h2>v7.0.2</h2>
<p>Remove duplicate functions from standalone validation code (<a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1361">#1361</a>)</p>
<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>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/ajv-validator/ajv/commit/9823d1d588762e10a05d5260c83a057eb11be3d8"><code>9823d1d</code></a> 7.2.0</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/db553ad00d8046ffc75b821c12a3e3ab5cea38d0"><code>db553ad</code></a> fix type inference for JTDSchemaType in compileParser/Serializer</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/23293bea73df2eb5add6cf384cc06785e69cae2d"><code>23293be</code></a> docs: add code block header</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/848d3f236a4792feee440733ab5948094acb3b7d"><code>848d3f2</code></a> docs: JSONDataType</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/0aa047bad652129ff39df2a403387988cf60e636"><code>0aa047b</code></a> fix indentation in code samples, turn off prettier for md files</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/22aa6833a09277df85966aa7e4c176546521d18d"><code>22aa683</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1458">#1458</a> from erikbrinkman/jtd-data</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/d5b4aa7d62334385cb3105f90494c449cb623a59"><code>d5b4aa7</code></a> Merge branch 'master' into jtd-data</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/937643ea98362c1d03e95e28b81f1098388e3c1f"><code>937643e</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1475">#1475</a> from erikbrinkman/infer</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/bbf7a51c8712478ec7afd38b10734b561b541d79"><code>bbf7a51</code></a> Merge branch 'master' into infer</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/80d09b3431ed34e44691e3018d14d0e8a4fdf5d5"><code>80d09b3</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1456">#1456</a> from erikbrinkman/null</li>
<li>Additional commits viewable in <a href="https://github.com/ajv-validator/ajv/compare/v6.12.6...v7.2.0">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.2.0)](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>
  • Loading branch information
bors[bot] and dependabot[bot] authored Mar 7, 2021
2 parents 9a2dd7a + 3b7bcec commit be7a908
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@types/tail": "^2.0.0",
"@types/tmp": "^0.2.0",
"@types/urijs": "^1.19.14",
"ajv": "^6.12.6",
"ajv": "^7.2.0",
"axios": "^0.21.1",
"bitcoin-core": "^3.0.0",
"bitcoinjs-lib": "^5.2.0",
Expand Down
22 changes: 21 additions & 1 deletion tests/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ [email protected]:
resolved "https://registry.yarnpkg.com/aes-js/-/aes-js-3.0.0.tgz#e21df10ad6c2053295bcbb8dab40b09dbea87e4d"
integrity sha1-4h3xCtbCBTKVvLuNq0Cwnb6ofk0=

ajv@^6.12.3, ajv@^6.12.6:
ajv@^6.12.3:
version "6.12.6"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4"
integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==
Expand All @@ -1144,6 +1144,16 @@ ajv@^6.12.3, ajv@^6.12.6:
json-schema-traverse "^0.4.1"
uri-js "^4.2.2"

ajv@^7.2.0:
version "7.2.0"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-7.2.0.tgz#54948182f79f2e18c70a501700d78f7a44e6e398"
integrity sha512-51Na3IUg3uOACsQ7hzTUCjSzGy8xROySgI8tmNJ+y9JF2hfDS6qkTP7+Ep3htUtSQG1t17QMbe+jZFTlaU4dDQ==
dependencies:
fast-deep-equal "^3.1.1"
json-schema-traverse "^1.0.0"
require-from-string "^2.0.2"
uri-js "^4.2.2"

ansi-escapes@^4.2.1:
version "4.3.1"
resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.1.tgz#a5c47cc43181f1f38ffd7076837700d395522a61"
Expand Down Expand Up @@ -3725,6 +3735,11 @@ json-schema-traverse@^0.4.1:
resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660"
integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==

json-schema-traverse@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2"
integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==

[email protected]:
version "0.2.3"
resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13"
Expand Down Expand Up @@ -4705,6 +4720,11 @@ require-directory@^2.1.1:
resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42"
integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I=

require-from-string@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909"
integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==

require-main-filename@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b"
Expand Down

0 comments on commit be7a908

Please sign in to comment.