@nx/angular 24.0.0-pr.37405.acdaf31 → 24.0.0-rc.0

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 (280) hide show
  1. package/dist/executors.d.ts +0 -2
  2. package/dist/executors.js +0 -2
  3. package/dist/fesm2022/nx-angular.mjs +0 -4
  4. package/dist/generators.d.ts +0 -8
  5. package/dist/generators.js +0 -8
  6. package/dist/ready-check.d.ts +1 -0
  7. package/dist/ready-check.js +8 -0
  8. package/dist/src/executors/application/schema.json +1 -2
  9. package/dist/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/write-bundles.transform.js +9 -1
  10. package/dist/src/executors/unit-test/schema.json +6 -1
  11. package/dist/src/executors/unit-test/unit-test.impl.js +5 -0
  12. package/dist/src/executors/utilities/ng-packagr/stylesheet-processor.js +35 -10
  13. package/dist/src/generators/add-linting/add-linting.js +1 -3
  14. package/dist/src/generators/add-linting/schema.d.ts +0 -5
  15. package/dist/src/generators/add-linting/schema.json +0 -6
  16. package/dist/src/generators/application/application.js +1 -2
  17. package/dist/src/generators/application/lib/add-e2e.js +3 -8
  18. package/dist/src/generators/application/lib/add-linting.js +1 -3
  19. package/dist/src/generators/application/lib/add-serve-static-target.js +2 -0
  20. package/dist/src/generators/application/lib/add-unit-test-runner.js +0 -2
  21. package/dist/src/generators/application/lib/create-project.js +2 -0
  22. package/dist/src/generators/application/lib/normalize-options.d.ts +1 -1
  23. package/dist/src/generators/application/lib/normalize-options.js +1 -8
  24. package/dist/src/generators/application/schema.d.ts +0 -5
  25. package/dist/src/generators/application/schema.json +1 -7
  26. package/dist/src/generators/convert-to-rspack/convert-to-rspack.js +9 -4
  27. package/dist/src/generators/convert-to-rspack/lib/get-custom-webpack-config.d.ts +1 -2
  28. package/dist/src/generators/convert-to-rspack/lib/get-custom-webpack-config.js +0 -63
  29. package/dist/src/generators/convert-to-rspack/lib/validate-no-module-federation.d.ts +2 -0
  30. package/dist/src/generators/convert-to-rspack/lib/validate-no-module-federation.js +32 -0
  31. package/dist/src/generators/cypress-component-configuration/cypress-component-configuration.js +3 -15
  32. package/dist/src/generators/init/init.js +1 -2
  33. package/dist/src/generators/init/schema.d.ts +0 -2
  34. package/dist/src/generators/library/lib/normalized-schema.d.ts +0 -4
  35. package/dist/src/generators/library/library.js +3 -4
  36. package/dist/src/generators/library/schema.d.ts +0 -5
  37. package/dist/src/generators/library/schema.json +0 -6
  38. package/dist/src/generators/ng-add/migrators/builders/angular-eslint-lint.migrator.js +12 -1
  39. package/dist/src/generators/ng-add/migrators/projects/app.migrator.d.ts +1 -0
  40. package/dist/src/generators/ng-add/migrators/projects/app.migrator.js +22 -0
  41. package/dist/src/generators/ng-add/migrators/projects/e2e.migrator.js +12 -16
  42. package/dist/src/generators/ng-add/utilities/workspace.js +1 -3
  43. package/dist/src/generators/setup-ssr/files/v20+/application-builder/server/__serverFileName__ +15 -1
  44. package/dist/src/generators/setup-ssr/lib/add-dependencies.js +4 -0
  45. package/dist/src/generators/setup-ssr/lib/update-project-config.js +1 -0
  46. package/dist/src/generators/storybook-configuration/lib/generate-storybook-configuration.js +0 -2
  47. package/dist/src/generators/utils/add-jest.d.ts +0 -1
  48. package/dist/src/generators/utils/add-jest.js +0 -2
  49. package/dist/src/generators/utils/add-vitest.d.ts +0 -1
  50. package/dist/src/generators/utils/add-vitest.js +0 -1
  51. package/dist/src/generators/utils/testing.d.ts +4 -4
  52. package/dist/src/generators/utils/testing.js +19 -12
  53. package/dist/src/migrations/update-23-1-0/add-angular-build.js +7 -3
  54. package/dist/src/migrations/update-23-1-0/add-angular-build.md +1 -1
  55. package/dist/src/migrations/update-23-1-0/add-trust-proxy-headers.js +9 -2
  56. package/dist/src/migrations/update-24-0-0/add-ready-when-signal.d.ts +4 -0
  57. package/dist/src/migrations/update-24-0-0/add-ready-when-signal.js +12 -0
  58. package/dist/src/migrations/update-24-0-0/add-ready-when-signal.md +59 -0
  59. package/dist/src/migrations/update-24-0-0/remove-scam-generator-defaults.d.ts +2 -0
  60. package/dist/src/migrations/update-24-0-0/remove-scam-generator-defaults.js +85 -0
  61. package/dist/src/migrations/update-24-0-0/remove-scam-generator-defaults.md +48 -0
  62. package/dist/src/migrations/update-24-0-0/upgrade-to-angular-22-2.d.ts +5 -0
  63. package/dist/src/migrations/update-24-0-0/upgrade-to-angular-22-2.js +332 -0
  64. package/dist/src/migrations/update-24-0-0/upgrade-to-angular-22-2.md +46 -0
  65. package/dist/src/plugins/plugin.js +3 -5
  66. package/dist/src/plugins/utils/dev-server-ready-check.d.ts +17 -0
  67. package/dist/src/plugins/utils/dev-server-ready-check.js +213 -0
  68. package/dist/src/utils/assert-cypress-component-testing-support.js +10 -0
  69. package/dist/src/utils/backward-compatible-versions.js +0 -8
  70. package/dist/src/utils/versions.d.ts +4 -8
  71. package/dist/src/utils/versions.js +5 -9
  72. package/dist/types/nx-angular.d.ts +1 -3
  73. package/executors.json +0 -10
  74. package/generators.json +0 -59
  75. package/migrations.json +109 -0
  76. package/package.json +13 -21
  77. package/dist/.npmignore +0 -2
  78. package/dist/fesm2022/nx-angular-mf.mjs +0 -193
  79. package/dist/fesm2022/nx-angular-mf.mjs.map +0 -1
  80. package/dist/fesm2022/nx-angular.mjs.map +0 -1
  81. package/dist/mf/package.json +0 -4
  82. package/dist/src/builders/utilities/module-federation.d.ts +0 -11
  83. package/dist/src/builders/utilities/module-federation.js +0 -109
  84. package/dist/src/executors/module-federation-dev-server/lib/index.d.ts +0 -2
  85. package/dist/src/executors/module-federation-dev-server/lib/index.js +0 -5
  86. package/dist/src/executors/module-federation-dev-server/lib/normalize-options.d.ts +0 -2
  87. package/dist/src/executors/module-federation-dev-server/lib/normalize-options.js +0 -22
  88. package/dist/src/executors/module-federation-dev-server/lib/start-dev-remotes.d.ts +0 -5
  89. package/dist/src/executors/module-federation-dev-server/lib/start-dev-remotes.js +0 -29
  90. package/dist/src/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts +0 -4
  91. package/dist/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +0 -111
  92. package/dist/src/executors/module-federation-dev-server/schema.d.ts +0 -38
  93. package/dist/src/executors/module-federation-dev-server/schema.json +0 -171
  94. package/dist/src/executors/module-federation-ssr-dev-server/lib/normalize-options.d.ts +0 -2
  95. package/dist/src/executors/module-federation-ssr-dev-server/lib/normalize-options.js +0 -20
  96. package/dist/src/executors/module-federation-ssr-dev-server/lib/start-dev-remotes.d.ts +0 -5
  97. package/dist/src/executors/module-federation-ssr-dev-server/lib/start-dev-remotes.js +0 -30
  98. package/dist/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.d.ts +0 -4
  99. package/dist/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js +0 -110
  100. package/dist/src/executors/module-federation-ssr-dev-server/schema.d.ts +0 -17
  101. package/dist/src/executors/module-federation-ssr-dev-server/schema.json +0 -124
  102. package/dist/src/generators/convert-to-with-mf/convert-to-with-mf.d.ts +0 -4
  103. package/dist/src/generators/convert-to-with-mf/convert-to-with-mf.js +0 -36
  104. package/dist/src/generators/convert-to-with-mf/convert-to-with-mf.test-data.d.ts +0 -5
  105. package/dist/src/generators/convert-to-with-mf/convert-to-with-mf.test-data.js +0 -448
  106. package/dist/src/generators/convert-to-with-mf/lib/check-name-matches.d.ts +0 -2
  107. package/dist/src/generators/convert-to-with-mf/lib/check-name-matches.js +0 -22
  108. package/dist/src/generators/convert-to-with-mf/lib/check-shared-npm-packages.d.ts +0 -2
  109. package/dist/src/generators/convert-to-with-mf/lib/check-shared-npm-packages.js +0 -45
  110. package/dist/src/generators/convert-to-with-mf/lib/get-webpack-config-path.d.ts +0 -2
  111. package/dist/src/generators/convert-to-with-mf/lib/get-webpack-config-path.js +0 -18
  112. package/dist/src/generators/convert-to-with-mf/lib/index.d.ts +0 -6
  113. package/dist/src/generators/convert-to-with-mf/lib/index.js +0 -9
  114. package/dist/src/generators/convert-to-with-mf/lib/is-host-remote-config.d.ts +0 -5
  115. package/dist/src/generators/convert-to-with-mf/lib/is-host-remote-config.js +0 -57
  116. package/dist/src/generators/convert-to-with-mf/lib/parse-ast-webpack-config.d.ts +0 -2
  117. package/dist/src/generators/convert-to-with-mf/lib/parse-ast-webpack-config.js +0 -13
  118. package/dist/src/generators/convert-to-with-mf/lib/write-new-webpack-config.d.ts +0 -3
  119. package/dist/src/generators/convert-to-with-mf/lib/write-new-webpack-config.js +0 -50
  120. package/dist/src/generators/convert-to-with-mf/schema.d.ts +0 -4
  121. package/dist/src/generators/convert-to-with-mf/schema.json +0 -33
  122. package/dist/src/generators/federate-module/federate-module.d.ts +0 -4
  123. package/dist/src/generators/federate-module/federate-module.js +0 -49
  124. package/dist/src/generators/federate-module/lib/add-file-to-remote-tsconfig.d.ts +0 -2
  125. package/dist/src/generators/federate-module/lib/add-file-to-remote-tsconfig.js +0 -14
  126. package/dist/src/generators/federate-module/lib/add-path-to-exposes.d.ts +0 -8
  127. package/dist/src/generators/federate-module/lib/add-path-to-exposes.js +0 -77
  128. package/dist/src/generators/federate-module/lib/add-path-to-ts-config.d.ts +0 -8
  129. package/dist/src/generators/federate-module/lib/add-path-to-ts-config.js +0 -11
  130. package/dist/src/generators/federate-module/lib/add-remote.d.ts +0 -7
  131. package/dist/src/generators/federate-module/lib/add-remote.js +0 -42
  132. package/dist/src/generators/federate-module/lib/check-remote-exists.d.ts +0 -2
  133. package/dist/src/generators/federate-module/lib/check-remote-exists.js +0 -21
  134. package/dist/src/generators/federate-module/lib/index.d.ts +0 -4
  135. package/dist/src/generators/federate-module/lib/index.js +0 -7
  136. package/dist/src/generators/federate-module/schema.d.ts +0 -13
  137. package/dist/src/generators/federate-module/schema.json +0 -83
  138. package/dist/src/generators/host/files/common/src/main.server.ts__tmpl__ +0 -78
  139. package/dist/src/generators/host/files/js/webpack.server.config.js__tmpl__ +0 -8
  140. package/dist/src/generators/host/files/ts/webpack.server.config.ts__tmpl__ +0 -9
  141. package/dist/src/generators/host/host.d.ts +0 -4
  142. package/dist/src/generators/host/host.js +0 -133
  143. package/dist/src/generators/host/lib/index.d.ts +0 -2
  144. package/dist/src/generators/host/lib/index.js +0 -5
  145. package/dist/src/generators/host/lib/update-ssr-setup.d.ts +0 -3
  146. package/dist/src/generators/host/lib/update-ssr-setup.js +0 -54
  147. package/dist/src/generators/host/lib/validate-options.d.ts +0 -3
  148. package/dist/src/generators/host/lib/validate-options.js +0 -12
  149. package/dist/src/generators/host/schema.d.ts +0 -36
  150. package/dist/src/generators/host/schema.json +0 -195
  151. package/dist/src/generators/remote/files/base/webpack.server.config.js__tmpl__ +0 -9
  152. package/dist/src/generators/remote/files/base-ts/webpack.server.config.ts__tmpl__ +0 -9
  153. package/dist/src/generators/remote/files/common/src/main.server.ts__tmpl__ +0 -84
  154. package/dist/src/generators/remote/files/standalone/src/bootstrap.server.ts__tmpl__ +0 -12
  155. package/dist/src/generators/remote/lib/find-next-available-port.d.ts +0 -2
  156. package/dist/src/generators/remote/lib/find-next-available-port.js +0 -16
  157. package/dist/src/generators/remote/lib/index.d.ts +0 -3
  158. package/dist/src/generators/remote/lib/index.js +0 -6
  159. package/dist/src/generators/remote/lib/update-ssr-setup.d.ts +0 -9
  160. package/dist/src/generators/remote/lib/update-ssr-setup.js +0 -82
  161. package/dist/src/generators/remote/lib/validate-options.d.ts +0 -3
  162. package/dist/src/generators/remote/lib/validate-options.js +0 -12
  163. package/dist/src/generators/remote/remote.d.ts +0 -4
  164. package/dist/src/generators/remote/remote.js +0 -114
  165. package/dist/src/generators/remote/schema.d.ts +0 -34
  166. package/dist/src/generators/remote/schema.json +0 -184
  167. package/dist/src/generators/scam/lib/convert-component-to-scam.d.ts +0 -3
  168. package/dist/src/generators/scam/lib/convert-component-to-scam.js +0 -41
  169. package/dist/src/generators/scam/lib/index.d.ts +0 -2
  170. package/dist/src/generators/scam/lib/index.js +0 -5
  171. package/dist/src/generators/scam/lib/normalize-options.d.ts +0 -3
  172. package/dist/src/generators/scam/lib/normalize-options.js +0 -34
  173. package/dist/src/generators/scam/scam.d.ts +0 -7
  174. package/dist/src/generators/scam/scam.js +0 -28
  175. package/dist/src/generators/scam/schema.d.ts +0 -30
  176. package/dist/src/generators/scam/schema.json +0 -126
  177. package/dist/src/generators/scam-directive/lib/convert-directive-to-scam.d.ts +0 -3
  178. package/dist/src/generators/scam-directive/lib/convert-directive-to-scam.js +0 -41
  179. package/dist/src/generators/scam-directive/lib/index.d.ts +0 -2
  180. package/dist/src/generators/scam-directive/lib/index.js +0 -5
  181. package/dist/src/generators/scam-directive/lib/normalize-options.d.ts +0 -3
  182. package/dist/src/generators/scam-directive/lib/normalize-options.js +0 -34
  183. package/dist/src/generators/scam-directive/scam-directive.d.ts +0 -7
  184. package/dist/src/generators/scam-directive/scam-directive.js +0 -28
  185. package/dist/src/generators/scam-directive/schema.d.ts +0 -23
  186. package/dist/src/generators/scam-directive/schema.json +0 -89
  187. package/dist/src/generators/scam-pipe/lib/convert-pipe-to-scam.d.ts +0 -3
  188. package/dist/src/generators/scam-pipe/lib/convert-pipe-to-scam.js +0 -41
  189. package/dist/src/generators/scam-pipe/lib/index.d.ts +0 -2
  190. package/dist/src/generators/scam-pipe/lib/index.js +0 -5
  191. package/dist/src/generators/scam-pipe/lib/normalize-options.d.ts +0 -3
  192. package/dist/src/generators/scam-pipe/lib/normalize-options.js +0 -36
  193. package/dist/src/generators/scam-pipe/scam-pipe.d.ts +0 -7
  194. package/dist/src/generators/scam-pipe/scam-pipe.js +0 -28
  195. package/dist/src/generators/scam-pipe/schema.d.ts +0 -21
  196. package/dist/src/generators/scam-pipe/schema.json +0 -67
  197. package/dist/src/generators/scam-to-standalone/lib/convert-scam-to-standalone.d.ts +0 -3
  198. package/dist/src/generators/scam-to-standalone/lib/convert-scam-to-standalone.js +0 -35
  199. package/dist/src/generators/scam-to-standalone/lib/get-component-data-from-ast.d.ts +0 -6
  200. package/dist/src/generators/scam-to-standalone/lib/get-component-data-from-ast.js +0 -15
  201. package/dist/src/generators/scam-to-standalone/lib/get-module-metadata-from-ast.d.ts +0 -9
  202. package/dist/src/generators/scam-to-standalone/lib/get-module-metadata-from-ast.js +0 -51
  203. package/dist/src/generators/scam-to-standalone/lib/get-target-project.d.ts +0 -2
  204. package/dist/src/generators/scam-to-standalone/lib/get-target-project.js +0 -13
  205. package/dist/src/generators/scam-to-standalone/lib/index.d.ts +0 -8
  206. package/dist/src/generators/scam-to-standalone/lib/index.js +0 -11
  207. package/dist/src/generators/scam-to-standalone/lib/replace-module-usages-with-component.d.ts +0 -2
  208. package/dist/src/generators/scam-to-standalone/lib/replace-module-usages-with-component.js +0 -20
  209. package/dist/src/generators/scam-to-standalone/lib/selector-exists-in-ast.d.ts +0 -2
  210. package/dist/src/generators/scam-to-standalone/lib/selector-exists-in-ast.js +0 -7
  211. package/dist/src/generators/scam-to-standalone/lib/verify-is-inline-scam.d.ts +0 -2
  212. package/dist/src/generators/scam-to-standalone/lib/verify-is-inline-scam.js +0 -10
  213. package/dist/src/generators/scam-to-standalone/lib/verify-module-is-scam.d.ts +0 -1
  214. package/dist/src/generators/scam-to-standalone/lib/verify-module-is-scam.js +0 -11
  215. package/dist/src/generators/scam-to-standalone/scam-to-standalone.d.ts +0 -7
  216. package/dist/src/generators/scam-to-standalone/scam-to-standalone.js +0 -31
  217. package/dist/src/generators/scam-to-standalone/schema.d.ts +0 -5
  218. package/dist/src/generators/scam-to-standalone/schema.json +0 -32
  219. package/dist/src/generators/setup-mf/files/entry-module-files/__entryModuleFileName__.ts__tmpl__ +0 -18
  220. package/dist/src/generators/setup-mf/files/entry-module-files/entry.routes.ts__tmpl__ +0 -4
  221. package/dist/src/generators/setup-mf/files/entry-module-files/entry__componentFileSuffix__.ts__tmpl__ +0 -10
  222. package/dist/src/generators/setup-mf/files/host-files/__appFileName__.spec.ts__tmpl__ +0 -42
  223. package/dist/src/generators/setup-mf/files/standalone-entry-component-files/entry.routes.ts__tmpl__ +0 -4
  224. package/dist/src/generators/setup-mf/files/standalone-entry-component-files/entry__componentFileSuffix__.ts__tmpl__ +0 -11
  225. package/dist/src/generators/setup-mf/files/ts-webpack/module-federation.config.ts__tmpl__ +0 -27
  226. package/dist/src/generators/setup-mf/files/ts-webpack/tsconfig.lint.json__tmpl__ +0 -12
  227. package/dist/src/generators/setup-mf/files/ts-webpack/webpack.config.ts__tmpl__ +0 -9
  228. package/dist/src/generators/setup-mf/files/ts-webpack/webpack.prod.config.ts__tmpl__ +0 -21
  229. package/dist/src/generators/setup-mf/files/webpack/module-federation.config.js__tmpl__ +0 -23
  230. package/dist/src/generators/setup-mf/files/webpack/webpack.config.js__tmpl__ +0 -9
  231. package/dist/src/generators/setup-mf/files/webpack/webpack.prod.config.js__tmpl__ +0 -21
  232. package/dist/src/generators/setup-mf/lib/add-cypress-workaround.d.ts +0 -3
  233. package/dist/src/generators/setup-mf/lib/add-cypress-workaround.js +0 -52
  234. package/dist/src/generators/setup-mf/lib/add-remote-entry.d.ts +0 -3
  235. package/dist/src/generators/setup-mf/lib/add-remote-entry.js +0 -27
  236. package/dist/src/generators/setup-mf/lib/add-remote-to-host.d.ts +0 -9
  237. package/dist/src/generators/setup-mf/lib/add-remote-to-host.js +0 -127
  238. package/dist/src/generators/setup-mf/lib/change-build-target.d.ts +0 -3
  239. package/dist/src/generators/setup-mf/lib/change-build-target.js +0 -24
  240. package/dist/src/generators/setup-mf/lib/fix-bootstrap.d.ts +0 -3
  241. package/dist/src/generators/setup-mf/lib/fix-bootstrap.js +0 -40
  242. package/dist/src/generators/setup-mf/lib/generate-config.d.ts +0 -6
  243. package/dist/src/generators/setup-mf/lib/generate-config.js +0 -32
  244. package/dist/src/generators/setup-mf/lib/get-remotes-with-ports.d.ts +0 -6
  245. package/dist/src/generators/setup-mf/lib/get-remotes-with-ports.js +0 -20
  246. package/dist/src/generators/setup-mf/lib/index.d.ts +0 -15
  247. package/dist/src/generators/setup-mf/lib/index.js +0 -18
  248. package/dist/src/generators/setup-mf/lib/move-angular-plugin-to-dependencies.d.ts +0 -2
  249. package/dist/src/generators/setup-mf/lib/move-angular-plugin-to-dependencies.js +0 -15
  250. package/dist/src/generators/setup-mf/lib/normalize-options.d.ts +0 -3
  251. package/dist/src/generators/setup-mf/lib/normalize-options.js +0 -26
  252. package/dist/src/generators/setup-mf/lib/remove-dead-code-from-remote.d.ts +0 -3
  253. package/dist/src/generators/setup-mf/lib/remove-dead-code-from-remote.js +0 -61
  254. package/dist/src/generators/setup-mf/lib/setup-host-if-dynamic.d.ts +0 -3
  255. package/dist/src/generators/setup-mf/lib/setup-host-if-dynamic.js +0 -20
  256. package/dist/src/generators/setup-mf/lib/setup-serve-target.d.ts +0 -3
  257. package/dist/src/generators/setup-mf/lib/setup-serve-target.js +0 -39
  258. package/dist/src/generators/setup-mf/lib/setup-tspath-for-remote.d.ts +0 -3
  259. package/dist/src/generators/setup-mf/lib/setup-tspath-for-remote.js +0 -15
  260. package/dist/src/generators/setup-mf/lib/update-host-app-routes.d.ts +0 -3
  261. package/dist/src/generators/setup-mf/lib/update-host-app-routes.js +0 -39
  262. package/dist/src/generators/setup-mf/lib/update-tsconfig.d.ts +0 -3
  263. package/dist/src/generators/setup-mf/lib/update-tsconfig.js +0 -18
  264. package/dist/src/generators/setup-mf/schema.d.ts +0 -35
  265. package/dist/src/generators/setup-mf/schema.json +0 -99
  266. package/dist/src/generators/setup-mf/setup-mf.d.ts +0 -4
  267. package/dist/src/generators/setup-mf/setup-mf.js +0 -90
  268. package/dist/src/generators/utils/add-mf-env-to-inputs.d.ts +0 -2
  269. package/dist/src/generators/utils/add-mf-env-to-inputs.js +0 -36
  270. package/dist/src/generators/utils/assert-mf-utils.d.ts +0 -1
  271. package/dist/src/generators/utils/assert-mf-utils.js +0 -8
  272. package/dist/src/generators/utils/export-scam.d.ts +0 -11
  273. package/dist/src/generators/utils/export-scam.js +0 -35
  274. package/dist/src/utils/get-mf-projects.d.ts +0 -4
  275. package/dist/src/utils/get-mf-projects.js +0 -31
  276. package/dist/src/utils/module-federation-deprecation.d.ts +0 -4
  277. package/dist/src/utils/module-federation-deprecation.js +0 -29
  278. package/dist/types/nx-angular-mf.d.ts +0 -72
  279. package/dist/types/nx-angular-mf.d.ts.map +0 -1
  280. package/dist/types/nx-angular.d.ts.map +0 -1
@@ -0,0 +1,213 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getDevServerAddress = getDevServerAddress;
4
+ exports.waitForAngularDevServer = waitForAngularDevServer;
5
+ const devkit_1 = require("@nx/devkit");
6
+ const internal_1 = require("@nx/devkit/internal");
7
+ const node_path_1 = require("node:path");
8
+ const semver_1 = require("semver");
9
+ // The `ng serve` and `ng run` options the check reads, by each of their names
10
+ const OPTION_NAMES = new Map([
11
+ ['port', 'port'],
12
+ ['host', 'host'],
13
+ ['configuration', 'configuration'],
14
+ ['c', 'configuration'],
15
+ ['project', 'project'],
16
+ ]);
17
+ const NEGATIVE_NUMBER = /^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/;
18
+ // The `ng serve` options typed as a boolean or an array by the CLI, from the
19
+ // dev-server builders' schemas. `inspect` is a boolean only for ssr-dev-server.
20
+ const BOOLEAN_OPTIONS = new Set([
21
+ 'disable-host-check',
22
+ 'force-esbuild',
23
+ 'hmr',
24
+ 'live-reload',
25
+ 'o',
26
+ 'open',
27
+ 'prebundle',
28
+ 'progress',
29
+ 'ssl',
30
+ 'verbose',
31
+ 'watch',
32
+ ]);
33
+ const ARRAY_OPTIONS = new Set(['allowed-hosts', 'define', 'headers']);
34
+ /**
35
+ * How many of `rest` yargs-parser gives an option without `=`: a boolean takes
36
+ * only `true` or `false`, and an array every value until the next option, as
37
+ * it also does after an `=` value.
38
+ */
39
+ function countValues(name, rest, isValue) {
40
+ if (BOOLEAN_OPTIONS.has(name)) {
41
+ return /^(true|false)$/.test(rest[0] ?? '') ? 1 : 0;
42
+ }
43
+ if (!ARRAY_OPTIONS.has(name))
44
+ return isValue(rest[0]) ? 1 : 0;
45
+ const end = rest.findIndex((arg) => !isLongValue(arg));
46
+ return end === -1 ? rest.length : end;
47
+ }
48
+ function isLongValue(arg) {
49
+ return (arg !== undefined && (!arg.startsWith('-') || NEGATIVE_NUMBER.test(arg)));
50
+ }
51
+ /**
52
+ * The options the Angular CLI parses from `args` that the check reads, and the
53
+ * positional args. Ports the yargs-parser steps that set them, and keeps the
54
+ * last value of a repeated option, as the CLI's middleware does.
55
+ */
56
+ function parseNgArgs(args) {
57
+ const flags = {};
58
+ const positionals = [];
59
+ // Without a value, the string options are empty and the port is unset
60
+ const set = (name, value) => {
61
+ const key = OPTION_NAMES.get(name);
62
+ if (key)
63
+ flags[key] = value ?? (key === 'port' ? undefined : '');
64
+ };
65
+ for (let i = 0; i < args.length && args[i] !== '--'; i++) {
66
+ const arg = args[i];
67
+ const next = args[i + 1];
68
+ let match;
69
+ if ((match = arg.match(/^--([^=]+)=([\s\S]*)$/))) {
70
+ set(match[1], match[2]);
71
+ if (ARRAY_OPTIONS.has(match[1])) {
72
+ i += countValues(match[1], args.slice(i + 1), isLongValue);
73
+ }
74
+ }
75
+ else if ((match = arg.match(/^--no-(.+)$/))) {
76
+ set(match[1], false);
77
+ }
78
+ else if ((match = arg.match(/^--(.+)$/))) {
79
+ const count = countValues(match[1], args.slice(i + 1), isLongValue);
80
+ set(match[1], count ? next : undefined);
81
+ i += count;
82
+ }
83
+ else if (/^-[^-]/.test(arg) && !NEGATIVE_NUMBER.test(arg)) {
84
+ // In `-abc`, a letter before `=`, a number or a symbol takes the rest
85
+ // as its value, and the last letter takes the next argument
86
+ const letters = arg.slice(1, -1);
87
+ let broken = false;
88
+ for (let j = 0; j < letters.length; j++) {
89
+ const rest = arg.slice(j + 2);
90
+ if (letters[j + 1] === '=') {
91
+ set(letters[j], arg.slice(j + 3));
92
+ }
93
+ else if (rest === '-') {
94
+ set(letters[j], rest);
95
+ continue;
96
+ }
97
+ else if ((/[A-Za-z]/.test(letters[j]) &&
98
+ /^-?\d+(\.\d*)?(e-?\d+)?$/.test(rest)) ||
99
+ /\W/.test(letters[j + 1] ?? '')) {
100
+ set(letters[j], rest);
101
+ }
102
+ else {
103
+ set(letters[j]);
104
+ continue;
105
+ }
106
+ broken = true;
107
+ break;
108
+ }
109
+ const name = arg.at(-1);
110
+ if (broken || name === '-')
111
+ continue;
112
+ const count = countValues(name, args.slice(i + 1), (value) => value !== undefined &&
113
+ (!/^(-|--)[^-]/.test(value) || NEGATIVE_NUMBER.test(value)));
114
+ set(name, count ? next : undefined);
115
+ i += count;
116
+ }
117
+ else {
118
+ positionals.push(arg);
119
+ }
120
+ }
121
+ return { flags, positionals };
122
+ }
123
+ function getTargets(project) {
124
+ return project.architect ?? project.targets;
125
+ }
126
+ /**
127
+ * The project `ng serve` serves when no project is given: the only one with
128
+ * the target, else the one whose root holds the cwd, if no other shares it.
129
+ */
130
+ function getDefaultProject(projects, target, cwd) {
131
+ const names = Object.keys(projects).filter((name) => getTargets(projects[name])?.[target]);
132
+ if (names.length < 2)
133
+ return names[0];
134
+ const containing = Object.entries(projects)
135
+ .filter(([, { root }]) => {
136
+ const path = (0, node_path_1.relative)((0, node_path_1.resolve)(cwd, root), cwd);
137
+ return !path.startsWith('..') && !(0, node_path_1.isAbsolute)(path);
138
+ })
139
+ .sort(([, a], [, b]) => b.root.length - a.root.length);
140
+ const roots = new Set(containing.map(([, { root }]) => root));
141
+ const project = roots.size === containing.length ? containing[0]?.[0] : undefined;
142
+ return names.includes(project) ? project : undefined;
143
+ }
144
+ const DEFAULT_PORT = 4200;
145
+ // The first @angular/build whose dev server reads the PORT env variable
146
+ const PORT_ENV_VERSION = '22.0.0-next.1';
147
+ /**
148
+ * Where the dev server of the task's `ng serve` or `ng run` command listens,
149
+ * resolved the way the Angular CLI and the target's builder resolve it, or
150
+ * null when nothing can be probed.
151
+ */
152
+ function getDevServerAddress(options, workspace, root) {
153
+ if (typeof options.command !== 'string')
154
+ return null;
155
+ const [ng, command, ...commandArgs] = options.command.trim().split(/\s+/);
156
+ if (ng !== 'ng' || (command !== 'serve' && command !== 'run'))
157
+ return null;
158
+ const { flags, positionals } = parseNgArgs([
159
+ ...commandArgs,
160
+ ...(0, internal_1.getForwardedArgs)(options),
161
+ ]);
162
+ const projects = workspace.projects ?? {};
163
+ const [project = '', target = '', configuration] = command === 'run'
164
+ ? (commandArgs[0] ?? '').split(':')
165
+ : [
166
+ // The CLI takes the `[project]` positional over `--project`
167
+ positionals[0] ||
168
+ flags.project ||
169
+ getDefaultProject(projects, 'serve', root),
170
+ 'serve',
171
+ flags.configuration || undefined,
172
+ ];
173
+ const definition = Object.hasOwn(projects, project)
174
+ ? getTargets(projects[project])?.[target]
175
+ : undefined;
176
+ if (!definition)
177
+ return null;
178
+ let merged = { ...definition.options };
179
+ const configurations = configuration || definition.defaultConfiguration;
180
+ for (const name of configurations ? configurations.split(',') : []) {
181
+ merged = { ...merged, ...definition.configurations?.[name.trim()] };
182
+ }
183
+ const port = flags.port ?? merged.port ?? DEFAULT_PORT;
184
+ const host = flags.host ?? merged.host;
185
+ switch (definition.builder) {
186
+ case '@angular/build:dev-server': {
187
+ const version = (0, internal_1.getInstalledPackageVersion)('@angular/build', [root]);
188
+ const envPort = Number(process.env.PORT);
189
+ const readsEnv = !!version && (0, semver_1.gte)(version, PORT_ENV_VERSION) && !!process.env.PORT;
190
+ return (0, internal_1.getServerAddress)(readsEnv && !isNaN(envPort) ? envPort : port, host);
191
+ }
192
+ case '@angular-devkit/build-angular:dev-server':
193
+ return (0, internal_1.getServerAddress)(port, host);
194
+ case '@angular-devkit/build-angular:ssr-dev-server':
195
+ case '@nguniversal/builders:ssr-dev-server':
196
+ // browser-sync listens on every interface, whatever the host
197
+ return (0, internal_1.getServerAddress)(port, undefined);
198
+ default:
199
+ return null;
200
+ }
201
+ }
202
+ /**
203
+ * The readyWhen of the inferred dev server targets. Runs in the env and with
204
+ * the options of the task, resolves the target its `ng` command runs from the
205
+ * workspace config, and waits for the dev server's port.
206
+ */
207
+ async function waitForAngularDevServer(workspaceConfigPath) {
208
+ await (0, internal_1.runReadyCheck)(async ({ options, root }) => {
209
+ const workspace = (0, devkit_1.readJsonFile)((0, node_path_1.resolve)(root, workspaceConfigPath));
210
+ const address = getDevServerAddress(options, workspace, root);
211
+ return address ? [address] : null;
212
+ });
213
+ }
@@ -12,6 +12,16 @@ const minCypressVersion = '15.20.1';
12
12
  */
13
13
  function assertCypressComponentTestingSupport(tree) {
14
14
  const angularVersion = (0, internal_1.getResolvedPackageVersion)(tree, '@angular/core');
15
+ // Cypress loads webpack-dev-server from build-angular, so its version decides
16
+ // this check. Angular core stands in when build-angular isn't declared.
17
+ const buildAngularVersion = (0, internal_1.getResolvedPackageVersion)(tree, '@angular-devkit/build-angular') ??
18
+ angularVersion;
19
+ if (buildAngularVersion &&
20
+ (0, semver_1.gte)((0, semver_1.coerce)(buildAngularVersion)?.version ?? buildAngularVersion, '22.2.0')) {
21
+ throw new Error(`Cypress Component Testing doesn't support Angular 22.2 and higher yet. ` +
22
+ `Cypress rejects the webpack-dev-server 6 that @angular-devkit/build-angular 22.2 and higher installs. ` +
23
+ `See https://github.com/cypress-io/cypress/issues/34259.`);
24
+ }
15
25
  if (!angularVersion) {
16
26
  return;
17
27
  }
@@ -14,13 +14,9 @@ exports.backwardCompatibleVersions = {
14
14
  rxjsVersion: '~7.8.0',
15
15
  zoneJsVersion: '~0.16.0',
16
16
  tsLibVersion: '^2.3.0',
17
- corsVersion: '~2.8.5',
18
- typesCorsVersion: '~2.8.5',
19
17
  expressVersion: '^4.21.2',
20
18
  typesExpressVersion: '^4.17.21',
21
19
  browserSyncVersion: '^3.0.0',
22
- moduleFederationNodeVersion: '^2.7.21',
23
- moduleFederationEnhancedVersion: '^2.1.0',
24
20
  angularEslintVersion: '^21.2.0',
25
21
  typescriptEslintVersion: '^7.16.0',
26
22
  postcssVersion: '^8.4.5',
@@ -45,13 +41,9 @@ exports.backwardCompatibleVersions = {
45
41
  rxjsVersion: '~7.8.0',
46
42
  zoneJsVersion: '~0.15.0',
47
43
  tsLibVersion: '^2.3.0',
48
- corsVersion: '~2.8.5',
49
- typesCorsVersion: '~2.8.5',
50
44
  expressVersion: '^4.21.2',
51
45
  typesExpressVersion: '^4.17.21',
52
46
  browserSyncVersion: '^3.0.0',
53
- moduleFederationNodeVersion: '^2.7.21',
54
- moduleFederationEnhancedVersion: '^0.21.2',
55
47
  angularEslintVersion: '^20.3.0',
56
48
  typescriptEslintVersion: '^8.40.0',
57
49
  postcssVersion: '^8.4.5',
@@ -1,20 +1,16 @@
1
1
  export declare const nxVersion: any;
2
- export declare const angularVersion = "~22.1.0";
3
- export declare const angularDevkitVersion = "~22.1.0";
4
- export declare const ngPackagrVersion = "~22.1.0";
2
+ export declare const angularVersion = "~22.2.0";
3
+ export declare const angularDevkitVersion = "~22.2.0";
4
+ export declare const ngPackagrVersion = "~22.2.0";
5
5
  export declare const ngrxVersion = "^22.0.0";
6
6
  export declare const rxjsVersion = "~7.8.0";
7
7
  export declare const zoneJsVersion = "~0.16.2";
8
8
  export declare const tsLibVersion = "^2.3.0";
9
- export declare const corsVersion = "~2.8.5";
10
- export declare const typesCorsVersion = "~2.8.5";
11
9
  export declare const expressVersion = "^4.21.2";
12
10
  export declare const typesExpressVersion = "^4.17.21";
13
11
  export declare const browserSyncVersion = "^3.0.0";
14
- export declare const moduleFederationNodeVersion = "^2.7.21";
15
- export declare const moduleFederationEnhancedVersion = "^2.1.0";
16
12
  export declare const webpackMergeVersion = "^5.8.0";
17
- export declare const angularEslintVersion = "^22.1.0";
13
+ export declare const angularEslintVersion = "^22.5.0";
18
14
  export declare const typescriptEslintVersion = "^8.40.0";
19
15
  export declare const postcssVersion = "^8.4.5";
20
16
  export declare const postcssUrlVersion = "~10.1.3";
@@ -1,24 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.jsoncEslintParserVersion = exports.oxcProjectRuntimeVersion = exports.jsdomVersion = exports.vitestVersion = exports.jasmineMarblesVersion = exports.typesNodeVersion = exports.jestPresetAngularVersion = exports.lessVersion = exports.tsNodeVersion = exports.autoprefixerVersion = exports.postcssUrlVersion = exports.postcssVersion = exports.typescriptEslintVersion = exports.angularEslintVersion = exports.webpackMergeVersion = exports.moduleFederationEnhancedVersion = exports.moduleFederationNodeVersion = exports.browserSyncVersion = exports.typesExpressVersion = exports.expressVersion = exports.typesCorsVersion = exports.corsVersion = exports.tsLibVersion = exports.zoneJsVersion = exports.rxjsVersion = exports.ngrxVersion = exports.ngPackagrVersion = exports.angularDevkitVersion = exports.angularVersion = exports.nxVersion = void 0;
3
+ exports.jsoncEslintParserVersion = exports.oxcProjectRuntimeVersion = exports.jsdomVersion = exports.vitestVersion = exports.jasmineMarblesVersion = exports.typesNodeVersion = exports.jestPresetAngularVersion = exports.lessVersion = exports.tsNodeVersion = exports.autoprefixerVersion = exports.postcssUrlVersion = exports.postcssVersion = exports.typescriptEslintVersion = exports.angularEslintVersion = exports.webpackMergeVersion = exports.browserSyncVersion = exports.typesExpressVersion = exports.expressVersion = exports.tsLibVersion = exports.zoneJsVersion = exports.rxjsVersion = exports.ngrxVersion = exports.ngPackagrVersion = exports.angularDevkitVersion = exports.angularVersion = exports.nxVersion = void 0;
4
4
  const path_1 = require("path");
5
5
  exports.nxVersion = require((0, path_1.join)('@nx/angular', 'package.json')).version;
6
- exports.angularVersion = '~22.1.0';
7
- exports.angularDevkitVersion = '~22.1.0';
8
- exports.ngPackagrVersion = '~22.1.0';
6
+ exports.angularVersion = '~22.2.0';
7
+ exports.angularDevkitVersion = '~22.2.0';
8
+ exports.ngPackagrVersion = '~22.2.0';
9
9
  exports.ngrxVersion = '^22.0.0';
10
10
  exports.rxjsVersion = '~7.8.0';
11
11
  exports.zoneJsVersion = '~0.16.2';
12
12
  exports.tsLibVersion = '^2.3.0';
13
- exports.corsVersion = '~2.8.5';
14
- exports.typesCorsVersion = '~2.8.5';
15
13
  exports.expressVersion = '^4.21.2';
16
14
  exports.typesExpressVersion = '^4.17.21';
17
15
  exports.browserSyncVersion = '^3.0.0';
18
- exports.moduleFederationNodeVersion = '^2.7.21';
19
- exports.moduleFederationEnhancedVersion = '^2.1.0';
20
16
  exports.webpackMergeVersion = '^5.8.0';
21
- exports.angularEslintVersion = '^22.1.0';
17
+ exports.angularEslintVersion = '^22.5.0';
22
18
  exports.typescriptEslintVersion = '^8.40.0';
23
19
  exports.postcssVersion = '^8.4.5';
24
20
  exports.postcssUrlVersion = '~10.1.3';
@@ -1,3 +1 @@
1
-
2
- export { };
3
- //# sourceMappingURL=nx-angular.d.ts.map
1
+ export {}
package/executors.json CHANGED
@@ -20,16 +20,6 @@
20
20
  "schema": "./dist/src/executors/browser-esbuild/schema.json",
21
21
  "description": "Builds an Angular application using [esbuild](https://esbuild.github.io/)."
22
22
  },
23
- "module-federation-dev-server": {
24
- "implementation": "./dist/src/executors/module-federation-dev-server/module-federation-dev-server.impl",
25
- "schema": "./dist/src/executors/module-federation-dev-server/schema.json",
26
- "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."
27
- },
28
- "module-federation-dev-ssr": {
29
- "implementation": "./dist/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl",
30
- "schema": "./dist/src/executors/module-federation-ssr-dev-server/schema.json",
31
- "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."
32
- },
33
23
  "application": {
34
24
  "implementation": "./dist/src/executors/application/application.impl",
35
25
  "schema": "./dist/src/executors/application/schema.json",
package/generators.json CHANGED
@@ -49,13 +49,6 @@
49
49
  "aliases": ["d"],
50
50
  "description": "Generate an Angular directive."
51
51
  },
52
- "federate-module": {
53
- "factory": "./dist/src/generators/federate-module/federate-module",
54
- "schema": "./dist/src/generators/federate-module/schema.json",
55
- "x-type": "application",
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. See https://nx.dev/docs/technologies/module-federation/consumer-and-provider for the v23 migration guide. Removed in Nx v24."
58
- },
59
52
  "init": {
60
53
  "factory": "./dist/src/generators/init/init",
61
54
  "schema": "./dist/src/generators/init/schema.json",
@@ -75,28 +68,6 @@
75
68
  "aliases": ["secondary-entry-point", "entry-point"],
76
69
  "description": "Creates a secondary entry point for an Angular publishable library."
77
70
  },
78
- "remote": {
79
- "factory": "./dist/src/generators/remote/remote",
80
- "schema": "./dist/src/generators/remote/schema.json",
81
- "x-type": "application",
82
- "description": "Generate a Remote Angular Module Federation Application.",
83
- "aliases": ["producer"],
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
- },
86
- "convert-to-with-mf": {
87
- "factory": "./dist/src/generators/convert-to-with-mf/convert-to-with-mf",
88
- "schema": "./dist/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 %}",
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."
91
- },
92
- "host": {
93
- "factory": "./dist/src/generators/host/host",
94
- "schema": "./dist/src/generators/host/schema.json",
95
- "x-type": "application",
96
- "description": "Generate a Host Angular Module Federation Application.",
97
- "aliases": ["consumer"],
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."
99
- },
100
71
  "ng-add": {
101
72
  "factory": "./dist/src/generators/ng-add/ng-add",
102
73
  "schema": "./dist/src/generators/ng-add/schema.json",
@@ -119,36 +90,6 @@
119
90
  "description": "Generate an Angular Pipe",
120
91
  "aliases": ["p"]
121
92
  },
122
- "scam-to-standalone": {
123
- "factory": "./dist/src/generators/scam-to-standalone/scam-to-standalone",
124
- "schema": "./dist/src/generators/scam-to-standalone/schema.json",
125
- "description": "Convert an existing Single Component Angular Module (SCAM) to a Standalone Component.",
126
- "x-deprecated": "SCAMs are superseded by Angular standalone components. Convert any remaining SCAMs before upgrading. It will be removed in Nx v24."
127
- },
128
- "scam": {
129
- "factory": "./dist/src/generators/scam/scam",
130
- "schema": "./dist/src/generators/scam/schema.json",
131
- "description": "Generate a component with an accompanying Single Component Angular Module (SCAM).",
132
- "x-deprecated": "SCAMs are superseded by Angular standalone components. Use the `@nx/angular:component` generator instead. It will be removed in Nx v24."
133
- },
134
- "scam-directive": {
135
- "factory": "./dist/src/generators/scam-directive/scam-directive",
136
- "schema": "./dist/src/generators/scam-directive/schema.json",
137
- "description": "Generate a directive with an accompanying Single Component Angular Module (SCAM).",
138
- "x-deprecated": "SCAMs are superseded by Angular standalone components. Use the `@nx/angular:directive` generator instead. It will be removed in Nx v24."
139
- },
140
- "scam-pipe": {
141
- "factory": "./dist/src/generators/scam-pipe/scam-pipe",
142
- "schema": "./dist/src/generators/scam-pipe/schema.json",
143
- "description": "Generate a pipe with an accompanying Single Component Angular Module (SCAM).",
144
- "x-deprecated": "SCAMs are superseded by Angular standalone components. Use the `@nx/angular:pipe` generator instead. It will be removed in Nx v24."
145
- },
146
- "setup-mf": {
147
- "factory": "./dist/src/generators/setup-mf/setup-mf",
148
- "schema": "./dist/src/generators/setup-mf/schema.json",
149
- "description": "Generate a Module Federation configuration for a given Angular application.",
150
- "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."
151
- },
152
93
  "setup-ssr": {
153
94
  "factory": "./dist/src/generators/setup-ssr/setup-ssr",
154
95
  "schema": "./dist/src/generators/setup-ssr/schema.json",
package/migrations.json CHANGED
@@ -372,6 +372,28 @@
372
372
  "description": "Add optional webpack, Module Federation, and Rspack packages when existing targets require them.",
373
373
  "factory": "./dist/src/migrations/update-23-1-0/add-optional-webpack-packages",
374
374
  "documentation": "./dist/src/migrations/update-23-1-0/add-optional-webpack-packages.md"
375
+ },
376
+ "update-24-0-0-upgrade-to-angular-22-2": {
377
+ "version": "24.0.0-beta.4",
378
+ "requires": {
379
+ "@angular/core": ">=22.1.0 <22.2.0"
380
+ },
381
+ "optionalUpdate": true,
382
+ "description": "Update the Angular packages to 22.2 unless the workspace uses Cypress component testing or webpack Module Federation in an Angular project, which break with the webpack-dev-server and webpack versions Angular 22.2 installs.",
383
+ "factory": "./dist/src/migrations/update-24-0-0/upgrade-to-angular-22-2",
384
+ "documentation": "./dist/src/migrations/update-24-0-0/upgrade-to-angular-22-2.md"
385
+ },
386
+ "update-24-0-0-add-ready-when-signal": {
387
+ "version": "24.0.0-beta.5",
388
+ "description": "Sets `readyWhen: { signal: true }` on `@angular/build:dev-server`, `@angular-devkit/build-angular:dev-server`, `@angular-devkit/build-angular:ssr-dev-server` and `@nx/angular:dev-server` targets that get no `readyWhen` from their own configuration or `targetDefaults`, so tasks that depend on them with `waitFor: 'ready'` start once the server is listening.",
389
+ "implementation": "./dist/src/migrations/update-24-0-0/add-ready-when-signal",
390
+ "documentation": "./dist/src/migrations/update-24-0-0/add-ready-when-signal.md"
391
+ },
392
+ "update-24-0-0-remove-scam-generator-defaults": {
393
+ "version": "24.0.0-beta.5",
394
+ "description": "Removes generator defaults for the removed `@nx/angular:scam`, `@nx/angular:scam-directive`, `@nx/angular:scam-pipe`, and `@nx/angular:scam-to-standalone` generators from `nx.json` and project configurations.",
395
+ "implementation": "./dist/src/migrations/update-24-0-0/remove-scam-generator-defaults",
396
+ "documentation": "./dist/src/migrations/update-24-0-0/remove-scam-generator-defaults.md"
375
397
  }
376
398
  },
377
399
  "packageJsonUpdates": {
@@ -2323,6 +2345,93 @@
2323
2345
  "alwaysAddToPackageJson": false
2324
2346
  }
2325
2347
  }
2348
+ },
2349
+ "24.0.0-angular-eslint": {
2350
+ "version": "24.0.0-beta.4",
2351
+ "requires": {
2352
+ "@angular/core": ">= 22.0.0 < 23.0.0",
2353
+ "typescript-eslint": "^8.0.0",
2354
+ "eslint": "^9.0.0 || ^10.0.0"
2355
+ },
2356
+ "packages": {
2357
+ "angular-eslint": {
2358
+ "version": "^22.5.0",
2359
+ "alwaysAddToPackageJson": false
2360
+ },
2361
+ "@angular-eslint/eslint-plugin": {
2362
+ "version": "^22.5.0",
2363
+ "alwaysAddToPackageJson": false
2364
+ },
2365
+ "@angular-eslint/eslint-plugin-template": {
2366
+ "version": "^22.5.0",
2367
+ "alwaysAddToPackageJson": false
2368
+ },
2369
+ "@angular-eslint/template-parser": {
2370
+ "version": "^22.5.0",
2371
+ "alwaysAddToPackageJson": false
2372
+ },
2373
+ "@angular-eslint/utils": {
2374
+ "version": "^22.5.0",
2375
+ "alwaysAddToPackageJson": false
2376
+ },
2377
+ "@angular-eslint/schematics": {
2378
+ "version": "^22.5.0",
2379
+ "alwaysAddToPackageJson": false
2380
+ },
2381
+ "@angular-eslint/test-utils": {
2382
+ "version": "^22.5.0",
2383
+ "alwaysAddToPackageJson": false
2384
+ },
2385
+ "@angular-eslint/builder": {
2386
+ "version": "^22.5.0",
2387
+ "alwaysAddToPackageJson": false
2388
+ },
2389
+ "@angular-eslint/bundled-angular-compiler": {
2390
+ "version": "^22.5.0",
2391
+ "alwaysAddToPackageJson": false
2392
+ }
2393
+ }
2394
+ },
2395
+ "24.0.0-@angular-eslint": {
2396
+ "version": "24.0.0-beta.4",
2397
+ "requires": {
2398
+ "@angular/core": ">= 22.0.0 < 23.0.0",
2399
+ "eslint": "^9.0.0 || ^10.0.0"
2400
+ },
2401
+ "packages": {
2402
+ "@angular-eslint/eslint-plugin": {
2403
+ "version": "^22.5.0",
2404
+ "alwaysAddToPackageJson": false
2405
+ },
2406
+ "@angular-eslint/eslint-plugin-template": {
2407
+ "version": "^22.5.0",
2408
+ "alwaysAddToPackageJson": false
2409
+ },
2410
+ "@angular-eslint/template-parser": {
2411
+ "version": "^22.5.0",
2412
+ "alwaysAddToPackageJson": false
2413
+ },
2414
+ "@angular-eslint/utils": {
2415
+ "version": "^22.5.0",
2416
+ "alwaysAddToPackageJson": false
2417
+ },
2418
+ "@angular-eslint/schematics": {
2419
+ "version": "^22.5.0",
2420
+ "alwaysAddToPackageJson": false
2421
+ },
2422
+ "@angular-eslint/test-utils": {
2423
+ "version": "^22.5.0",
2424
+ "alwaysAddToPackageJson": false
2425
+ },
2426
+ "@angular-eslint/builder": {
2427
+ "version": "^22.5.0",
2428
+ "alwaysAddToPackageJson": false
2429
+ },
2430
+ "@angular-eslint/bundled-angular-compiler": {
2431
+ "version": "^22.5.0",
2432
+ "alwaysAddToPackageJson": false
2433
+ }
2434
+ }
2326
2435
  }
2327
2436
  }
2328
2437
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "24.0.0-pr.37405.acdaf31",
3
+ "version": "24.0.0-rc.0",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
- "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
+ "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- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "https://github.com/nrwl/nx.git",
@@ -32,10 +32,6 @@
32
32
  "types": "./dist/types/nx-angular.d.ts",
33
33
  "default": "./dist/fesm2022/nx-angular.mjs"
34
34
  },
35
- "./mf": {
36
- "types": "./dist/types/nx-angular-mf.d.ts",
37
- "default": "./dist/fesm2022/nx-angular-mf.mjs"
38
- },
39
35
  "./package.json": {
40
36
  "default": "./package.json"
41
37
  },
@@ -45,6 +41,7 @@
45
41
  "./generators": "./dist/generators.js",
46
42
  "./executors": "./dist/executors.js",
47
43
  "./plugin": "./dist/plugin.js",
44
+ "./ready-check": "./dist/ready-check.js",
48
45
  "./tailwind": "./dist/tailwind.js",
49
46
  "./plugins/component-testing": "./dist/plugins/component-testing.js",
50
47
  "./internal": "./dist/internal.js",
@@ -71,10 +68,9 @@
71
68
  "supportsOptionalMigrations": true
72
69
  },
73
70
  "dependencies": {
74
- "@nx/devkit": "24.0.0-pr.37405.acdaf31",
75
- "@nx/eslint": "24.0.0-pr.37405.acdaf31",
76
- "@nx/js": "24.0.0-pr.37405.acdaf31",
77
- "@nx/web": "24.0.0-pr.37405.acdaf31",
71
+ "@nx/devkit": "24.0.0-rc.0",
72
+ "@nx/eslint": "24.0.0-rc.0",
73
+ "@nx/js": "24.0.0-rc.0",
78
74
  "@phenomnomnominal/tsquery": "~6.2.0",
79
75
  "@typescript-eslint/type-utils": "^8.0.0",
80
76
  "jsonc-parser": "^3.2.0",
@@ -85,21 +81,20 @@
85
81
  "tslib": "^2.3.0"
86
82
  },
87
83
  "devDependencies": {
88
- "@nx/storybook": "24.0.0-pr.37405.acdaf31",
89
- "@nx/vitest": "24.0.0-pr.37405.acdaf31",
90
- "nx": "24.0.0-pr.37405.acdaf31"
84
+ "@nx/storybook": "24.0.0-rc.0",
85
+ "@nx/vitest": "24.0.0-rc.0",
86
+ "nx": "24.0.0-rc.0"
91
87
  },
92
88
  "peerDependencies": {
93
89
  "@angular/build": ">= 20.0.0 < 23.0.0",
94
90
  "@angular-devkit/build-angular": ">= 20.0.0 < 23.0.0",
95
91
  "@angular-devkit/core": ">= 20.0.0 < 23.0.0",
96
92
  "@angular-devkit/schematics": ">= 20.0.0 < 23.0.0",
97
- "@nx/cypress": "24.0.0-pr.37405.acdaf31",
98
- "@nx/playwright": "24.0.0-pr.37405.acdaf31",
93
+ "@nx/cypress": "24.0.0-rc.0",
94
+ "@nx/playwright": "24.0.0-rc.0",
99
95
  "@schematics/angular": ">= 20.0.0 < 23.0.0",
100
- "@nx/module-federation": "24.0.0-pr.37405.acdaf31",
101
- "@nx/rspack": "24.0.0-pr.37405.acdaf31",
102
- "@nx/webpack": "24.0.0-pr.37405.acdaf31",
96
+ "@nx/rspack": "24.0.0-rc.0",
97
+ "@nx/webpack": "24.0.0-rc.0",
103
98
  "ng-packagr": ">= 20.0.0 < 23.0.0",
104
99
  "rxjs": "^6.5.3 || ^7.5.0",
105
100
  "webpack-merge": "^5.8.0"
@@ -117,9 +112,6 @@
117
112
  "@nx/playwright": {
118
113
  "optional": true
119
114
  },
120
- "@nx/module-federation": {
121
- "optional": true
122
- },
123
115
  "@nx/rspack": {
124
116
  "optional": true
125
117
  },
package/dist/.npmignore DELETED
@@ -1,2 +0,0 @@
1
- # Nested package.json's are only needed for development.
2
- mf/package.json