webpack 5.96.0 → 5.96.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -120,13 +120,13 @@ module.exports = mergeExports(fn, {
120
120
  return require("./webpack");
121
121
  },
122
122
  /**
123
- * @returns {function(Configuration): void} validate fn
123
+ * @returns {function(Configuration | Configuration[]): void} validate fn
124
124
  */
125
125
  get validate() {
126
126
  const webpackOptionsSchemaCheck = require("../schemas/WebpackOptions.check.js");
127
127
  const getRealValidate = memoize(
128
128
  /**
129
- * @returns {function(Configuration): void} validate fn
129
+ * @returns {function(Configuration | Configuration[]): void} validate fn
130
130
  */
131
131
  () => {
132
132
  const validateSchema = require("./validateSchema");
@@ -135,7 +135,8 @@ module.exports = mergeExports(fn, {
135
135
  }
136
136
  );
137
137
  return options => {
138
- if (!webpackOptionsSchemaCheck(options)) getRealValidate()(options);
138
+ if (!webpackOptionsSchemaCheck(/** @type {TODO} */ (options)))
139
+ getRealValidate()(options);
139
140
  };
140
141
  },
141
142
  get validateSchema() {
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "webpack",
3
- "version": "5.96.0",
3
+ "version": "5.96.1",
4
4
  "author": "Tobias Koppers @sokra",
5
5
  "description": "Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",
6
6
  "license": "MIT",
7
7
  "dependencies": {
8
+ "@types/eslint-scope": "^3.7.7",
8
9
  "@types/estree": "^1.0.6",
9
10
  "@webassemblyjs/ast": "^1.12.1",
10
11
  "@webassemblyjs/wasm-edit": "^1.12.1",
@@ -38,7 +39,6 @@
38
39
  "@babel/preset-react": "^7.25.7",
39
40
  "@eslint/js": "^9.12.0",
40
41
  "@stylistic/eslint-plugin": "^2.9.0",
41
- "@types/eslint-scope": "^3.7.7",
42
42
  "@types/glob-to-regexp": "^0.4.4",
43
43
  "@types/jest": "^29.5.11",
44
44
  "@types/mime-types": "^2.1.4",
package/types.d.ts CHANGED
@@ -15839,7 +15839,7 @@ declare namespace exports {
15839
15839
  callback?: CallbackWebpack<MultiStats>
15840
15840
  ): MultiCompiler;
15841
15841
  };
15842
- export const validate: (arg0: Configuration) => void;
15842
+ export const validate: (arg0: Configuration | Configuration[]) => void;
15843
15843
  export const validateSchema: (
15844
15844
  schema: Parameters<typeof validateFunction>[0],
15845
15845
  options: Parameters<typeof validateFunction>[1],