@module-federation/modern-js 0.0.0-next-20250701114609 → 0.0.0-next-20250703101410

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.
@@ -264,7 +264,7 @@ function patchBundlerConfig(options) {
264
264
  const uniqueName = mfConfig.name || chain.output.get("uniqueName");
265
265
  const chunkFileName = chain.output.get("chunkFilename");
266
266
  if (typeof chunkFileName === "string" && uniqueName && !chunkFileName.includes(uniqueName)) {
267
- const suffix = `${(0, import_sdk.encodeName)(uniqueName)}-[contenthash].js`;
267
+ const suffix = `${(0, import_sdk.encodeName)(uniqueName)}-[chunkhash].js`;
268
268
  chain.output.chunkFilename(chunkFileName.replace(".js", suffix));
269
269
  }
270
270
  }
@@ -252,7 +252,7 @@ function patchBundlerConfig(options) {
252
252
  var uniqueName = mfConfig.name || chain.output.get("uniqueName");
253
253
  var chunkFileName = chain.output.get("chunkFilename");
254
254
  if (typeof chunkFileName === "string" && uniqueName && !chunkFileName.includes(uniqueName)) {
255
- var suffix = "".concat(encodeName(uniqueName), "-[contenthash].js");
255
+ var suffix = "".concat(encodeName(uniqueName), "-[chunkhash].js");
256
256
  chain.output.chunkFilename(chunkFileName.replace(".js", suffix));
257
257
  }
258
258
  }
@@ -223,7 +223,7 @@ function patchBundlerConfig(options) {
223
223
  const uniqueName = mfConfig.name || chain.output.get("uniqueName");
224
224
  const chunkFileName = chain.output.get("chunkFilename");
225
225
  if (typeof chunkFileName === "string" && uniqueName && !chunkFileName.includes(uniqueName)) {
226
- const suffix = `${encodeName(uniqueName)}-[contenthash].js`;
226
+ const suffix = `${encodeName(uniqueName)}-[chunkhash].js`;
227
227
  chain.output.chunkFilename(chunkFileName.replace(".js", suffix));
228
228
  }
229
229
  }
@@ -3,4 +3,4 @@ import type { PluginOptions } from '../types';
3
3
  export declare const moduleFederationPlugin: (userConfig?: PluginOptions) => CliPluginFuture<AppTools>;
4
4
  export default moduleFederationPlugin;
5
5
  export { createModuleFederationConfig } from '@module-federation/enhanced';
6
- export type { FederationRuntimePlugin } from '@module-federation/enhanced/runtime';
6
+ export type { ModuleFederationRuntimePlugin } from '@module-federation/enhanced/runtime';
@@ -1,3 +1,3 @@
1
- import type { FederationRuntimePlugin } from '@module-federation/enhanced/runtime';
2
- declare const autoFetchData: () => FederationRuntimePlugin;
1
+ import type { ModuleFederationRuntimePlugin } from '@module-federation/enhanced/runtime';
2
+ declare const autoFetchData: () => ModuleFederationRuntimePlugin;
3
3
  export default autoFetchData;
@@ -1,3 +1,3 @@
1
- import type { FederationRuntimePlugin } from '@module-federation/enhanced/runtime';
2
- declare const injectNodeFetchPlugin: () => FederationRuntimePlugin;
1
+ import type { ModuleFederationRuntimePlugin } from '@module-federation/enhanced/runtime';
2
+ declare const injectNodeFetchPlugin: () => ModuleFederationRuntimePlugin;
3
3
  export default injectNodeFetchPlugin;
@@ -1,3 +1,3 @@
1
- import type { FederationRuntimePlugin } from '@module-federation/enhanced/runtime';
2
- declare const resolveEntryIpv4Plugin: () => FederationRuntimePlugin;
1
+ import type { ModuleFederationRuntimePlugin } from '@module-federation/enhanced/runtime';
2
+ declare const resolveEntryIpv4Plugin: () => ModuleFederationRuntimePlugin;
3
3
  export default resolveEntryIpv4Plugin;
@@ -1,3 +1,3 @@
1
- import type { FederationRuntimePlugin } from '@module-federation/enhanced/runtime';
2
- declare const sharedStrategy: () => FederationRuntimePlugin;
1
+ import type { ModuleFederationRuntimePlugin } from '@module-federation/enhanced/runtime';
2
+ declare const sharedStrategy: () => ModuleFederationRuntimePlugin;
3
3
  export default sharedStrategy;
@@ -1,6 +1,6 @@
1
1
  import type { GlobalModuleInfo } from '@module-federation/sdk';
2
2
  import type { DataFetchParams, MF_DATA_FETCH_MAP, NoSSRRemoteInfo } from '../interfaces/global';
3
- import type { FederationHost } from '@module-federation/enhanced/runtime';
3
+ import type { ModuleFederation } from '@module-federation/enhanced/runtime';
4
4
  export declare const getDataFetchInfo: ({ name, alias, id, remoteSnapshot, }: {
5
5
  id: string;
6
6
  name: string;
@@ -22,5 +22,5 @@ export declare function getDataFetchMapKey(dataFetchInfo?: ReturnType<typeof get
22
22
  name: string;
23
23
  version?: string;
24
24
  }): string | undefined;
25
- export declare function loadDataFetchModule(instance: FederationHost, id: string): Promise<(params: DataFetchParams) => Promise<unknown>>;
25
+ export declare function loadDataFetchModule(instance: ModuleFederation, id: string): Promise<(params: DataFetchParams) => Promise<unknown>>;
26
26
  export declare function isDataLoaderExpose(exposeKey: string): boolean;
@@ -1,5 +1,5 @@
1
- import type { FederationHost } from '@module-federation/enhanced/runtime';
2
- export declare function getLoadedRemoteInfos(id: string, instance: FederationHost | null): {
1
+ import type { ModuleFederation } from '@module-federation/enhanced/runtime';
2
+ export declare function getLoadedRemoteInfos(id: string, instance: ModuleFederation | null): {
3
3
  snapshot: import("@module-federation/sdk/.").ModuleInfo | import("@module-federation/sdk/.").ManifestProvider | import("@module-federation/sdk/.").PureEntryProvider | undefined;
4
4
  expose: string;
5
5
  alias?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/modern-js",
3
- "version": "0.0.0-next-20250701114609",
3
+ "version": "0.0.0-next-20250703101410",
4
4
  "files": [
5
5
  "dist/",
6
6
  "types.d.ts",
@@ -120,12 +120,12 @@
120
120
  "@swc/helpers": "^0.5.17",
121
121
  "node-fetch": "~3.3.0",
122
122
  "react-error-boundary": "4.1.2",
123
- "@module-federation/rsbuild-plugin": "0.0.0-next-20250701114609",
124
- "@module-federation/enhanced": "0.0.0-next-20250701114609",
125
- "@module-federation/runtime": "0.0.0-next-20250701114609",
126
- "@module-federation/node": "0.0.0-next-20250701114609",
127
- "@module-federation/sdk": "0.0.0-next-20250701114609",
128
- "@module-federation/cli": "0.0.0-next-20250701114609"
123
+ "@module-federation/rsbuild-plugin": "0.0.0-next-20250703101410",
124
+ "@module-federation/enhanced": "0.0.0-next-20250703101410",
125
+ "@module-federation/runtime": "0.0.0-next-20250703101410",
126
+ "@module-federation/node": "0.0.0-next-20250703101410",
127
+ "@module-federation/sdk": "0.0.0-next-20250703101410",
128
+ "@module-federation/cli": "0.0.0-next-20250703101410"
129
129
  },
130
130
  "devDependencies": {
131
131
  "@modern-js/core": "2.67.5",
@@ -135,7 +135,7 @@
135
135
  "@modern-js/module-tools": "2.67.6",
136
136
  "@modern-js/runtime": "2.67.6",
137
137
  "@modern-js/tsconfig": "2.67.6",
138
- "@module-federation/manifest": "0.0.0-next-20250701114609"
138
+ "@module-federation/manifest": "0.0.0-next-20250703101410"
139
139
  },
140
140
  "peerDependencies": {
141
141
  "react": ">=17",