File tree Expand file tree Collapse file tree 14 files changed +38
-45
lines changed
native-federation-esbuild
native-federation-runtime Expand file tree Collapse file tree 14 files changed +38
-45
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @angular-architects/module-federation-runtime" ,
3
3
"license" : " MIT" ,
4
- "version" : " 15 .0.3 " ,
4
+ "version" : " 16 .0.0 " ,
5
5
"peerDependencies" : {
6
- "@angular/common" : " >=15 .0.0" ,
7
- "@angular/core" : " >=15 .0.0"
6
+ "@angular/common" : " >=16 .0.0" ,
7
+ "@angular/core" : " >=16 .0.0"
8
8
},
9
9
"dependencies" : {
10
10
"tslib" : " ^2.0.0"
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @angular-architects/module-federation-tools" ,
3
- "version" : " 15 .0.3 " ,
3
+ "version" : " 16 .0.0 " ,
4
4
"license" : " MIT" ,
5
5
"peerDependencies" : {
6
- "@angular/common" : " >=15 .0.0" ,
7
- "@angular/core" : " >=15 .0.0" ,
8
- "@angular/router" : " >=15 .0.0" ,
9
- "@angular-architects/module-federation" : " ^15 .0.3 " ,
10
- "@angular/platform-browser" : " >=15 .0.0" ,
6
+ "@angular/common" : " >=16 .0.0" ,
7
+ "@angular/core" : " >=16 .0.0" ,
8
+ "@angular/router" : " >=16 .0.0" ,
9
+ "@angular-architects/module-federation" : " ^16 .0.0 " ,
10
+ "@angular/platform-browser" : " >=16 .0.0" ,
11
11
"rxjs" : " >= 6.0.0"
12
12
},
13
13
"dependencies" : {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @angular-architects/module-federation" ,
3
- "version" : " 15 .0.3 " ,
3
+ "version" : " 16 .0.0 " ,
4
4
"license" : " MIT" ,
5
5
"repository" : {
6
6
"type" : " GitHub" ,
17
17
"schematics" : " ./collection.json" ,
18
18
"builders" : " ./builders.json" ,
19
19
"dependencies" : {
20
- "@angular-architects/module-federation-runtime" : " 15 .0.3 " ,
20
+ "@angular-architects/module-federation-runtime" : " 16 .0.0 " ,
21
21
"word-wrap" : " ^1.2.3" ,
22
22
"callsite" : " ^1.0.0" ,
23
23
"node-fetch" : " ^2.6.7" ,
Original file line number Diff line number Diff line change @@ -386,11 +386,11 @@ export default function config(options: MfSchematicSchema): Rule {
386
386
387
387
const dep = getPackageJsonDependency ( tree , 'ngx-build-plus' ) ;
388
388
389
- if ( ! dep || ! semver . satisfies ( dep . version , '>=15 .0.0' ) ) {
389
+ if ( ! dep || ! semver . satisfies ( dep . version , '>=16 .0.0' ) ) {
390
390
addPackageJsonDependency ( tree , {
391
391
name : 'ngx-build-plus' ,
392
392
type : NodeDependencyType . Dev ,
393
- version : '^15 .0.0' ,
393
+ version : '^16 .0.0' ,
394
394
overwrite : true ,
395
395
} ) ;
396
396
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @softarc/native-federation" ,
3
- "version" : " 1.1.1-beta.0 " ,
3
+ "version" : " 1.1.1" ,
4
4
"type" : " commonjs" ,
5
5
"dependencies" : {
6
6
"json5" : " ^2.2.0" ,
7
7
"npmlog" : " ^6.0.2" ,
8
- "@softarc/native-federation-runtime" : " 1.1.1-beta.0 "
8
+ "@softarc/native-federation-runtime" : " 1.1.1"
9
9
}
10
10
}
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export interface BuildAdapterOptions {
14
14
mappedPaths : MappedPath [ ] ;
15
15
packageName ?: string ;
16
16
esm ?: boolean ;
17
+ dev ?: boolean ;
17
18
watch ?: boolean ;
18
19
kind : 'shared-package' | 'shared-mapping' | 'exposed' ;
19
20
}
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ export async function bundleExposed(
34
34
tsConfigPath : options . tsConfig ,
35
35
external : externals ,
36
36
outfile : outFilePath ,
37
+ dev : ! ! options . dev ,
37
38
watch : options . watch ,
38
39
mappedPaths : config . sharedMappings ,
39
40
kind : 'exposed' ,
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ export async function bundleSharedMappings(
30
30
outfile : outFilePath ,
31
31
mappedPaths : [ ] ,
32
32
watch : fedOptions . watch ,
33
+ dev : ! ! fedOptions . dev ,
33
34
kind : 'shared-mapping' ,
34
35
} ) ;
35
36
Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ export async function bundleShared(
47
47
const encName = pi . packageName . replace ( / [ ^ A - Z a - z 0 - 9 ] / g, '_' ) ;
48
48
const encVersion = pi . version . replace ( / [ ^ A - Z a - z 0 - 9 ] / g, '_' ) ;
49
49
50
- // const env = fedOptions.dev ? 'dev' : 'prod';
50
+ const env = fedOptions . dev ? 'dev' : 'prod' ;
51
51
52
52
// const outFileName = `${encName}-${encVersion}-${hash}.js`;
53
- const outFileName = `${ encName } -${ encVersion } .js` ;
53
+ const outFileName = `${ encName } -${ encVersion } - ${ env } .js` ;
54
54
55
55
const cachePath = path . join (
56
56
fedOptions . workspaceRoot ,
@@ -82,6 +82,7 @@ export async function bundleShared(
82
82
mappedPaths : config . sharedMappings ,
83
83
packageName : pi . packageName ,
84
84
esm : pi . esm ,
85
+ dev : ! ! fedOptions . dev ,
85
86
kind : 'shared-package' ,
86
87
} ) ;
87
88
} catch ( e ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @softarc/native-federation-esbuild" ,
3
- "version" : " 1.1.1-beta.0 " ,
3
+ "version" : " 1.1.1" ,
4
4
"type" : " commonjs" ,
5
5
"dependencies" : {
6
6
"@rollup/plugin-commonjs" : " ^22.0.2" ,
You can’t perform that action at this time.
0 commit comments