schema-utils
Advanced tools
Comparing version 2.7.0 to 2.7.1
@@ -5,2 +5,9 @@ # Changelog | ||
### [2.7.1](https://github.com/webpack/schema-utils/compare/v2.7.0...v2.7.1) (2020-08-31) | ||
### Bug Fixes | ||
* remove esModuleInterop from tsconfig ([#110](https://github.com/webpack/schema-utils/issues/110)) ([#111](https://github.com/webpack/schema-utils/issues/111)) ([2f40154](https://github.com/webpack/schema-utils/commit/2f40154b91e45b393258ae9dd8f10cc3b8590b7d)) | ||
## [2.7.0](https://github.com/webpack/schema-utils/compare/v2.6.6...v2.7.0) (2020-05-29) | ||
@@ -7,0 +14,0 @@ |
@@ -55,9 +55,9 @@ export = Range; | ||
static getRangeValue( | ||
values: Array<RangeValue>, | ||
values: Array<[number, boolean]>, | ||
logic: boolean | ||
): [number, boolean]; | ||
/** @type {Array<RangeValue>} */ | ||
_left: Array<RangeValue>; | ||
_left: Array<[number, boolean]>; | ||
/** @type {Array<RangeValue>} */ | ||
_right: Array<RangeValue>; | ||
_right: Array<[number, boolean]>; | ||
/** | ||
@@ -64,0 +64,0 @@ * @param {number} value |
@@ -5,3 +5,3 @@ export default validate; | ||
export type JSONSchema7 = import('json-schema').JSONSchema7; | ||
export type ErrorObject = Ajv.ErrorObject; | ||
export type ErrorObject = import('ajv').ErrorObject; | ||
export type Extend = { | ||
@@ -17,4 +17,4 @@ formatMinimum?: number | undefined; | ||
| (import('json-schema').JSONSchema7 & Extend); | ||
export type SchemaUtilErrorObject = Ajv.ErrorObject & { | ||
children?: Ajv.ErrorObject[] | undefined; | ||
export type SchemaUtilErrorObject = import('ajv').ErrorObject & { | ||
children?: import('ajv').ErrorObject[] | undefined; | ||
}; | ||
@@ -45,3 +45,2 @@ export type PostFormatter = ( | ||
} | ||
import Ajv from 'ajv'; | ||
import ValidationError from './ValidationError'; |
@@ -8,6 +8,2 @@ "use strict"; | ||
var _ajv = _interopRequireDefault(require("ajv")); | ||
var _ajvKeywords = _interopRequireDefault(require("ajv-keywords")); | ||
var _absolutePath = _interopRequireDefault(require("./keywords/absolutePath")); | ||
@@ -19,2 +15,6 @@ | ||
// Use CommonJS require for ajv libs so TypeScript consumers aren't locked into esModuleInterop (see #110). | ||
const Ajv = require('ajv'); | ||
const ajvKeywords = require('ajv-keywords'); | ||
/** @typedef {import("json-schema").JSONSchema4} JSONSchema4 */ | ||
@@ -53,3 +53,5 @@ | ||
*/ | ||
const ajv = new _ajv.default({ | ||
const ajv = new Ajv({ | ||
allErrors: true, | ||
@@ -59,3 +61,3 @@ verbose: true, | ||
}); | ||
(0, _ajvKeywords.default)(ajv, ['instanceof', 'formatMinimum', 'formatMaximum', 'patternRequired']); // Custom keywords | ||
ajvKeywords(ajv, ['instanceof', 'formatMinimum', 'formatMaximum', 'patternRequired']); // Custom keywords | ||
@@ -62,0 +64,0 @@ (0, _absolutePath.default)(ajv); |
{ | ||
"name": "schema-utils", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"description": "webpack Validation Utils", | ||
@@ -46,12 +46,12 @@ "license": "MIT", | ||
"dependencies": { | ||
"ajv": "^6.12.2", | ||
"ajv-keywords": "^3.4.1", | ||
"@types/json-schema": "^7.0.4" | ||
"ajv": "^6.12.4", | ||
"ajv-keywords": "^3.5.2", | ||
"@types/json-schema": "^7.0.5" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.10.1", | ||
"@babel/core": "^7.10.1", | ||
"@babel/preset-env": "^7.10.1", | ||
"@commitlint/cli": "^8.3.5", | ||
"@commitlint/config-conventional": "^8.3.4", | ||
"@babel/cli": "^7.10.5", | ||
"@babel/core": "^7.11.4", | ||
"@babel/preset-env": "^7.11.0", | ||
"@commitlint/cli": "^10.0.0", | ||
"@commitlint/config-conventional": "^10.0.0", | ||
"@webpack-contrib/defaults": "^6.3.0", | ||
@@ -63,12 +63,12 @@ "@webpack-contrib/eslint-config-webpack": "^3.0.0", | ||
"del-cli": "^3.0.1", | ||
"eslint": "^6.8.0", | ||
"eslint": "^7.7.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-import": "^2.20.2", | ||
"eslint-plugin-import": "^2.22.0", | ||
"husky": "^4.2.5", | ||
"jest": "^25.5.4", | ||
"lint-staged": "^10.2.7", | ||
"lint-staged": "^10.2.13", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^1.19.1", | ||
"standard-version": "^8.0.0", | ||
"typescript": "^3.9.3" | ||
"standard-version": "^9.0.0", | ||
"typescript": "^4.0.2" | ||
}, | ||
@@ -75,0 +75,0 @@ "keywords": [ |
@@ -41,3 +41,3 @@ <div align="center"> | ||
"option": { | ||
"type": ["boolean"] | ||
"type": "boolean" | ||
} | ||
@@ -276,3 +276,3 @@ }, | ||
[chat-url]: https://gitter.im/webpack/webpack | ||
[size]: https://packagephobia.now.sh/badge?p=schema-utils | ||
[size-url]: https://packagephobia.now.sh/result?p=schema-utils | ||
[size]: https://packagephobia.com/badge?p=schema-utils | ||
[size-url]: https://packagephobia.com/result?p=schema-utils |
77426
Updated@types/json-schema@^7.0.5
Updatedajv@^6.12.4
Updatedajv-keywords@^3.5.2