webpack 5.52.1 → 5.53.0

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.

Potentially problematic release.


This version of webpack might be problematic. Click here for more details.

@@ -699,6 +699,10 @@
699
699
  }
700
700
  ]
701
701
  },
702
+ "futureDefaults": {
703
+ "description": "Apply defaults of next major version.",
704
+ "type": "boolean"
705
+ },
702
706
  "layers": {
703
707
  "description": "Enable module and chunk layers.",
704
708
  "type": "boolean"
@@ -1940,15 +1944,15 @@
1940
1944
  "properties": {
1941
1945
  "__dirname": {
1942
1946
  "description": "Include a polyfill for the '__dirname' variable.",
1943
- "enum": [false, true, "mock", "eval-only"]
1947
+ "enum": [false, true, "warn-mock", "mock", "eval-only"]
1944
1948
  },
1945
1949
  "__filename": {
1946
1950
  "description": "Include a polyfill for the '__filename' variable.",
1947
- "enum": [false, true, "mock", "eval-only"]
1951
+ "enum": [false, true, "warn-mock", "mock", "eval-only"]
1948
1952
  },
1949
1953
  "global": {
1950
1954
  "description": "Include a polyfill for the 'global' variable.",
1951
- "type": "boolean"
1955
+ "enum": [false, true, "warn"]
1952
1956
  }
1953
1957
  }
1954
1958
  },
@@ -3,4 +3,4 @@
3
3
  * DO NOT MODIFY BY HAND.
4
4
  * Run `yarn special-lint-fix` to update
5
5
  */
6
- "use strict";function e(t,{instancePath:o="",parentData:s,parentDataProperty:r,rootData:n=t}={}){let c=null,a=0;const p=a;let l=!1;const i=a;if(a===i)if(t&&"object"==typeof t&&!Array.isArray(t)){const e=a;for(const e in t)if("contextRegExp"!==e&&"resourceRegExp"!==e){const t={params:{additionalProperty:e}};null===c?c=[t]:c.push(t),a++;break}if(e===a){if(void 0!==t.contextRegExp){const e=a;if(!(t.contextRegExp instanceof RegExp)){const e={params:{}};null===c?c=[e]:c.push(e),a++}var u=e===a}else u=!0;if(u)if(void 0!==t.resourceRegExp){const e=a;if(!(t.resourceRegExp instanceof RegExp)){const e={params:{}};null===c?c=[e]:c.push(e),a++}u=e===a}else u=!0}}else{const e={params:{type:"object"}};null===c?c=[e]:c.push(e),a++}var f=i===a;if(l=l||f,!l){const e=a;if(a===e)if(t&&"object"==typeof t&&!Array.isArray(t)){const e=a;for(const e in t)if("checkResource"!==e){const t={params:{additionalProperty:e}};null===c?c=[t]:c.push(t),a++;break}if(e===a&&void 0!==t.checkResource&&!(t.checkResource instanceof Function)){const e={params:{}};null===c?c=[e]:c.push(e),a++}}else{const e={params:{type:"object"}};null===c?c=[e]:c.push(e),a++}f=e===a,l=l||f}if(!l){const t={params:{}};return null===c?c=[t]:c.push(t),a++,e.errors=c,!1}return a=p,null!==c&&(p?c.length=p:c=null),e.errors=c,0===a}module.exports=e,module.exports.default=e;
6
+ "use strict";function e(s,{instancePath:o="",parentData:r,parentDataProperty:t,rootData:n=s}={}){let c=null,a=0;const p=a;let l=!1;const i=a;if(a===i)if(s&&"object"==typeof s&&!Array.isArray(s)){let e;if(void 0===s.resourceRegExp&&(e="resourceRegExp")){const s={params:{missingProperty:e}};null===c?c=[s]:c.push(s),a++}else{const e=a;for(const e in s)if("contextRegExp"!==e&&"resourceRegExp"!==e){const s={params:{additionalProperty:e}};null===c?c=[s]:c.push(s),a++;break}if(e===a){if(void 0!==s.contextRegExp){const e=a;if(!(s.contextRegExp instanceof RegExp)){const e={params:{}};null===c?c=[e]:c.push(e),a++}var u=e===a}else u=!0;if(u)if(void 0!==s.resourceRegExp){const e=a;if(!(s.resourceRegExp instanceof RegExp)){const e={params:{}};null===c?c=[e]:c.push(e),a++}u=e===a}else u=!0}}}else{const e={params:{type:"object"}};null===c?c=[e]:c.push(e),a++}var f=i===a;if(l=l||f,!l){const e=a;if(a===e)if(s&&"object"==typeof s&&!Array.isArray(s)){let e;if(void 0===s.checkResource&&(e="checkResource")){const s={params:{missingProperty:e}};null===c?c=[s]:c.push(s),a++}else{const e=a;for(const e in s)if("checkResource"!==e){const s={params:{additionalProperty:e}};null===c?c=[s]:c.push(s),a++;break}if(e===a&&void 0!==s.checkResource&&!(s.checkResource instanceof Function)){const e={params:{}};null===c?c=[e]:c.push(e),a++}}}else{const e={params:{type:"object"}};null===c?c=[e]:c.push(e),a++}f=e===a,l=l||f}if(!l){const s={params:{}};return null===c?c=[s]:c.push(s),a++,e.errors=c,!1}return a=p,null!==c&&(p?c.length=p:c=null),e.errors=c,0===a}module.exports=e,module.exports.default=e;
@@ -15,7 +15,8 @@
15
15
  "instanceof": "RegExp",
16
16
  "tsType": "RegExp"
17
17
  }
18
- }
18
+ },
19
+ "required": ["resourceRegExp"]
19
20
  },
20
21
  {
21
22
  "type": "object",
@@ -26,7 +27,8 @@
26
27
  "instanceof": "Function",
27
28
  "tsType": "((resource: string, context: string) => boolean)"
28
29
  }
29
- }
30
+ },
31
+ "required": ["checkResource"]
30
32
  }
31
33
  ]
32
34
  }
package/types.d.ts CHANGED
@@ -3282,6 +3282,11 @@ declare interface Experiments {
3282
3282
  */
3283
3283
  buildHttp?: boolean | HttpUriOptions;
3284
3284
 
3285
+ /**
3286
+ * Apply defaults of next major version.
3287
+ */
3288
+ futureDefaults?: boolean;
3289
+
3285
3290
  /**
3286
3291
  * Enable module and chunk layers.
3287
3292
  */
@@ -4438,13 +4443,13 @@ type IgnorePluginOptions =
4438
4443
  /**
4439
4444
  * A RegExp to test the request against.
4440
4445
  */
4441
- resourceRegExp?: RegExp;
4446
+ resourceRegExp: RegExp;
4442
4447
  }
4443
4448
  | {
4444
4449
  /**
4445
4450
  * A filter function for resource and context.
4446
4451
  */
4447
- checkResource?: (resource: string, context: string) => boolean;
4452
+ checkResource: (resource: string, context: string) => boolean;
4448
4453
  };
4449
4454
  declare interface ImportModuleOptions {
4450
4455
  /**
@@ -7156,17 +7161,17 @@ declare interface NodeOptions {
7156
7161
  /**
7157
7162
  * Include a polyfill for the '__dirname' variable.
7158
7163
  */
7159
- __dirname?: boolean | "mock" | "eval-only";
7164
+ __dirname?: boolean | "warn-mock" | "mock" | "eval-only";
7160
7165
 
7161
7166
  /**
7162
7167
  * Include a polyfill for the '__filename' variable.
7163
7168
  */
7164
- __filename?: boolean | "mock" | "eval-only";
7169
+ __filename?: boolean | "warn-mock" | "mock" | "eval-only";
7165
7170
 
7166
7171
  /**
7167
7172
  * Include a polyfill for the 'global' variable.
7168
7173
  */
7169
- global?: boolean;
7174
+ global?: boolean | "warn";
7170
7175
  }
7171
7176
  declare class NodeSourcePlugin {
7172
7177
  constructor();