validate-value
Advanced tools
Comparing version 9.4.0 to 10.0.0
@@ -1,3 +0,3 @@ | ||
import Ajv from 'ajv'; | ||
import Ajv from 'ajv/dist/2020'; | ||
declare const getDefaultAjvInstance: () => Ajv; | ||
export { getDefaultAjvInstance }; |
@@ -8,5 +8,5 @@ "use strict"; | ||
const ajv_formats_1 = __importDefault(require("ajv-formats")); | ||
const ajv_1 = __importDefault(require("ajv")); | ||
const _2020_1 = __importDefault(require("ajv/dist/2020")); | ||
const getDefaultAjvInstance = function () { | ||
const defaultAjvInstance = new ajv_1.default({ | ||
const defaultAjvInstance = new _2020_1.default({ | ||
allowUnionTypes: true | ||
@@ -13,0 +13,0 @@ }); |
import { ErrorObject } from 'ajv'; | ||
declare const ParseError_base: import("defekt/build/lib/CustomErrorConstructor").CustomErrorConstructor<"ParseError">; | ||
declare const ParseError_base: import("defekt/build/lib/CustomErrorConstructor").CustomErrorConstructor<any, "ParseError">; | ||
declare class ParseError extends ParseError_base { | ||
@@ -4,0 +4,0 @@ constructor({ message, originalValue, origin }: { |
@@ -0,4 +1,5 @@ | ||
import Ajv from 'ajv/dist/2020'; | ||
import { JSONSchema7 } from 'json-schema'; | ||
import { ParseError } from './ParseError'; | ||
import Ajv, { ValidateFunction } from 'ajv'; | ||
import { ValidateFunction } from 'ajv'; | ||
import { Result } from 'defekt'; | ||
@@ -5,0 +6,0 @@ interface ParserOptions { |
@@ -0,1 +1,13 @@ | ||
# [10.0.0](https://github.com/thenativeweb/validate-value/compare/9.4.0...10.0.0) (2022-09-05) | ||
### Features | ||
* Update to JsonSchema draft-2020-12. ([#437](https://github.com/thenativeweb/validate-value/issues/437)) ([34cf4a2](https://github.com/thenativeweb/validate-value/commit/34cf4a2da481b0baa19fe11cf91a50e69fada01e)) | ||
### BREAKING CHANGES | ||
* `validate-value` now uses JSONSchema draft-2020-12. You need to update your schemata to this draft, as schemata written for older versions might not be compatible anymore, and could behave unexpectedly. You can find the migration guide at https://ajv.js.org/json-schema.html#draft-2020-12. | ||
# [9.4.0](https://github.com/thenativeweb/validate-value/compare/9.3.3...9.4.0) (2022-06-23) | ||
@@ -2,0 +14,0 @@ |
import addFormats from 'ajv-formats'; | ||
import Ajv from 'ajv'; | ||
import Ajv from 'ajv/dist/2020'; | ||
@@ -4,0 +4,0 @@ const getDefaultAjvInstance = function (): Ajv { |
@@ -0,1 +1,2 @@ | ||
import Ajv from 'ajv/dist/2020'; | ||
import { getByInstancePath } from './getByInstancePath'; | ||
@@ -6,3 +7,3 @@ import { getDefaultAjvInstance } from './getDefaultAjvInstance'; | ||
import { typeOf } from 'typedescriptor'; | ||
import Ajv, { ValidateFunction } from 'ajv'; | ||
import { ValidateFunction } from 'ajv'; | ||
import { error, Result, value } from 'defekt'; | ||
@@ -9,0 +10,0 @@ |
{ | ||
"name": "validate-value", | ||
"version": "9.4.0", | ||
"version": "10.0.0", | ||
"description": "validate-value validates values against JSON schemas.", | ||
@@ -34,3 +34,3 @@ "contributors": [ | ||
"ajv-formats": "2.1.1", | ||
"defekt": "9.2.0", | ||
"defekt": "9.3.0", | ||
"json-schema": "0.4.0", | ||
@@ -41,3 +41,3 @@ "typedescriptor": "4.0.14" | ||
"assertthat": "6.5.2", | ||
"roboter": "13.1.0", | ||
"roboter": "13.2.1", | ||
"semantic-release-configuration": "2.0.7" | ||
@@ -44,0 +44,0 @@ }, |
53804
498
+ Addeddefekt@9.3.0(transitive)
- Removeddefekt@9.2.0(transitive)
Updateddefekt@9.3.0