@modern-js/plugin-worker 0.0.0-next-1686593242894 → 0.0.0-next-1686651393235

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,19 +1,24 @@
1
1
  # @modern-js/plugin-worker
2
2
 
3
- ## 0.0.0-next-1686593242894
3
+ ## 0.0.0-next-1686651393235
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 7e6fb5fc1: chore: publishConfig add provenance config
7
+ - 7e6fb5fc16: chore: publishConfig add provenance config
8
8
 
9
9
  chore: publishConfig 增加 provenance 配置
10
10
 
11
- - Updated dependencies [7e6fb5fc1]
12
- - Updated dependencies [a7a7ad779]
13
- - Updated dependencies [6dec7c2a1]
14
- - @modern-js/prod-server@0.0.0-next-1686593242894
15
- - @modern-js/utils@0.0.0-next-1686593242894
16
- - @modern-js/server-utils@0.0.0-next-1686593242894
11
+ - e909611d21: chore: split the scheme into the plugin
12
+
13
+ chore: 拆分 scheme 到插件内部
14
+
15
+ - Updated dependencies [7e6fb5fc16]
16
+ - Updated dependencies [a7a7ad7797]
17
+ - Updated dependencies [6dec7c2a1e]
18
+ - Updated dependencies [e909611d21]
19
+ - @modern-js/prod-server@0.0.0-next-1686651393235
20
+ - @modern-js/utils@0.0.0-next-1686651393235
21
+ - @modern-js/server-utils@0.0.0-next-1686651393235
17
22
 
18
23
  ## 2.22.1
19
24
 
package/dist/cjs/index.js CHANGED
@@ -26,7 +26,16 @@ const _default = () => {
26
26
  };
27
27
  },
28
28
  validateSchema() {
29
- return _utils.PLUGIN_SCHEMAS["@modern-js/plugin-worker"];
29
+ return [
30
+ {
31
+ target: "deploy.worker.ssr",
32
+ schema: {
33
+ type: [
34
+ "boolean"
35
+ ]
36
+ }
37
+ }
38
+ ];
30
39
  },
31
40
  async afterDev() {
32
41
  var _configContext_deploy_worker;
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import path from "path";
2
- import { fs, isServiceWorker, PLUGIN_SCHEMAS, ROUTE_SPEC_FILE, SERVER_DIR } from "@modern-js/utils";
2
+ import { fs, isServiceWorker, ROUTE_SPEC_FILE, SERVER_DIR } from "@modern-js/utils";
3
3
  import { MANIFEST_FILE, PKG_FILE, SERVER_HOOKS, WEB_APP_NAME, WORKER_SERVER, WORKER_SERVER_ENTRY, WRANGLER_FILE } from "./constants";
4
4
  import { worker } from "./code";
5
5
  export default () => {
@@ -15,7 +15,16 @@ export default () => {
15
15
  };
16
16
  },
17
17
  validateSchema() {
18
- return PLUGIN_SCHEMAS["@modern-js/plugin-worker"];
18
+ return [
19
+ {
20
+ target: "deploy.worker.ssr",
21
+ schema: {
22
+ type: [
23
+ "boolean"
24
+ ]
25
+ }
26
+ }
27
+ ];
19
28
  },
20
29
  async afterDev() {
21
30
  var _configContext_deploy_worker;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-next-1686593242894",
18
+ "version": "0.0.0-next-1686651393235",
19
19
  "types": "./dist/types/index.d.ts",
20
20
  "jsnext:source": "./src/index.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -43,20 +43,20 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@swc/helpers": "0.5.1",
46
- "@modern-js/server-utils": "0.0.0-next-1686593242894",
47
- "@modern-js/utils": "0.0.0-next-1686593242894",
48
- "@modern-js/prod-server": "0.0.0-next-1686593242894"
46
+ "@modern-js/server-utils": "0.0.0-next-1686651393235",
47
+ "@modern-js/utils": "0.0.0-next-1686651393235",
48
+ "@modern-js/prod-server": "0.0.0-next-1686651393235"
49
49
  },
50
50
  "devDependencies": {
51
51
  "typescript": "^5",
52
52
  "@types/jest": "^29",
53
53
  "@types/node": "^14",
54
54
  "jest": "^29",
55
- "@modern-js/app-tools": "0.0.0-next-1686593242894",
56
- "@scripts/build": "0.0.0-next-1686593242894",
57
- "@modern-js/core": "0.0.0-next-1686593242894",
58
- "@modern-js/types": "0.0.0-next-1686593242894",
59
- "@scripts/jest-config": "0.0.0-next-1686593242894"
55
+ "@modern-js/app-tools": "0.0.0-next-1686651393235",
56
+ "@modern-js/core": "0.0.0-next-1686651393235",
57
+ "@modern-js/types": "0.0.0-next-1686651393235",
58
+ "@scripts/jest-config": "0.0.0-next-1686651393235",
59
+ "@scripts/build": "0.0.0-next-1686651393235"
60
60
  },
61
61
  "sideEffects": [
62
62
  "*.css",