@modern-js/plugin-garfish 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 +29 -0
- package/dist/cjs/cli/index.js +28 -1
- package/dist/esm/cli/index.js +29 -2
- package/dist/esm-node/cli/index.js +29 -2
- package/package.json +12 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @modern-js/plugin-garfish
|
|
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/runtime@2.23.0
|
|
20
|
+
- @modern-js/utils@2.23.0
|
|
21
|
+
|
|
22
|
+
## 2.22.1
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [e2848a2]
|
|
27
|
+
- Updated dependencies [9b69987]
|
|
28
|
+
- Updated dependencies [d4045ed]
|
|
29
|
+
- @modern-js/runtime@2.22.1
|
|
30
|
+
- @modern-js/utils@2.22.1
|
|
31
|
+
|
|
3
32
|
## 2.22.0
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
package/dist/cjs/cli/index.js
CHANGED
|
@@ -48,7 +48,34 @@ const _default = ({ pluginName = "@modern-js/plugin-garfish", runtimePluginName
|
|
|
48
48
|
let pluginsExportsUtils;
|
|
49
49
|
return {
|
|
50
50
|
validateSchema() {
|
|
51
|
-
return
|
|
51
|
+
return [
|
|
52
|
+
{
|
|
53
|
+
target: "runtime.masterApp",
|
|
54
|
+
schema: {
|
|
55
|
+
type: [
|
|
56
|
+
"boolean",
|
|
57
|
+
"object"
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
target: "dev.withMasterApp",
|
|
63
|
+
schema: {
|
|
64
|
+
type: [
|
|
65
|
+
"object"
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
target: "deploy.microFrontend",
|
|
71
|
+
schema: {
|
|
72
|
+
type: [
|
|
73
|
+
"boolean",
|
|
74
|
+
"object"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
];
|
|
52
79
|
},
|
|
53
80
|
resolvedConfig: async (config) => {
|
|
54
81
|
const { resolved } = config;
|
package/dist/esm/cli/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
|
|
|
2
2
|
import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
3
3
|
import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
|
|
4
4
|
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
|
|
5
|
-
import { createRuntimeExportsUtils
|
|
5
|
+
import { createRuntimeExportsUtils } from "@modern-js/utils";
|
|
6
6
|
import { logger } from "../util";
|
|
7
7
|
import { getRuntimeConfig, makeProvider, makeRenderFunction, setRuntimeConfig, generateAsyncEntry } from "./utils";
|
|
8
8
|
export var externals = {
|
|
@@ -31,7 +31,34 @@ export default function() {
|
|
|
31
31
|
var pluginsExportsUtils;
|
|
32
32
|
return {
|
|
33
33
|
validateSchema: function validateSchema() {
|
|
34
|
-
return
|
|
34
|
+
return [
|
|
35
|
+
{
|
|
36
|
+
target: "runtime.masterApp",
|
|
37
|
+
schema: {
|
|
38
|
+
type: [
|
|
39
|
+
"boolean",
|
|
40
|
+
"object"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
target: "dev.withMasterApp",
|
|
46
|
+
schema: {
|
|
47
|
+
type: [
|
|
48
|
+
"object"
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
target: "deploy.microFrontend",
|
|
54
|
+
schema: {
|
|
55
|
+
type: [
|
|
56
|
+
"boolean",
|
|
57
|
+
"object"
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
];
|
|
35
62
|
},
|
|
36
63
|
resolvedConfig: function() {
|
|
37
64
|
var _ref2 = _async_to_generator(function(config) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRuntimeExportsUtils
|
|
1
|
+
import { createRuntimeExportsUtils } from "@modern-js/utils";
|
|
2
2
|
import { logger } from "../util";
|
|
3
3
|
import { getRuntimeConfig, makeProvider, makeRenderFunction, setRuntimeConfig, generateAsyncEntry } from "./utils";
|
|
4
4
|
export const externals = {
|
|
@@ -26,7 +26,34 @@ export default ({ pluginName = "@modern-js/plugin-garfish", runtimePluginName =
|
|
|
26
26
|
let pluginsExportsUtils;
|
|
27
27
|
return {
|
|
28
28
|
validateSchema() {
|
|
29
|
-
return
|
|
29
|
+
return [
|
|
30
|
+
{
|
|
31
|
+
target: "runtime.masterApp",
|
|
32
|
+
schema: {
|
|
33
|
+
type: [
|
|
34
|
+
"boolean",
|
|
35
|
+
"object"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
target: "dev.withMasterApp",
|
|
41
|
+
schema: {
|
|
42
|
+
type: [
|
|
43
|
+
"object"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
target: "deploy.microFrontend",
|
|
49
|
+
schema: {
|
|
50
|
+
type: [
|
|
51
|
+
"boolean",
|
|
52
|
+
"object"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
];
|
|
30
57
|
},
|
|
31
58
|
resolvedConfig: async (config) => {
|
|
32
59
|
const { resolved } = config;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.23.0",
|
|
19
19
|
"jsnext:source": "./src/cli/index.ts",
|
|
20
20
|
"types": "./dist/types/cli/index.d.ts",
|
|
21
21
|
"typesVersions": {
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
"hoist-non-react-statics": "^3.3.2",
|
|
71
71
|
"react-loadable": "^5.5.0",
|
|
72
72
|
"@swc/helpers": "0.5.1",
|
|
73
|
-
"@modern-js/utils": "2.
|
|
73
|
+
"@modern-js/utils": "2.23.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@modern-js/runtime": "^2.
|
|
76
|
+
"@modern-js/runtime": "^2.23.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@testing-library/dom": "^8.14.0",
|
|
@@ -90,19 +90,20 @@
|
|
|
90
90
|
"react-router-dom": "^6.8.1",
|
|
91
91
|
"typescript": "^5",
|
|
92
92
|
"webpack-chain": "^6.5.1",
|
|
93
|
-
"@modern-js/app-tools": "2.
|
|
94
|
-
"@modern-js/core": "2.
|
|
95
|
-
"@modern-js/plugin-router-v5": "2.
|
|
96
|
-
"@modern-js/runtime": "2.
|
|
97
|
-
"@modern-js/types": "2.
|
|
98
|
-
"@scripts/build": "2.
|
|
99
|
-
"@scripts/jest-config": "2.
|
|
93
|
+
"@modern-js/app-tools": "2.23.0",
|
|
94
|
+
"@modern-js/core": "2.23.0",
|
|
95
|
+
"@modern-js/plugin-router-v5": "2.23.0",
|
|
96
|
+
"@modern-js/runtime": "2.23.0",
|
|
97
|
+
"@modern-js/types": "2.23.0",
|
|
98
|
+
"@scripts/build": "2.23.0",
|
|
99
|
+
"@scripts/jest-config": "2.23.0"
|
|
100
100
|
},
|
|
101
101
|
"sideEffects": false,
|
|
102
102
|
"modernConfig": {},
|
|
103
103
|
"publishConfig": {
|
|
104
104
|
"registry": "https://registry.npmjs.org/",
|
|
105
|
-
"access": "public"
|
|
105
|
+
"access": "public",
|
|
106
|
+
"provenance": true
|
|
106
107
|
},
|
|
107
108
|
"scripts": {
|
|
108
109
|
"new": "modern-lib new",
|