@module-federation/webpack-bundler-runtime 2.3.2 → 2.3.3

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.
@@ -66,12 +66,24 @@ declare class ModuleFederation {
66
66
  createScript: SyncHook<[{
67
67
  url: string;
68
68
  attrs?: Record<string, any>;
69
+ /**
70
+ * The producer(remote) info bound to this resource.
71
+ * Only present when the loader is invoked in a remote-related context
72
+ * (e.g. preloadRemote / loading remoteEntry).
73
+ */
74
+ remoteInfo?: RemoteInfo;
69
75
  }], CreateScriptHookReturn>;
70
76
  createLink: SyncHook<[{
71
77
  url: string;
72
78
  attrs?: Record<string, any>;
79
+ /**
80
+ * The producer(remote) info bound to this resource.
81
+ * Only present when the loader is invoked in a remote-related context
82
+ * (e.g. preloadRemote / loading remoteEntry).
83
+ */
84
+ remoteInfo?: RemoteInfo;
73
85
  }], void | HTMLLinkElement>;
74
- fetch: AsyncHook<[string, RequestInit], false | void | Promise<Response>>;
86
+ fetch: AsyncHook<[string, RequestInit, (RemoteInfo | undefined)?], false | void | Promise<Response>>;
75
87
  loadEntryError: AsyncHook<[{
76
88
  getRemoteEntry: typeof getRemoteEntry;
77
89
  origin: ModuleFederation;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "@module-federation/webpack-bundler-runtime",
4
- "version": "2.3.2",
4
+ "version": "2.3.3",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "description": "Module Federation Runtime for webpack",
@@ -26,9 +26,9 @@
26
26
  "module": "./dist/index.js",
27
27
  "types": "./dist/index.d.ts",
28
28
  "dependencies": {
29
- "@module-federation/sdk": "2.3.2",
30
- "@module-federation/runtime": "2.3.2",
31
- "@module-federation/error-codes": "2.3.2"
29
+ "@module-federation/sdk": "2.3.3",
30
+ "@module-federation/error-codes": "2.3.3",
31
+ "@module-federation/runtime": "2.3.3"
32
32
  },
33
33
  "exports": {
34
34
  ".": {