JLHwung / postcss-font-family-system-ui

PostCSS plugin to transform W3C CSS font-family: system-ui to a practical font-family list
Creative Commons Zero v1.0 Universal
94 stars 8 forks source link

chore(deps): update dependency ajv to v7 #386

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 6.12.6 -> 7.0.0 age adoption passing confidence

Release Notes

ajv-validator/ajv ### [`v7.0.0`](https://togithub.com/ajv-validator/ajv/releases/v7.0.0) [Compare Source](https://togithub.com/ajv-validator/ajv/compare/v6.12.6...v7.0.0) Please note: this document is WIP, it will cover the changes from v6.12.6 soon, but at the moment it only includes the changes to v7.0.0-beta.0, there should be added subsequent pre-releases. ##### The main changes - to reduce the mistakes in JSON schemas and unexpected validation results, [strict mode](https://togithub.com/ajv-validator/ajv/blob/v7-beta/docs/strict-mode.md) is added - it prohibits ignored or ambiguous JSON Schema elements. See [Strict mode](https://togithub.com/ajv-validator/ajv/blob/v7-beta/docs/strict-mode.md) and [Options](https://togithub.com/ajv-validator/ajv/blob/v7-beta/docs/api.md) for more details - to make code injection from untrusted schemas impossible, [code generation](https://togithub.com/ajv-validator/ajv/blob/v7-beta/docs/codegen.md) is fully re-written to be type-level safe against code injection via untrusted schemas. - 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. **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](https://togithub.com/ajv-validator/ajv-formats) package - they have to be explicitly added if you use them. ##### Better TypeScript support: - Methods `compile` and `compileAsync` now return type-guards - see [Getting started](https://togithub.com/ajv-validator/ajv/tree/v7-beta#usage). - 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](https://togithub.com/ajv-validator/ajv/blob/v7-beta/docs/strict-mode.md#strict-types)) - strictTuples: "log" - prevent incomplete tuple schemas (see [Prohibit unconstrained tuples](https://togithub.com/ajv-validator/ajv/blob/v7-beta/docs/strict-mode.md#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 ##### Changed options: - `keywords` - now expects the array of keyword definitions (old API works with "deprecated" warning) ##### Removed options: - errorDataPath - was deprecated, now removed. - format - `validateFormats: false` can be used instead, old format mode can be chosen via ajv-formats package. - nullable: `nullable` keyword is supported by default. - jsonPointers: JSONPointers are used to report errors by default, `jsPropertySyntax: true` (deprecated) can be used if old format is needed. - extendRefs: $ref siblings are validated by default (consistent with draft 2019-09), `ignoreKeywordsWithRef` (deprecated) can be used instead to ignore $ref siblings. - missingRefs: now exception is always thrown. Pass empty schema with $id that should be ignored to ajv.addSchema. - processCode: replaced with `code: {process: (code, schemaEnv: object) => string}`. - sourceCode: replaced with `code: {source: true}`. - schemaId: removed, as JSON Schema draft-04 is no longer supported. - strictDefaults, strictKeywords, strictNumbers: it is default now, controlled with `strict`. - uniqueItems: '"uniqueItems" keyword is always validated. - unknownFormats: the same can be achieved by passing true for formats that need to be ignored via `ajv.addFormat` or `formats` option. - cache and serialize: Map is used as cache, schema object as key.

Renovate configuration

:date: Schedule: At any time (no schedule defined).

:vertical_traffic_light: Automerge: Enabled.

:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

:no_bell: 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.