@modern-js/plugin-garfish 2.56.2 → 2.57.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.
@@ -122,10 +122,7 @@ const garfishPlugin = () => ({
122
122
  },
123
123
  source: {
124
124
  alias: {
125
- [`@${metaName}/runtime/garfish`]: `@${metaName}/plugin-garfish/runtime`,
126
- "@meta/runtime/browser": "@modern-js/runtime/browser",
127
- "@meta/runtime/react": "@modern-js/runtime/react",
128
- "@meta/runtime": "@modern-js/runtime"
125
+ [`@${metaName}/runtime/garfish`]: `@${metaName}/plugin-garfish/runtime`
129
126
  }
130
127
  },
131
128
  tools: {
@@ -25,7 +25,7 @@ var import_utils = require("@modern-js/utils");
25
25
  const genRenderCode = ({ srcDirectory, internalSrcAlias, metaName, entry, customEntry, customBootstrap, mountId }) => customEntry ? `import '${entry.replace(srcDirectory, internalSrcAlias)}'
26
26
  export * from '${entry.replace(srcDirectory, internalSrcAlias)}'` : `import { createRoot } from '@${metaName}/runtime/react';
27
27
  import { render } from '@${metaName}/runtime/browser';
28
- import { isRenderGarfish, createProvider } from '@${metaName}/plugin-garfish/runtime';
28
+ import { isRenderGarfish, createProvider } from '@${metaName}/plugin-garfish/tools';
29
29
  ${customBootstrap ? `import customBootstrap from '${(0, import_utils.formatImportPath)(customBootstrap.replace(srcDirectory, internalSrcAlias))}';` : "let customBootstrap;"}
30
30
  if (!isRenderGarfish()) {
31
31
  const ModernRoot = createRoot();
@@ -29,11 +29,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  var runtime_exports = {};
30
30
  __export(runtime_exports, {
31
31
  Garfish: () => import_garfish.default,
32
- createProvider: () => import_provider.createProvider,
33
32
  default: () => import_plugin.default,
34
33
  garfish: () => import_garfish.default,
35
34
  garfishPlugin: () => import_plugin.garfishPlugin,
36
- isRenderGarfish: () => import_utils.isRenderGarfish,
37
35
  useModuleApp: () => import_useModuleApps.useModuleApp,
38
36
  useModuleApps: () => import_useModuleApps.useModuleApps
39
37
  });
@@ -41,15 +39,11 @@ module.exports = __toCommonJS(runtime_exports);
41
39
  var import_plugin = __toESM(require("./plugin"));
42
40
  var import_useModuleApps = require("./useModuleApps");
43
41
  var import_garfish = __toESM(require("garfish"));
44
- var import_utils = require("./utils");
45
- var import_provider = require("./provider");
46
42
  // Annotate the CommonJS export names for ESM import in node:
47
43
  0 && (module.exports = {
48
44
  Garfish,
49
- createProvider,
50
45
  garfish,
51
46
  garfishPlugin,
52
- isRenderGarfish,
53
47
  useModuleApp,
54
48
  useModuleApps
55
49
  });
@@ -35,6 +35,7 @@ module.exports = __toCommonJS(plugin_exports);
35
35
  var import_jsx_runtime = require("react/jsx-runtime");
36
36
  var import_garfish = __toESM(require("garfish"));
37
37
  var import_react = __toESM(require("react"));
38
+ var import_merge = require("@modern-js/runtime-utils/merge");
38
39
  var import_util = require("../util");
39
40
  var import_Context = require("./utils/Context");
40
41
  var import_setExternal = __toESM(require("./utils/setExternal"));
@@ -66,15 +67,17 @@ async function initOptions(manifest = {}, options) {
66
67
  apps
67
68
  };
68
69
  }
69
- const garfishPlugin = (config) => ({
70
+ const garfishPlugin = (userConfig = {}) => ({
70
71
  name: "@modern-js/garfish-plugin",
71
- setup: () => {
72
+ setup: (api) => {
72
73
  (0, import_setExternal.default)();
73
- const { manifest, ...options } = config;
74
- (0, import_util.logger)("createPlugin", config);
75
- const promise = initOptions(manifest, options);
76
74
  return {
77
- hoc({ App, config: config2 }, next) {
75
+ wrapRoot(App) {
76
+ const pluginConfig = api.useRuntimeConfigContext();
77
+ const config = (0, import_merge.merge)(pluginConfig.garfish || {}, userConfig);
78
+ const { manifest, ...options } = config;
79
+ (0, import_util.logger)("createPlugin", config);
80
+ const promise = initOptions(manifest, options);
78
81
  class GetMicroFrontendApp extends import_react.default.Component {
79
82
  render() {
80
83
  (0, import_util.logger)("GarfishProvider state", this.state);
@@ -130,10 +133,7 @@ const garfishPlugin = (config) => ({
130
133
  load();
131
134
  }
132
135
  }
133
- return next({
134
- App: GetMicroFrontendApp,
135
- config: config2
136
- });
136
+ return GetMicroFrontendApp;
137
137
  }
138
138
  };
139
139
  }
@@ -30,11 +30,7 @@ function createProvider(id, { customBootstrap, beforeRender } = {}) {
30
30
  let root = null;
31
31
  return {
32
32
  async render({ basename: basename2, dom: dom2, props }) {
33
- const ModernRoot = (0, import_react.createRoot)(null, {
34
- router: {
35
- basename: basename2
36
- }
37
- });
33
+ const ModernRoot = (0, import_react.createRoot)(null);
38
34
  if (customBootstrap) {
39
35
  root = await customBootstrap(ModernRoot, () => (0, import_browser.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ModernRoot, {
40
36
  basename: basename2,
@@ -65,22 +61,14 @@ function createProvider(id, { customBootstrap, beforeRender } = {}) {
65
61
  },
66
62
  // 兼容旧版本
67
63
  SubModuleComponent: (props) => {
68
- const ModernRoot = (0, import_react.createRoot)(null, {
69
- router: {
70
- basename
71
- }
72
- });
64
+ const ModernRoot = (0, import_react.createRoot)(null);
73
65
  return /* @__PURE__ */ (0, import_react_dom.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ModernRoot, {
74
66
  basename,
75
67
  ...props
76
68
  }), dom.querySelector(`#${id || "root"}`) || dom);
77
69
  },
78
70
  jupiter_submodule_app_key: (props) => {
79
- const ModernRoot = (0, import_react.createRoot)(null, {
80
- router: {
81
- basename
82
- }
83
- });
71
+ const ModernRoot = (0, import_react.createRoot)(null);
84
72
  return /* @__PURE__ */ (0, import_react_dom.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ModernRoot, {
85
73
  basename,
86
74
  ...props
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var tools_exports = {};
20
+ __export(tools_exports, {
21
+ createProvider: () => import_provider.createProvider,
22
+ isRenderGarfish: () => import_utils.isRenderGarfish
23
+ });
24
+ module.exports = __toCommonJS(tools_exports);
25
+ var import_utils = require("./utils");
26
+ var import_provider = require("./provider");
27
+ // Annotate the CommonJS export names for ESM import in node:
28
+ 0 && (module.exports = {
29
+ createProvider,
30
+ isRenderGarfish
31
+ });
@@ -102,13 +102,12 @@ var garfishPlugin = function() {
102
102
  disableCssExtract = true;
103
103
  }
104
104
  }
105
- var _obj;
106
105
  return {
107
106
  output: {
108
107
  disableCssExtract
109
108
  },
110
109
  source: {
111
- alias: (_obj = {}, _define_property(_obj, "@".concat(metaName, "/runtime/garfish"), "@".concat(metaName, "/plugin-garfish/runtime")), _define_property(_obj, "@meta/runtime/browser", "@modern-js/runtime/browser"), _define_property(_obj, "@meta/runtime/react", "@modern-js/runtime/react"), _define_property(_obj, "@meta/runtime", "@modern-js/runtime"), _obj)
110
+ alias: _define_property({}, "@".concat(metaName, "/runtime/garfish"), "@".concat(metaName, "/plugin-garfish/runtime"))
112
111
  },
113
112
  tools: {
114
113
  devServer: {
@@ -1,7 +1,7 @@
1
1
  import { formatImportPath } from "@modern-js/utils";
2
2
  var genRenderCode = function(param) {
3
3
  var srcDirectory = param.srcDirectory, internalSrcAlias = param.internalSrcAlias, metaName = param.metaName, entry = param.entry, customEntry = param.customEntry, customBootstrap = param.customBootstrap, mountId = param.mountId;
4
- return customEntry ? "import '".concat(entry.replace(srcDirectory, internalSrcAlias), "'\nexport * from '").concat(entry.replace(srcDirectory, internalSrcAlias), "'") : "import { createRoot } from '@".concat(metaName, "/runtime/react';\nimport { render } from '@").concat(metaName, "/runtime/browser';\nimport { isRenderGarfish, createProvider } from '@").concat(metaName, "/plugin-garfish/runtime';\n").concat(customBootstrap ? "import customBootstrap from '".concat(formatImportPath(customBootstrap.replace(srcDirectory, internalSrcAlias)), "';") : "let customBootstrap;", "\nif (!isRenderGarfish()) {\n const ModernRoot = createRoot();\n ").concat(customBootstrap ? "customBootstrap(ModernRoot, () => render(<ModernRoot />, '".concat(mountId || "root", "'));") : "render(<ModernRoot />, '".concat(mountId || "root", "');"), ";\n}\n\nexport const provider = createProvider('").concat(mountId || "root", "', { customBootstrap });\n");
4
+ return customEntry ? "import '".concat(entry.replace(srcDirectory, internalSrcAlias), "'\nexport * from '").concat(entry.replace(srcDirectory, internalSrcAlias), "'") : "import { createRoot } from '@".concat(metaName, "/runtime/react';\nimport { render } from '@").concat(metaName, "/runtime/browser';\nimport { isRenderGarfish, createProvider } from '@").concat(metaName, "/plugin-garfish/tools';\n").concat(customBootstrap ? "import customBootstrap from '".concat(formatImportPath(customBootstrap.replace(srcDirectory, internalSrcAlias)), "';") : "let customBootstrap;", "\nif (!isRenderGarfish()) {\n const ModernRoot = createRoot();\n ").concat(customBootstrap ? "customBootstrap(ModernRoot, () => render(<ModernRoot />, '".concat(mountId || "root", "'));") : "render(<ModernRoot />, '".concat(mountId || "root", "');"), ";\n}\n\nexport const provider = createProvider('").concat(mountId || "root", "', { customBootstrap });\n");
5
5
  };
6
6
  var index = function(param) {
7
7
  var srcDirectory = param.srcDirectory, internalSrcAlias = param.internalSrcAlias, metaName = param.metaName, entry = param.entry, entryName = param.entryName, customEntry = param.customEntry, customBootstrap = param.customBootstrap, mountId = param.mountId, _param_appendCode = param.appendCode, appendCode = _param_appendCode === void 0 ? [] : _param_appendCode;
@@ -1,15 +1,11 @@
1
1
  import { default as default2, garfishPlugin } from "./plugin";
2
2
  import { useModuleApps, useModuleApp } from "./useModuleApps";
3
3
  import { default as default3, default as default4 } from "garfish";
4
- import { isRenderGarfish } from "./utils";
5
- import { createProvider } from "./provider";
6
4
  export {
7
5
  default3 as Garfish,
8
- createProvider,
9
6
  default2 as default,
10
7
  default4 as garfish,
11
8
  garfishPlugin,
12
- isRenderGarfish,
13
9
  useModuleApp,
14
10
  useModuleApps
15
11
  };
@@ -11,6 +11,7 @@ import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
12
  import GarfishInstance from "garfish";
13
13
  import React from "react";
14
+ import { merge } from "@modern-js/runtime-utils/merge";
14
15
  import { logger } from "../util";
15
16
  import { GarfishProvider } from "./utils/Context";
16
17
  import setExternal from "./utils/setExternal";
@@ -67,19 +68,21 @@ function _initOptions() {
67
68
  });
68
69
  return _initOptions.apply(this, arguments);
69
70
  }
70
- var garfishPlugin = function(config) {
71
+ var garfishPlugin = function() {
72
+ var userConfig = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
71
73
  return {
72
74
  name: "@modern-js/garfish-plugin",
73
- setup: function() {
75
+ setup: function(api) {
74
76
  setExternal();
75
- var manifest = config.manifest, options = _object_without_properties(config, [
76
- "manifest"
77
- ]);
78
- logger("createPlugin", config);
79
- var promise = initOptions(manifest, options);
80
77
  return {
81
- hoc: function hoc(param, next) {
82
- var App = param.App, _$config = param.config;
78
+ wrapRoot: function wrapRoot(App) {
79
+ var pluginConfig = api.useRuntimeConfigContext();
80
+ var config = merge(pluginConfig.garfish || {}, userConfig);
81
+ var manifest = config.manifest, options = _object_without_properties(config, [
82
+ "manifest"
83
+ ]);
84
+ logger("createPlugin", config);
85
+ var promise = initOptions(manifest, options);
83
86
  var GetMicroFrontendApp = /* @__PURE__ */ function(_React_Component) {
84
87
  "use strict";
85
88
  _inherits(GetMicroFrontendApp2, _React_Component);
@@ -161,10 +164,7 @@ var garfishPlugin = function(config) {
161
164
  };
162
165
  return GetMicroFrontendApp2;
163
166
  }(React.Component);
164
- return next({
165
- App: GetMicroFrontendApp,
166
- config: _$config
167
- });
167
+ return GetMicroFrontendApp;
168
168
  }
169
169
  };
170
170
  }
@@ -18,11 +18,7 @@ function createProvider(id) {
18
18
  return _ts_generator(this, function(_state) {
19
19
  switch (_state.label) {
20
20
  case 0:
21
- ModernRoot = createRoot(null, {
22
- router: {
23
- basename: basename2
24
- }
25
- });
21
+ ModernRoot = createRoot(null);
26
22
  if (!customBootstrap)
27
23
  return [
28
24
  3,
@@ -88,21 +84,13 @@ function createProvider(id) {
88
84
  },
89
85
  // 兼容旧版本
90
86
  SubModuleComponent: function(props) {
91
- var ModernRoot = createRoot(null, {
92
- router: {
93
- basename
94
- }
95
- });
87
+ var ModernRoot = createRoot(null);
96
88
  return /* @__PURE__ */ createPortal(/* @__PURE__ */ _jsx(ModernRoot, _object_spread({
97
89
  basename
98
90
  }, props)), dom.querySelector("#".concat(id || "root")) || dom);
99
91
  },
100
92
  jupiter_submodule_app_key: function(props) {
101
- var ModernRoot = createRoot(null, {
102
- router: {
103
- basename
104
- }
105
- });
93
+ var ModernRoot = createRoot(null);
106
94
  return /* @__PURE__ */ createPortal(/* @__PURE__ */ _jsx(ModernRoot, _object_spread({
107
95
  basename
108
96
  }, props)), dom.querySelector("#".concat(id || "root")) || dom);
@@ -0,0 +1,6 @@
1
+ import { isRenderGarfish } from "./utils";
2
+ import { createProvider } from "./provider";
3
+ export {
4
+ createProvider,
5
+ isRenderGarfish
6
+ };
@@ -96,10 +96,7 @@ const garfishPlugin = () => ({
96
96
  },
97
97
  source: {
98
98
  alias: {
99
- [`@${metaName}/runtime/garfish`]: `@${metaName}/plugin-garfish/runtime`,
100
- "@meta/runtime/browser": "@modern-js/runtime/browser",
101
- "@meta/runtime/react": "@modern-js/runtime/react",
102
- "@meta/runtime": "@modern-js/runtime"
99
+ [`@${metaName}/runtime/garfish`]: `@${metaName}/plugin-garfish/runtime`
103
100
  }
104
101
  },
105
102
  tools: {
@@ -2,7 +2,7 @@ import { formatImportPath } from "@modern-js/utils";
2
2
  const genRenderCode = ({ srcDirectory, internalSrcAlias, metaName, entry, customEntry, customBootstrap, mountId }) => customEntry ? `import '${entry.replace(srcDirectory, internalSrcAlias)}'
3
3
  export * from '${entry.replace(srcDirectory, internalSrcAlias)}'` : `import { createRoot } from '@${metaName}/runtime/react';
4
4
  import { render } from '@${metaName}/runtime/browser';
5
- import { isRenderGarfish, createProvider } from '@${metaName}/plugin-garfish/runtime';
5
+ import { isRenderGarfish, createProvider } from '@${metaName}/plugin-garfish/tools';
6
6
  ${customBootstrap ? `import customBootstrap from '${formatImportPath(customBootstrap.replace(srcDirectory, internalSrcAlias))}';` : "let customBootstrap;"}
7
7
  if (!isRenderGarfish()) {
8
8
  const ModernRoot = createRoot();
@@ -1,15 +1,11 @@
1
1
  import { default as default2, garfishPlugin } from "./plugin";
2
2
  import { useModuleApps, useModuleApp } from "./useModuleApps";
3
3
  import { default as default3, default as default4 } from "garfish";
4
- import { isRenderGarfish } from "./utils";
5
- import { createProvider } from "./provider";
6
4
  export {
7
5
  default3 as Garfish,
8
- createProvider,
9
6
  default2 as default,
10
7
  default4 as garfish,
11
8
  garfishPlugin,
12
- isRenderGarfish,
13
9
  useModuleApp,
14
10
  useModuleApps
15
11
  };
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import GarfishInstance from "garfish";
3
3
  import React from "react";
4
+ import { merge } from "@modern-js/runtime-utils/merge";
4
5
  import { logger } from "../util";
5
6
  import { GarfishProvider } from "./utils/Context";
6
7
  import setExternal from "./utils/setExternal";
@@ -32,15 +33,17 @@ async function initOptions(manifest = {}, options) {
32
33
  apps
33
34
  };
34
35
  }
35
- const garfishPlugin = (config) => ({
36
+ const garfishPlugin = (userConfig = {}) => ({
36
37
  name: "@modern-js/garfish-plugin",
37
- setup: () => {
38
+ setup: (api) => {
38
39
  setExternal();
39
- const { manifest, ...options } = config;
40
- logger("createPlugin", config);
41
- const promise = initOptions(manifest, options);
42
40
  return {
43
- hoc({ App, config: config2 }, next) {
41
+ wrapRoot(App) {
42
+ const pluginConfig = api.useRuntimeConfigContext();
43
+ const config = merge(pluginConfig.garfish || {}, userConfig);
44
+ const { manifest, ...options } = config;
45
+ logger("createPlugin", config);
46
+ const promise = initOptions(manifest, options);
44
47
  class GetMicroFrontendApp extends React.Component {
45
48
  render() {
46
49
  logger("GarfishProvider state", this.state);
@@ -96,10 +99,7 @@ const garfishPlugin = (config) => ({
96
99
  load();
97
100
  }
98
101
  }
99
- return next({
100
- App: GetMicroFrontendApp,
101
- config: config2
102
- });
102
+ return GetMicroFrontendApp;
103
103
  }
104
104
  };
105
105
  }
@@ -7,11 +7,7 @@ function createProvider(id, { customBootstrap, beforeRender } = {}) {
7
7
  let root = null;
8
8
  return {
9
9
  async render({ basename: basename2, dom: dom2, props }) {
10
- const ModernRoot = createRoot(null, {
11
- router: {
12
- basename: basename2
13
- }
14
- });
10
+ const ModernRoot = createRoot(null);
15
11
  if (customBootstrap) {
16
12
  root = await customBootstrap(ModernRoot, () => render(/* @__PURE__ */ _jsx(ModernRoot, {
17
13
  basename: basename2,
@@ -42,22 +38,14 @@ function createProvider(id, { customBootstrap, beforeRender } = {}) {
42
38
  },
43
39
  // 兼容旧版本
44
40
  SubModuleComponent: (props) => {
45
- const ModernRoot = createRoot(null, {
46
- router: {
47
- basename
48
- }
49
- });
41
+ const ModernRoot = createRoot(null);
50
42
  return /* @__PURE__ */ createPortal(/* @__PURE__ */ _jsx(ModernRoot, {
51
43
  basename,
52
44
  ...props
53
45
  }), dom.querySelector(`#${id || "root"}`) || dom);
54
46
  },
55
47
  jupiter_submodule_app_key: (props) => {
56
- const ModernRoot = createRoot(null, {
57
- router: {
58
- basename
59
- }
60
- });
48
+ const ModernRoot = createRoot(null);
61
49
  return /* @__PURE__ */ createPortal(/* @__PURE__ */ _jsx(ModernRoot, {
62
50
  basename,
63
51
  ...props
@@ -0,0 +1,6 @@
1
+ import { isRenderGarfish } from "./utils";
2
+ import { createProvider } from "./provider";
3
+ export {
4
+ createProvider,
5
+ isRenderGarfish
6
+ };
@@ -2,5 +2,3 @@ export { default, garfishPlugin } from './plugin';
2
2
  export { useModuleApps, useModuleApp } from './useModuleApps';
3
3
  export type { Manifest, ModuleInfo, Config } from './useModuleApps';
4
4
  export { default as Garfish, default as garfish } from 'garfish';
5
- export { isRenderGarfish } from './utils';
6
- export { createProvider } from './provider';
@@ -1,4 +1,4 @@
1
1
  import type { Plugin } from '@modern-js/runtime';
2
2
  import { Config } from './useModuleApps';
3
- export declare const garfishPlugin: (config: Config) => Plugin;
3
+ export declare const garfishPlugin: (userConfig?: Config) => Plugin;
4
4
  export default garfishPlugin;
@@ -0,0 +1,2 @@
1
+ export { isRenderGarfish } from './utils';
2
+ export { createProvider } from './provider';
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.56.2",
18
+ "version": "2.57.0",
19
19
  "jsnext:source": "./src/cli/index.ts",
20
20
  "types": "./dist/types/cli/index.d.ts",
21
21
  "typesVersions": {
@@ -29,6 +29,9 @@
29
29
  "runtime": [
30
30
  "./dist/types/runtime/index.d.ts"
31
31
  ],
32
+ "tools": [
33
+ "./dist/types/runtime/tools.d.ts"
34
+ ],
32
35
  "types": [
33
36
  "./type.d.ts"
34
37
  ]
@@ -52,6 +55,11 @@
52
55
  "types": "./dist/types/runtime/index.d.ts",
53
56
  "jsnext:source": "./src/runtime/index.ts",
54
57
  "default": "./dist/esm/runtime/index.js"
58
+ },
59
+ "./tools": {
60
+ "types": "./dist/types/runtime/tools.d.ts",
61
+ "jsnext:source": "./src/runtime/tools.ts",
62
+ "default": "./dist/esm/runtime/tools.js"
55
63
  }
56
64
  },
57
65
  "dependencies": {
@@ -61,11 +69,12 @@
61
69
  "garfish": "^1.8.1",
62
70
  "react-loadable": "^5.5.0",
63
71
  "@swc/helpers": "0.5.3",
64
- "@modern-js/utils": "2.56.2",
65
- "@modern-js/plugin": "2.56.2"
72
+ "@modern-js/utils": "2.57.0",
73
+ "@modern-js/plugin": "2.57.0",
74
+ "@modern-js/runtime-utils": "2.57.0"
66
75
  },
67
76
  "peerDependencies": {
68
- "@modern-js/runtime": "^2.56.2",
77
+ "@modern-js/runtime": "^2.57.0",
69
78
  "react": ">=17",
70
79
  "react-dom": ">=17"
71
80
  },
@@ -84,13 +93,13 @@
84
93
  "react-dom": "^18",
85
94
  "react-router-dom": "6.22.0",
86
95
  "typescript": "^5",
87
- "@modern-js/app-tools": "2.56.2",
88
- "@modern-js/plugin-router-v5": "2.56.2",
89
- "@modern-js/core": "2.56.2",
90
- "@modern-js/runtime": "2.56.2",
91
- "@modern-js/types": "2.56.2",
92
- "@scripts/build": "2.56.2",
93
- "@scripts/jest-config": "2.56.2"
96
+ "@modern-js/app-tools": "2.57.0",
97
+ "@modern-js/runtime": "2.57.0",
98
+ "@modern-js/plugin-router-v5": "2.57.0",
99
+ "@modern-js/core": "2.57.0",
100
+ "@modern-js/types": "2.57.0",
101
+ "@scripts/build": "2.57.0",
102
+ "@scripts/jest-config": "2.57.0"
94
103
  },
95
104
  "sideEffects": false,
96
105
  "publishConfig": {