@modern-js/plugin-worker 2.22.1 → 2.23.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/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # @modern-js/plugin-worker
2
2
 
3
+ ## 2.23.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [f08bbfc]
8
+ - Updated dependencies [a6b313a]
9
+ - Updated dependencies [8f2cab0]
10
+ - @modern-js/utils@2.23.1
11
+ - @modern-js/prod-server@2.23.1
12
+ - @modern-js/server-utils@2.23.1
13
+
14
+ ## 2.23.0
15
+
16
+ ### Patch Changes
17
+
18
+ - 7e6fb5f: chore: publishConfig add provenance config
19
+
20
+ chore: publishConfig 增加 provenance 配置
21
+
22
+ - c3216b5: chore: split the scheme into the plugin
23
+
24
+ chore: 拆分 scheme 到插件内部
25
+
26
+ - Updated dependencies [7e6fb5f]
27
+ - Updated dependencies [a7a7ad7]
28
+ - Updated dependencies [6dec7c2]
29
+ - Updated dependencies [c3216b5]
30
+ - @modern-js/prod-server@2.23.0
31
+ - @modern-js/utils@2.23.0
32
+ - @modern-js/server-utils@2.23.0
33
+
3
34
  ## 2.22.1
4
35
 
5
36
  ### Patch Changes
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": "2.22.1",
18
+ "version": "2.23.1",
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": "2.22.1",
47
- "@modern-js/utils": "2.22.1",
48
- "@modern-js/prod-server": "2.22.1"
46
+ "@modern-js/server-utils": "2.23.1",
47
+ "@modern-js/utils": "2.23.1",
48
+ "@modern-js/prod-server": "2.23.1"
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": "2.22.1",
56
- "@modern-js/core": "2.22.1",
57
- "@scripts/build": "2.22.1",
58
- "@modern-js/types": "2.22.1",
59
- "@scripts/jest-config": "2.22.1"
55
+ "@modern-js/core": "2.23.1",
56
+ "@modern-js/types": "2.23.1",
57
+ "@modern-js/app-tools": "2.23.1",
58
+ "@scripts/build": "2.23.1",
59
+ "@scripts/jest-config": "2.23.1"
60
60
  },
61
61
  "sideEffects": [
62
62
  "*.css",
@@ -66,6 +66,7 @@
66
66
  ],
67
67
  "publishConfig": {
68
68
  "access": "public",
69
+ "provenance": true,
69
70
  "registry": "https://registry.npmjs.org/"
70
71
  },
71
72
  "scripts": {