Skip to content

Commit 012fc75

Browse files
committed
feat(nf): update version and docs for 20.1
1 parent 757f62d commit 012fc75

File tree

8 files changed

+56
-46
lines changed

8 files changed

+56
-46
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.3.0",
3+
"version": "3.3.1",
44
"type": "commonjs",
55
"license": "MIT",
66
"dependencies": {
77
"json5": "^2.2.0",
88
"chalk": "^4.1.2",
9-
"@softarc/native-federation-runtime": "3.3.0",
9+
"@softarc/native-federation-runtime": "3.3.1",
1010
"fast-glob": "^3.3.3"
1111
},
1212
"peerDependencies": {

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

libs/native-federation/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ We will at least provide a new version of this package per Angular major. If nec
3434
- Use version 18.1.x for Angular 18.1.x
3535
- Use version 18.2.x for Angular 18.2.x
3636
- Use version 19.x for Angular 19.x
37-
- Use version 20.x for Angular 20.x
37+
- Use version 20.0.x for Angular 20.0.x
38+
- Use version 20.1.x for Angular 20.1.x
3839

3940
## Demo Repo
4041

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": "20.0.7",
3+
"version": "20.1.0",
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.3.0",
24-
"@softarc/native-federation-runtime": "3.3.0",
23+
"@softarc/native-federation": "3.3.1",
24+
"@softarc/native-federation-runtime": "3.3.1",
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: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as fs from 'fs';
2-
import { existsSync, mkdirSync, rmSync } from 'fs';
32
import * as mrmime from 'mrmime';
43
import * as path from 'path';
54

@@ -18,10 +17,6 @@ import {
1817

1918
import { normalizeOptions } from '@angular-devkit/build-angular/src/builders/dev-server/options';
2019

21-
22-
import { logger, setLogLevel } from '@softarc/native-federation/build';
23-
24-
import { targetFromTargetString } from '@angular-devkit/architect';
2520
import {
2621
buildForFederation,
2722
FederationOptions,
@@ -36,23 +31,14 @@ import {
3631
setMemResultHandler,
3732
} from '../../utils/angular-esbuild-adapter';
3833

39-
import { NfBuilderSchema } from './schema';
40-
import { RebuildHubs } from '../../utils/rebuild-events';
41-
import { updateScriptTags } from '../../utils/updateIndexHtml';
42-
import { JsonObject } from '@angular-devkit/core';
4334
import { JsonObject } from '@angular-devkit/core';
44-
import { FederationInfo } from '@softarc/native-federation-runtime';
45-
import { PluginBuild } from 'esbuild';
4635
import { existsSync, mkdirSync, rmSync } from 'fs';
4736
import { fstart } from '../../tools/fstart-as-data-url';
48-
import { getI18nConfig, translateFederationArtefacts } from '../../utils/i18n';
4937
import {
5038
EsBuildResult,
5139
MemResults,
5240
NgCliAssetResult,
5341
} from '../../utils/mem-resuts';
54-
import { createSharedMappingsPlugin } from '../../utils/shared-mappings-plugin';
55-
// import { NextHandleFunction } from 'vite';
5642
import { FederationInfo } from '@softarc/native-federation-runtime';
5743
import { PluginBuild } from 'esbuild';
5844
import { getI18nConfig, translateFederationArtefacts } from '../../utils/i18n';
@@ -149,6 +135,10 @@ export async function* runBuilder(
149135

150136
setLogLevel(options.verbose ? 'verbose' : 'info');
151137

138+
if (!options.outputPath) {
139+
options.outputPath = `dist/${context.target.project}`;
140+
}
141+
152142
const outputPath = options.outputPath;
153143
const outputOptions: Required<
154144
Exclude<ApplicationBuilderOptions['outputPath'], string>

package-lock.json

Lines changed: 42 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)