@nx/angular 23.0.0-beta.21 → 23.0.0-beta.23

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 (51) hide show
  1. package/generators.json +6 -5
  2. package/migrations.json +62 -31
  3. package/package.json +8 -8
  4. package/src/generators/federate-module/federate-module.d.ts.map +1 -1
  5. package/src/generators/federate-module/federate-module.js +0 -2
  6. package/src/generators/host/host.d.ts.map +1 -1
  7. package/src/generators/host/host.js +0 -2
  8. package/src/generators/init/init.js +1 -1
  9. package/src/generators/remote/remote.d.ts.map +1 -1
  10. package/src/generators/remote/remote.js +0 -2
  11. package/src/generators/setup-mf/setup-mf.d.ts.map +1 -1
  12. package/src/generators/setup-mf/setup-mf.js +0 -2
  13. package/src/migrations/update-20-2-0/add-localize-polyfill-to-targets.md +44 -0
  14. package/src/migrations/update-20-2-0/disable-angular-eslint-prefer-standalone.md +475 -0
  15. package/src/migrations/update-20-2-0/migrate-mf-imports-to-new-package.md +19 -0
  16. package/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.md +25 -0
  17. package/src/migrations/update-20-2-0/remove-angular-eslint-rules.md +37 -0
  18. package/src/migrations/update-20-2-0/remove-tailwind-config-from-ng-packagr-executors.md +69 -0
  19. package/src/migrations/update-20-2-0/update-angular-cli.md +49 -0
  20. package/src/migrations/update-20-2-0/update-angular-ssr-imports-to-use-node-entry-point.md +27 -0
  21. package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.md +23 -0
  22. package/src/migrations/update-20-4-0/update-angular-cli.md +49 -0
  23. package/src/migrations/update-20-5-0/update-angular-cli.md +23 -0
  24. package/src/migrations/update-21-0-0/change-data-persistence-operators-imports-to-ngrx-router-store-data-persistence.md +113 -0
  25. package/src/migrations/update-21-0-0/set-continuous-option.md +90 -0
  26. package/src/migrations/update-21-2-0/migrate-provide-server-rendering-import.md +56 -0
  27. package/src/migrations/update-21-2-0/replace-provide-server-routing.md +107 -0
  28. package/src/migrations/update-21-2-0/set-generator-defaults-for-previous-style-guide.md +164 -0
  29. package/src/migrations/update-21-2-0/update-angular-cli.md +23 -0
  30. package/src/migrations/update-21-2-0/update-module-resolution.md +53 -0
  31. package/src/migrations/update-21-3-0/update-angular-cli.md +23 -0
  32. package/src/migrations/update-21-5-0/remove-default-karma-configuration-files.md +122 -0
  33. package/src/migrations/update-21-5-0/set-tsconfig-option.md +114 -0
  34. package/src/migrations/update-21-5-0/update-angular-cli.md +23 -0
  35. package/src/migrations/update-21-6-1/update-angular-cli.md +23 -0
  36. package/src/migrations/update-22-3-0/set-isolated-modules.md +76 -0
  37. package/src/migrations/update-22-3-0/update-jest-preset-angular-setup.md +21 -0
  38. package/src/migrations/update-22-3-0/update-module-resolution.md +81 -0
  39. package/src/migrations/update-22-3-0/update-ssr-webpack-config.md +71 -0
  40. package/src/migrations/update-22-3-0/update-typescript-lib.md +103 -0
  41. package/src/migrations/update-22-3-0/update-unit-test-runner-option.md +33 -0
  42. package/src/migrations/update-23-0-0/migrate-ngrx-generator-defaults.md +46 -0
  43. package/src/migrations/update-23-0-0/migrate-with-mf-import-to-new-package.md +27 -0
  44. package/src/plugins/plugin.d.ts +6 -2
  45. package/src/plugins/plugin.d.ts.map +1 -1
  46. package/src/plugins/plugin.js +6 -2
  47. package/src/utils/module-federation-deprecation.d.ts +0 -8
  48. package/src/utils/module-federation-deprecation.d.ts.map +1 -1
  49. package/src/utils/module-federation-deprecation.js +1 -21
  50. package/src/utils/versions.d.ts +1 -1
  51. package/src/utils/versions.js +1 -1
package/generators.json CHANGED
@@ -54,7 +54,7 @@
54
54
  "schema": "./src/generators/federate-module/schema.json",
55
55
  "x-type": "application",
56
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
+ "x-deprecated": "Angular Module Federation in Nx is no longer supported. Use `@angular-architects/native-federation` instead. See https://nx.dev/docs/technologies/module-federation/consumer-and-provider for the v23 migration guide. Removed in Nx v24."
58
58
  },
59
59
  "init": {
60
60
  "factory": "./src/generators/init/init",
@@ -81,12 +81,13 @@
81
81
  "x-type": "application",
82
82
  "description": "Generate a Remote Angular Module Federation Application.",
83
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."
84
+ "x-deprecated": "Angular Module Federation in Nx is no longer supported. Use `@angular-architects/native-federation` instead. See https://nx.dev/docs/technologies/module-federation/consumer-and-provider for the v23 migration guide. Removed in Nx v24."
85
85
  },
86
86
  "convert-to-with-mf": {
87
87
  "factory": "./src/generators/convert-to-with-mf/convert-to-with-mf",
88
88
  "schema": "./src/generators/convert-to-with-mf/schema.json",
89
- "description": "Converts an old micro frontend configuration to use the new withModuleFederation helper. It will run successfully if the following conditions are met: \n - Is either a host or remote application \n - Shared npm package configurations have not been modified \n - Name used to identify the Micro Frontend application matches the project name \n\n{% callout type=\"warning\" title=\"Overrides\" %}This generator will overwrite your webpack config. If you have additional custom configuration in your config file, it will be lost!{% /callout %}"
89
+ "description": "Converts an old micro frontend configuration to use the new withModuleFederation helper. It will run successfully if the following conditions are met: \n - Is either a host or remote application \n - Shared npm package configurations have not been modified \n - Name used to identify the Micro Frontend application matches the project name \n\n{% callout type=\"warning\" title=\"Overrides\" %}This generator will overwrite your webpack config. If you have additional custom configuration in your config file, it will be lost!{% /callout %}",
90
+ "x-deprecated": "Angular Module Federation in Nx is no longer supported. Use `@angular-architects/native-federation` instead. See https://nx.dev/docs/technologies/module-federation/consumer-and-provider for the v23 migration guide. Removed in Nx v24."
90
91
  },
91
92
  "host": {
92
93
  "factory": "./src/generators/host/host",
@@ -94,7 +95,7 @@
94
95
  "x-type": "application",
95
96
  "description": "Generate a Host Angular Module Federation Application.",
96
97
  "aliases": ["consumer"],
97
- "x-deprecated": "Angular Module Federation in Nx is no longer supported. Use `@angular-architects/native-federation` instead. Removed in Nx v24."
98
+ "x-deprecated": "Angular Module Federation in Nx is no longer supported. Use `@angular-architects/native-federation` instead. See https://nx.dev/docs/technologies/module-federation/consumer-and-provider for the v23 migration guide. Removed in Nx v24."
98
99
  },
99
100
  "ng-add": {
100
101
  "factory": "./src/generators/ng-add/ng-add",
@@ -142,7 +143,7 @@
142
143
  "factory": "./src/generators/setup-mf/setup-mf",
143
144
  "schema": "./src/generators/setup-mf/schema.json",
144
145
  "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."
146
+ "x-deprecated": "Angular Module Federation in Nx is no longer supported. Use `@angular-architects/native-federation` instead. See https://nx.dev/docs/technologies/module-federation/consumer-and-provider for the v23 migration guide. Removed in Nx v24."
146
147
  },
147
148
  "setup-ssr": {
148
149
  "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.21",
3
+ "version": "23.0.0-beta.23",
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.21",
65
- "@nx/eslint": "23.0.0-beta.21",
66
- "@nx/js": "23.0.0-beta.21",
67
- "@nx/module-federation": "23.0.0-beta.21",
68
- "@nx/rspack": "23.0.0-beta.21",
69
- "@nx/web": "23.0.0-beta.21",
70
- "@nx/webpack": "23.0.0-beta.21",
64
+ "@nx/devkit": "23.0.0-beta.23",
65
+ "@nx/eslint": "23.0.0-beta.23",
66
+ "@nx/js": "23.0.0-beta.23",
67
+ "@nx/module-federation": "23.0.0-beta.23",
68
+ "@nx/rspack": "23.0.0-beta.23",
69
+ "@nx/web": "23.0.0-beta.23",
70
+ "@nx/webpack": "23.0.0-beta.23",
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":"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"}
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"}
@@ -6,9 +6,7 @@ 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");
10
9
  async function federateModuleGenerator(tree, schema) {
11
- (0, module_federation_deprecation_1.warnAngularFederateModuleGeneratorDeprecation)();
12
10
  (0, assert_supported_angular_version_1.assertSupportedAngularVersion)(tree);
13
11
  if (!tree.exists(schema.path)) {
14
12
  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;AAGvC,wBAAsB,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mDAoIpD;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;AAEvC,wBAAsB,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mDAmIpD;AAED,eAAe,IAAI,CAAC"}
@@ -16,9 +16,7 @@ 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");
20
19
  async function host(tree, schema) {
21
- (0, module_federation_deprecation_1.warnAngularHostGeneratorDeprecation)();
22
20
  (0, assert_supported_angular_version_1.assertSupportedAngularVersion)(tree);
23
21
  (0, validations_1.assertNotUsingTsSolutionSetup)(tree, 'host');
24
22
  (0, lib_1.validateOptions)(tree, schema);
@@ -18,7 +18,7 @@ async function angularInitGenerator(tree, options) {
18
18
  // by most folks we've talked to.
19
19
  options.addPlugin ??= process.env.NX_RUNNING_NX_IMPORT === 'true';
20
20
  if (options.addPlugin) {
21
- await (0, internal_1.addPlugin)(tree, await (0, devkit_1.createProjectGraphAsync)(), '@nx/angular/plugin', plugin_1.createNodesV2, {
21
+ await (0, internal_1.addPlugin)(tree, await (0, devkit_1.createProjectGraphAsync)(), '@nx/angular/plugin', plugin_1.createNodes, {
22
22
  targetNamePrefix: ['', 'angular:', 'angular-'],
23
23
  }, options.updatePackageScripts);
24
24
  }
@@ -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;AAGvC,wBAAsB,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mDAuHtD;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;AAEvC,wBAAsB,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,mDAsHtD;AAED,eAAe,MAAM,CAAC"}
@@ -15,9 +15,7 @@ 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");
19
18
  async function remote(tree, schema) {
20
- (0, module_federation_deprecation_1.warnAngularRemoteGeneratorDeprecation)();
21
19
  (0, assert_supported_angular_version_1.assertSupportedAngularVersion)(tree);
22
20
  (0, validations_1.assertNotUsingTsSolutionSetup)(tree, 'remote');
23
21
  (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;AAGvC,wBAAsB,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,8BA2H3D;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;AAEvC,wBAAsB,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,8BA0H3D;AAED,eAAe,OAAO,CAAC"}
@@ -6,9 +6,7 @@ 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");
10
9
  async function setupMf(tree, rawOptions) {
11
- (0, module_federation_deprecation_1.warnAngularSetupMfGeneratorDeprecation)();
12
10
  (0, assert_supported_angular_version_1.assertSupportedAngularVersion)(tree);
13
11
  const options = (0, lib_1.normalizeOptions)(tree, rawOptions);
14
12
  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
+ ```