@nx/angular 21.4.0-beta.0 → 21.4.0-beta.10
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/migrations.json +27 -0
- package/package.json +9 -9
- package/src/generators/application/schema.json +1 -1
- package/src/generators/component/files/__fileName__.ts__tpl__ +3 -4
- package/src/generators/setup-mf/files/standalone-entry-component-files/entry__componentFileSuffix__.ts__tmpl__ +1 -2
- package/src/generators/setup-mf/lib/setup-tspath-for-remote.d.ts.map +1 -1
- package/src/generators/setup-mf/lib/setup-tspath-for-remote.js +2 -3
- package/src/utils/versions.d.ts +4 -4
- package/src/utils/versions.d.ts.map +1 -1
- package/src/utils/versions.js +4 -4
package/migrations.json
CHANGED
@@ -1883,6 +1883,33 @@
|
|
1883
1883
|
"alwaysAddToPackageJson": false
|
1884
1884
|
}
|
1885
1885
|
}
|
1886
|
+
},
|
1887
|
+
"21.3.5-jest": {
|
1888
|
+
"version": "21.3.5-beta.0",
|
1889
|
+
"requires": {
|
1890
|
+
"@angular/compiler-cli": ">=18.0.0 <21.0.0",
|
1891
|
+
"@angular/core": ">=18.0.0 <21.0.0",
|
1892
|
+
"@angular/platform-browser-dynamic": ">=18.0.0 <21.0.0",
|
1893
|
+
"jest": "^30.0.0"
|
1894
|
+
},
|
1895
|
+
"packages": {
|
1896
|
+
"jest-preset-angular": {
|
1897
|
+
"version": "~15.0.0",
|
1898
|
+
"alwaysAddToPackageJson": false
|
1899
|
+
}
|
1900
|
+
}
|
1901
|
+
},
|
1902
|
+
"21.4.0-ngrx": {
|
1903
|
+
"version": "21.4.0-beta.3",
|
1904
|
+
"requires": {
|
1905
|
+
"@angular/core": "^20.0.0"
|
1906
|
+
},
|
1907
|
+
"packages": {
|
1908
|
+
"@ngrx/store": {
|
1909
|
+
"version": "^20.0.0",
|
1910
|
+
"alwaysAddToPackageJson": false
|
1911
|
+
}
|
1912
|
+
}
|
1886
1913
|
}
|
1887
1914
|
}
|
1888
1915
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/angular",
|
3
|
-
"version": "21.4.0-beta.
|
3
|
+
"version": "21.4.0-beta.10",
|
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, Tailwind CSS, 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": {
|
@@ -58,14 +58,14 @@
|
|
58
58
|
"migrations": "./migrations.json"
|
59
59
|
},
|
60
60
|
"dependencies": {
|
61
|
-
"@nx/devkit": "21.4.0-beta.
|
62
|
-
"@nx/eslint": "21.4.0-beta.
|
63
|
-
"@nx/js": "21.4.0-beta.
|
64
|
-
"@nx/module-federation": "21.4.0-beta.
|
65
|
-
"@nx/rspack": "21.4.0-beta.
|
66
|
-
"@nx/web": "21.4.0-beta.
|
67
|
-
"@nx/webpack": "21.4.0-beta.
|
68
|
-
"@nx/workspace": "21.4.0-beta.
|
61
|
+
"@nx/devkit": "21.4.0-beta.10",
|
62
|
+
"@nx/eslint": "21.4.0-beta.10",
|
63
|
+
"@nx/js": "21.4.0-beta.10",
|
64
|
+
"@nx/module-federation": "21.4.0-beta.10",
|
65
|
+
"@nx/rspack": "21.4.0-beta.10",
|
66
|
+
"@nx/web": "21.4.0-beta.10",
|
67
|
+
"@nx/webpack": "21.4.0-beta.10",
|
68
|
+
"@nx/workspace": "21.4.0-beta.10",
|
69
69
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
70
70
|
"@typescript-eslint/type-utils": "^8.0.0",
|
71
71
|
"enquirer": "~2.3.6",
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"name": {
|
19
19
|
"description": "The name of the application.",
|
20
20
|
"type": "string",
|
21
|
-
"pattern": "
|
21
|
+
"pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
|
22
22
|
"x-priority": "important"
|
23
23
|
},
|
24
24
|
"style": {
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import { <% if(changeDetection !== 'Default') { %>ChangeDetectionStrategy, <% }%>Component<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%> } from '@angular/core'
|
2
|
-
import { CommonModule } from '@angular/common';<% } %>
|
1
|
+
import { <% if(changeDetection !== 'Default') { %>ChangeDetectionStrategy, <% }%>Component<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%> } from '@angular/core';
|
3
2
|
|
4
3
|
@Component({<% if(!skipSelector) {%>
|
5
4
|
selector: '<%= selector %>',<%}%><% if (setStandalone) { %>
|
6
|
-
standalone: <%= standalone %>,<% }
|
7
|
-
imports: [
|
5
|
+
standalone: <%= standalone %>,<% } %>
|
6
|
+
imports: [],<% if(inlineTemplate) { %>
|
8
7
|
template: `<p><%= name %> works!</p>`<% } else { %>
|
9
8
|
templateUrl: './<%= fileName %><%= ngext %>.html'<% } if(inlineStyle) { %>,
|
10
9
|
styles: `<% if(displayBlock){ %>
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import { Component } from '@angular/core';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
2
|
import { <%= nxWelcomeSymbolName %> } from './<%= nxWelcomeFileName %>';
|
4
3
|
|
5
4
|
@Component({<% if (setStandaloneTrue) { %>
|
6
5
|
standalone: true,<% } %>
|
7
|
-
imports: [
|
6
|
+
imports: [<%= nxWelcomeSymbolName %>],<% if (prefix) { %>
|
8
7
|
selector: '<%= prefix %>-<%= appName %>-entry',
|
9
8
|
template: `<<%= prefix %>-nx-welcome></<%= prefix %>-nx-welcome>`<% } else { %>
|
10
9
|
selector: '<%= appName %>-entry',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"setup-tspath-for-remote.d.ts","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/setup-mf/lib/setup-tspath-for-remote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;
|
1
|
+
{"version":3,"file":"setup-tspath-for-remote.d.ts","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/setup-mf/lib/setup-tspath-for-remote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAKnD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,iBAAiB,QAc1E"}
|
@@ -3,13 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.setupTspathForRemote = setupTspathForRemote;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const js_1 = require("@nx/js");
|
6
|
+
const module_federation_1 = require("@nx/module-federation");
|
6
7
|
function setupTspathForRemote(tree, options) {
|
7
8
|
const project = (0, devkit_1.readProjectConfiguration)(tree, options.appName);
|
8
9
|
const exportPath = options.standalone
|
9
10
|
? `./src/app/remote-entry/entry.routes.ts`
|
10
11
|
: `./src/app/remote-entry/${options.entryModuleFileName}.ts`;
|
11
12
|
const exportName = options.standalone ? 'Routes' : 'Module';
|
12
|
-
(0, js_1.addTsConfigPath)(tree, `${
|
13
|
-
(0, devkit_1.joinPathFragments)(project.root, exportPath),
|
14
|
-
]);
|
13
|
+
(0, js_1.addTsConfigPath)(tree, `${(0, module_federation_1.normalizeProjectName)(options.appName)}/${exportName}`, [(0, devkit_1.joinPathFragments)(project.root, exportPath)]);
|
15
14
|
}
|
package/src/utils/versions.d.ts
CHANGED
@@ -3,7 +3,7 @@ export declare const angularVersion = "~20.1.0";
|
|
3
3
|
export declare const angularDevkitVersion = "~20.1.0";
|
4
4
|
export declare const ngPackagrVersion = "~20.1.0";
|
5
5
|
export declare const angularRspackVersion = "^21.1.0";
|
6
|
-
export declare const ngrxVersion = "^
|
6
|
+
export declare const ngrxVersion = "^20.0.0";
|
7
7
|
export declare const rxjsVersion = "~7.8.0";
|
8
8
|
export declare const zoneJsVersion = "~0.15.0";
|
9
9
|
export declare const angularJsVersion = "1.7.9";
|
@@ -13,8 +13,8 @@ export declare const typesCorsVersion = "~2.8.5";
|
|
13
13
|
export declare const expressVersion = "^4.21.2";
|
14
14
|
export declare const typesExpressVersion = "^4.17.21";
|
15
15
|
export declare const browserSyncVersion = "^3.0.0";
|
16
|
-
export declare const moduleFederationNodeVersion = "^2.7.
|
17
|
-
export declare const moduleFederationEnhancedVersion = "^0.
|
16
|
+
export declare const moduleFederationNodeVersion = "^2.7.11";
|
17
|
+
export declare const moduleFederationEnhancedVersion = "^0.18.0";
|
18
18
|
export declare const webpackMergeVersion = "^5.8.0";
|
19
19
|
export declare const angularEslintVersion = "^20.0.0";
|
20
20
|
export declare const typescriptEslintVersion = "^7.16.0";
|
@@ -24,7 +24,7 @@ export declare const postcssUrlVersion = "~10.1.3";
|
|
24
24
|
export declare const autoprefixerVersion = "^10.4.0";
|
25
25
|
export declare const tsNodeVersion = "10.9.1";
|
26
26
|
export declare const lessVersion = "^4.3.0";
|
27
|
-
export declare const jestPresetAngularVersion = "~
|
27
|
+
export declare const jestPresetAngularVersion = "~15.0.0";
|
28
28
|
export declare const typesNodeVersion = "18.16.9";
|
29
29
|
export declare const jasmineMarblesVersion = "^0.9.2";
|
30
30
|
export declare const jsoncEslintParserVersion = "^2.1.0";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/angular/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;A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A2B,YAAY,CAAC;AACrD,eAAO,MAAM,+BAA+B,YAAY,CAAC;AACzD,eAAO,MAAM,mBAAmB,WAAW,CAAC;AAE5C,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAC9C,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAC3C,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,aAAa,WAAW,CAAC;AACtC,eAAO,MAAM,WAAW,WAAW,CAAC;AAEpC,eAAO,MAAM,wBAAwB,YAAY,CAAC;AAClD,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAE9C,eAAO,MAAM,wBAAwB,WAAW,CAAC"}
|
package/src/utils/versions.js
CHANGED
@@ -6,7 +6,7 @@ exports.angularVersion = '~20.1.0';
|
|
6
6
|
exports.angularDevkitVersion = '~20.1.0';
|
7
7
|
exports.ngPackagrVersion = '~20.1.0';
|
8
8
|
exports.angularRspackVersion = '^21.1.0';
|
9
|
-
exports.ngrxVersion = '^
|
9
|
+
exports.ngrxVersion = '^20.0.0';
|
10
10
|
exports.rxjsVersion = '~7.8.0';
|
11
11
|
exports.zoneJsVersion = '~0.15.0';
|
12
12
|
exports.angularJsVersion = '1.7.9';
|
@@ -16,8 +16,8 @@ exports.typesCorsVersion = '~2.8.5';
|
|
16
16
|
exports.expressVersion = '^4.21.2';
|
17
17
|
exports.typesExpressVersion = '^4.17.21';
|
18
18
|
exports.browserSyncVersion = '^3.0.0';
|
19
|
-
exports.moduleFederationNodeVersion = '^2.7.
|
20
|
-
exports.moduleFederationEnhancedVersion = '^0.
|
19
|
+
exports.moduleFederationNodeVersion = '^2.7.11';
|
20
|
+
exports.moduleFederationEnhancedVersion = '^0.18.0';
|
21
21
|
exports.webpackMergeVersion = '^5.8.0';
|
22
22
|
exports.angularEslintVersion = '^20.0.0';
|
23
23
|
exports.typescriptEslintVersion = '^7.16.0';
|
@@ -27,7 +27,7 @@ exports.postcssUrlVersion = '~10.1.3';
|
|
27
27
|
exports.autoprefixerVersion = '^10.4.0';
|
28
28
|
exports.tsNodeVersion = '10.9.1';
|
29
29
|
exports.lessVersion = '^4.3.0';
|
30
|
-
exports.jestPresetAngularVersion = '~
|
30
|
+
exports.jestPresetAngularVersion = '~15.0.0';
|
31
31
|
exports.typesNodeVersion = '18.16.9';
|
32
32
|
exports.jasmineMarblesVersion = '^0.9.2';
|
33
33
|
exports.jsoncEslintParserVersion = '^2.1.0';
|