diff --git a/CHANGELOG.md b/CHANGELOG.md index b379460..e5ac09e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [4.3.2](https://github.com/webpack/schema-utils/compare/v4.3.1...v4.3.2) (2025-04-22) + + +### Bug Fixes + +* compatibility with old types ([#198](https://github.com/webpack/schema-utils/issues/198)) ([8e31ef3](https://github.com/webpack/schema-utils/commit/8e31ef311484ad1c0d122266fe520d1f1cb90fad)) + ### [4.3.1](https://github.com/webpack/schema-utils/compare/v4.3.0...v4.3.1) (2025-04-22) diff --git a/declarations/validate.d.ts b/declarations/validate.d.ts index 5ed73b2..6e4eec4 100644 --- a/declarations/validate.d.ts +++ b/declarations/validate.d.ts @@ -10,6 +10,7 @@ export type ExtendedSchema = { link?: string | undefined; undefinedAsNull?: boolean | undefined; }; +export type Extend = ExtendedSchema; export type Schema = (JSONSchema4 | JSONSchema6 | JSONSchema7) & ExtendedSchema; export type SchemaUtilErrorObject = ErrorObject & { children?: Array; diff --git a/package-lock.json b/package-lock.json index b76374c..9e646bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "schema-utils", - "version": "4.3.1", + "version": "4.3.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "schema-utils", - "version": "4.3.1", + "version": "4.3.2", "license": "MIT", "dependencies": { "@types/json-schema": "^7.0.9", diff --git a/package.json b/package.json index 83b0a42..b9e23d8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "schema-utils", - "version": "4.3.1", + "version": "4.3.2", "description": "webpack Validation Utils", "license": "MIT", "repository": "webpack/schema-utils", diff --git a/src/validate.js b/src/validate.js index 3b0cb38..7a40e06 100644 --- a/src/validate.js +++ b/src/validate.js @@ -59,6 +59,9 @@ const getAjv = memoize(() => { * @property {boolean=} undefinedAsNull */ +// TODO remove me in the next major release +/** @typedef {ExtendedSchema} Extend */ + /** @typedef {(JSONSchema4 | JSONSchema6 | JSONSchema7) & ExtendedSchema} Schema */ /** @typedef {ErrorObject & { children?: Array }} SchemaUtilErrorObject */