@modern-js/plugin-garfish 1.7.0 → 1.8.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 CHANGED
@@ -1,5 +1,32 @@
1
1
  # @modern-js/plugin-garfish
2
2
 
3
+ ## 1.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 59c941a: chore(runtime): merge `@modern-js/runtime-core` to `@modern-js/runtime`
8
+
9
+ chore(runtime): 合并 `@modern-js/runtime-core` 到 `@modern-js/runtime`
10
+
11
+ ### Patch Changes
12
+
13
+ - e686059: chore: adjust `@modern-js/plugin-garfish` runtime export path
14
+
15
+ chore: 调整 `@modern-js/plugin-garfish` runtime 导出路径
16
+
17
+ - 246ac0d: feat: support runtime masterApp type
18
+
19
+ feat: 支持在 `modern.config.ts` 中提示 `runtime.masterApp` 类型
20
+
21
+ - Updated dependencies [79e83ef]
22
+ - Updated dependencies [e0cd14a]
23
+ - Updated dependencies [287ac8b]
24
+ - Updated dependencies [22f4dca]
25
+ - Updated dependencies [59c941a]
26
+ - Updated dependencies [7b9067f]
27
+ - @modern-js/utils@1.9.0
28
+ - @modern-js/runtime@1.5.0
29
+
3
30
  ## 1.7.0
4
31
 
5
32
  ### Minor Changes
@@ -173,7 +173,7 @@ export default (({
173
173
  },
174
174
 
175
175
  addRuntimeExports() {
176
- const addExportStatement = `export { default as garfish, default as masterApp, hoistNonReactStatics } from '${_mfPackagePath}'`;
176
+ const addExportStatement = `export { default as garfish, default as masterApp, hoistNonReactStatics } from '@modern-js/plugin-garfish'`;
177
177
  logger('exportStatement', addExportStatement);
178
178
  pluginsExportsUtils.addExport(addExportStatement);
179
179
  runtimeExportsUtils.addExport(`export * from '${_mfPackagePath}'`);
@@ -190,7 +190,7 @@ var _default = ({
190
190
  },
191
191
 
192
192
  addRuntimeExports() {
193
- const addExportStatement = `export { default as garfish, default as masterApp, hoistNonReactStatics } from '${_mfPackagePath}'`;
193
+ const addExportStatement = `export { default as garfish, default as masterApp, hoistNonReactStatics } from '@modern-js/plugin-garfish'`;
194
194
  (0, _util.logger)('exportStatement', addExportStatement);
195
195
  pluginsExportsUtils.addExport(addExportStatement);
196
196
  runtimeExportsUtils.addExport(`export * from '${_mfPackagePath}'`);
@@ -184,7 +184,7 @@ export default (function () {
184
184
  };
185
185
  },
186
186
  addRuntimeExports: function addRuntimeExports() {
187
- var addExportStatement = "export { default as garfish, default as masterApp, hoistNonReactStatics } from '".concat(mfPackagePath, "'");
187
+ var addExportStatement = "export { default as garfish, default as masterApp, hoistNonReactStatics } from '@modern-js/plugin-garfish'";
188
188
  logger('exportStatement', addExportStatement);
189
189
  pluginsExportsUtils.addExport(addExportStatement);
190
190
  runtimeExportsUtils.addExport("export * from '".concat(mfPackagePath, "'"));
@@ -1,4 +1,4 @@
1
- import type { Plugin } from '@modern-js/runtime-core';
1
+ import type { Plugin } from '@modern-js/runtime';
2
2
  import { Config } from './useModuleApps';
3
3
 
4
4
  declare const _default: (config: Config) => Plugin;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.7.0",
14
+ "version": "1.8.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/runtime/index.d.ts",
17
17
  "typesVersions": {
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@babel/runtime": "^7.18.0",
53
- "@modern-js/utils": "^1.8.0",
53
+ "@modern-js/utils": "^1.9.0",
54
54
  "@types/debug": "^4.1.7",
55
55
  "@types/react-loadable": "^5.5.6",
56
56
  "debug": "^4.3.2",
@@ -59,7 +59,7 @@
59
59
  "react-loadable": "^5.5.0"
60
60
  },
61
61
  "peerDependencies": {
62
- "@modern-js/runtime": "^1.4.0"
62
+ "@modern-js/runtime": "^1.5.0"
63
63
  },
64
64
  "peerDependenciesMeta": {
65
65
  "@modern-js/runtime": {
@@ -67,10 +67,9 @@
67
67
  }
68
68
  },
69
69
  "devDependencies": {
70
- "@modern-js/core": "1.13.1",
71
- "@modern-js/runtime-core": "1.5.4",
72
- "@modern-js/runtime": "1.4.0",
73
- "@modern-js/types": "1.6.0",
70
+ "@modern-js/core": "1.14.0",
71
+ "@modern-js/runtime": "1.5.0",
72
+ "@modern-js/types": "1.6.2",
74
73
  "@scripts/build": "0.0.0",
75
74
  "@scripts/jest-config": "0.0.0",
76
75
  "@testing-library/jest-dom": "^5.16.1",
@@ -78,6 +77,7 @@
78
77
  "@testing-library/react-hooks": "^7.0.1",
79
78
  "@testing-library/user-event": "^13.5.0",
80
79
  "@types/hoist-non-react-statics": "^3.3.1",
80
+ "@types/testing-library__jest-dom": "^5.14.3",
81
81
  "@types/jest": "^27",
82
82
  "@types/node": "^14",
83
83
  "@types/react": "^17",
package/type.d.ts CHANGED
@@ -1,4 +1,12 @@
1
+ import { Config } from './dist/types/runtime/useModuleApps';
2
+
1
3
  declare module '@modern-js/runtime' {
2
4
  export const useModuleApp: typeof import('./dist/types/runtime').useModuleApp;
3
5
  export const useModuleApps: typeof import('./dist/types/runtime').useModuleApps;
4
6
  }
7
+
8
+ declare module '@modern-js/core' {
9
+ interface RuntimeConfig {
10
+ masterApp?: Config
11
+ }
12
+ }