zephyr-xpack-internal 0.0.31 → 0.0.32
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/federation-dashboard-legacy/get-build-stats.d.ts +2 -2
- package/dist/federation-dashboard-legacy/get-build-stats.js +11 -4
- package/dist/federation-dashboard-legacy/get-build-stats.js.map +1 -1
- package/dist/federation-dashboard-legacy/utils/convert-to-graph/convert-to-graph.d.ts +33 -0
- package/dist/federation-dashboard-legacy/utils/convert-to-graph/convert-to-graph.js +2 -1
- package/dist/federation-dashboard-legacy/utils/convert-to-graph/convert-to-graph.js.map +1 -1
- package/dist/federation-dashboard-legacy/utils/convert-to-graph/module-part-one.d.ts +18 -0
- package/dist/federation-dashboard-legacy/utils/convert-to-graph/module-part-one.js +18 -0
- package/dist/federation-dashboard-legacy/utils/convert-to-graph/module-part-one.js.map +1 -1
- package/dist/federation-dashboard-legacy/utils/convert-to-graph/module-part-two.d.ts +25 -0
- package/dist/federation-dashboard-legacy/utils/convert-to-graph/module-part-two.js +25 -0
- package/dist/federation-dashboard-legacy/utils/convert-to-graph/module-part-two.js.map +1 -1
- package/dist/federation-dashboard-legacy/utils/convert-to-graph/process-function-remotes.d.ts +15 -0
- package/dist/federation-dashboard-legacy/utils/convert-to-graph/process-function-remotes.js.map +1 -1
- package/dist/federation-dashboard-legacy/utils/federation-dashboard-plugin/FederationDashboardPlugin.d.ts +47 -2
- package/dist/federation-dashboard-legacy/utils/federation-dashboard-plugin/FederationDashboardPlugin.js +59 -7
- package/dist/federation-dashboard-legacy/utils/federation-dashboard-plugin/FederationDashboardPlugin.js.map +1 -1
- package/dist/federation-dashboard-legacy/utils/federation-dashboard-plugin/add-runtime-requirement-to-promise-external.js +19 -2
- package/dist/federation-dashboard-legacy/utils/federation-dashboard-plugin/add-runtime-requirement-to-promise-external.js.map +1 -1
- package/dist/federation-dashboard-legacy/utils/federation-dashboard-plugin/federation-dashboard-plugin-options.d.ts +2 -0
- package/dist/hooks/ze-setup-build-steps-logging.d.ts +19 -0
- package/dist/hooks/ze-setup-build-steps-logging.js +26 -0
- package/dist/hooks/ze-setup-build-steps-logging.js.map +1 -0
- package/dist/hooks/ze-setup-ze-deploy.d.ts +33 -0
- package/dist/hooks/ze-setup-ze-deploy.js +31 -0
- package/dist/hooks/ze-setup-ze-deploy.js.map +1 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -2
- package/dist/xpack-extract/create-mf-runtime-code.d.ts +2 -1
- package/dist/xpack-extract/create-mf-runtime-code.js +4 -3
- package/dist/xpack-extract/create-mf-runtime-code.js.map +1 -1
- package/dist/xpack-extract/extract-federated-dependency-pairs.js +17 -10
- package/dist/xpack-extract/extract-federated-dependency-pairs.js.map +1 -1
- package/dist/xpack-extract/index.d.ts +1 -1
- package/dist/xpack-extract/index.js +2 -1
- package/dist/xpack-extract/index.js.map +1 -1
- package/dist/xpack-extract/iterate-federated-remote-config.d.ts +2 -0
- package/dist/xpack-extract/iterate-federated-remote-config.js +26 -0
- package/dist/xpack-extract/iterate-federated-remote-config.js.map +1 -0
- package/dist/xpack-extract/iterate-federation-config.d.ts +1 -1
- package/dist/xpack-extract/iterate-federation-config.js +8 -5
- package/dist/xpack-extract/iterate-federation-config.js.map +1 -1
- package/dist/xpack-extract/make-copy-of-module-federation-options.js +4 -2
- package/dist/xpack-extract/make-copy-of-module-federation-options.js.map +1 -1
- package/dist/xpack-extract/mut-webpack-federated-remotes-config.d.ts +2 -1
- package/dist/xpack-extract/mut-webpack-federated-remotes-config.js +23 -9
- package/dist/xpack-extract/mut-webpack-federated-remotes-config.js.map +1 -1
- package/dist/xpack-extract/ze-xpack-upload-agent.d.ts +16 -0
- package/dist/xpack-extract/ze-xpack-upload-agent.js +42 -0
- package/dist/xpack-extract/ze-xpack-upload-agent.js.map +1 -0
- package/dist/xpack.types.d.ts +36 -12
- package/package.json +3 -4
package/dist/xpack.types.d.ts
CHANGED
|
@@ -7,14 +7,26 @@ interface WebpackPluginInstance<Compiler> {
|
|
|
7
7
|
/** The run point of the plugin, required method. */
|
|
8
8
|
apply: (compiler: Compiler) => void;
|
|
9
9
|
}
|
|
10
|
+
export interface XFederatedRemotesConfig {
|
|
11
|
+
name: string;
|
|
12
|
+
library?: {
|
|
13
|
+
type?: string;
|
|
14
|
+
};
|
|
15
|
+
remotes?: (string | RemotesObject)[] | RemotesObject;
|
|
16
|
+
/** Repack: bundle file name */
|
|
17
|
+
filename?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Repack: Temporary field for repack to store bundle name (in their case it's the
|
|
20
|
+
* actual output js.bundle and they want to put it in filename field)
|
|
21
|
+
*/
|
|
22
|
+
bundle_name?: string;
|
|
23
|
+
}
|
|
10
24
|
export interface ModuleFederationPlugin {
|
|
11
25
|
apply: (compiler: unknown) => void;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
remotes?: (string | RemotesObject)[] | RemotesObject;
|
|
17
|
-
};
|
|
26
|
+
/** For Webpack/Rspack */
|
|
27
|
+
_options?: XFederatedRemotesConfig;
|
|
28
|
+
/** Repack specific for now until Repack change how the config should be exposed */
|
|
29
|
+
config?: XFederatedRemotesConfig;
|
|
18
30
|
}
|
|
19
31
|
interface RemotesObject {
|
|
20
32
|
[index: string]: string | RemotesConfig | string[];
|
|
@@ -29,9 +41,9 @@ export interface XStatsModule {
|
|
|
29
41
|
identifier?: string;
|
|
30
42
|
reasons?: XStatsReason[];
|
|
31
43
|
moduleType?: string;
|
|
32
|
-
nameForCondition?: string;
|
|
44
|
+
nameForCondition?: string | null;
|
|
33
45
|
size?: number;
|
|
34
|
-
issuerName?: string;
|
|
46
|
+
issuerName?: string | null;
|
|
35
47
|
name?: string;
|
|
36
48
|
}
|
|
37
49
|
export interface XStatsChunk {
|
|
@@ -59,15 +71,25 @@ export interface XCompiler {
|
|
|
59
71
|
loadScript: string;
|
|
60
72
|
};
|
|
61
73
|
};
|
|
74
|
+
rspack: {
|
|
75
|
+
RuntimeGlobals: {
|
|
76
|
+
loadScript: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
62
79
|
}
|
|
63
80
|
export interface XCompilation {
|
|
64
81
|
outputOptions: {
|
|
65
82
|
trustedTypes: boolean;
|
|
66
83
|
};
|
|
67
84
|
hooks: {
|
|
85
|
+
/** This is for Webpack */
|
|
68
86
|
additionalModuleRuntimeRequirements: {
|
|
69
87
|
tap: (name: string, callback: (module: XModule, set: Set<string>) => void) => void;
|
|
70
88
|
};
|
|
89
|
+
/** This is for Rspack */
|
|
90
|
+
additionalTreeRuntimeRequirements: {
|
|
91
|
+
tap: (name: string, callback: (chunk: XChunk, set: Set<string>) => void) => void;
|
|
92
|
+
};
|
|
71
93
|
};
|
|
72
94
|
}
|
|
73
95
|
export interface XModule {
|
|
@@ -78,17 +100,19 @@ export interface XChunk {
|
|
|
78
100
|
getAllReferencedChunks: () => Iterable<XChunk>;
|
|
79
101
|
}
|
|
80
102
|
interface XStatsReason {
|
|
81
|
-
module?: string;
|
|
82
|
-
userRequest?: string;
|
|
83
|
-
resolvedModule?: string;
|
|
103
|
+
module?: string | null;
|
|
104
|
+
userRequest?: string | null;
|
|
105
|
+
resolvedModule?: string | null;
|
|
84
106
|
}
|
|
85
107
|
export interface XStats {
|
|
86
108
|
compilation: {
|
|
109
|
+
name?: string;
|
|
110
|
+
namedChunks: ReadonlyMap<string, Readonly<XChunk>>;
|
|
87
111
|
options: {
|
|
88
112
|
context?: string;
|
|
89
113
|
};
|
|
90
|
-
namedChunks: ReadonlyMap<string, Readonly<XChunk>>;
|
|
91
114
|
};
|
|
115
|
+
toJson: () => XStatsCompilation;
|
|
92
116
|
}
|
|
93
117
|
export interface XStatsCompilation {
|
|
94
118
|
publicPath?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zephyr-xpack-internal",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.32",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,9 +9,8 @@
|
|
|
9
9
|
"@module-federation/automatic-vendor-federation": "1.2.1",
|
|
10
10
|
"is-ci": "^3.0.1",
|
|
11
11
|
"tslib": "^2.3.0",
|
|
12
|
-
"
|
|
13
|
-
"zephyr-
|
|
14
|
-
"zephyr-edge-contract": "0.0.31"
|
|
12
|
+
"zephyr-agent": "0.0.32",
|
|
13
|
+
"zephyr-edge-contract": "0.0.32"
|
|
15
14
|
},
|
|
16
15
|
"devDependencies": {
|
|
17
16
|
"@types/is-ci": "^3.0.4",
|