From 5cd2ad26d87deb02ae5f09abad2fed057d9421c8 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Mon, 5 Jul 2021 21:02:03 +0530 Subject: [PATCH 1/5] chore: update schema-utils --- package.json | 2 +- yarn.lock | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5e21685a2..42fb76a93 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "loader-runner": "^4.2.0", "mime-types": "^2.1.27", "neo-async": "^2.6.2", - "schema-utils": "^3.0.0", + "schema-utils": "^3.1.0", "tapable": "^2.1.1", "terser-webpack-plugin": "^5.1.3", "watchpack": "^2.2.0", diff --git a/yarn.lock b/yarn.lock index 6d6b3a697..e33f92756 100644 --- a/yarn.lock +++ b/yarn.lock @@ -953,6 +953,11 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0" integrity sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw== +"@types/json-schema@^7.0.7": + version "7.0.7" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad" + integrity sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA== + "@types/minimist@^1.2.0": version "1.2.0" resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.0.tgz#69a23a3ad29caf0097f06eda59b361ee2f0639f6" @@ -5338,6 +5343,15 @@ schema-utils@^3.0.0: ajv "^6.12.5" ajv-keywords "^3.5.2" +schema-utils@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.1.0.tgz#95986eb604f66daadeed56e379bfe7a7f963cdb9" + integrity sha512-tTEaeYkyIhEZ9uWgAjDerWov3T9MgX8dhhy2r0IGeeX4W8ngtGl1++dUve/RUqzuaASSh7shwCDJjEzthxki8w== + dependencies: + "@types/json-schema" "^7.0.7" + ajv "^6.12.5" + ajv-keywords "^3.5.2" + script-loader@^0.7.2: version "0.7.2" resolved "https://registry.yarnpkg.com/script-loader/-/script-loader-0.7.2.tgz#2016db6f86f25f5cf56da38915d83378bb166ba7" From d3fe3a331c7dc7dd40b520e4ae05f6f9fbd2c6a5 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Mon, 5 Jul 2021 21:10:09 +0530 Subject: [PATCH 2/5] update types.d.ts --- types.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types.d.ts b/types.d.ts index b47a1b7d4..43333a546 100644 --- a/types.d.ts +++ b/types.d.ts @@ -80,7 +80,8 @@ import { WithStatement, YieldExpression } from "estree"; -import { ValidationError, validate as validateFunction } from "schema-utils"; +import { validate as validateFunction } from "schema-utils"; +import { default as ValidationError } from "schema-utils/declarations/ValidationError"; import { ValidationErrorConfiguration } from "schema-utils/declarations/validate"; import { AsArray, From d6dcf0c281ca8cb45c823b635fbfe6db8cc6c1da Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Mon, 5 Jul 2021 21:12:08 +0530 Subject: [PATCH 3/5] test: update validation snapshot --- test/Validation.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Validation.test.js b/test/Validation.test.js index bcba1df67..e87b3476e 100644 --- a/test/Validation.test.js +++ b/test/Validation.test.js @@ -46,7 +46,7 @@ describe("Validation", () => { msg => expect(msg).toMatchInlineSnapshot(` "Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema. - - configuration.entry should be an non-empty string. + - configuration.entry should be a non-empty string. -> The string is resolved to a module which is loaded upon startup." `) ); @@ -61,7 +61,7 @@ describe("Validation", () => { msg => expect(msg).toMatchInlineSnapshot(` "Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema. - - configuration.entry['bundle'] should be an non-empty array. + - configuration.entry['bundle'] should be a non-empty array. -> All modules are loaded upon startup. The last one is exported." `) ); From f4b889f7344c5d140d75e8267cab32663fba758f Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Tue, 6 Jul 2021 07:01:04 +0530 Subject: [PATCH 4/5] fix lint --- yarn.lock | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/yarn.lock b/yarn.lock index e33f92756..41322d7dc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -948,12 +948,7 @@ jest-diff "^26.0.0" pretty-format "^26.0.0" -"@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": - version "7.0.6" - resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0" - integrity sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw== - -"@types/json-schema@^7.0.7": +"@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", "@types/json-schema@^7.0.7": version "7.0.7" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad" integrity sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA== @@ -5334,16 +5329,7 @@ schema-utils@^2.6.5: ajv "^6.12.4" ajv-keywords "^3.5.2" -schema-utils@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.0.0.tgz#67502f6aa2b66a2d4032b4279a2944978a0913ef" - integrity sha512-6D82/xSzO094ajanoOSbe4YvXWMfn2A//8Y1+MUqFAJul5Bs+yn36xbK9OtNDcRVSBJ9jjeoXftM6CfztsjOAA== - dependencies: - "@types/json-schema" "^7.0.6" - ajv "^6.12.5" - ajv-keywords "^3.5.2" - -schema-utils@^3.1.0: +schema-utils@^3.0.0, schema-utils@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.1.0.tgz#95986eb604f66daadeed56e379bfe7a7f963cdb9" integrity sha512-tTEaeYkyIhEZ9uWgAjDerWov3T9MgX8dhhy2r0IGeeX4W8ngtGl1++dUve/RUqzuaASSh7shwCDJjEzthxki8w== From 9bffc251618121a4deda616cc1c6d4c323a02b0a Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Tue, 6 Jul 2021 16:10:41 +0530 Subject: [PATCH 5/5] run `yarn special-lint-fix` --- yarn.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn.lock b/yarn.lock index 41322d7dc..24fc0ab1f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -948,7 +948,7 @@ jest-diff "^26.0.0" pretty-format "^26.0.0" -"@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", "@types/json-schema@^7.0.7": +"@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": version "7.0.7" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad" integrity sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA==