@modern-js/plugin-garfish 2.39.2 → 2.41.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.
@@ -50,36 +50,6 @@ const garfishPlugin = ({ pluginName = "@modern-js/plugin-garfish", runtimePlugin
50
50
  setup: ({ useAppContext, useResolvedConfigContext, useConfigContext }) => {
51
51
  let pluginsExportsUtils;
52
52
  return {
53
- validateSchema() {
54
- return [
55
- {
56
- target: "runtime.masterApp",
57
- schema: {
58
- type: [
59
- "boolean",
60
- "object"
61
- ]
62
- }
63
- },
64
- {
65
- target: "dev.withMasterApp",
66
- schema: {
67
- type: [
68
- "object"
69
- ]
70
- }
71
- },
72
- {
73
- target: "deploy.microFrontend",
74
- schema: {
75
- type: [
76
- "boolean",
77
- "object"
78
- ]
79
- }
80
- }
81
- ];
82
- },
83
53
  resolvedConfig: async (config) => {
84
54
  const { resolved } = config;
85
55
  const { masterApp, router } = (0, import_utils2.getRuntimeConfig)(resolved);
@@ -29,36 +29,6 @@ var garfishPlugin = function() {
29
29
  var useAppContext = param.useAppContext, useResolvedConfigContext = param.useResolvedConfigContext, useConfigContext = param.useConfigContext;
30
30
  var pluginsExportsUtils;
31
31
  return {
32
- validateSchema: function validateSchema() {
33
- return [
34
- {
35
- target: "runtime.masterApp",
36
- schema: {
37
- type: [
38
- "boolean",
39
- "object"
40
- ]
41
- }
42
- },
43
- {
44
- target: "dev.withMasterApp",
45
- schema: {
46
- type: [
47
- "object"
48
- ]
49
- }
50
- },
51
- {
52
- target: "deploy.microFrontend",
53
- schema: {
54
- type: [
55
- "boolean",
56
- "object"
57
- ]
58
- }
59
- }
60
- ];
61
- },
62
32
  resolvedConfig: function() {
63
33
  var _ref2 = _async_to_generator(function(config) {
64
34
  var resolved, _getRuntimeConfig, masterApp, router, nConfig, _useConfig_server, _router_historyOptions, useConfig, baseUrl;
@@ -32,7 +32,8 @@ function pathJoin() {
32
32
  return res || "/";
33
33
  }
34
34
  function getAppInstance(options, appInfo, manifest) {
35
- var MicroApp = function MicroApp2(props) {
35
+ var locationHref = "";
36
+ function MicroApp(props) {
36
37
  var _context_router_useRouteMatch, _context_router, _context_router_useMatches, _context_router1, _context_router_useLocation, _context_router2;
37
38
  var appRef = useRef(null);
38
39
  var domId = generateSubAppContainerKey(appInfo);
@@ -63,6 +64,9 @@ function getAppInstance(options, appInfo, manifest) {
63
64
  location
64
65
  ]);
65
66
  useEffect(function() {
67
+ var renderApp = function renderApp2() {
68
+ return _renderApp.apply(this, arguments);
69
+ };
66
70
  var setLoadingState = props.setLoadingState, userProps = _object_without_properties(props, [
67
71
  "setLoadingState"
68
72
  ]);
@@ -110,9 +114,6 @@ function getAppInstance(options, appInfo, manifest) {
110
114
  logger('MicroApp Garfish.loadApp "'.concat(appInfo.name, '"'), {
111
115
  loadAppOptions
112
116
  });
113
- function renderApp() {
114
- return _renderApp.apply(this, arguments);
115
- }
116
117
  function _renderApp() {
117
118
  _renderApp = _async_to_generator(function() {
118
119
  var appInstance, error;
@@ -215,8 +216,7 @@ function getAppInstance(options, appInfo, manifest) {
215
216
  children: SubModuleComponent && /* @__PURE__ */ _jsx(SubModuleComponent, {})
216
217
  })
217
218
  });
218
- };
219
- var locationHref = "";
219
+ }
220
220
  return Loadable(MicroApp)(manifest === null || manifest === void 0 ? void 0 : manifest.loadable);
221
221
  }
222
222
  function generateApps(options, manifest) {
@@ -24,36 +24,6 @@ const garfishPlugin = ({ pluginName = "@modern-js/plugin-garfish", runtimePlugin
24
24
  setup: ({ useAppContext, useResolvedConfigContext, useConfigContext }) => {
25
25
  let pluginsExportsUtils;
26
26
  return {
27
- validateSchema() {
28
- return [
29
- {
30
- target: "runtime.masterApp",
31
- schema: {
32
- type: [
33
- "boolean",
34
- "object"
35
- ]
36
- }
37
- },
38
- {
39
- target: "dev.withMasterApp",
40
- schema: {
41
- type: [
42
- "object"
43
- ]
44
- }
45
- },
46
- {
47
- target: "deploy.microFrontend",
48
- schema: {
49
- type: [
50
- "boolean",
51
- "object"
52
- ]
53
- }
54
- }
55
- ];
56
- },
57
27
  resolvedConfig: async (config) => {
58
28
  const { resolved } = config;
59
29
  const { masterApp, router } = getRuntimeConfig(resolved);
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.39.2",
18
+ "version": "2.41.0",
19
19
  "jsnext:source": "./src/cli/index.ts",
20
20
  "types": "./dist/types/cli/index.d.ts",
21
21
  "typesVersions": {
@@ -63,17 +63,17 @@
63
63
  }
64
64
  },
65
65
  "dependencies": {
66
- "@types/debug": "^4.1.7",
66
+ "@types/debug": "4.1.7",
67
67
  "@types/react-loadable": "^5.5.6",
68
- "debug": "^4.3.2",
68
+ "debug": "4.3.4",
69
69
  "garfish": "^1.8.1",
70
70
  "hoist-non-react-statics": "^3.3.2",
71
71
  "react-loadable": "^5.5.0",
72
- "@swc/helpers": "0.5.1",
73
- "@modern-js/utils": "2.39.2"
72
+ "@swc/helpers": "0.5.3",
73
+ "@modern-js/utils": "2.41.0"
74
74
  },
75
75
  "peerDependencies": {
76
- "@modern-js/runtime": "^2.39.2",
76
+ "@modern-js/runtime": "^2.41.0",
77
77
  "react": ">=17",
78
78
  "react-dom": ">=17"
79
79
  },
@@ -91,13 +91,13 @@
91
91
  "react-dom": "^18",
92
92
  "react-router-dom": "6.17.0",
93
93
  "typescript": "^5",
94
- "@modern-js/app-tools": "2.39.2",
95
- "@modern-js/core": "2.39.2",
96
- "@modern-js/plugin-router-v5": "2.39.2",
97
- "@modern-js/runtime": "2.39.2",
98
- "@modern-js/types": "2.39.2",
99
- "@scripts/build": "2.39.2",
100
- "@scripts/jest-config": "2.39.2"
94
+ "@modern-js/core": "2.41.0",
95
+ "@modern-js/app-tools": "2.41.0",
96
+ "@modern-js/plugin-router-v5": "2.41.0",
97
+ "@modern-js/runtime": "2.41.0",
98
+ "@modern-js/types": "2.41.0",
99
+ "@scripts/jest-config": "2.41.0",
100
+ "@scripts/build": "2.41.0"
101
101
  },
102
102
  "sideEffects": false,
103
103
  "publishConfig": {