Skip to content

Commit a7e4d16

Browse files
authored
Merge pull request webpack#13717 from snitin315/update-schema-utils
Update schema-utils
2 parents a416c49 + 9bffc25 commit a7e4d16

4 files changed

Lines changed: 14 additions & 13 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"loader-runner": "^4.2.0",
2424
"mime-types": "^2.1.27",
2525
"neo-async": "^2.6.2",
26-
"schema-utils": "^3.0.0",
26+
"schema-utils": "^3.1.0",
2727
"tapable": "^2.1.1",
2828
"terser-webpack-plugin": "^5.1.3",
2929
"watchpack": "^2.2.0",

test/Validation.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe("Validation", () => {
4747
msg =>
4848
expect(msg).toMatchInlineSnapshot(`
4949
"Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
50-
- configuration.entry should be an non-empty string.
50+
- configuration.entry should be a non-empty string.
5151
-> The string is resolved to a module which is loaded upon startup."
5252
`)
5353
);
@@ -62,7 +62,7 @@ describe("Validation", () => {
6262
msg =>
6363
expect(msg).toMatchInlineSnapshot(`
6464
"Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
65-
- configuration.entry['bundle'] should be an non-empty array.
65+
- configuration.entry['bundle'] should be a non-empty array.
6666
-> All modules are loaded upon startup. The last one is exported."
6767
`)
6868
);

types.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ import {
8080
WithStatement,
8181
YieldExpression
8282
} from "estree";
83-
import { ValidationError, validate as validateFunction } from "schema-utils";
83+
import { validate as validateFunction } from "schema-utils";
84+
import { default as ValidationError } from "schema-utils/declarations/ValidationError";
8485
import { ValidationErrorConfiguration } from "schema-utils/declarations/validate";
8586
import {
8687
AsArray,

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -948,10 +948,10 @@
948948
jest-diff "^26.0.0"
949949
pretty-format "^26.0.0"
950950

951-
"@types/json-schema@*", "@types/json-schema@^7.0.3", "@types/json-schema@^7.0.4", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.6":
952-
version "7.0.6"
953-
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0"
954-
integrity sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw==
951+
"@types/json-schema@*", "@types/json-schema@^7.0.3", "@types/json-schema@^7.0.4", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.7":
952+
version "7.0.7"
953+
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad"
954+
integrity sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA==
955955

956956
"@types/minimist@^1.2.0":
957957
version "1.2.0"
@@ -5329,12 +5329,12 @@ schema-utils@^2.6.5:
53295329
ajv "^6.12.4"
53305330
ajv-keywords "^3.5.2"
53315331

5332-
schema-utils@^3.0.0:
5333-
version "3.0.0"
5334-
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.0.0.tgz#67502f6aa2b66a2d4032b4279a2944978a0913ef"
5335-
integrity sha512-6D82/xSzO094ajanoOSbe4YvXWMfn2A//8Y1+MUqFAJul5Bs+yn36xbK9OtNDcRVSBJ9jjeoXftM6CfztsjOAA==
5332+
schema-utils@^3.0.0, schema-utils@^3.1.0:
5333+
version "3.1.0"
5334+
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.1.0.tgz#95986eb604f66daadeed56e379bfe7a7f963cdb9"
5335+
integrity sha512-tTEaeYkyIhEZ9uWgAjDerWov3T9MgX8dhhy2r0IGeeX4W8ngtGl1++dUve/RUqzuaASSh7shwCDJjEzthxki8w==
53365336
dependencies:
5337-
"@types/json-schema" "^7.0.6"
5337+
"@types/json-schema" "^7.0.7"
53385338
ajv "^6.12.5"
53395339
ajv-keywords "^3.5.2"
53405340

0 commit comments

Comments
 (0)