BryanLaura / Google-api-python-client

Creative Commons Attribution 4.0 International
2 stars 1 forks source link

Update dependency ajv to v8 #290

Closed renovate[bot] closed 3 years ago

renovate[bot] commented 3 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ajv (source) 7.2.4 -> 8.6.2 age adoption passing confidence

Release Notes

ajv-validator/ajv ### [`v8.6.2`](https://togithub.com/ajv-validator/ajv/releases/v8.6.2) [Compare Source](https://togithub.com/ajv-validator/ajv/compare/v8.6.1...v8.6.2) Fix JTD serialiser ([#​1691](https://togithub.com/ajv-validator/ajv/issues/1691)) ### [`v8.6.1`](https://togithub.com/ajv-validator/ajv/releases/v8.6.1) [Compare Source](https://togithub.com/ajv-validator/ajv/compare/v8.6.0...v8.6.1) Fix "not" keyword preventing validation of "allOf" and some other keywords ([#​1668](https://togithub.com/ajv-validator/ajv/issues/1668)) ### [`v8.6.0`](https://togithub.com/ajv-validator/ajv/releases/v8.6.0) [Compare Source](https://togithub.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://togithub.com/P0lip), [#​1626](https://togithub.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://togithub.com/ajv-validator/ajv/releases/v8.5.0) [Compare Source](https://togithub.com/ajv-validator/ajv/compare/v8.4.0...v8.5.0) Optimize validation code for `const` keyword with scalar values ([@​SoAsEr](https://togithub.com/SoAsEr), [#​1561](https://togithub.com/ajv-validator/ajv/issues/1561)) Add option `schemaId` to support [ajv-draft-04](https://togithub.com/ajv-validator/ajv-draft-04) - Ajv for JSON Schema drat-04. ### [`v8.4.0`](https://togithub.com/ajv-validator/ajv/releases/v8.4.0) [Compare Source](https://togithub.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://togithub.com/ajv-validator/ajv/releases/v8.3.0) [Compare Source](https://togithub.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://togithub.com/erikbrinkman), [#​1583](https://togithub.com/ajv-validator/ajv/issues/1583)) - support missed boolean type in JTDDataType ([@​m00s](https://togithub.com/m00s), [#​1587](https://togithub.com/ajv-validator/ajv/issues/1587)) JTD timestamp validation option ([@​jrr](https://togithub.com/jrr), [#​1584](https://togithub.com/ajv-validator/ajv/issues/1584)). Docs corrections. ### [`v8.2.0`](https://togithub.com/ajv-validator/ajv/releases/v8.2.0) [Compare Source](https://togithub.com/ajv-validator/ajv/compare/v8.1.0...v8.2.0) Add JTDDataType to compile signature ([@​erikbrinkman](https://togithub.com/erikbrinkman), [#​1547](https://togithub.com/ajv-validator/ajv/issues/1547)) Improve JSONSchemaType for records ([@​erikbrinkman](https://togithub.com/erikbrinkman), [#​1564](https://togithub.com/ajv-validator/ajv/issues/1564)) Use rollup for browser bundles ([@​realityking](https://togithub.com/realityking), [#​1533](https://togithub.com/ajv-validator/ajv/issues/1533)) Docs corrections ### [`v8.1.0`](https://togithub.com/ajv-validator/ajv/releases/v8.1.0) [Compare Source](https://togithub.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://togithub.com/asaid-0), [#​1530](https://togithub.com/ajv-validator/ajv/issues/1530)) Fix JSONSchemaType ([@​erikbrinkman](https://togithub.com/erikbrinkman), [#​1541](https://togithub.com/ajv-validator/ajv/issues/1541)) Extended error message for invalid keyword values ([@​pcwiek](https://togithub.com/pcwiek), [#​1542](https://togithub.com/ajv-validator/ajv/issues/1542)) ### [`v8.0.5`](https://togithub.com/ajv-validator/ajv/releases/v8.0.5) [Compare Source](https://togithub.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://togithub.com/ajv-validator/ajv/releases/v8.0.4) [Compare Source](https://togithub.com/ajv-validator/ajv/compare/v8.0.3...v8.0.4) Reduce npm bundle size ### [`v8.0.3`](https://togithub.com/ajv-validator/ajv/releases/v8.0.3) [Compare Source](https://togithub.com/ajv-validator/ajv/compare/v8.0.2...v8.0.3) Improve JSONSchemaType errors ([@​erikbrinkman](https://togithub.com/erikbrinkman), [#​1525](https://togithub.com/ajv-validator/ajv/issues/1525)) ### [`v8.0.2`](https://togithub.com/ajv-validator/ajv/releases/v8.0.2) [Compare Source](https://togithub.com/ajv-validator/ajv/compare/v8.0.1...v8.0.2) Support RegExp formats in standalone code ([#​1470](https://togithub.com/ajv-validator/ajv/issues/1470)) Add schema path to strictTuple error message ([@​asaid-0](https://togithub.com/asaid-0), [#​1519](https://togithub.com/ajv-validator/ajv/issues/1519)) ### [`v8.0.1`](https://togithub.com/ajv-validator/ajv/releases/v8.0.1) [Compare Source](https://togithub.com/ajv-validator/ajv/compare/v8.0.0...v8.0.1) Typescript: export function `getData` (for ajv-errors) ### [`v8.0.0`](https://togithub.com/ajv-validator/ajv/releases/v8.0.0) [Compare Source](https://togithub.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://togithub.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://togithub.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`). ### [`v7.2.4`](https://togithub.com/ajv-validator/ajv/releases/v7.2.4) [Compare Source](https://togithub.com/ajv-validator/ajv/compare/v7.2.3...v7.2.4) Fix [#​1515](https://togithub.com/ajv-validator/ajv/issues/1515): correctly initialize evaluated properties. ### [`v7.2.3`](https://togithub.com/ajv-validator/ajv/releases/v7.2.3) [Compare Source](https://togithub.com/ajv-validator/ajv/compare/v7.2.2...v7.2.3) Remove docs from npm package ### [`v7.2.2`](https://togithub.com/ajv-validator/ajv/releases/v7.2.2) [Compare Source](https://togithub.com/ajv-validator/ajv/compare/v7.2.1...v7.2.2) Docs correction Simplified JSONSchemaType ([@​erikbrinkman](https://togithub.com/erikbrinkman)) Fix [#​1493](https://togithub.com/ajv-validator/ajv/issues/1493) - incorrect reporting of missing required property with option `ownProperties: true` Fix [#​1501](https://togithub.com/ajv-validator/ajv/issues/1501) - JTD not working correctly with many properties in the schema ### [`v7.2.1`](https://togithub.com/ajv-validator/ajv/releases/v7.2.1) [Compare Source](https://togithub.com/ajv-validator/ajv/compare/v7.2.0...v7.2.1) Add [tests](https://togithub.com/nst/JSONTestSuite) and fix parsers compiled with `ajv.compileParser` from JTD schemas: - fail on invalid JSON: - trailing comma in arrays/objects - invalid JSON numbers - control characters in strings - fix parsing of u-escaped characters - do not fail on duplicate object keys (consistent with JSON.parse) Compiled parsers are now: - consistent with JSON.parse in case of invalid JSON - only parse data that is valid for JTD schema It is a breaking change for compiled parsers compared with 7.2.0 that was released earlier on the same day. ### [`v7.2.0`](https://togithub.com/ajv-validator/ajv/releases/v7.2.0) [Compare Source](https://togithub.com/ajv-validator/ajv/compare/v7.1.1...v7.2.0) strictRequired option (off by default) - to log or fail if properties used in JSON Schema "required" are not defined in "properties" ([@​PBug90](https://togithub.com/PBug90), [#​1403](https://togithub.com/ajv-validator/ajv/issues/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](https://togithub.com/ajv-validator/ajv/issues/1454)) - see examples in [javascript](https://ajv.js.org/guide/getting-started.html#parsing-and-serializing-json) and [typescript](https://ajv.js.org/guide/typescript.html#type-safe-parsers-and-serializers) Please note: there are fixes to compiled parsers in [7.2.1](https://togithub.com/ajv-validator/ajv/releases/tag/v7.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: - JTDSchemaType 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 ([@​erikbrinkman](https://togithub.com/erikbrinkman), [#​1446](https://togithub.com/ajv-validator/ajv/issues/1446), [#​1456](https://togithub.com/ajv-validator/ajv/issues/1456), [#​1457](https://togithub.com/ajv-validator/ajv/issues/1457), [#​1475](https://togithub.com/ajv-validator/ajv/issues/1475)) - see [example here](https://ajv.js.org/guide/typescript.html#utility-types-for-schemas) - Alternatively, you can use JTDDataType utility type to convert your JTD schema type into the type of data ([@​erikbrinkman](https://togithub.com/erikbrinkman), [#​1458](https://togithub.com/ajv-validator/ajv/issues/1458)) - see [this example](https://ajv.js.org/guide/typescript.html#utility-type-for-jtd-data-type) Other improvements by [@​Fdawgs](https://togithub.com/Fdawgs) ([#​1466](https://togithub.com/ajv-validator/ajv/issues/1466)), [@​t7yang](https://togithub.com/t7yang) ([#​1472](https://togithub.com/ajv-validator/ajv/issues/1472), [#​1473](https://togithub.com/ajv-validator/ajv/issues/1473)), [@​koba04](https://togithub.com/koba04) ([#​1460](https://togithub.com/ajv-validator/ajv/issues/1460)) ### [`v7.1.1`](https://togithub.com/ajv-validator/ajv/releases/v7.1.1) [Compare Source](https://togithub.com/ajv-validator/ajv/compare/v7.1.0...v7.1.1) Support readonly arrays with JSONSchemaType ([@​LinusU](https://togithub.com/LinusU), [#​1447](https://togithub.com/ajv-validator/ajv/issues/1447)) ### [`v7.1.0`](https://togithub.com/ajv-validator/ajv/releases/v7.1.0) [Compare Source](https://togithub.com/ajv-validator/ajv/compare/v7.0.4...v7.1.0) Support for JSON Type Definition RFC 8927 - a simple schema language provided as an alternative to JSON Schema. See these docs: - an [informal document](https://ajv.js.org/json-type-definition.html) on Ajv site - [RFC8927](https://datatracker.ietf.org/doc/rfc8927/) - [choosing schema language](https://ajv.js.org/guide/schema-language.html) - comparison with JSON Schema Allow ":" in keyword names ([#​1421](https://togithub.com/ajv-validator/ajv/issues/1421), [@​teq0](https://togithub.com/teq0))

Configuration

πŸ“… Schedule: 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 WhiteSource Renovate. View repository job log here.

renovate[bot] commented 3 years ago

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

β™» Renovate will retry this branch, including artifacts, only when one of the following happens:

The artifact failure details are included below:

File name: package-lock.json
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: ajv-keywords@3.5.2
npm WARN Found: ajv@8.6.2
npm WARN node_modules/ajv
npm WARN   dev ajv@"8.6.2" from the root project
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer ajv@"^6.9.1" from ajv-keywords@3.5.2
npm WARN node_modules/ajv-keywords
npm WARN   ajv-keywords@"^3.4.1" from schema-utils@2.7.0
npm WARN   node_modules/schema-utils
npm WARN   7 more (schema-utils, schema-utils, schema-utils, schema-utils, ...)
npm WARN 
npm WARN Conflicting peer dependency: ajv@6.12.6
npm WARN node_modules/ajv
npm WARN   peer ajv@"^6.9.1" from ajv-keywords@3.5.2
npm WARN   node_modules/ajv-keywords
npm WARN     ajv-keywords@"^3.4.1" from schema-utils@2.7.0
npm WARN     node_modules/schema-utils
npm WARN     7 more (schema-utils, schema-utils, schema-utils, schema-utils, ...)
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: jest-puppeteer@4.4.0
npm ERR! Found: puppeteer@8.0.0
npm ERR! node_modules/puppeteer
npm ERR!   dev puppeteer@"8.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer puppeteer@">= 1.5.0 < 3" from jest-puppeteer@4.4.0
npm ERR! node_modules/jest-puppeteer
npm ERR!   dev jest-puppeteer@"4.4.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: puppeteer@2.1.1
npm ERR! node_modules/puppeteer
npm ERR!   peer puppeteer@">= 1.5.0 < 3" from jest-puppeteer@4.4.0
npm ERR!   node_modules/jest-puppeteer
npm ERR!     dev jest-puppeteer@"4.4.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /tmp/renovate-cache/others/npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/renovate-cache/others/npm/_logs/2021-08-31T14_09_17_794Z-debug.log
github-actions[bot] commented 3 years ago

Thanks very much for contributing! Your pull request has been merged πŸŽ‰ You should see your changes appear on the site in approximately 24 hours.