@module-federation/modern-js 0.3.3 → 0.3.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.
@@ -56,7 +56,7 @@ const mfSSRPlugin = () => ({
56
56
  context
57
57
  });
58
58
  },
59
- hoc({ App, config }, next) {
59
+ wrapRoot(App) {
60
60
  const AppWrapper = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
61
61
  children: [
62
62
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SSRLiveReload.SSRLiveReload, {}),
@@ -65,10 +65,7 @@ const mfSSRPlugin = () => ({
65
65
  })
66
66
  ]
67
67
  });
68
- return next({
69
- App: (0, import_hoist_non_react_statics.default)(AppWrapper, App),
70
- config
71
- });
68
+ return (0, import_hoist_non_react_statics.default)(AppWrapper, App);
72
69
  }
73
70
  };
74
71
  }
@@ -62,8 +62,7 @@ var mfSSRPlugin = function() {
62
62
  });
63
63
  })();
64
64
  },
65
- hoc: function hoc(param, next) {
66
- var App = param.App, config = param.config;
65
+ wrapRoot: function wrapRoot(App) {
67
66
  var AppWrapper = function(props) {
68
67
  return /* @__PURE__ */ _jsxs(_Fragment, {
69
68
  children: [
@@ -72,10 +71,7 @@ var mfSSRPlugin = function() {
72
71
  ]
73
72
  });
74
73
  };
75
- return next({
76
- App: hoistNonReactStatics(AppWrapper, App),
77
- config
78
- });
74
+ return hoistNonReactStatics(AppWrapper, App);
79
75
  }
80
76
  };
81
77
  }
@@ -23,7 +23,7 @@ const mfSSRPlugin = () => ({
23
23
  context
24
24
  });
25
25
  },
26
- hoc({ App, config }, next) {
26
+ wrapRoot(App) {
27
27
  const AppWrapper = (props) => /* @__PURE__ */ _jsxs(_Fragment, {
28
28
  children: [
29
29
  /* @__PURE__ */ _jsx(SSRLiveReload, {}),
@@ -32,10 +32,7 @@ const mfSSRPlugin = () => ({
32
32
  })
33
33
  ]
34
34
  });
35
- return next({
36
- App: hoistNonReactStatics(AppWrapper, App),
37
- config
38
- });
35
+ return hoistNonReactStatics(AppWrapper, App);
39
36
  }
40
37
  };
41
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/modern-js",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "files": [
5
5
  "dist/",
6
6
  "types.d.ts",
@@ -61,18 +61,18 @@
61
61
  "node-fetch": "~3.3.0",
62
62
  "react-error-boundary": "4.0.13",
63
63
  "hoist-non-react-statics": "3.3.2",
64
- "@module-federation/sdk": "0.3.3",
65
- "@module-federation/enhanced": "0.3.3",
66
- "@module-federation/node": "2.5.3"
64
+ "@module-federation/sdk": "0.3.5",
65
+ "@module-federation/enhanced": "0.3.5",
66
+ "@module-federation/node": "2.5.5"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/hoist-non-react-statics": "3.3.2",
70
- "@modern-js/app-tools": "2.56.2",
71
- "@modern-js/core": "2.56.2",
72
- "@modern-js/runtime": "2.56.2",
73
- "@modern-js/module-tools": "2.56.2",
74
- "@modern-js/tsconfig": "2.56.2",
75
- "@module-federation/manifest": "0.3.3"
70
+ "@modern-js/app-tools": "2.57.0",
71
+ "@modern-js/core": "2.57.0",
72
+ "@modern-js/runtime": "2.57.0",
73
+ "@modern-js/module-tools": "2.57.0",
74
+ "@modern-js/tsconfig": "2.57.0",
75
+ "@module-federation/manifest": "0.3.5"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "react": ">=17",