Skip to content

Commit e138141

Browse files
committed
chore(nf): update version to 21.0.3
1 parent f60070e commit e138141

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

libs/native-federation-core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "@softarc/native-federation",
3-
"version": "3.4.1",
3+
"version": "3.4.2",
44
"type": "commonjs",
55
"license": "MIT",
66
"dependencies": {
77
"json5": "^2.2.0",
88
"chalk": "^5.6.2",
9-
"@softarc/native-federation-runtime": "3.4.1",
9+
"@softarc/native-federation-runtime": "3.4.2",
1010
"fast-glob": "^3.3.3",
1111
"@softarc/sheriff-core": "0.19.2"
1212
}

libs/native-federation-esbuild/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@softarc/native-federation-esbuild",
3-
"version": "3.4.1",
3+
"version": "3.4.2",
44
"type": "commonjs",
55
"dependencies": {
66
"@rollup/plugin-commonjs": "^22.0.2",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "@softarc/native-federation-node",
3-
"version": "3.4.1",
3+
"version": "3.4.2",
44
"license": "MIT",
55
"dependencies": {
6-
"@softarc/native-federation-runtime": "^3.4.1",
6+
"@softarc/native-federation-runtime": "^3.4.2",
77
"tslib": "^2.8.1"
88
}
99
}

libs/native-federation-runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@softarc/native-federation-runtime",
3-
"version": "3.4.1",
3+
"version": "3.4.2",
44
"dependencies": {
55
"tslib": "^2.3.0"
66
},

libs/native-federation-runtime/src/lib/init-federation.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { watchFederationBuildCompletion } from './watch-federation-build';
2222
*/
2323
export async function initFederation(
2424
remotesOrManifestUrl: Record<string, string> | string = {},
25-
options?: InitFederationOptions,
25+
options?: InitFederationOptions
2626
): Promise<ImportMap> {
2727
const cacheOption = options?.cacheTag ? `?t=${options.cacheTag}` : '';
2828
const remotes =
@@ -50,7 +50,7 @@ async function loadManifest(remotes: string): Promise<Record<string, string>> {
5050

5151
export async function processRemoteInfos(
5252
remotes: Record<string, string>,
53-
options: ProcessRemoteInfoOptions = { throwIfRemoteNotFound: false },
53+
options: ProcessRemoteInfoOptions = { throwIfRemoteNotFound: false }
5454
): Promise<ImportMap> {
5555
const processRemoteInfoPromises = Object.keys(remotes).map(
5656
async (remoteName) => {
@@ -72,23 +72,23 @@ export async function processRemoteInfos(
7272
console.error(error);
7373
return null;
7474
}
75-
},
75+
}
7676
);
7777

7878
const remoteImportMaps = await Promise.all(processRemoteInfoPromises);
7979

8080
const importMap = remoteImportMaps.reduce<ImportMap>(
8181
(acc, remoteImportMap) =>
8282
remoteImportMap ? mergeImportMaps(acc, remoteImportMap) : acc,
83-
{ imports: {}, scopes: {} },
83+
{ imports: {}, scopes: {} }
8484
);
8585

8686
return importMap;
8787
}
8888

8989
export async function processRemoteInfo(
9090
federationInfoUrl: string,
91-
remoteName?: string,
91+
remoteName?: string
9292
): Promise<ImportMap> {
9393
const baseUrl = getDirectory(federationInfoUrl);
9494
const remoteInfo = await loadFederationInfo(federationInfoUrl);
@@ -99,7 +99,7 @@ export async function processRemoteInfo(
9999

100100
if (remoteInfo.buildNotificationsEndpoint) {
101101
watchFederationBuildCompletion(
102-
baseUrl + remoteInfo.buildNotificationsEndpoint,
102+
baseUrl + remoteInfo.buildNotificationsEndpoint
103103
);
104104
}
105105

@@ -112,7 +112,7 @@ export async function processRemoteInfo(
112112
function createRemoteImportMap(
113113
remoteInfo: FederationInfo,
114114
remoteName: string,
115-
baseUrl: string,
115+
baseUrl: string
116116
): ImportMap {
117117
const imports = processExposed(remoteInfo, remoteName, baseUrl);
118118
const scopes = processRemoteImports(remoteInfo, baseUrl);
@@ -126,7 +126,7 @@ async function loadFederationInfo(url: string): Promise<FederationInfo> {
126126

127127
function processRemoteImports(
128128
remoteInfo: FederationInfo,
129-
baseUrl: string,
129+
baseUrl: string
130130
): Scopes {
131131
const scopes: Scopes = {};
132132
const scopedImports: Imports = {};
@@ -145,7 +145,7 @@ function processRemoteImports(
145145
function processExposed(
146146
remoteInfo: FederationInfo,
147147
remoteName: string,
148-
baseUrl: string,
148+
baseUrl: string
149149
): Imports {
150150
const imports: Imports = {};
151151

@@ -160,14 +160,14 @@ function processExposed(
160160

161161
export async function processHostInfo(
162162
hostInfo: FederationInfo,
163-
relBundlesPath = './',
163+
relBundlesPath = './'
164164
): Promise<ImportMap> {
165165
const imports = hostInfo.shared.reduce(
166166
(acc, cur) => ({
167167
...acc,
168168
[cur.packageName]: relBundlesPath + cur.outFileName,
169169
}),
170-
{},
170+
{}
171171
) as Imports;
172172

173173
for (const shared of hostInfo.shared) {

libs/native-federation/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular-architects/native-federation",
3-
"version": "21.0.2",
3+
"version": "21.0.3",
44
"main": "src/index.js",
55
"generators": "./collection.json",
66
"builders": "./builders.json",
@@ -20,8 +20,8 @@
2020
},
2121
"dependencies": {
2222
"@babel/core": "^7.19.0",
23-
"@softarc/native-federation": "3.4.1",
24-
"@softarc/native-federation-runtime": "3.4.1",
23+
"@softarc/native-federation": "3.4.2",
24+
"@softarc/native-federation-runtime": "3.4.2",
2525
"@chialab/esbuild-plugin-commonjs": "^0.19.0",
2626
"esbuild": "^0.25.1",
2727
"mrmime": "^1.0.1",

0 commit comments

Comments
 (0)