@module-federation/dts-plugin 2.9.1 → 2.9.2
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/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @module-federation/dts-plugin
|
|
2
2
|
|
|
3
|
+
## 2.9.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 000f3fa: Addresses CVE-2026-76845 by upgrading `adm-zip` to `0.6.1`.
|
|
8
|
+
- 7f0ac8b: Upgrade Undici to 7.29.1 to include the latest 7.x security fixes while preserving Node 20 compatibility.
|
|
9
|
+
- @module-federation/sdk@2.9.2
|
|
10
|
+
- @module-federation/managers@2.9.2
|
|
11
|
+
- @module-federation/third-party-dts-extractor@2.9.2
|
|
12
|
+
- @module-federation/error-codes@2.9.2
|
|
13
|
+
|
|
3
14
|
## 2.9.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -201,7 +201,7 @@ type PreloadOptions = Array<{
|
|
|
201
201
|
}>;
|
|
202
202
|
type ResourceLoadInitiator = 'loadRemote' | 'preloadRemote' | 'loadShare';
|
|
203
203
|
type ResourceLoadType = 'manifest' | 'remoteEntry' | 'js' | 'css';
|
|
204
|
-
interface ResourceLoadContext
|
|
204
|
+
interface ResourceLoadContext {
|
|
205
205
|
initiator: ResourceLoadInitiator;
|
|
206
206
|
id: string;
|
|
207
207
|
resourceType: ResourceLoadType;
|
|
@@ -602,7 +602,7 @@ declare function getRemoteEntry(params: {
|
|
|
602
602
|
remoteEntryExports?: RemoteEntryExports | undefined;
|
|
603
603
|
getEntryUrl?: (url: string) => string;
|
|
604
604
|
_inErrorHandling?: boolean;
|
|
605
|
-
resourceContext?: ResourceLoadContext
|
|
605
|
+
resourceContext?: ResourceLoadContext;
|
|
606
606
|
}): Promise<RemoteEntryExports | false | void>;
|
|
607
607
|
//#endregion
|
|
608
608
|
//#region ../runtime-core/dist/core.d.ts
|
|
@@ -670,7 +670,7 @@ declare class ModuleFederation {
|
|
|
670
670
|
* (e.g. preloadRemote / loading remoteEntry).
|
|
671
671
|
*/
|
|
672
672
|
remoteInfo?: RemoteInfo;
|
|
673
|
-
resourceContext?: ResourceLoadContext
|
|
673
|
+
resourceContext?: ResourceLoadContext;
|
|
674
674
|
}], CreateScriptHookReturn>;
|
|
675
675
|
createLink: SyncHook<[{
|
|
676
676
|
url: string;
|
|
@@ -681,9 +681,9 @@ declare class ModuleFederation {
|
|
|
681
681
|
* (e.g. preloadRemote / loading remoteEntry).
|
|
682
682
|
*/
|
|
683
683
|
remoteInfo?: RemoteInfo;
|
|
684
|
-
resourceContext?: ResourceLoadContext
|
|
684
|
+
resourceContext?: ResourceLoadContext;
|
|
685
685
|
}], CreateLinkHookReturnDom>;
|
|
686
|
-
fetch: AsyncHook<[string, RequestInit, (RemoteInfo | undefined)?, (ResourceLoadContext
|
|
686
|
+
fetch: AsyncHook<[string, RequestInit, (RemoteInfo | undefined)?, (ResourceLoadContext | undefined)?], false | void | Promise<Response>>;
|
|
687
687
|
loadEntryError: AsyncHook<[{
|
|
688
688
|
getRemoteEntry: typeof getRemoteEntry;
|
|
689
689
|
origin: ModuleFederation;
|
|
@@ -696,7 +696,7 @@ declare class ModuleFederation {
|
|
|
696
696
|
origin: ModuleFederation;
|
|
697
697
|
remoteInfo: RemoteInfo;
|
|
698
698
|
remoteEntryExports?: false | void | RemoteEntryExports | undefined;
|
|
699
|
-
resourceContext?: ResourceLoadContext
|
|
699
|
+
resourceContext?: ResourceLoadContext;
|
|
700
700
|
cached?: boolean;
|
|
701
701
|
error?: unknown;
|
|
702
702
|
recovered?: boolean;
|
|
@@ -808,8 +808,8 @@ declare class Module$1 {
|
|
|
808
808
|
remoteInfo: RemoteInfo;
|
|
809
809
|
host: ModuleFederation;
|
|
810
810
|
});
|
|
811
|
-
getEntry(expose?: string, resourceContext?: ResourceLoadContext
|
|
812
|
-
init(id?: string, remoteSnapshot?: ModuleInfo, rawInitScope?: InitScope, expose?: string, resourceContext?: ResourceLoadContext
|
|
811
|
+
getEntry(expose?: string, resourceContext?: ResourceLoadContext): Promise<RemoteEntryExports>;
|
|
812
|
+
init(id?: string, remoteSnapshot?: ModuleInfo, rawInitScope?: InitScope, expose?: string, resourceContext?: ResourceLoadContext): Promise<RemoteEntryExports>;
|
|
813
813
|
get(id: string, expose: string, options?: {
|
|
814
814
|
loadFactory?: boolean;
|
|
815
815
|
}, remoteSnapshot?: ModuleInfo): Promise<unknown>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/dts-plugin",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.2",
|
|
4
4
|
"author": "hanric <hanric.zhang@gmail.com>",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/esm/index.mjs",
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"adm-zip": "0.6.
|
|
68
|
+
"adm-zip": "^0.6.1",
|
|
69
69
|
"isomorphic-ws": "5.0.0",
|
|
70
|
-
"undici": "7.29.
|
|
70
|
+
"undici": "7.29.1",
|
|
71
71
|
"ws": "8.21.3",
|
|
72
|
-
"@module-federation/error-codes": "2.9.
|
|
73
|
-
"@module-federation/
|
|
74
|
-
"@module-federation/
|
|
75
|
-
"@module-federation/
|
|
72
|
+
"@module-federation/error-codes": "2.9.2",
|
|
73
|
+
"@module-federation/sdk": "2.9.2",
|
|
74
|
+
"@module-federation/third-party-dts-extractor": "2.9.2",
|
|
75
|
+
"@module-federation/managers": "2.9.2"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@rstest/core": "^0.10.6",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"vue": "^3.5.13",
|
|
86
86
|
"vue-tsc": "^2.2.10",
|
|
87
87
|
"webpack": "^5.104.1",
|
|
88
|
-
"@module-federation/runtime": "2.9.
|
|
88
|
+
"@module-federation/runtime": "2.9.2"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"typescript": "^4.9.0 || ^5.0.0 || ^6.0.0 || ^7.0.0",
|