@module-federation/runtime 0.0.0-next-20241101093646 → 0.0.0-next-20241104024700

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.
@@ -23,9 +23,8 @@ type RemoteLifeCycle = RemoteHandler['hooks']['lifecycle'];
23
23
  type RemoteLifeCycleCyclePartial = Partial<{
24
24
  [k in keyof RemoteLifeCycle]: Parameters<RemoteLifeCycle[k]['on']>[0];
25
25
  }>;
26
- type LifeCycle = CoreLifeCyclePartial & SnapshotLifeCycleCyclePartial & SharedLifeCycleCyclePartial & RemoteLifeCycleCyclePartial & ModuleLifeCycleCyclePartial & {
26
+ export type FederationRuntimePlugin = CoreLifeCyclePartial & SnapshotLifeCycleCyclePartial & SharedLifeCycleCyclePartial & RemoteLifeCycleCyclePartial & ModuleLifeCycleCyclePartial & {
27
27
  name: string;
28
28
  version?: string;
29
29
  };
30
- export type FederationRuntimePlugin<T = LifeCycle> = LifeCycle & T;
31
30
  export {};
@@ -1,3 +1,6 @@
1
+ declare const logger: import("@module-federation/sdk").Logger;
1
2
  export declare function assert(condition: any, msg: string): asserts condition;
2
3
  export declare function error(msg: string | Error | unknown): never;
3
4
  export declare function warn(msg: Parameters<typeof console.warn>[0]): void;
5
+ export declare function log(...args: unknown[]): void;
6
+ export { logger };
@@ -1,5 +1,4 @@
1
1
  import { FederationHost } from '../core';
2
2
  import { UserOptions } from '../type';
3
3
  import { Module } from '../module';
4
- import { PluginSystem } from './hooks';
5
- export declare function registerPlugins<Y extends Record<string, any>, T extends PluginSystem<Y>>(plugins: UserOptions['plugins'], hookInstances: Array<T | FederationHost['hooks'] | FederationHost['snapshotHandler']['hooks'] | FederationHost['sharedHandler']['hooks'] | FederationHost['remoteHandler']['hooks'] | Module['host']['loaderHook']>): import("../type").FederationRuntimePlugin[] | undefined;
4
+ export declare function registerPlugins(plugins: UserOptions['plugins'], hookInstances: Array<FederationHost['hooks'] | FederationHost['snapshotHandler']['hooks'] | FederationHost['sharedHandler']['hooks'] | FederationHost['remoteHandler']['hooks'] | Module['host']['loaderHook']>): import("../type").FederationRuntimePlugin[] | undefined;
@@ -15,4 +15,3 @@ export declare function getRemoteEntryInfoFromSnapshot(snapshot: ModuleInfo): {
15
15
  type: RemoteEntryType;
16
16
  globalName: string;
17
17
  };
18
- export declare const processModuleAlias: (name: string, subPath: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/runtime",
3
- "version": "0.0.0-next-20241101093646",
3
+ "version": "0.0.0-next-20241104024700",
4
4
  "author": "zhouxiao <codingzx@gmail.com>",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",
@@ -50,6 +50,6 @@
50
50
  }
51
51
  },
52
52
  "dependencies": {
53
- "@module-federation/sdk": "0.0.0-next-20241101093646"
53
+ "@module-federation/sdk": "0.0.0-next-20241104024700"
54
54
  }
55
55
  }