Skip to content

Commit 114749d

Browse files
committed
chore(nf): update version to 19.0.23
1 parent f55c8fe commit 114749d

File tree

7 files changed

+28
-21
lines changed

7 files changed

+28
-21
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "@softarc/native-federation",
3-
"version": "3.0.0",
3+
"version": "3.0.2",
44
"type": "commonjs",
55
"license": "MIT",
66
"dependencies": {
77
"json5": "^2.2.0",
88
"chalk": "^4.1.2",
9-
"@softarc/native-federation-runtime": "3.0.0"
9+
"@softarc/native-federation-runtime": "3.0.2"
1010
}
1111
}

libs/native-federation-core/src/lib/core/bundle-shared.ts

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export async function bundleShared(
4848
const packageInfos = [...inferedPackageInfos, ...configuredPackageInfos];
4949

5050
const configState =
51+
'BUNDLER_CHUNKS' + // TODO: Replace this with lib version
5152
fs.readFileSync(path.join(__dirname, '../../../package.json')) +
5253
JSON.stringify(config);
5354

@@ -155,8 +156,9 @@ export async function bundleShared(
155156
fedOptions
156157
);
157158

159+
// TODO: Decide whether/when to add .map files
158160
const chunks = bundleResult.filter(
159-
(br) => !result.find((r) => r.outFileName === path.basename(br.fileName))
161+
(br) => !br.fileName.endsWith('.map') && !result.find((r) => r.outFileName === path.basename(br.fileName))
160162
);
161163

162164
addChunksToResult(chunks, result, fedOptions.dev);
@@ -230,11 +232,12 @@ function buildResult(
230232
singleton: shared.singleton,
231233
strictVersion: shared.strictVersion,
232234
version: pi.version,
233-
dev: !fedOptions.dev
234-
? undefined
235-
: {
236-
entryPoint: normalize(pi.entryPoint),
237-
},
235+
// TODO: Decide whether/when we need debug infos
236+
// dev: !fedOptions.dev
237+
// ? undefined
238+
// : {
239+
// entryPoint: normalize(pi.entryPoint),
240+
// },
238241
} as SharedInfo;
239242
});
240243
}
@@ -255,17 +258,17 @@ function addChunksToResult(
255258
// code as part of the file name to be unique
256259
// when requested via a _versioned_ package.
257260
//
258-
// For the same reason, we don't need to
261+
// For the same reason, we don't need to
259262
// take care of singleton and strictVersion.
260263
requiredVersion: '0.0.0',
261264
version: '0.0.0',
262265
packageName: fileName,
263266
outFileName: fileName,
264-
dev: dev
265-
? undefined
266-
: {
267-
entryPoint: normalize(fileName),
268-
},
267+
// dev: dev
268+
// ? undefined
269+
// : {
270+
// entryPoint: normalize(fileName),
271+
// },
269272
});
270273
}
271274
}

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.0.0",
3+
"version": "3.0.2",
44
"type": "commonjs",
55
"dependencies": {
66
"@rollup/plugin-commonjs": "^22.0.2",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "@softarc/native-federation-node",
3-
"version": "3.0.0",
3+
"version": "3.0.2",
44
"license": "MIT"
55
}

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.0.0",
3+
"version": "3.0.2",
44
"dependencies": {
55
"tslib": "^2.3.0"
66
},

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": "19.0.20",
3+
"version": "19.0.23",
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.0.0",
24-
"@softarc/native-federation-runtime": "3.0.0",
23+
"@softarc/native-federation": "3.0.2",
24+
"@softarc/native-federation-runtime": "3.0.2",
2525
"@chialab/esbuild-plugin-commonjs": "^0.18.0",
2626
"esbuild": "^0.25.1",
2727
"mrmime": "^1.0.1",

libs/native-federation/src/builders/build/builder.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,11 @@ export async function* runBuilder(
212212
const lookup = mrmime.lookup;
213213
const mimeType = lookup(path.extname(fileName)) || 'text/javascript';
214214
const rawBody = fs.readFileSync(fileName, 'utf-8');
215-
const body = addDebugInformation(url, rawBody);
215+
216+
// TODO: Evaluate need for debug infos
217+
// const body = addDebugInformation(url, rawBody);
218+
const body = rawBody;
219+
216220
res.writeHead(200, {
217221
'Content-Type': mimeType,
218222
'Access-Control-Allow-Origin': '*',

0 commit comments

Comments
 (0)