hops-bootstrap
Advanced tools
Comparing version 13.2.2 to 13.3.0
@@ -6,2 +6,18 @@ # Change Log | ||
# [13.3.0](https://github.com/xing/hops/compare/v13.2.2...v13.3.0) (2021-01-11) | ||
### Bug Fixes | ||
* **bootstrap:** add Ajv formats ([fb51f62](https://github.com/xing/hops/commit/fb51f6274bede052e9db4a10c2155f4240a44af4)) | ||
* **bootstrap:** limit pattern properties, too ([f6885e1](https://github.com/xing/hops/commit/f6885e196df98492d9caae4bab5382432e34401e)) | ||
* **bootstrap:** opt out of Ajv's strict mode ([9c96e2c](https://github.com/xing/hops/commit/9c96e2c8a80afe1b2a9e719e702e4fed95db334b)) | ||
* **bootstrap:** use default import of Ajv ([df98412](https://github.com/xing/hops/commit/df98412d8b966375b278aff8d3dee62ece4e9841)) | ||
* update dependency ajv to v7 ([71b95bb](https://github.com/xing/hops/commit/71b95bb99960685e993b56889bbaf6787eb2ee4f)) | ||
* update dependency supports-color to v8 ([14f8179](https://github.com/xing/hops/commit/14f8179ad1982a4c1bd359e56acd194324f54c3e)) | ||
## [13.2.2](https://github.com/xing/hops/compare/v13.2.1...v13.2.2) (2020-12-07) | ||
@@ -8,0 +24,0 @@ |
@@ -7,7 +7,10 @@ /* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^_" }] */ | ||
const Ajv = require('ajv'); | ||
const { default: Ajv } = require('ajv'); | ||
const { default: addFormats } = require('ajv-formats'); | ||
const isPlainObject = require('is-plain-obj'); | ||
const configureAjv = (ajv) => { | ||
ajv.addKeyword('absolutePath', { | ||
addFormats(ajv); | ||
ajv.addKeyword({ | ||
keyword: 'absolutePath', | ||
errors: true, | ||
@@ -36,3 +39,4 @@ type: 'string', | ||
}); | ||
ajv.addKeyword('isFunction', { | ||
ajv.addKeyword({ | ||
keyword: 'isFunction', | ||
compile(expected, schema) { | ||
@@ -64,3 +68,7 @@ const callback = (data) => { | ||
exports.validate = (config, properties) => { | ||
const ajv = new Ajv({ allErrors: true }); | ||
const ajv = new Ajv({ | ||
allErrors: true, | ||
allowMatchingProperties: true, | ||
strict: false, | ||
}); | ||
const additional = { | ||
@@ -67,0 +75,0 @@ patternProperties: { |
{ | ||
"name": "hops-bootstrap", | ||
"version": "13.2.2", | ||
"version": "13.3.0", | ||
"description": "Hops bootstrap", | ||
@@ -15,3 +15,4 @@ "repository": { | ||
"dependencies": { | ||
"ajv": "^6.10.2", | ||
"ajv": "^7.0.0", | ||
"ajv-formats": "^1.5.1", | ||
"check-error": "^1.0.2", | ||
@@ -28,3 +29,3 @@ "cosmiconfig": "^7.0.0", | ||
"mixinable": "^5.0.1", | ||
"supports-color": "^7.1.0" | ||
"supports-color": "^8.0.0" | ||
}, | ||
@@ -34,3 +35,3 @@ "engines": { | ||
}, | ||
"gitHead": "40c8e2a832b57817a183a507e960c88bca06ba7c" | ||
"gitHead": "20483937b4acd89000943d557ab821a85539b380" | ||
} |
@@ -234,1 +234,8 @@ # `hops-bootstrap` | ||
You will only ever have to call it if you want to use `hops-bootstrap` programmatically. You can pass it an `configOverrides` object that will be merged into the main config object, and an options object mixins might use instead of CLI arguments. | ||
## Debugging | ||
Available tags for the [`debug`](https://www.npmjs.com/package/debug)-module are: | ||
- `hops:bootstrap` | ||
- `hops:config` |
35692
686
241
14
+ Addedajv-formats@^1.5.1
+ Addedajv@7.2.4(transitive)
+ Addedajv-formats@1.6.1(transitive)
+ Addedjson-schema-traverse@1.0.0(transitive)
+ Addedrequire-from-string@2.0.2(transitive)
+ Addedsupports-color@8.1.1(transitive)
- Removedajv@6.12.6(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedsupports-color@7.2.0(transitive)
Updatedajv@^7.0.0
Updatedsupports-color@^8.0.0