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

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.
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/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.21",
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.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",
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,13 @@
1
+ export declare const ANGULAR_HOST_GENERATOR_DEPRECATION_MESSAGE = "The `@nx/angular:host` generator is deprecated and will be removed in Nx v24. Angular Module Federation in Nx is no longer supported. Use `@angular-architects/native-federation` (https://www.npmjs.com/package/@angular-architects/native-federation) for the supported Angular path. See https://nx.dev/docs/technologies/module-federation/consumer-and-provider for the v23 migration guide.";
2
+ export declare const ANGULAR_REMOTE_GENERATOR_DEPRECATION_MESSAGE = "The `@nx/angular:remote` generator is deprecated and will be removed in Nx v24. Angular Module Federation in Nx is no longer supported. Use `@angular-architects/native-federation` (https://www.npmjs.com/package/@angular-architects/native-federation) for the supported Angular path. See https://nx.dev/docs/technologies/module-federation/consumer-and-provider for the v23 migration guide.";
3
+ export declare const ANGULAR_SETUP_MF_GENERATOR_DEPRECATION_MESSAGE = "The `@nx/angular:setup-mf` generator is deprecated and will be removed in Nx v24. Angular Module Federation in Nx is no longer supported. Use `@angular-architects/native-federation` (https://www.npmjs.com/package/@angular-architects/native-federation) for the supported Angular path. See https://nx.dev/docs/technologies/module-federation/consumer-and-provider for the v23 migration guide.";
4
+ export declare const ANGULAR_FEDERATE_MODULE_GENERATOR_DEPRECATION_MESSAGE = "The `@nx/angular:federate-module` generator is deprecated and will be removed in Nx v24. Angular Module Federation in Nx is no longer supported. Use `@angular-architects/native-federation` (https://www.npmjs.com/package/@angular-architects/native-federation) for the supported Angular path. See https://nx.dev/docs/technologies/module-federation/consumer-and-provider for the v23 migration guide.";
5
+ export declare const ANGULAR_MF_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = "The `@nx/angular:module-federation-dev-server` executor is deprecated and will be removed in Nx v24. Angular Module Federation in Nx is no longer supported. Use `@angular-architects/native-federation` (https://www.npmjs.com/package/@angular-architects/native-federation) for the supported Angular path. See https://nx.dev/docs/technologies/module-federation/consumer-and-provider for the v23 migration guide.";
6
+ export declare const ANGULAR_MF_DEV_SSR_EXECUTOR_DEPRECATION_MESSAGE = "The `@nx/angular:module-federation-dev-ssr` executor is deprecated and will be removed in Nx v24. Angular Module Federation in Nx is no longer supported. Use `@angular-architects/native-federation` (https://www.npmjs.com/package/@angular-architects/native-federation) for the supported Angular path. See https://nx.dev/docs/technologies/module-federation/consumer-and-provider for the v23 migration guide.";
7
+ export declare function warnAngularHostGeneratorDeprecation(): void;
8
+ export declare function warnAngularRemoteGeneratorDeprecation(): void;
9
+ export declare function warnAngularSetupMfGeneratorDeprecation(): void;
10
+ export declare function warnAngularFederateModuleGeneratorDeprecation(): void;
11
+ export declare function warnAngularMfDevServerExecutorDeprecation(): void;
12
+ export declare function warnAngularMfDevSsrExecutorDeprecation(): void;
13
+ //# sourceMappingURL=module-federation-deprecation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-federation-deprecation.d.ts","sourceRoot":"","sources":["../../../../../packages/angular/src/utils/module-federation-deprecation.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,0CAA0C,sYAA0G,CAAC;AAElK,eAAO,MAAM,4CAA4C,wYAA4G,CAAC;AAEtK,eAAO,MAAM,8CAA8C,0YAA8G,CAAC;AAE1K,eAAO,MAAM,qDAAqD,iZAAqH,CAAC;AAExL,eAAO,MAAM,kDAAkD,6ZAAiI,CAAC;AAEjM,eAAO,MAAM,+CAA+C,0ZAA8H,CAAC;AAE3L,wBAAgB,mCAAmC,IAAI,IAAI,CAE1D;AAED,wBAAgB,qCAAqC,IAAI,IAAI,CAE5D;AAED,wBAAgB,sCAAsC,IAAI,IAAI,CAE7D;AAED,wBAAgB,6CAA6C,IAAI,IAAI,CAEpE;AAUD,wBAAgB,yCAAyC,IAAI,IAAI,CAKhE;AAED,wBAAgB,sCAAsC,IAAI,IAAI,CAK7D"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ANGULAR_MF_DEV_SSR_EXECUTOR_DEPRECATION_MESSAGE = exports.ANGULAR_MF_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = exports.ANGULAR_FEDERATE_MODULE_GENERATOR_DEPRECATION_MESSAGE = exports.ANGULAR_SETUP_MF_GENERATOR_DEPRECATION_MESSAGE = exports.ANGULAR_REMOTE_GENERATOR_DEPRECATION_MESSAGE = exports.ANGULAR_HOST_GENERATOR_DEPRECATION_MESSAGE = void 0;
4
+ exports.warnAngularHostGeneratorDeprecation = warnAngularHostGeneratorDeprecation;
5
+ exports.warnAngularRemoteGeneratorDeprecation = warnAngularRemoteGeneratorDeprecation;
6
+ exports.warnAngularSetupMfGeneratorDeprecation = warnAngularSetupMfGeneratorDeprecation;
7
+ exports.warnAngularFederateModuleGeneratorDeprecation = warnAngularFederateModuleGeneratorDeprecation;
8
+ exports.warnAngularMfDevServerExecutorDeprecation = warnAngularMfDevServerExecutorDeprecation;
9
+ exports.warnAngularMfDevSsrExecutorDeprecation = warnAngularMfDevSsrExecutorDeprecation;
10
+ const devkit_1 = require("@nx/devkit");
11
+ // TODO(v24): Remove all Angular Module Federation surfaces from @nx/angular.
12
+ // Angular Native Federation (@angular-architects/native-federation) is the
13
+ // supported Angular MF path going forward; the new @nx/module-federation
14
+ // generators are React-only.
15
+ const MIGRATION_URL = 'https://nx.dev/docs/technologies/module-federation/consumer-and-provider';
16
+ const ANGULAR_NATIVE_FED_URL = 'https://www.npmjs.com/package/@angular-architects/native-federation';
17
+ const ANGULAR_MF_TRAILER = `Angular Module Federation in Nx is no longer supported. Use \`@angular-architects/native-federation\` (${ANGULAR_NATIVE_FED_URL}) for the supported Angular path. See ${MIGRATION_URL} for the v23 migration guide.`;
18
+ exports.ANGULAR_HOST_GENERATOR_DEPRECATION_MESSAGE = `The \`@nx/angular:host\` generator is deprecated and will be removed in Nx v24. ${ANGULAR_MF_TRAILER}`;
19
+ exports.ANGULAR_REMOTE_GENERATOR_DEPRECATION_MESSAGE = `The \`@nx/angular:remote\` generator is deprecated and will be removed in Nx v24. ${ANGULAR_MF_TRAILER}`;
20
+ exports.ANGULAR_SETUP_MF_GENERATOR_DEPRECATION_MESSAGE = `The \`@nx/angular:setup-mf\` generator is deprecated and will be removed in Nx v24. ${ANGULAR_MF_TRAILER}`;
21
+ exports.ANGULAR_FEDERATE_MODULE_GENERATOR_DEPRECATION_MESSAGE = `The \`@nx/angular:federate-module\` generator is deprecated and will be removed in Nx v24. ${ANGULAR_MF_TRAILER}`;
22
+ exports.ANGULAR_MF_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = `The \`@nx/angular:module-federation-dev-server\` executor is deprecated and will be removed in Nx v24. ${ANGULAR_MF_TRAILER}`;
23
+ exports.ANGULAR_MF_DEV_SSR_EXECUTOR_DEPRECATION_MESSAGE = `The \`@nx/angular:module-federation-dev-ssr\` executor is deprecated and will be removed in Nx v24. ${ANGULAR_MF_TRAILER}`;
24
+ function warnAngularHostGeneratorDeprecation() {
25
+ devkit_1.logger.warn(exports.ANGULAR_HOST_GENERATOR_DEPRECATION_MESSAGE);
26
+ }
27
+ function warnAngularRemoteGeneratorDeprecation() {
28
+ devkit_1.logger.warn(exports.ANGULAR_REMOTE_GENERATOR_DEPRECATION_MESSAGE);
29
+ }
30
+ function warnAngularSetupMfGeneratorDeprecation() {
31
+ devkit_1.logger.warn(exports.ANGULAR_SETUP_MF_GENERATOR_DEPRECATION_MESSAGE);
32
+ }
33
+ function warnAngularFederateModuleGeneratorDeprecation() {
34
+ devkit_1.logger.warn(exports.ANGULAR_FEDERATE_MODULE_GENERATOR_DEPRECATION_MESSAGE);
35
+ }
36
+ // Executor warnings fire once per process to avoid flooding dev-server loops.
37
+ const executorWarned = new Set();
38
+ function warnOnce(key, message) {
39
+ if (executorWarned.has(key))
40
+ return;
41
+ executorWarned.add(key);
42
+ devkit_1.logger.warn(message);
43
+ }
44
+ function warnAngularMfDevServerExecutorDeprecation() {
45
+ warnOnce('angular-mf-dev-server', exports.ANGULAR_MF_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE);
46
+ }
47
+ function warnAngularMfDevSsrExecutorDeprecation() {
48
+ warnOnce('angular-mf-dev-ssr', exports.ANGULAR_MF_DEV_SSR_EXECUTOR_DEPRECATION_MESSAGE);
49
+ }