@angular-architects/native-federation 19.0.4 → 19.0.5

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.
Files changed (2) hide show
  1. package/README.md +16 -6
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -34,6 +34,16 @@ We will at least provide a new version of this package per Angular major. If nec
34
34
  - Use version 18.2.x for Angular 18.2.x
35
35
  - Use version 19.x for Angular 19.x
36
36
 
37
+ ## Demo Repo
38
+
39
+ In this [demo repo](https://github.com/manfredsteyer/nf-test.git), we test Native Federation together with several known UI libraries for Angular. For this, we compile demo apps build with them with Native Federation.
40
+
41
+ <a href="https://github.com/manfredsteyer/nf-test.git" target="_blank">
42
+ <img width="500" src="https://github.com/angular-architects/module-federation-plugin/blob/main/libs/native-federation/demo-repo.png">
43
+ </a>
44
+
45
+ This is primarily for testing purposes. For an **initial example and/or an tutorial please look below.**
46
+
37
47
  ## Migration from Module Federation
38
48
 
39
49
  If you currently use Angular with Module Federation, you can follow our [Migration Guide](https://github.com/angular-architects/module-federation-plugin/blob/main/libs/native-federation/docs/migrate.md) to migrate to Native Federation and Angular's new fast esbuild-based build system.
@@ -350,18 +360,18 @@ The good message is, that the official Angular Package Format defines the usage
350
360
 
351
361
  ### How to Deal with Transitive Dependencies?
352
362
 
353
- Since version >=18.2.7, transitive dependencies can also be shared. For instance, `primeng` uses a lib `@primeuix/styled` for theming. The latter one is now shared too if `primeng` is. This prevents possible challenges but also results in more bundles.
363
+ Since version >=18.2.7, transitive dependencies can also be shared. For instance, `primeng` uses a lib `@primeuix/styled` for theming. The latter one is now shared too if `primeng` is. This prevents possible challenges but also results in more bundles.
354
364
 
355
365
  To activate sharing transient dependencies, set the new `transient` flag provided by `share` and `shareAll` to `true`:
356
366
 
357
367
  ```js
358
368
  module.exports = withNativeFederation({
359
369
  shared: {
360
- ...shareAll({
361
- singleton: true,
362
- strictVersion: true,
363
- requiredVersion: 'auto',
364
- transient: true
370
+ ...shareAll({
371
+ singleton: true,
372
+ strictVersion: true,
373
+ requiredVersion: 'auto',
374
+ transient: true
365
375
  }),
366
376
  },
367
377
  [...]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-architects/native-federation",
3
- "version": "19.0.4",
3
+ "version": "19.0.5",
4
4
  "main": "src/index.js",
5
5
  "generators": "./collection.json",
6
6
  "builders": "./builders.json",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@babel/core": "^7.19.0",
23
- "@softarc/native-federation": "2.0.17",
24
- "@softarc/native-federation-runtime": "2.0.17",
23
+ "@softarc/native-federation": "2.0.18",
24
+ "@softarc/native-federation-runtime": "2.0.18",
25
25
  "@types/browser-sync": "^2.29.0",
26
26
  "@chialab/esbuild-plugin-commonjs": "^0.18.0",
27
27
  "browser-sync": "^3.0.2",