@nx/angular 23.0.0-beta.22 → 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.
- package/generators.json +6 -5
- package/package.json +8 -8
- package/src/generators/federate-module/federate-module.d.ts.map +1 -1
- package/src/generators/federate-module/federate-module.js +0 -2
- package/src/generators/host/host.d.ts.map +1 -1
- package/src/generators/host/host.js +0 -2
- package/src/generators/init/init.js +1 -1
- package/src/generators/remote/remote.d.ts.map +1 -1
- package/src/generators/remote/remote.js +0 -2
- package/src/generators/setup-mf/setup-mf.d.ts.map +1 -1
- package/src/generators/setup-mf/setup-mf.js +0 -2
- package/src/plugins/plugin.d.ts +6 -2
- package/src/plugins/plugin.d.ts.map +1 -1
- package/src/plugins/plugin.js +6 -2
- package/src/utils/module-federation-deprecation.d.ts +0 -8
- package/src/utils/module-federation-deprecation.d.ts.map +1 -1
- package/src/utils/module-federation-deprecation.js +1 -21
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/angular",
|
|
3
|
-
"version": "23.0.0-beta.
|
|
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.
|
|
65
|
-
"@nx/eslint": "23.0.0-beta.
|
|
66
|
-
"@nx/js": "23.0.0-beta.
|
|
67
|
-
"@nx/module-federation": "23.0.0-beta.
|
|
68
|
-
"@nx/rspack": "23.0.0-beta.
|
|
69
|
-
"@nx/web": "23.0.0-beta.
|
|
70
|
-
"@nx/webpack": "23.0.0-beta.
|
|
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;
|
|
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;
|
|
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.
|
|
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;
|
|
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;
|
|
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);
|
package/src/plugins/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type CreateNodes } from '@nx/devkit';
|
|
2
2
|
export interface AngularPluginOptions {
|
|
3
3
|
targetNamePrefix?: string;
|
|
4
4
|
}
|
|
@@ -15,6 +15,10 @@ export type AngularProjectConfiguration = {
|
|
|
15
15
|
architect?: Record<string, AngularTargetConfiguration>;
|
|
16
16
|
targets?: Record<string, AngularTargetConfiguration>;
|
|
17
17
|
};
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const createNodes: CreateNodes<AngularPluginOptions>;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Use {@link createNodes} instead. This will be removed in Nx 24.
|
|
21
|
+
*/
|
|
22
|
+
export declare const createNodesV2: CreateNodes<AngularPluginOptions>;
|
|
19
23
|
export {};
|
|
20
24
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/angular/src/plugins/plugin.ts"],"names":[],"mappings":"AAKA,OAAO,EAML,KAAK,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/angular/src/plugins/plugin.ts"],"names":[],"mappings":"AAKA,OAAO,EAML,KAAK,WAAW,EAOjB,MAAM,YAAY,CAAC;AAUpB,MAAM,WAAW,oBAAoB;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAOD,KAAK,0BAA0B,GAAG;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG;IACxC,WAAW,EAAE,aAAa,GAAG,SAAS,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;CACtD,CAAC;AAqCF,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,oBAAoB,CA6DzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,mCAAc,CAAC"}
|
package/src/plugins/plugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createNodesV2 = void 0;
|
|
3
|
+
exports.createNodesV2 = exports.createNodes = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const internal_1 = require("@nx/devkit/internal");
|
|
6
6
|
const devkit_1 = require("@nx/devkit");
|
|
@@ -45,7 +45,7 @@ const knownExecutors = {
|
|
|
45
45
|
'@angular/build:unit-test',
|
|
46
46
|
]),
|
|
47
47
|
};
|
|
48
|
-
exports.
|
|
48
|
+
exports.createNodes = [
|
|
49
49
|
'**/angular.json',
|
|
50
50
|
async (configFiles, options, context) => {
|
|
51
51
|
const optionsHash = (0, devkit_internals_1.hashObject)(options);
|
|
@@ -82,6 +82,10 @@ exports.createNodesV2 = [
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
];
|
|
85
|
+
/**
|
|
86
|
+
* @deprecated Use {@link createNodes} instead. This will be removed in Nx 24.
|
|
87
|
+
*/
|
|
88
|
+
exports.createNodesV2 = exports.createNodes;
|
|
85
89
|
async function createNodesInternal(configFilePath, options, context, projectsCache, pmc, hash) {
|
|
86
90
|
const angularWorkspaceRoot = (0, node_path_1.dirname)(configFilePath);
|
|
87
91
|
if (!projectsCache.has(hash)) {
|
|
@@ -1,13 +1,5 @@
|
|
|
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
1
|
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
2
|
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
3
|
export declare function warnAngularMfDevServerExecutorDeprecation(): void;
|
|
12
4
|
export declare function warnAngularMfDevSsrExecutorDeprecation(): void;
|
|
13
5
|
//# sourceMappingURL=module-federation-deprecation.d.ts.map
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"module-federation-deprecation.d.ts","sourceRoot":"","sources":["../../../../../packages/angular/src/utils/module-federation-deprecation.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,kDAAkD,6ZAAiI,CAAC;AAEjM,eAAO,MAAM,+CAA+C,0ZAA8H,CAAC;AAU3L,wBAAgB,yCAAyC,IAAI,IAAI,CAKhE;AAED,wBAAgB,sCAAsC,IAAI,IAAI,CAK7D"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ANGULAR_MF_DEV_SSR_EXECUTOR_DEPRECATION_MESSAGE = exports.ANGULAR_MF_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE =
|
|
4
|
-
exports.warnAngularHostGeneratorDeprecation = warnAngularHostGeneratorDeprecation;
|
|
5
|
-
exports.warnAngularRemoteGeneratorDeprecation = warnAngularRemoteGeneratorDeprecation;
|
|
6
|
-
exports.warnAngularSetupMfGeneratorDeprecation = warnAngularSetupMfGeneratorDeprecation;
|
|
7
|
-
exports.warnAngularFederateModuleGeneratorDeprecation = warnAngularFederateModuleGeneratorDeprecation;
|
|
3
|
+
exports.ANGULAR_MF_DEV_SSR_EXECUTOR_DEPRECATION_MESSAGE = exports.ANGULAR_MF_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = void 0;
|
|
8
4
|
exports.warnAngularMfDevServerExecutorDeprecation = warnAngularMfDevServerExecutorDeprecation;
|
|
9
5
|
exports.warnAngularMfDevSsrExecutorDeprecation = warnAngularMfDevSsrExecutorDeprecation;
|
|
10
6
|
const devkit_1 = require("@nx/devkit");
|
|
@@ -15,24 +11,8 @@ const devkit_1 = require("@nx/devkit");
|
|
|
15
11
|
const MIGRATION_URL = 'https://nx.dev/docs/technologies/module-federation/consumer-and-provider';
|
|
16
12
|
const ANGULAR_NATIVE_FED_URL = 'https://www.npmjs.com/package/@angular-architects/native-federation';
|
|
17
13
|
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
14
|
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
15
|
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
16
|
// Executor warnings fire once per process to avoid flooding dev-server loops.
|
|
37
17
|
const executorWarned = new Set();
|
|
38
18
|
function warnOnce(key, message) {
|