@nx/angular 23.0.0-beta.20 → 23.0.0-beta.22

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 (54) hide show
  1. package/generators.json +8 -4
  2. package/migrations.json +62 -31
  3. package/package.json +8 -8
  4. package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts.map +1 -1
  5. package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +2 -0
  6. package/src/executors/module-federation-dev-server/schema.json +1 -0
  7. package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.d.ts.map +1 -1
  8. package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js +2 -0
  9. package/src/executors/module-federation-ssr-dev-server/schema.json +1 -0
  10. package/src/generators/add-linting/lib/add-angular-eslint-dependencies.js +1 -1
  11. package/src/generators/federate-module/federate-module.d.ts.map +1 -1
  12. package/src/generators/federate-module/federate-module.js +2 -0
  13. package/src/generators/host/host.d.ts.map +1 -1
  14. package/src/generators/host/host.js +2 -0
  15. package/src/generators/remote/remote.d.ts.map +1 -1
  16. package/src/generators/remote/remote.js +2 -0
  17. package/src/generators/setup-mf/setup-mf.d.ts.map +1 -1
  18. package/src/generators/setup-mf/setup-mf.js +2 -0
  19. package/src/migrations/update-20-2-0/add-localize-polyfill-to-targets.md +44 -0
  20. package/src/migrations/update-20-2-0/disable-angular-eslint-prefer-standalone.md +475 -0
  21. package/src/migrations/update-20-2-0/migrate-mf-imports-to-new-package.md +19 -0
  22. package/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.md +25 -0
  23. package/src/migrations/update-20-2-0/remove-angular-eslint-rules.md +37 -0
  24. package/src/migrations/update-20-2-0/remove-tailwind-config-from-ng-packagr-executors.md +69 -0
  25. package/src/migrations/update-20-2-0/update-angular-cli.md +49 -0
  26. package/src/migrations/update-20-2-0/update-angular-ssr-imports-to-use-node-entry-point.md +27 -0
  27. package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.md +23 -0
  28. package/src/migrations/update-20-4-0/update-angular-cli.md +49 -0
  29. package/src/migrations/update-20-5-0/update-angular-cli.md +23 -0
  30. package/src/migrations/update-21-0-0/change-data-persistence-operators-imports-to-ngrx-router-store-data-persistence.md +113 -0
  31. package/src/migrations/update-21-0-0/set-continuous-option.md +90 -0
  32. package/src/migrations/update-21-2-0/migrate-provide-server-rendering-import.md +56 -0
  33. package/src/migrations/update-21-2-0/replace-provide-server-routing.md +107 -0
  34. package/src/migrations/update-21-2-0/set-generator-defaults-for-previous-style-guide.md +164 -0
  35. package/src/migrations/update-21-2-0/update-angular-cli.md +23 -0
  36. package/src/migrations/update-21-2-0/update-module-resolution.md +53 -0
  37. package/src/migrations/update-21-3-0/update-angular-cli.md +23 -0
  38. package/src/migrations/update-21-5-0/remove-default-karma-configuration-files.md +122 -0
  39. package/src/migrations/update-21-5-0/set-tsconfig-option.md +114 -0
  40. package/src/migrations/update-21-5-0/update-angular-cli.md +23 -0
  41. package/src/migrations/update-21-6-1/update-angular-cli.md +23 -0
  42. package/src/migrations/update-22-3-0/set-isolated-modules.md +76 -0
  43. package/src/migrations/update-22-3-0/update-jest-preset-angular-setup.md +21 -0
  44. package/src/migrations/update-22-3-0/update-module-resolution.md +81 -0
  45. package/src/migrations/update-22-3-0/update-ssr-webpack-config.md +71 -0
  46. package/src/migrations/update-22-3-0/update-typescript-lib.md +103 -0
  47. package/src/migrations/update-22-3-0/update-unit-test-runner-option.md +33 -0
  48. package/src/migrations/update-23-0-0/migrate-ngrx-generator-defaults.md +46 -0
  49. package/src/migrations/update-23-0-0/migrate-with-mf-import-to-new-package.md +27 -0
  50. package/src/utils/module-federation-deprecation.d.ts +13 -0
  51. package/src/utils/module-federation-deprecation.d.ts.map +1 -0
  52. package/src/utils/module-federation-deprecation.js +49 -0
  53. package/src/utils/versions.d.ts +1 -1
  54. package/src/utils/versions.js +1 -1
package/generators.json CHANGED
@@ -53,7 +53,8 @@
53
53
  "factory": "./src/generators/federate-module/federate-module",
54
54
  "schema": "./src/generators/federate-module/schema.json",
55
55
  "x-type": "application",
56
- "description": "Create a federated module, which is exposed by a remote and can be subsequently loaded by a host."
56
+ "description": "Create a federated module, which is exposed by a remote and can be subsequently loaded by a host.",
57
+ "x-deprecated": "Angular Module Federation in Nx is no longer supported. Use `@angular-architects/native-federation` instead. Removed in Nx v24."
57
58
  },
58
59
  "init": {
59
60
  "factory": "./src/generators/init/init",
@@ -79,7 +80,8 @@
79
80
  "schema": "./src/generators/remote/schema.json",
80
81
  "x-type": "application",
81
82
  "description": "Generate a Remote Angular Module Federation Application.",
82
- "aliases": ["producer"]
83
+ "aliases": ["producer"],
84
+ "x-deprecated": "Angular Module Federation in Nx is no longer supported. Use `@angular-architects/native-federation` instead. Removed in Nx v24."
83
85
  },
84
86
  "convert-to-with-mf": {
85
87
  "factory": "./src/generators/convert-to-with-mf/convert-to-with-mf",
@@ -91,7 +93,8 @@
91
93
  "schema": "./src/generators/host/schema.json",
92
94
  "x-type": "application",
93
95
  "description": "Generate a Host Angular Module Federation Application.",
94
- "aliases": ["consumer"]
96
+ "aliases": ["consumer"],
97
+ "x-deprecated": "Angular Module Federation in Nx is no longer supported. Use `@angular-architects/native-federation` instead. Removed in Nx v24."
95
98
  },
96
99
  "ng-add": {
97
100
  "factory": "./src/generators/ng-add/ng-add",
@@ -138,7 +141,8 @@
138
141
  "setup-mf": {
139
142
  "factory": "./src/generators/setup-mf/setup-mf",
140
143
  "schema": "./src/generators/setup-mf/schema.json",
141
- "description": "Generate a Module Federation configuration for a given Angular application."
144
+ "description": "Generate a Module Federation configuration for a given Angular application.",
145
+ "x-deprecated": "Angular Module Federation in Nx is no longer supported. Use `@angular-architects/native-federation` instead. Removed in Nx v24."
142
146
  },
143
147
  "setup-ssr": {
144
148
  "factory": "./src/generators/setup-ssr/setup-ssr",
package/migrations.json CHANGED
@@ -43,13 +43,15 @@
43
43
  "cli": "nx",
44
44
  "version": "20.2.0-beta.2",
45
45
  "description": "Update the ModuleFederationConfig import use @nx/module-federation.",
46
- "factory": "./src/migrations/update-20-2-0/migrate-mf-imports-to-new-package"
46
+ "factory": "./src/migrations/update-20-2-0/migrate-mf-imports-to-new-package",
47
+ "documentation": "./src/migrations/update-20-2-0/migrate-mf-imports-to-new-package.md"
47
48
  },
48
49
  "update-20-2-0-update-with-module-federation-import": {
49
50
  "cli": "nx",
50
51
  "version": "20.2.0-beta.2",
51
52
  "description": "Update the withModuleFederation import use @nx/module-federation/angular.",
52
- "factory": "./src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package"
53
+ "factory": "./src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package",
54
+ "documentation": "./src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.md"
53
55
  },
54
56
  "update-angular-cli-version-19-0-0": {
55
57
  "cli": "nx",
@@ -58,7 +60,8 @@
58
60
  "@angular/core": ">=19.0.0"
59
61
  },
60
62
  "description": "Update the @angular/cli package version to ~19.0.0.",
61
- "factory": "./src/migrations/update-20-2-0/update-angular-cli"
63
+ "factory": "./src/migrations/update-20-2-0/update-angular-cli",
64
+ "documentation": "./src/migrations/update-20-2-0/update-angular-cli.md"
62
65
  },
63
66
  "add-localize-polyfill-to-targets": {
64
67
  "cli": "nx",
@@ -67,7 +70,8 @@
67
70
  "@angular/core": ">=19.0.0"
68
71
  },
69
72
  "description": "Add the '@angular/localize/init' polyfill to the 'polyfills' option of targets using esbuild-based executors.",
70
- "factory": "./src/migrations/update-20-2-0/add-localize-polyfill-to-targets"
73
+ "factory": "./src/migrations/update-20-2-0/add-localize-polyfill-to-targets",
74
+ "documentation": "./src/migrations/update-20-2-0/add-localize-polyfill-to-targets.md"
71
75
  },
72
76
  "update-angular-ssr-imports-to-use-node-entry-point": {
73
77
  "cli": "nx",
@@ -76,7 +80,8 @@
76
80
  "@angular/core": ">=19.0.0"
77
81
  },
78
82
  "description": "Update '@angular/ssr' import paths to use the new '/node' entry point when 'CommonEngine' is detected.",
79
- "factory": "./src/migrations/update-20-2-0/update-angular-ssr-imports-to-use-node-entry-point"
83
+ "factory": "./src/migrations/update-20-2-0/update-angular-ssr-imports-to-use-node-entry-point",
84
+ "documentation": "./src/migrations/update-20-2-0/update-angular-ssr-imports-to-use-node-entry-point.md"
80
85
  },
81
86
  "disable-angular-eslint-prefer-standalone": {
82
87
  "cli": "nx",
@@ -85,7 +90,8 @@
85
90
  "@angular/core": ">=19.0.0"
86
91
  },
87
92
  "description": "Disable the Angular ESLint prefer-standalone rule if not set.",
88
- "factory": "./src/migrations/update-20-2-0/disable-angular-eslint-prefer-standalone"
93
+ "factory": "./src/migrations/update-20-2-0/disable-angular-eslint-prefer-standalone",
94
+ "documentation": "./src/migrations/update-20-2-0/disable-angular-eslint-prefer-standalone.md"
89
95
  },
90
96
  "remove-angular-eslint-rules": {
91
97
  "cli": "nx",
@@ -94,7 +100,8 @@
94
100
  "@angular/core": ">=19.0.0"
95
101
  },
96
102
  "description": "Remove Angular ESLint rules that were removed in v19.0.0.",
97
- "factory": "./src/migrations/update-20-2-0/remove-angular-eslint-rules"
103
+ "factory": "./src/migrations/update-20-2-0/remove-angular-eslint-rules",
104
+ "documentation": "./src/migrations/update-20-2-0/remove-angular-eslint-rules.md"
98
105
  },
99
106
  "remove-tailwind-config-from-ng-packagr-executors": {
100
107
  "cli": "nx",
@@ -103,13 +110,15 @@
103
110
  "@angular/core": ">=19.0.0"
104
111
  },
105
112
  "description": "Remove the deprecated 'tailwindConfig' option from ng-packagr executors. Tailwind CSS configurations located at the project or workspace root will be picked up automatically.",
106
- "factory": "./src/migrations/update-20-2-0/remove-tailwind-config-from-ng-packagr-executors"
113
+ "factory": "./src/migrations/update-20-2-0/remove-tailwind-config-from-ng-packagr-executors",
114
+ "documentation": "./src/migrations/update-20-2-0/remove-tailwind-config-from-ng-packagr-executors.md"
107
115
  },
108
116
  "ensure-nx-module-federation-package": {
109
117
  "cli": "nx",
110
118
  "version": "20.3.0-beta.2",
111
119
  "description": "If workspace includes Module Federation projects, ensure the new @nx/module-federation package is installed.",
112
- "factory": "./src/migrations/update-20-3-0/ensure-nx-module-federation-package"
120
+ "factory": "./src/migrations/update-20-3-0/ensure-nx-module-federation-package",
121
+ "documentation": "./src/migrations/update-20-3-0/ensure-nx-module-federation-package.md"
113
122
  },
114
123
  "update-angular-cli-version-19-1-0": {
115
124
  "cli": "nx",
@@ -118,7 +127,8 @@
118
127
  "@angular/core": ">=19.1.0"
119
128
  },
120
129
  "description": "Update the @angular/cli package version to ~19.1.0.",
121
- "factory": "./src/migrations/update-20-4-0/update-angular-cli"
130
+ "factory": "./src/migrations/update-20-4-0/update-angular-cli",
131
+ "documentation": "./src/migrations/update-20-4-0/update-angular-cli.md"
122
132
  },
123
133
  "update-angular-cli-version-19-2-0": {
124
134
  "cli": "nx",
@@ -127,13 +137,15 @@
127
137
  "@angular/core": ">=19.2.0"
128
138
  },
129
139
  "description": "Update the @angular/cli package version to ~19.2.0.",
130
- "factory": "./src/migrations/update-20-5-0/update-angular-cli"
140
+ "factory": "./src/migrations/update-20-5-0/update-angular-cli",
141
+ "documentation": "./src/migrations/update-20-5-0/update-angular-cli.md"
131
142
  },
132
143
  "set-continuous-option": {
133
144
  "cli": "nx",
134
145
  "version": "21.0.0-beta.3",
135
146
  "description": "Set the `continuous` option to `true` for continuous tasks.",
136
- "factory": "./src/migrations/update-21-0-0/set-continuous-option"
147
+ "factory": "./src/migrations/update-21-0-0/set-continuous-option",
148
+ "documentation": "./src/migrations/update-21-0-0/set-continuous-option.md"
137
149
  },
138
150
  "change-data-persistence-operators-imports-to-ngrx-router-store-data-persistence": {
139
151
  "cli": "nx",
@@ -142,7 +154,8 @@
142
154
  "@ngrx/store": ">=16.0.0"
143
155
  },
144
156
  "description": "Change the data persistence operator imports to '@ngrx/router-store/data-persistence'.",
145
- "factory": "./src/migrations/update-21-0-0/change-data-persistence-operators-imports-to-ngrx-router-store-data-persistence"
157
+ "factory": "./src/migrations/update-21-0-0/change-data-persistence-operators-imports-to-ngrx-router-store-data-persistence",
158
+ "documentation": "./src/migrations/update-21-0-0/change-data-persistence-operators-imports-to-ngrx-router-store-data-persistence.md"
146
159
  },
147
160
  "update-angular-cli-version-20-0-0": {
148
161
  "cli": "nx",
@@ -151,7 +164,8 @@
151
164
  "@angular/core": ">=20.0.0"
152
165
  },
153
166
  "description": "Update the @angular/cli package version to ~20.0.0.",
154
- "factory": "./src/migrations/update-21-2-0/update-angular-cli"
167
+ "factory": "./src/migrations/update-21-2-0/update-angular-cli",
168
+ "documentation": "./src/migrations/update-21-2-0/update-angular-cli.md"
155
169
  },
156
170
  "migrate-provide-server-rendering-import": {
157
171
  "version": "21.2.0-beta.3",
@@ -159,7 +173,8 @@
159
173
  "@angular/core": ">=20.0.0"
160
174
  },
161
175
  "description": "Migrate imports of `provideServerRendering` from `@angular/platform-server` to `@angular/ssr`.",
162
- "factory": "./src/migrations/update-21-2-0/migrate-provide-server-rendering-import"
176
+ "factory": "./src/migrations/update-21-2-0/migrate-provide-server-rendering-import",
177
+ "documentation": "./src/migrations/update-21-2-0/migrate-provide-server-rendering-import.md"
163
178
  },
164
179
  "replace-provide-server-routing": {
165
180
  "version": "21.2.0-beta.3",
@@ -167,7 +182,8 @@
167
182
  "@angular/core": ">=20.0.0"
168
183
  },
169
184
  "description": "Replace `provideServerRouting` and `provideServerRoutesConfig` with `provideServerRendering` using `withRoutes`.",
170
- "factory": "./src/migrations/update-21-2-0/replace-provide-server-routing"
185
+ "factory": "./src/migrations/update-21-2-0/replace-provide-server-routing",
186
+ "documentation": "./src/migrations/update-21-2-0/replace-provide-server-routing.md"
171
187
  },
172
188
  "set-generator-defaults-for-previous-style-guide": {
173
189
  "version": "21.2.0-beta.3",
@@ -175,7 +191,8 @@
175
191
  "@angular/core": ">=20.0.0"
176
192
  },
177
193
  "description": "Update the generator defaults to maintain the previous style guide behavior.",
178
- "factory": "./src/migrations/update-21-2-0/set-generator-defaults-for-previous-style-guide"
194
+ "factory": "./src/migrations/update-21-2-0/set-generator-defaults-for-previous-style-guide",
195
+ "documentation": "./src/migrations/update-21-2-0/set-generator-defaults-for-previous-style-guide.md"
179
196
  },
180
197
  "update-module-resolution": {
181
198
  "version": "21.2.0-beta.3",
@@ -183,7 +200,8 @@
183
200
  "@angular/core": ">=20.0.0"
184
201
  },
185
202
  "description": "Update 'moduleResolution' to 'bundler' in TypeScript configurations. You can read more about this here: https://www.typescriptlang.org/tsconfig/#moduleResolution.",
186
- "factory": "./src/migrations/update-21-2-0/update-module-resolution"
203
+ "factory": "./src/migrations/update-21-2-0/update-module-resolution",
204
+ "documentation": "./src/migrations/update-21-2-0/update-module-resolution.md"
187
205
  },
188
206
  "update-angular-cli-version-20-1-0": {
189
207
  "cli": "nx",
@@ -192,12 +210,14 @@
192
210
  "@angular/core": ">=20.1.0"
193
211
  },
194
212
  "description": "Update the @angular/cli package version to ~20.1.0.",
195
- "factory": "./src/migrations/update-21-3-0/update-angular-cli"
213
+ "factory": "./src/migrations/update-21-3-0/update-angular-cli",
214
+ "documentation": "./src/migrations/update-21-3-0/update-angular-cli.md"
196
215
  },
197
216
  "set-tsconfig-option": {
198
217
  "version": "21.5.0-beta.0",
199
218
  "description": "Set the 'tsConfig' option to build and test targets to help with Angular migration issues.",
200
- "factory": "./src/migrations/update-21-5-0/set-tsconfig-option"
219
+ "factory": "./src/migrations/update-21-5-0/set-tsconfig-option",
220
+ "documentation": "./src/migrations/update-21-5-0/set-tsconfig-option.md"
201
221
  },
202
222
  "update-angular-cli-version-20-2-0": {
203
223
  "cli": "nx",
@@ -206,7 +226,8 @@
206
226
  "@angular/core": ">=20.2.0"
207
227
  },
208
228
  "description": "Update the @angular/cli package version to ~20.2.0.",
209
- "factory": "./src/migrations/update-21-5-0/update-angular-cli"
229
+ "factory": "./src/migrations/update-21-5-0/update-angular-cli",
230
+ "documentation": "./src/migrations/update-21-5-0/update-angular-cli.md"
210
231
  },
211
232
  "remove-default-karma-configuration-files": {
212
233
  "version": "21.5.0-beta.2",
@@ -214,7 +235,8 @@
214
235
  "@angular/core": ">=20.2.0"
215
236
  },
216
237
  "description": "Remove any Karma configuration files that only contain the default content. The default configuration is automatically available without a specific project configurationfile.",
217
- "factory": "./src/migrations/update-21-5-0/remove-default-karma-configuration-files"
238
+ "factory": "./src/migrations/update-21-5-0/remove-default-karma-configuration-files",
239
+ "documentation": "./src/migrations/update-21-5-0/remove-default-karma-configuration-files.md"
218
240
  },
219
241
  "update-angular-cli-version-20-3-0": {
220
242
  "cli": "nx",
@@ -223,7 +245,8 @@
223
245
  "@angular/core": ">=20.3.0"
224
246
  },
225
247
  "description": "Update the @angular/cli package version to ~20.3.0.",
226
- "factory": "./src/migrations/update-21-6-1/update-angular-cli"
248
+ "factory": "./src/migrations/update-21-6-1/update-angular-cli",
249
+ "documentation": "./src/migrations/update-21-6-1/update-angular-cli.md"
227
250
  },
228
251
  "update-ssr-webpack-config-22-2-0": {
229
252
  "version": "22.3.0-beta.0",
@@ -231,7 +254,8 @@
231
254
  "@angular/core": ">=21.0.0"
232
255
  },
233
256
  "description": "Updates webpack-based SSR configuration to use preserve module format and bundler module resolution.",
234
- "factory": "./src/migrations/update-22-3-0/update-ssr-webpack-config"
257
+ "factory": "./src/migrations/update-22-3-0/update-ssr-webpack-config",
258
+ "documentation": "./src/migrations/update-22-3-0/update-ssr-webpack-config.md"
235
259
  },
236
260
  "update-module-resolution-22-2-0": {
237
261
  "version": "22.3.0-beta.0",
@@ -239,7 +263,8 @@
239
263
  "@angular/core": ">=21.0.0-rc.3"
240
264
  },
241
265
  "description": "Update 'module' to 'preserve' and 'moduleResolution' to 'bundler' in TypeScript configurations for Angular projects.",
242
- "factory": "./src/migrations/update-22-3-0/update-module-resolution"
266
+ "factory": "./src/migrations/update-22-3-0/update-module-resolution",
267
+ "documentation": "./src/migrations/update-22-3-0/update-module-resolution.md"
243
268
  },
244
269
  "update-typescript-lib-22-2-0": {
245
270
  "version": "22.3.0-beta.0",
@@ -247,12 +272,14 @@
247
272
  "@angular/core": ">=21.0.0"
248
273
  },
249
274
  "description": "Updates the 'lib' property in tsconfig files to use 'es2022' or a more modern version.",
250
- "factory": "./src/migrations/update-22-3-0/update-typescript-lib"
275
+ "factory": "./src/migrations/update-22-3-0/update-typescript-lib",
276
+ "documentation": "./src/migrations/update-22-3-0/update-typescript-lib.md"
251
277
  },
252
278
  "update-unit-test-runner-option": {
253
279
  "version": "22.3.0-beta.0",
254
280
  "description": "Update 'vitest' unit test runner option to 'vitest-analog' in generator defaults.",
255
- "factory": "./src/migrations/update-22-3-0/update-unit-test-runner-option"
281
+ "factory": "./src/migrations/update-22-3-0/update-unit-test-runner-option",
282
+ "documentation": "./src/migrations/update-22-3-0/update-unit-test-runner-option.md"
256
283
  },
257
284
  "set-isolated-modules-22-3-0": {
258
285
  "version": "22.3.0-beta.3",
@@ -260,7 +287,8 @@
260
287
  "@angular/core": ">=21.0.0"
261
288
  },
262
289
  "description": "Set 'isolatedModules' to 'true' in TypeScript test configurations for Angular projects.",
263
- "factory": "./src/migrations/update-22-3-0/set-isolated-modules"
290
+ "factory": "./src/migrations/update-22-3-0/set-isolated-modules",
291
+ "documentation": "./src/migrations/update-22-3-0/set-isolated-modules.md"
264
292
  },
265
293
  "update-jest-preset-angular-setup": {
266
294
  "version": "22.3.0-beta.3",
@@ -268,17 +296,20 @@
268
296
  "@angular/core": ">=21.0.0"
269
297
  },
270
298
  "description": "Replace 'jest-preset-angular/setup-jest' imports with the new 'setupZoneTestEnv' function.",
271
- "factory": "./src/migrations/update-22-3-0/update-jest-preset-angular-setup"
299
+ "factory": "./src/migrations/update-22-3-0/update-jest-preset-angular-setup",
300
+ "documentation": "./src/migrations/update-22-3-0/update-jest-preset-angular-setup.md"
272
301
  },
273
302
  "update-23-0-0-update-with-module-federation-import": {
274
303
  "version": "23.0.0-beta.0",
275
304
  "description": "Update the @nx/angular/module-federation import to use @nx/module-federation/angular.",
276
- "factory": "./src/migrations/update-23-0-0/migrate-with-mf-import-to-new-package"
305
+ "factory": "./src/migrations/update-23-0-0/migrate-with-mf-import-to-new-package",
306
+ "documentation": "./src/migrations/update-23-0-0/migrate-with-mf-import-to-new-package.md"
277
307
  },
278
308
  "update-23-0-0-migrate-ngrx-generator-defaults": {
279
309
  "version": "23.0.0-beta.7",
280
310
  "description": "Split @nx/angular:ngrx generator defaults in nx.json across the @nx/angular:ngrx-root-store and @nx/angular:ngrx-feature-store generators.",
281
- "factory": "./src/migrations/update-23-0-0/migrate-ngrx-generator-defaults"
311
+ "factory": "./src/migrations/update-23-0-0/migrate-ngrx-generator-defaults",
312
+ "documentation": "./src/migrations/update-23-0-0/migrate-ngrx-generator-defaults.md"
282
313
  }
283
314
  },
284
315
  "packageJsonUpdates": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "23.0.0-beta.20",
3
+ "version": "23.0.0-beta.22",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Playwright and Cypress. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -61,13 +61,13 @@
61
61
  "migrations": "./migrations.json"
62
62
  },
63
63
  "dependencies": {
64
- "@nx/devkit": "23.0.0-beta.20",
65
- "@nx/eslint": "23.0.0-beta.20",
66
- "@nx/js": "23.0.0-beta.20",
67
- "@nx/module-federation": "23.0.0-beta.20",
68
- "@nx/rspack": "23.0.0-beta.20",
69
- "@nx/web": "23.0.0-beta.20",
70
- "@nx/webpack": "23.0.0-beta.20",
64
+ "@nx/devkit": "23.0.0-beta.22",
65
+ "@nx/eslint": "23.0.0-beta.22",
66
+ "@nx/js": "23.0.0-beta.22",
67
+ "@nx/module-federation": "23.0.0-beta.22",
68
+ "@nx/rspack": "23.0.0-beta.22",
69
+ "@nx/web": "23.0.0-beta.22",
70
+ "@nx/webpack": "23.0.0-beta.22",
71
71
  "@phenomnomnominal/tsquery": "~6.2.0",
72
72
  "@typescript-eslint/type-utils": "^8.0.0",
73
73
  "enquirer": "~2.3.6",
@@ -1 +1 @@
1
- {"version":3,"file":"module-federation-dev-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/module-federation-dev-server/module-federation-dev-server.impl.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,eAAe,EAGrB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAkCvC,wBAAuB,iCAAiC,CACtD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,iCAgIzB;AAED,eAAe,iCAAiC,CAAC"}
1
+ {"version":3,"file":"module-federation-dev-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/module-federation-dev-server/module-federation-dev-server.impl.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,eAAe,EAGrB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAmCvC,wBAAuB,iCAAiC,CACtD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,iCAiIzB;AAED,eAAe,iCAAiC,CAAC"}
@@ -13,6 +13,7 @@ const dev_server_impl_1 = require("../../builders/dev-server/dev-server.impl");
13
13
  const module_federation_1 = require("../../builders/utilities/module-federation");
14
14
  const path_1 = require("path");
15
15
  const fs_1 = require("fs");
16
+ const module_federation_deprecation_1 = require("../../utils/module-federation-deprecation");
16
17
  // This is required to ensure that the webpack version used by the Module Federation is the same as the one used by the builders.
17
18
  const Module = require('module');
18
19
  const originalResolveFilename = Module._resolveFilename;
@@ -30,6 +31,7 @@ Module._resolveFilename = function (request, parent, isMain, options) {
30
31
  return originalResolveFilename.call(this, request, parent, isMain, options);
31
32
  };
32
33
  async function* moduleFederationDevServerExecutor(schema, context) {
34
+ (0, module_federation_deprecation_1.warnAngularMfDevServerExecutorDeprecation)();
33
35
  const options = (0, lib_1.normalizeOptions)(schema);
34
36
  const { projects: workspaceProjects } = (0, devkit_1.readProjectsConfigurationFromProjectGraph)(context.projectGraph);
35
37
  const project = workspaceProjects[context.projectName];
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema",
3
3
  "title": "Schema for Module Federation Dev Server",
4
+ "x-deprecated": "The `@nx/angular:module-federation-dev-server` executor is deprecated. Angular Module Federation in Nx is no longer supported; use `@angular-architects/native-federation`. Removed in Nx v24.",
4
5
  "continuous": true,
5
6
  "outputCapture": "direct-nodejs",
6
7
  "description": "Serves host [Module Federation](https://module-federation.io/) applications ([webpack](https://webpack.js.org/)-based) allowing to specify which remote applications should be served with the host.",
@@ -1 +1 @@
1
- {"version":3,"file":"module-federation-ssr-dev-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAU,MAAM,YAAY,CAAC;AAoB1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAsBvC,wBAAuB,oCAAoC,CACzD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,+FA4HzB;AAED,eAAe,oCAAoC,CAAC"}
1
+ {"version":3,"file":"module-federation-ssr-dev-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAU,MAAM,YAAY,CAAC;AAoB1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAuBvC,wBAAuB,oCAAoC,CACzD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,+FA6HzB;AAED,eAAe,oCAAoC,CAAC"}
@@ -46,6 +46,7 @@ const module_federation_1 = require("../../builders/utilities/module-federation"
46
46
  const builder_package_1 = require("../utilities/builder-package");
47
47
  const normalize_options_1 = require("./lib/normalize-options");
48
48
  const start_dev_remotes_1 = require("./lib/start-dev-remotes");
49
+ const module_federation_deprecation_1 = require("../../utils/module-federation-deprecation");
49
50
  // This is required to ensure that the webpack version used by the Module Federation is the same as the one used by the builders.
50
51
  const Module = require('module');
51
52
  const originalResolveFilename = Module._resolveFilename;
@@ -63,6 +64,7 @@ Module._resolveFilename = function (request, parent, isMain, options) {
63
64
  return originalResolveFilename.call(this, request, parent, isMain, options);
64
65
  };
65
66
  async function* moduleFederationSsrDevServerExecutor(schema, context) {
67
+ (0, module_federation_deprecation_1.warnAngularMfDevSsrExecutorDeprecation)();
66
68
  const options = (0, normalize_options_1.normalizeOptions)(schema);
67
69
  (0, builder_package_1.assertBuilderPackageIsInstalled)('@angular-devkit/build-angular');
68
70
  const { executeSSRDevServerBuilder } = await Promise.resolve().then(() => __importStar(require('@angular-devkit/build-angular')));
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema",
3
3
  "title": "Module Federation SSR Dev Server Target",
4
+ "x-deprecated": "The `@nx/angular:module-federation-ssr-dev-server` executor is deprecated. Angular Module Federation in Nx is no longer supported; use `@angular-architects/native-federation`. Removed in Nx v24.",
4
5
  "continuous": true,
5
6
  "outputCapture": "direct-nodejs",
6
7
  "description": "The module-federation-ssr-dev-server executor is reserved exclusively for use with host SSR Module Federation applications. It allows the user to specify which remote applications should be served with the host.",
@@ -20,7 +20,7 @@ function addAngularEsLintDependencies(tree, projectName) {
20
20
  };
21
21
  if ('typescriptEslintVersion' in compatVersions) {
22
22
  devDependencies['@typescript-eslint/utils'] = usesEslintFlatConfig
23
- ? internal_1.eslint9__typescriptESLintVersion
23
+ ? internal_1.typescriptESLintVersion
24
24
  : compatVersions.typescriptEslintVersion;
25
25
  }
26
26
  if ((0, buildable_project_1.isBuildableLibraryProject)(tree, projectName)) {
@@ -1 +1 @@
1
- {"version":3,"file":"federate-module.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/federate-module/federate-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAUpB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mDAiDvE;AAED,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"federate-module.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/federate-module/federate-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAUpB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGvC,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mDAkDvE;AAED,eAAe,uBAAuB,CAAC"}
@@ -6,7 +6,9 @@ const assert_supported_angular_version_1 = require("../../utils/assert-supported
6
6
  const test_runners_1 = require("../../utils/test-runners");
7
7
  const version_utils_1 = require("../utils/version-utils");
8
8
  const lib_1 = require("./lib");
9
+ const module_federation_deprecation_1 = require("../../utils/module-federation-deprecation");
9
10
  async function federateModuleGenerator(tree, schema) {
11
+ (0, module_federation_deprecation_1.warnAngularFederateModuleGeneratorDeprecation)();
10
12
  (0, assert_supported_angular_version_1.assertSupportedAngularVersion)(tree);
11
13
  if (!tree.exists(schema.path)) {
12
14
  throw new Error((0, devkit_1.stripIndents) `The "path" provided does not exist. Please verify the path is correct and pointing to a file that exists in the workspace.
@@ -1 +1 @@
1
- {"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/host/host.ts"],"names":[],"mappings":"AAIA,OAAO,EAML,IAAI,EAEL,MAAM,YAAY,CAAC;AAapB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,wBAAsB,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mDAmIpD;AAED,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/host/host.ts"],"names":[],"mappings":"AAIA,OAAO,EAML,IAAI,EAEL,MAAM,YAAY,CAAC;AAapB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGvC,wBAAsB,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mDAoIpD;AAED,eAAe,IAAI,CAAC"}
@@ -16,7 +16,9 @@ const assert_mf_utils_1 = require("../utils/assert-mf-utils");
16
16
  const validations_1 = require("../utils/validations");
17
17
  const version_utils_1 = require("../utils/version-utils");
18
18
  const lib_1 = require("./lib");
19
+ const module_federation_deprecation_1 = require("../../utils/module-federation-deprecation");
19
20
  async function host(tree, schema) {
21
+ (0, module_federation_deprecation_1.warnAngularHostGeneratorDeprecation)();
20
22
  (0, assert_supported_angular_version_1.assertSupportedAngularVersion)(tree);
21
23
  (0, validations_1.assertNotUsingTsSolutionSetup)(tree, 'host');
22
24
  (0, lib_1.validateOptions)(tree, schema);
@@ -1 +1 @@
1
- {"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/remote/remote.ts"],"names":[],"mappings":"AAIA,OAAO,EAOL,IAAI,EAEL,MAAM,YAAY,CAAC;AAYpB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,wBAAsB,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mDAsHtD;AAED,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/remote/remote.ts"],"names":[],"mappings":"AAIA,OAAO,EAOL,IAAI,EAEL,MAAM,YAAY,CAAC;AAYpB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGvC,wBAAsB,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mDAuHtD;AAED,eAAe,MAAM,CAAC"}
@@ -15,7 +15,9 @@ const assert_mf_utils_1 = require("../utils/assert-mf-utils");
15
15
  const validations_1 = require("../utils/validations");
16
16
  const version_utils_1 = require("../utils/version-utils");
17
17
  const lib_1 = require("./lib");
18
+ const module_federation_deprecation_1 = require("../../utils/module-federation-deprecation");
18
19
  async function remote(tree, schema) {
20
+ (0, module_federation_deprecation_1.warnAngularRemoteGeneratorDeprecation)();
19
21
  (0, assert_supported_angular_version_1.assertSupportedAngularVersion)(tree);
20
22
  (0, validations_1.assertNotUsingTsSolutionSetup)(tree, 'remote');
21
23
  (0, lib_1.validateOptions)(tree, schema);
@@ -1 +1 @@
1
- {"version":3,"file":"setup-mf.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/setup-mf/setup-mf.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,iBAAiB,EACtB,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AA6BpB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,wBAAsB,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,8BA0H3D;AAED,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"setup-mf.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/setup-mf/setup-mf.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,iBAAiB,EACtB,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AA6BpB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGvC,wBAAsB,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,8BA2H3D;AAED,eAAe,OAAO,CAAC"}
@@ -6,7 +6,9 @@ const assert_supported_angular_version_1 = require("../../utils/assert-supported
6
6
  const versions_1 = require("../../utils/versions");
7
7
  const version_utils_1 = require("../utils/version-utils");
8
8
  const lib_1 = require("./lib");
9
+ const module_federation_deprecation_1 = require("../../utils/module-federation-deprecation");
9
10
  async function setupMf(tree, rawOptions) {
11
+ (0, module_federation_deprecation_1.warnAngularSetupMfGeneratorDeprecation)();
10
12
  (0, assert_supported_angular_version_1.assertSupportedAngularVersion)(tree);
11
13
  const options = (0, lib_1.normalizeOptions)(tree, rawOptions);
12
14
  const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, options.appName);
@@ -0,0 +1,44 @@
1
+ #### Add Localize Polyfill to Targets
2
+
3
+ Add the '@angular/localize/init' polyfill to the 'polyfills' option of targets using esbuild-based executors.
4
+
5
+ #### Sample Code Changes
6
+
7
+ Add the `@angular/localize/init` polyfill to any of these executors:
8
+
9
+ - `@angular/build:application`
10
+ - `@angular-devkit/build-angular:application`
11
+ - `@nx/angular:application`
12
+ - `@angular-devkit/build-angular:browser-esbuild`
13
+ - `@nx/angular:browser-esbuild`
14
+
15
+ ##### Before
16
+
17
+ ```json title="apps/app1/project.json"
18
+ {
19
+ "targets": {
20
+ "build": {
21
+ "executor": "@angular/build:application",
22
+ "options": {
23
+ "localize": true
24
+ }
25
+ }
26
+ }
27
+ }
28
+ ```
29
+
30
+ ##### After
31
+
32
+ ```json title="apps/app1/project.json"
33
+ {
34
+ "targets": {
35
+ "build": {
36
+ "executor": "@angular/build:application",
37
+ "options": {
38
+ "localize": true,
39
+ "polyfills": ["@angular/localize/init"]
40
+ }
41
+ }
42
+ }
43
+ }
44
+ ```