@modern-js/plugin-garfish 1.21.3 → 1.21.5
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,23 @@
|
|
|
1
1
|
# @modern-js/plugin-garfish
|
|
2
2
|
|
|
3
|
+
## 1.21.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6d8475f: fix: loadApp when dom is mount
|
|
8
|
+
修复 dom 未渲染时挂载子应用行为
|
|
9
|
+
- Updated dependencies [a150632]
|
|
10
|
+
- Updated dependencies [29576fc]
|
|
11
|
+
- @modern-js/runtime@1.21.5
|
|
12
|
+
- @modern-js/utils@1.21.5
|
|
13
|
+
|
|
14
|
+
## 1.21.4
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- @modern-js/runtime@1.21.4
|
|
19
|
+
- @modern-js/utils@1.21.4
|
|
20
|
+
|
|
3
21
|
## 1.21.3
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -38,8 +38,7 @@ function getAppInstance(options, appInfo, manifest) {
|
|
|
38
38
|
_defineProperty(this, "unregisterHistoryListener", () => {});
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
async UNSAFE_componentWillMount() {
|
|
41
|
+
async componentDidMount() {
|
|
43
42
|
const _this$props = this.props,
|
|
44
43
|
{
|
|
45
44
|
match,
|
|
@@ -105,7 +104,8 @@ function getAppInstance(options, appInfo, manifest) {
|
|
|
105
104
|
|
|
106
105
|
if (!appInstance) {
|
|
107
106
|
throw new Error(`MicroApp Garfish.loadApp "${appInfo.name}" result is null`);
|
|
108
|
-
}
|
|
107
|
+
} // eslint-disable-next-line react/no-did-mount-set-state
|
|
108
|
+
|
|
109
109
|
|
|
110
110
|
this.setState({
|
|
111
111
|
appInstance
|
|
@@ -49,8 +49,7 @@ function getAppInstance(options, appInfo, manifest) {
|
|
|
49
49
|
_defineProperty(this, "unregisterHistoryListener", () => {});
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
async UNSAFE_componentWillMount() {
|
|
52
|
+
async componentDidMount() {
|
|
54
53
|
const _this$props = this.props,
|
|
55
54
|
{
|
|
56
55
|
match,
|
|
@@ -116,7 +115,8 @@ function getAppInstance(options, appInfo, manifest) {
|
|
|
116
115
|
|
|
117
116
|
if (!appInstance) {
|
|
118
117
|
throw new Error(`MicroApp Garfish.loadApp "${appInfo.name}" result is null`);
|
|
119
|
-
}
|
|
118
|
+
} // eslint-disable-next-line react/no-did-mount-set-state
|
|
119
|
+
|
|
120
120
|
|
|
121
121
|
this.setState({
|
|
122
122
|
appInstance
|
|
@@ -53,10 +53,9 @@ function getAppInstance(options, appInfo, manifest) {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
_createClass(MicroApp, [{
|
|
56
|
-
key: "
|
|
57
|
-
value:
|
|
58
|
-
|
|
59
|
-
var _UNSAFE_componentWillMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
56
|
+
key: "componentDidMount",
|
|
57
|
+
value: function () {
|
|
58
|
+
var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
60
59
|
var _this2 = this;
|
|
61
60
|
|
|
62
61
|
var _this$props, match, history, setLoadingState, userProps, domId, loadAppOptions, appInstance;
|
|
@@ -133,6 +132,7 @@ function getAppInstance(options, appInfo, manifest) {
|
|
|
133
132
|
throw new Error("MicroApp Garfish.loadApp \"".concat(appInfo.name, "\" result is null"));
|
|
134
133
|
|
|
135
134
|
case 11:
|
|
135
|
+
// eslint-disable-next-line react/no-did-mount-set-state
|
|
136
136
|
this.setState({
|
|
137
137
|
appInstance: appInstance
|
|
138
138
|
});
|
|
@@ -192,11 +192,11 @@ function getAppInstance(options, appInfo, manifest) {
|
|
|
192
192
|
}, _callee, this, [[5, 25]]);
|
|
193
193
|
}));
|
|
194
194
|
|
|
195
|
-
function
|
|
196
|
-
return
|
|
195
|
+
function componentDidMount() {
|
|
196
|
+
return _componentDidMount.apply(this, arguments);
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
return
|
|
199
|
+
return componentDidMount;
|
|
200
200
|
}()
|
|
201
201
|
}, {
|
|
202
202
|
key: "componentWillUnmount",
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.21.
|
|
14
|
+
"version": "1.21.5",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/runtime/index.d.ts",
|
|
17
17
|
"typesVersions": {
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@babel/runtime": "^7.18.0",
|
|
53
|
-
"@modern-js/utils": "1.21.3",
|
|
54
53
|
"@types/debug": "^4.1.7",
|
|
55
54
|
"@types/react-loadable": "^5.5.6",
|
|
56
55
|
"debug": "^4.3.2",
|
|
57
56
|
"garfish": "^1.8.1",
|
|
58
57
|
"hoist-non-react-statics": "^3.3.2",
|
|
59
|
-
"react-loadable": "^5.5.0"
|
|
58
|
+
"react-loadable": "^5.5.0",
|
|
59
|
+
"@modern-js/utils": "1.21.5"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@modern-js/runtime": "^1.21.
|
|
62
|
+
"@modern-js/runtime": "^1.21.5"
|
|
63
63
|
},
|
|
64
64
|
"peerDependenciesMeta": {
|
|
65
65
|
"@modern-js/runtime": {
|
|
@@ -67,11 +67,6 @@
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@modern-js/core": "1.21.3",
|
|
71
|
-
"@modern-js/runtime": "1.21.3",
|
|
72
|
-
"@modern-js/types": "1.21.3",
|
|
73
|
-
"@scripts/build": "1.21.3",
|
|
74
|
-
"@scripts/jest-config": "1.21.3",
|
|
75
70
|
"@testing-library/jest-dom": "^5.16.1",
|
|
76
71
|
"@testing-library/react": "^12.0.0",
|
|
77
72
|
"@testing-library/react-hooks": "^7.0.1",
|
|
@@ -86,7 +81,12 @@
|
|
|
86
81
|
"react-dom": "^17.0.2",
|
|
87
82
|
"react-router-dom": "^6.2.1",
|
|
88
83
|
"typescript": "^4",
|
|
89
|
-
"webpack-chain": "^6.5.1"
|
|
84
|
+
"webpack-chain": "^6.5.1",
|
|
85
|
+
"@modern-js/core": "1.21.5",
|
|
86
|
+
"@modern-js/runtime": "1.21.5",
|
|
87
|
+
"@modern-js/types": "1.21.5",
|
|
88
|
+
"@scripts/build": "1.21.5",
|
|
89
|
+
"@scripts/jest-config": "1.21.5"
|
|
90
90
|
},
|
|
91
91
|
"sideEffects": false,
|
|
92
92
|
"modernConfig": {},
|