@serwist/webpack-plugin 9.0.0-preview.21 → 9.0.0-preview.25

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/dist/index.js CHANGED
@@ -260,7 +260,7 @@ class InjectManifest {
260
260
  } else {
261
261
  this.addSrcToAssets(compilation, parentCompiler);
262
262
  if (Array.isArray(this.config.webpackCompilationPlugins) && this.config.webpackCompilationPlugins.length > 0) {
263
- compilation.warnings.push(new Error("compileSrc is false, so the " + "webpackCompilationPlugins option will be ignored."));
263
+ compilation.warnings.push(new Error("'compileSrc' is 'false', so the 'webpackCompilationPlugins' option will be ignored."));
264
264
  }
265
265
  }
266
266
  }
@@ -1 +1 @@
1
- {"version":3,"file":"get-manifest-entries-from-compilation.d.ts","sourceRoot":"","sources":["../../src/lib/get-manifest-entries-from-compilation.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAe,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEjE,OAAO,KAAK,EAAgB,WAAW,EAAgB,MAAM,SAAS,CAAC;AAIvE,OAAO,KAAK,EAAyB,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAoKvF,eAAO,MAAM,iCAAiC,gBAC/B,WAAW,UAChB,6BAA6B;UACpB,MAAM;mBAAiB,aAAa,EAAE,GAAG,SAAS;EAiCpE,CAAC"}
1
+ {"version":3,"file":"get-manifest-entries-from-compilation.d.ts","sourceRoot":"","sources":["../../src/lib/get-manifest-entries-from-compilation.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAe,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEjE,OAAO,KAAK,EAAgB,WAAW,EAAgB,MAAM,SAAS,CAAC;AAIvE,OAAO,KAAK,EAAyB,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAoKvF,eAAO,MAAM,iCAAiC,gBAC/B,WAAW,UAChB,6BAA6B,KACpC,QAAQ;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,aAAa,EAAE,GAAG,SAAS,CAAA;CAAE,CAiCtE,CAAC"}
@@ -42,7 +42,7 @@ export interface InjectPartial {
42
42
  compileSrc?: boolean;
43
43
  /**
44
44
  * Optional webpack plugins that will be used when compiling the `swSrc`
45
- * input file. Only valid if `compileSrc` is `true`.
45
+ * file. Only valid if `compileSrc` is `true`.
46
46
  */
47
47
  webpackCompilationPlugins?: any[];
48
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,aAAa,IAAI,iBAAiB,EAClC,cAAc,IAAI,kBAAkB,EACpC,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAKlB;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC;IACzD;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC;CAC1D;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC;AAEjE,MAAM,WAAW,aAAa;IAC5B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAIrB;;;OAGG;IACH,yBAAyB,CAAC,EAAE,GAAG,EAAE,CAAC;CACnC;AAED,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,aAAa,E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AAQ,WAAW,EAAE,cAAc,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,aAAa;CAAG;AAEtI,MAAM,WAAW,6BAA8B,SAAQ,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,cAAc;CAAG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/webpack-plugin",
3
- "version": "9.0.0-preview.21",
3
+ "version": "9.0.0-preview.25",
4
4
  "type": "module",
5
5
  "description": "A plugin for your webpack build process, helping you generate a manifest of local files that should be precached.",
6
6
  "files": [
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "author": "Google's Web DevRel Team, Serwist's Team",
24
24
  "license": "MIT",
25
- "repository": "https://gitlab.com/serwist/serwist",
26
- "bugs": "https://gitlab.com/serwist/serwist/issues",
25
+ "repository": "https://github.com/serwist/serwist",
26
+ "bugs": "https://github.com/serwist/serwist/issues",
27
27
  "homepage": "https://serwist.pages.dev",
28
28
  "main": "./dist/index.js",
29
29
  "types": "./dist/index.d.ts",
@@ -56,16 +56,16 @@
56
56
  "pretty-bytes": "6.1.1",
57
57
  "upath": "2.0.1",
58
58
  "zod": "3.22.4",
59
- "@serwist/build": "9.0.0-preview.21"
59
+ "@serwist/build": "9.0.0-preview.25"
60
60
  },
61
61
  "devDependencies": {
62
- "@types/node": "20.11.30",
62
+ "@types/node": "20.12.7",
63
63
  "@types/webpack": "5.28.5",
64
- "rollup": "4.13.0",
65
- "typescript": "5.5.0-dev.20240323",
64
+ "rollup": "4.14.3",
65
+ "typescript": "5.5.0-dev.20240415",
66
66
  "webpack": "5.91.0",
67
- "@serwist/constants": "9.0.0-preview.21",
68
- "@serwist/utils": "9.0.0-preview.21"
67
+ "@serwist/configs": "9.0.0-preview.25",
68
+ "@serwist/utils": "9.0.0-preview.25"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "typescript": ">=5.0.0",
@@ -215,7 +215,7 @@ export class InjectManifest {
215
215
  // This used to be a fatal error, but just warn at runtime because we
216
216
  // can't validate it easily.
217
217
  if (Array.isArray(this.config.webpackCompilationPlugins) && this.config.webpackCompilationPlugins.length > 0) {
218
- compilation.warnings.push(new Error("compileSrc is false, so the " + "webpackCompilationPlugins option will be ignored.") as WebpackError);
218
+ compilation.warnings.push(new Error("'compileSrc' is 'false', so the 'webpackCompilationPlugins' option will be ignored.") as WebpackError);
219
219
  }
220
220
  }
221
221
  }
package/src/lib/types.ts CHANGED
@@ -14,10 +14,6 @@ export interface WebpackPartial {
14
14
  * in the precache manifest.
15
15
  */
16
16
  chunks?: string[];
17
- // We can't use the @default annotation here to assign the value via AJV, as
18
- // an (RegExp)[] can't be serialized into JSON.
19
- // The default value of [/\.map$/, /^manifest.*\.js$/] will be assigned by
20
- // the validation function, and we need to reflect that in the docs.
21
17
  /**
22
18
  * One or more specifiers used to exclude assets from the precache manifest.
23
19
  * This is interpreted following
@@ -59,7 +55,7 @@ export interface InjectPartial {
59
55
  // logic and needs to be documented.
60
56
  /**
61
57
  * Optional webpack plugins that will be used when compiling the `swSrc`
62
- * input file. Only valid if `compileSrc` is `true`.
58
+ * file. Only valid if `compileSrc` is `true`.
63
59
  */
64
60
  webpackCompilationPlugins?: any[];
65
61
  }