@modern-js/plugin-worker 2.22.0 → 2.23.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,37 @@
1
1
  # @modern-js/plugin-worker
2
2
 
3
+ ## 2.23.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 7e6fb5f: chore: publishConfig add provenance config
8
+
9
+ chore: publishConfig 增加 provenance 配置
10
+
11
+ - c3216b5: chore: split the scheme into the plugin
12
+
13
+ chore: 拆分 scheme 到插件内部
14
+
15
+ - Updated dependencies [7e6fb5f]
16
+ - Updated dependencies [a7a7ad7]
17
+ - Updated dependencies [6dec7c2]
18
+ - Updated dependencies [c3216b5]
19
+ - @modern-js/prod-server@2.23.0
20
+ - @modern-js/utils@2.23.0
21
+ - @modern-js/server-utils@2.23.0
22
+
23
+ ## 2.22.1
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [e2848a2]
28
+ - Updated dependencies [4be1da5]
29
+ - Updated dependencies [d4045ed]
30
+ - Updated dependencies [1f02cd2]
31
+ - @modern-js/utils@2.22.1
32
+ - @modern-js/server-utils@2.22.1
33
+ - @modern-js/prod-server@2.22.1
34
+
3
35
  ## 2.22.0
4
36
 
5
37
  ### Minor 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.0",
18
+ "version": "2.23.0",
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.0",
47
- "@modern-js/utils": "2.22.0",
48
- "@modern-js/prod-server": "2.22.0"
46
+ "@modern-js/server-utils": "2.23.0",
47
+ "@modern-js/utils": "2.23.0",
48
+ "@modern-js/prod-server": "2.23.0"
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.0",
56
- "@modern-js/core": "2.22.0",
57
- "@modern-js/types": "2.22.0",
58
- "@scripts/jest-config": "2.22.0",
59
- "@scripts/build": "2.22.0"
55
+ "@modern-js/app-tools": "2.23.0",
56
+ "@modern-js/core": "2.23.0",
57
+ "@scripts/build": "2.23.0",
58
+ "@modern-js/types": "2.23.0",
59
+ "@scripts/jest-config": "2.23.0"
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": {