@modern-js/plugin-worker 2.13.4 → 2.15.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @modern-js/plugin-worker
2
2
 
3
+ ## 2.15.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @modern-js/prod-server@2.15.0
8
+ - @modern-js/server-utils@2.15.0
9
+ - @modern-js/utils@2.15.0
10
+
11
+ ## 2.14.0
12
+
13
+ ### Patch Changes
14
+
15
+ - 9321bef: feat: adjust server.worker config to deploy.worker.ssr
16
+
17
+ feat: 调整 server.worker 为 deploy.worker.ssr
18
+
19
+ - Updated dependencies [4779152]
20
+ - Updated dependencies [8a3c693]
21
+ - Updated dependencies [9321bef]
22
+ - Updated dependencies [9b45c58]
23
+ - Updated dependencies [52d0cb1]
24
+ - Updated dependencies [60a81d0]
25
+ - Updated dependencies [dacef96]
26
+ - Updated dependencies [16399fd]
27
+ - @modern-js/utils@2.14.0
28
+ - @modern-js/server-utils@2.14.0
29
+ - @modern-js/prod-server@2.14.0
30
+
3
31
  ## 2.13.4
4
32
 
5
33
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -56,6 +56,9 @@ var src_default = () => ({
56
56
  // },
57
57
  };
58
58
  },
59
+ validateSchema() {
60
+ return import_utils.PLUGIN_SCHEMAS["@modern-js/plugin-worker"];
61
+ },
59
62
  async afterDev() {
60
63
  const { appDirectory, distDirectory } = ctx.useAppContext();
61
64
  const configContext = ctx.useResolvedConfigContext();
package/dist/esm/index.js CHANGED
@@ -1,5 +1,10 @@
1
1
  import path from "path";
2
- import { fs, isServiceWorker, ROUTE_SPEC_FILE } from "@modern-js/utils";
2
+ import {
3
+ fs,
4
+ isServiceWorker,
5
+ PLUGIN_SCHEMAS,
6
+ ROUTE_SPEC_FILE
7
+ } from "@modern-js/utils";
3
8
  import {
4
9
  MANIFEST_FILE,
5
10
  PKG_FILE,
@@ -30,6 +35,9 @@ var src_default = () => ({
30
35
  // },
31
36
  };
32
37
  },
38
+ validateSchema() {
39
+ return PLUGIN_SCHEMAS["@modern-js/plugin-worker"];
40
+ },
33
41
  async afterDev() {
34
42
  const { appDirectory, distDirectory } = ctx.useAppContext();
35
43
  const configContext = ctx.useResolvedConfigContext();
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.13.4",
14
+ "version": "2.15.0",
15
15
  "types": "./dist/types/index.d.ts",
16
16
  "jsnext:source": "./src/index.ts",
17
17
  "main": "./dist/cjs/index.js",
@@ -39,20 +39,20 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@babel/runtime": "^7.18.0",
42
- "@modern-js/server-utils": "2.13.4",
43
- "@modern-js/utils": "2.13.4",
44
- "@modern-js/prod-server": "2.13.4"
42
+ "@modern-js/server-utils": "2.15.0",
43
+ "@modern-js/utils": "2.15.0",
44
+ "@modern-js/prod-server": "2.15.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "typescript": "^4",
48
48
  "@types/jest": "^29",
49
49
  "@types/node": "^14",
50
50
  "jest": "^29",
51
- "@modern-js/app-tools": "2.13.4",
52
- "@modern-js/core": "2.13.4",
53
- "@scripts/build": "2.13.4",
54
- "@modern-js/types": "2.13.4",
55
- "@scripts/jest-config": "2.13.4"
51
+ "@modern-js/app-tools": "2.15.0",
52
+ "@modern-js/core": "2.15.0",
53
+ "@scripts/build": "2.15.0",
54
+ "@modern-js/types": "2.15.0",
55
+ "@scripts/jest-config": "2.15.0"
56
56
  },
57
57
  "sideEffects": [
58
58
  "*.css",