@modern-js/plugin-garfish 2.21.0 → 2.22.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 +25 -0
- package/dist/cjs/cli/index.js +9 -3
- package/dist/cjs/cli/utils.js +15 -5
- package/dist/cjs/deps/index.js +3 -1
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/runtime/index.js +15 -5
- package/dist/cjs/runtime/loadable.js +3 -1
- package/dist/cjs/runtime/plugin.js +3 -1
- package/dist/cjs/runtime/useModuleApps.js +6 -2
- package/dist/cjs/runtime/utils/Context.js +6 -2
- package/dist/cjs/runtime/utils/MApp.js +3 -1
- package/dist/cjs/runtime/utils/apps.js +6 -2
- package/dist/cjs/runtime/utils/setExternal.js +3 -1
- package/dist/cjs/util.js +9 -3
- package/package.json +11 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @modern-js/plugin-garfish
|
|
2
2
|
|
|
3
|
+
## 2.22.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3d48836: chore(deps): fix all missing peer dependencies
|
|
8
|
+
|
|
9
|
+
chore(deps): 修复缺少的 peer dependencies
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [3d48836]
|
|
12
|
+
- Updated dependencies [63cdea1]
|
|
13
|
+
- Updated dependencies [8f1141c]
|
|
14
|
+
- Updated dependencies [5050e8e]
|
|
15
|
+
- Updated dependencies [dc45896]
|
|
16
|
+
- Updated dependencies [79180c2]
|
|
17
|
+
- Updated dependencies [c271c5d]
|
|
18
|
+
- @modern-js/runtime@2.22.0
|
|
19
|
+
- @modern-js/utils@2.22.0
|
|
20
|
+
|
|
21
|
+
## 2.21.1
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- @modern-js/runtime@2.21.1
|
|
26
|
+
- @modern-js/utils@2.21.1
|
|
27
|
+
|
|
3
28
|
## 2.21.0
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/dist/cjs/cli/index.js
CHANGED
|
@@ -10,9 +10,15 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
externals: ()
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
externals: function() {
|
|
14
|
+
return externals;
|
|
15
|
+
},
|
|
16
|
+
getDefaultMicroFrontedConfig: function() {
|
|
17
|
+
return getDefaultMicroFrontedConfig;
|
|
18
|
+
},
|
|
19
|
+
default: function() {
|
|
20
|
+
return _default;
|
|
21
|
+
}
|
|
16
22
|
});
|
|
17
23
|
const _utils = require("@modern-js/utils");
|
|
18
24
|
const _util = require("../util");
|
package/dist/cjs/cli/utils.js
CHANGED
|
@@ -10,11 +10,21 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
makeProvider: ()
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
makeProvider: function() {
|
|
14
|
+
return makeProvider;
|
|
15
|
+
},
|
|
16
|
+
makeRenderFunction: function() {
|
|
17
|
+
return makeRenderFunction;
|
|
18
|
+
},
|
|
19
|
+
getRuntimeConfig: function() {
|
|
20
|
+
return getRuntimeConfig;
|
|
21
|
+
},
|
|
22
|
+
setRuntimeConfig: function() {
|
|
23
|
+
return setRuntimeConfig;
|
|
24
|
+
},
|
|
25
|
+
generateAsyncEntry: function() {
|
|
26
|
+
return generateAsyncEntry;
|
|
27
|
+
}
|
|
18
28
|
});
|
|
19
29
|
const makeProvider = () => `
|
|
20
30
|
export const provider = function ({basename, dom}) {
|
package/dist/cjs/deps/index.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "hoistNonReactStatics", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return _hoistnonreactstatics.default;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
10
12
|
const _hoistnonreactstatics = /* @__PURE__ */ _interop_require_default._(require("hoist-non-react-statics"));
|
package/dist/cjs/index.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return _runtime.default;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _export_star = require("@swc/helpers/_/_export_star");
|
|
10
12
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
@@ -10,11 +10,21 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
default: ()
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
default: function() {
|
|
14
|
+
return _plugin.default;
|
|
15
|
+
},
|
|
16
|
+
useModuleApps: function() {
|
|
17
|
+
return _useModuleApps.useModuleApps;
|
|
18
|
+
},
|
|
19
|
+
useModuleApp: function() {
|
|
20
|
+
return _useModuleApps.useModuleApp;
|
|
21
|
+
},
|
|
22
|
+
Garfish: function() {
|
|
23
|
+
return _garfish.default;
|
|
24
|
+
},
|
|
25
|
+
garfish: function() {
|
|
26
|
+
return _garfish.default;
|
|
27
|
+
}
|
|
18
28
|
});
|
|
19
29
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
30
|
const _plugin = /* @__PURE__ */ _interop_require_default._(require("./plugin"));
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "Loadable", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return Loadable;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
10
12
|
const _react = require("react");
|
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
useModuleApps: ()
|
|
14
|
-
|
|
13
|
+
useModuleApps: function() {
|
|
14
|
+
return useModuleApps;
|
|
15
|
+
},
|
|
16
|
+
useModuleApp: function() {
|
|
17
|
+
return useModuleApp;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
17
21
|
const _react = /* @__PURE__ */ _interop_require_wildcard._(require("react"));
|
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
GarfishContext: ()
|
|
14
|
-
|
|
13
|
+
GarfishContext: function() {
|
|
14
|
+
return GarfishContext;
|
|
15
|
+
},
|
|
16
|
+
GarfishProvider: function() {
|
|
17
|
+
return GarfishProvider;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
17
21
|
const _react = /* @__PURE__ */ _interop_require_default._(require("react"));
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "generateMApp", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return generateMApp;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _define_property = require("@swc/helpers/_/_define_property");
|
|
10
12
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
pathJoin: ()
|
|
14
|
-
|
|
13
|
+
pathJoin: function() {
|
|
14
|
+
return pathJoin;
|
|
15
|
+
},
|
|
16
|
+
generateApps: function() {
|
|
17
|
+
return generateApps;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
17
21
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
10
12
|
const _react = /* @__PURE__ */ _interop_require_default._(require("react"));
|
package/dist/cjs/util.js
CHANGED
|
@@ -10,9 +10,15 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
logger: ()
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
logger: function() {
|
|
14
|
+
return logger;
|
|
15
|
+
},
|
|
16
|
+
SUBMODULE_APP_COMPONENT_KEY: function() {
|
|
17
|
+
return SUBMODULE_APP_COMPONENT_KEY;
|
|
18
|
+
},
|
|
19
|
+
generateSubAppContainerKey: function() {
|
|
20
|
+
return generateSubAppContainerKey;
|
|
21
|
+
}
|
|
16
22
|
});
|
|
17
23
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
18
24
|
const _debug = /* @__PURE__ */ _interop_require_default._(require("debug"));
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.22.0",
|
|
19
19
|
"jsnext:source": "./src/cli/index.ts",
|
|
20
20
|
"types": "./dist/types/cli/index.d.ts",
|
|
21
21
|
"typesVersions": {
|
|
@@ -70,12 +70,13 @@
|
|
|
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.22.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@modern-js/runtime": "^2.
|
|
76
|
+
"@modern-js/runtime": "^2.22.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
+
"@testing-library/dom": "^8.14.0",
|
|
79
80
|
"@testing-library/jest-dom": "^5.16.1",
|
|
80
81
|
"@testing-library/react": "^13.4.0",
|
|
81
82
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -89,13 +90,13 @@
|
|
|
89
90
|
"react-router-dom": "^6.8.1",
|
|
90
91
|
"typescript": "^5",
|
|
91
92
|
"webpack-chain": "^6.5.1",
|
|
92
|
-
"@modern-js/app-tools": "2.
|
|
93
|
-
"@modern-js/core": "2.
|
|
94
|
-
"@modern-js/plugin-router-v5": "2.
|
|
95
|
-
"@modern-js/runtime": "2.
|
|
96
|
-
"@modern-js/types": "2.
|
|
97
|
-
"@scripts/build": "2.
|
|
98
|
-
"@scripts/jest-config": "2.
|
|
93
|
+
"@modern-js/app-tools": "2.22.0",
|
|
94
|
+
"@modern-js/core": "2.22.0",
|
|
95
|
+
"@modern-js/plugin-router-v5": "2.22.0",
|
|
96
|
+
"@modern-js/runtime": "2.22.0",
|
|
97
|
+
"@modern-js/types": "2.22.0",
|
|
98
|
+
"@scripts/build": "2.22.0",
|
|
99
|
+
"@scripts/jest-config": "2.22.0"
|
|
99
100
|
},
|
|
100
101
|
"sideEffects": false,
|
|
101
102
|
"modernConfig": {},
|