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

Commit

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

Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.12.6 to 7.2.3.
<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.3</h2>
<p>Remove docs from npm package</p>
<h2>v7.2.2</h2>
<p>Docs correction
Simplified JSONSchemaType (<a href="https://github.com/erikbrinkman"><code>@​erikbrinkman</code></a>
Fix <a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1493">#1493</a> - incorrect reporting of missing required property with option <code>ownProperties: true</code>
Fix <a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1501">#1501</a> - JTD not working correctly with many properties in the schema</p>
<h2>v7.2.1</h2>
<p>Add <a href="https://github.com/nst/JSONTestSuite">tests</a> and fix parsers compiled with <code>ajv.compileParser</code> from JTD schemas:</p>
<ul>
<li>fail on invalid JSON:
<ul>
<li>trailing comma in arrays/objects</li>
<li>invalid JSON numbers</li>
<li>control characters in strings</li>
</ul>
</li>
<li>fix parsing of u-escaped characters</li>
<li>do not fail on duplicate object keys (consistent with JSON.parse)</li>
</ul>
<p>Compiled parsers are now:</p>
<ul>
<li>consistent with JSON.parse in case of invalid JSON</li>
<li>only parse data that is valid for JTD schema</li>
</ul>
<p>It is a breaking change for compiled parsers compared with 7.2.0 that was released earlier pn the same day.</p>
<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>Please note: there are fixes to compiled parsers in <a href="https://github.com/ajv-validator/ajv/releases/tag/v7.2.1">7.2.1</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://ajv.js.org/json-type-definition.html">informal document</a> on Ajv site</li>
<li><a href="https://datatracker.ietf.org/doc/rfc8927/">RFC8927</a></li>
<li><a href="https://ajv.js.org/guide/schema-language.html">choosing schema language</a> - comparison with JSON Schema</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/ajv-validator/ajv/commit/1b07663f3954b48892c7210196f7c6ba08000091"><code>1b07663</code></a> 7.2.3</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/43f448cd82cf2d979e4b7b19afd8c025277cf3c0"><code>43f448c</code></a> remove docs from npm package</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/678f243d7b54e224f4aa9c61305ddc1a59cc64fd"><code>678f243</code></a> 7.2.2</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/4f83021071744bafa79faa2c9f551b07f97af4de"><code>4f83021</code></a> fix incorrect missing property reporting with ownProperties option, closes <a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1493">#1493</a></li>
<li><a href="https://github.com/ajv-validator/ajv/commit/3ae14a3bd4098470deee95e4f90a7cf9f99aaf3a"><code>3ae14a3</code></a> fix incorrect code for additional properties when there are &quot;many&quot; properties...</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/2ada8d68131325f0f3dc5d1b247ac4cde6033236"><code>2ada8d6</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/ajv-validator/ajv/issues/1499">#1499</a> from ajv-validator/format-vue</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/5ca462954ef211ed9e4272d0db5c1675f4575a28"><code>5ca4629</code></a> chore: format older vue components</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/991651412ee250d22b7ade3108c9e1b771c89d68"><code>9916514</code></a> Merge branch 'cbrwflo-patch-1'</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/f95a6d00ce50a576bd4d9cfe29953a419318aa4d"><code>f95a6d0</code></a> fix link</li>
<li><a href="https://github.com/ajv-validator/ajv/commit/119569d9d70ada0a807b61232125499db4239c17"><code>119569d</code></a> Merge branch 'patch-1' of <a href="https://github.com/cbrwflo/ajv">https://github.com/cbrwflo/ajv</a> into cbrwflo-patch-1</li>
<li>Additional commits viewable in <a href="https://github.com/ajv-validator/ajv/compare/v6.12.6...v7.2.3">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.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>
  • Loading branch information
bors[bot] and dependabot[bot] committed Mar 21, 2021
2 parents f4d68a8 + 14d3f54 commit 5cdd04e
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.3",
"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.3:
version "7.2.3"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-7.2.3.tgz#ca78d1cf458d7d36d1c3fa0794dd143406db5772"
integrity sha512-idv5WZvKVXDqKralOImQgPM9v6WOdLNa0IY3B3doOjw/YxRGT8I+allIJ6kd7Uaj+SF1xZUSU+nPM5aDNBVtnw==
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 5cdd04e

Please sign in to comment.