@schematics/angular 22.0.0-next.0 → 22.0.0-next.2
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/application/schema.d.ts +5 -5
- package/application/schema.json +2 -2
- package/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template +2 -2
- package/component/schema.d.ts +1 -1
- package/component/schema.js +1 -1
- package/component/schema.js.map +1 -1
- package/component/schema.json +2 -2
- package/migrations/migration-collection.json +6 -1
- package/migrations/update-workspace-config/migration.d.ts +12 -0
- package/migrations/update-workspace-config/migration.js +43 -0
- package/migrations/update-workspace-config/migration.js.map +1 -0
- package/ng-new/schema.d.ts +2 -4
- package/ng-new/schema.js.map +1 -1
- package/ng-new/schema.json +2 -2
- package/package.json +4 -4
- package/utility/latest-versions.js +3 -3
package/application/schema.d.ts
CHANGED
|
@@ -13,14 +13,14 @@ export type Schema = {
|
|
|
13
13
|
*/
|
|
14
14
|
fileNameStyleGuide?: FileNameStyleGuide;
|
|
15
15
|
/**
|
|
16
|
-
* Include the styles for the root component directly within the `app.
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* Include the styles for the root component directly within the `app.ts` file. Only CSS
|
|
17
|
+
* styles can be included inline. By default, a separate stylesheet file (e.g., `app.css`)
|
|
18
|
+
* is created.
|
|
19
19
|
*/
|
|
20
20
|
inlineStyle?: boolean;
|
|
21
21
|
/**
|
|
22
|
-
* Include the HTML template for the root component directly within the `app.
|
|
23
|
-
*
|
|
22
|
+
* Include the HTML template for the root component directly within the `app.ts` file. By
|
|
23
|
+
* default, a separate template file (e.g., `app.html`) is created.
|
|
24
24
|
*/
|
|
25
25
|
inlineTemplate?: boolean;
|
|
26
26
|
/**
|
package/application/schema.json
CHANGED
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"x-prompt": "What name would you like to use for the application?"
|
|
22
22
|
},
|
|
23
23
|
"inlineStyle": {
|
|
24
|
-
"description": "Include the styles for the root component directly within the `app.
|
|
24
|
+
"description": "Include the styles for the root component directly within the `app.ts` file. Only CSS styles can be included inline. By default, a separate stylesheet file (e.g., `app.css`) is created.",
|
|
25
25
|
"type": "boolean",
|
|
26
26
|
"alias": "s",
|
|
27
27
|
"x-user-analytics": "ep.ng_inline_style"
|
|
28
28
|
},
|
|
29
29
|
"inlineTemplate": {
|
|
30
|
-
"description": "Include the HTML template for the root component directly within the `app.
|
|
30
|
+
"description": "Include the HTML template for the root component directly within the `app.ts` file. By default, a separate template file (e.g., `app.html`) is created.",
|
|
31
31
|
"type": "boolean",
|
|
32
32
|
"alias": "t",
|
|
33
33
|
"x-user-analytics": "ep.ng_inline_template"
|
package/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { <% if(changeDetection !== '
|
|
1
|
+
import { <% if(changeDetection !== 'OnPush') { %>ChangeDetectionStrategy, <% }%>Component<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%> } from '@angular/core';
|
|
2
2
|
|
|
3
3
|
@Component({<% if(!skipSelector) {%>
|
|
4
4
|
selector: '<%= selector %>',<%}%><% if(standalone) {%>
|
|
@@ -16,7 +16,7 @@ import { <% if(changeDetection !== 'Default') { %>ChangeDetectionStrategy, <% }%
|
|
|
16
16
|
}
|
|
17
17
|
<% } %>`,<% } else if (style !== 'none') { %>
|
|
18
18
|
styleUrl: './<%= dasherize(name) %><%= type ? '.' + dasherize(type): '' %>.<%= style %>',<% } %><% if(!!viewEncapsulation) { %>
|
|
19
|
-
encapsulation: ViewEncapsulation.<%= viewEncapsulation %>,<% } if (changeDetection !== '
|
|
19
|
+
encapsulation: ViewEncapsulation.<%= viewEncapsulation %>,<% } if (changeDetection !== 'OnPush') { %>
|
|
20
20
|
changeDetection: ChangeDetectionStrategy.<%= changeDetection %>,<% } %>
|
|
21
21
|
})
|
|
22
22
|
export <% if(exportDefault) {%>default <%}%>class <%= classifiedName %> {
|
package/component/schema.d.ts
CHANGED
package/component/schema.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.ViewEncapsulation = exports.Style = exports.ChangeDetection = void 0;
|
|
|
8
8
|
*/
|
|
9
9
|
var ChangeDetection;
|
|
10
10
|
(function (ChangeDetection) {
|
|
11
|
-
ChangeDetection["
|
|
11
|
+
ChangeDetection["Eager"] = "Eager";
|
|
12
12
|
ChangeDetection["OnPush"] = "OnPush";
|
|
13
13
|
})(ChangeDetection || (exports.ChangeDetection = ChangeDetection = {}));
|
|
14
14
|
/**
|
package/component/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["schema.ts"],"names":[],"mappings":";AACA,mFAAmF;AACnF,oFAAoF;;;AAqHpF;;GAEG;AACH,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["schema.ts"],"names":[],"mappings":";AACA,mFAAmF;AACnF,oFAAoF;;;AAqHpF;;GAEG;AACH,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,kCAAe,CAAA;IACf,oCAAiB,CAAA;AACrB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAED;;;GAGG;AACH,IAAY,KAMX;AAND,WAAY,KAAK;IACb,oBAAW,CAAA;IACX,sBAAa,CAAA;IACb,sBAAa,CAAA;IACb,sBAAa,CAAA;IACb,sBAAa,CAAA;AACjB,CAAC,EANW,KAAK,qBAAL,KAAK,QAMhB;AAED;;;GAGG;AACH,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IACzB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;IACb,4CAAuB,CAAA;AAC3B,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B"}
|
package/component/schema.json
CHANGED
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
},
|
|
66
66
|
"changeDetection": {
|
|
67
67
|
"description": "Configures the change detection strategy for the component.",
|
|
68
|
-
"enum": ["
|
|
68
|
+
"enum": ["Eager", "OnPush"],
|
|
69
69
|
"type": "string",
|
|
70
|
-
"default": "
|
|
70
|
+
"default": "OnPush",
|
|
71
71
|
"alias": "c"
|
|
72
72
|
},
|
|
73
73
|
"prefix": {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"encapsulation": false,
|
|
3
3
|
"schematics": {
|
|
4
4
|
"use-application-builder": {
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "22.0.0",
|
|
6
6
|
"factory": "./use-application-builder/migration",
|
|
7
7
|
"description": "Migrate application projects to the new build system. Application projects that are using the '@angular-devkit/build-angular' package's 'browser' and/or 'browser-esbuild' builders will be migrated to use the new 'application' builder. You can read more about this, including known issues and limitations, here: https://angular.dev/tools/cli/build-system-migration",
|
|
8
8
|
"optional": true,
|
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
"version": "21.0.0",
|
|
14
14
|
"factory": "./karma/migration",
|
|
15
15
|
"description": "Remove any karma configuration files that only contain the default content. The default configuration is automatically available without a specific project file."
|
|
16
|
+
},
|
|
17
|
+
"update-workspace-config": {
|
|
18
|
+
"version": "22.0.0",
|
|
19
|
+
"factory": "./update-workspace-config/migration",
|
|
20
|
+
"description": "Update the angular workspace configuration."
|
|
16
21
|
}
|
|
17
22
|
}
|
|
18
23
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
+
*/
|
|
8
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
9
|
+
/**
|
|
10
|
+
* Migration to update the angular workspace configuration.
|
|
11
|
+
*/
|
|
12
|
+
export default function (): Rule;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.default = default_1;
|
|
11
|
+
const core_1 = require("@angular-devkit/core");
|
|
12
|
+
const workspace_1 = require("../../utility/workspace");
|
|
13
|
+
const workspace_models_1 = require("../../utility/workspace-models");
|
|
14
|
+
/**
|
|
15
|
+
* Migration to update the angular workspace configuration.
|
|
16
|
+
*/
|
|
17
|
+
function default_1() {
|
|
18
|
+
return (0, workspace_1.updateWorkspace)((workspace) => {
|
|
19
|
+
for (const project of workspace.projects.values()) {
|
|
20
|
+
if (project.extensions['projectType'] !== workspace_models_1.ProjectType.Application) {
|
|
21
|
+
continue;
|
|
22
|
+
}
|
|
23
|
+
for (const target of project.targets.values()) {
|
|
24
|
+
if (target.builder !== workspace_models_1.Builders.Application &&
|
|
25
|
+
target.builder !== workspace_models_1.Builders.BuildApplication) {
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
for (const [, options] of (0, workspace_1.allTargetOptions)(target)) {
|
|
29
|
+
const ssr = options['ssr'];
|
|
30
|
+
if (!ssr || !(0, core_1.isJsonObject)(ssr)) {
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
const platform = ssr['experimentalPlatform'];
|
|
34
|
+
if (platform) {
|
|
35
|
+
ssr['platform'] = platform;
|
|
36
|
+
delete ssr['experimentalPlatform'];
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=migration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration.js","sourceRoot":"","sources":["migration.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAUH,4BA8BC;AAtCD,+CAAoD;AAEpD,uDAA4E;AAC5E,qEAAuE;AAEvE;;GAEG;AACH;IACE,OAAO,IAAA,2BAAe,EAAC,CAAC,SAAS,EAAE,EAAE;QACnC,KAAK,MAAM,OAAO,IAAI,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC;YAClD,IAAI,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,8BAAW,CAAC,WAAW,EAAE,CAAC;gBAClE,SAAS;YACX,CAAC;YAED,KAAK,MAAM,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;gBAC9C,IACE,MAAM,CAAC,OAAO,KAAK,2BAAQ,CAAC,WAAW;oBACvC,MAAM,CAAC,OAAO,KAAK,2BAAQ,CAAC,gBAAgB,EAC5C,CAAC;oBACD,SAAS;gBACX,CAAC;gBAED,KAAK,MAAM,CAAC,EAAE,OAAO,CAAC,IAAI,IAAA,4BAAgB,EAAC,MAAM,CAAC,EAAE,CAAC;oBACnD,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;oBAC3B,IAAI,CAAC,GAAG,IAAI,CAAC,IAAA,mBAAY,EAAC,GAAG,CAAC,EAAE,CAAC;wBAC/B,SAAS;oBACX,CAAC;oBAED,MAAM,QAAQ,GAAG,GAAG,CAAC,sBAAsB,CAAC,CAAC;oBAC7C,IAAI,QAAQ,EAAE,CAAC;wBACb,GAAG,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC;wBAC3B,OAAO,GAAG,CAAC,sBAAsB,CAAC,CAAC;oBACrC,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/ng-new/schema.d.ts
CHANGED
|
@@ -34,14 +34,12 @@ export type Schema = {
|
|
|
34
34
|
fileNameStyleGuide?: FileNameStyleGuide;
|
|
35
35
|
/**
|
|
36
36
|
* Include the styles for the initial application's root component directly within the
|
|
37
|
-
* `app.
|
|
38
|
-
* `app.component.css`) is created.
|
|
37
|
+
* `app.ts` file. By default, a separate stylesheet file (e.g., `app.css`) is created.
|
|
39
38
|
*/
|
|
40
39
|
inlineStyle?: boolean;
|
|
41
40
|
/**
|
|
42
41
|
* Include the HTML template for the initial application's root component directly within
|
|
43
|
-
* the `app.
|
|
44
|
-
* `app.component.html`) is created.
|
|
42
|
+
* the `app.ts` file. By default, a separate template file (e.g., `app.html`) is created.
|
|
45
43
|
*/
|
|
46
44
|
inlineTemplate?: boolean;
|
|
47
45
|
/**
|
package/ng-new/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["schema.ts"],"names":[],"mappings":";AACA,mFAAmF;AACnF,oFAAoF;;;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["schema.ts"],"names":[],"mappings":";AACA,mFAAmF;AACnF,oFAAoF;;;AAkIpF,IAAY,QASX;AATD,WAAY,QAAQ;IAChB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,+BAAmB,CAAA;IACnB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,mCAAuB,CAAA;IACvB,yBAAa,CAAA;IACb,iCAAqB,CAAA;AACzB,CAAC,EATW,QAAQ,wBAAR,QAAQ,QASnB;AAcD;;;;;GAKG;AACH,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,sCAAgB,CAAA;IAChB,sCAAgB,CAAA;AACpB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED;;GAEG;AACH,IAAY,cAKX;AALD,WAAY,cAAc;IACtB,6BAAW,CAAA;IACX,6BAAW,CAAA;IACX,+BAAa,CAAA;IACb,+BAAa,CAAA;AACjB,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB;AAED;;GAEG;AACH,IAAY,KAMX;AAND,WAAY,KAAK;IACb,oBAAW,CAAA;IACX,sBAAa,CAAA;IACb,sBAAa,CAAA;IACb,sBAAa,CAAA;IACb,8BAAqB,CAAA;AACzB,CAAC,EANW,KAAK,qBAAL,KAAK,QAMhB;AAED;;GAEG;AACH,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,6BAAe,CAAA;IACf,+BAAiB,CAAA;AACrB,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAED;;;;;GAKG;AACH,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IACzB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;IACb,4CAAuB,CAAA;AAC3B,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B"}
|
package/ng-new/schema.json
CHANGED
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"default": "projects"
|
|
60
60
|
},
|
|
61
61
|
"inlineStyle": {
|
|
62
|
-
"description": "Include the styles for the initial application's root component directly within the `app.
|
|
62
|
+
"description": "Include the styles for the initial application's root component directly within the `app.ts` file. By default, a separate stylesheet file (e.g., `app.css`) is created.",
|
|
63
63
|
"type": "boolean",
|
|
64
64
|
"alias": "s",
|
|
65
65
|
"x-user-analytics": "ep.ng_inline_style"
|
|
66
66
|
},
|
|
67
67
|
"inlineTemplate": {
|
|
68
|
-
"description": "Include the HTML template for the initial application's root component directly within the `app.
|
|
68
|
+
"description": "Include the HTML template for the initial application's root component directly within the `app.ts` file. By default, a separate template file (e.g., `app.html`) is created.",
|
|
69
69
|
"type": "boolean",
|
|
70
70
|
"alias": "t",
|
|
71
71
|
"x-user-analytics": "ep.ng_inline_template"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematics/angular",
|
|
3
|
-
"version": "22.0.0-next.
|
|
3
|
+
"version": "22.0.0-next.2",
|
|
4
4
|
"description": "Schematics specific to Angular",
|
|
5
5
|
"homepage": "https://github.com/angular/angular-cli",
|
|
6
6
|
"keywords": [
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
},
|
|
23
23
|
"schematics": "./collection.json",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@angular-devkit/core": "22.0.0-next.
|
|
26
|
-
"@angular-devkit/schematics": "22.0.0-next.
|
|
25
|
+
"@angular-devkit/core": "22.0.0-next.2",
|
|
26
|
+
"@angular-devkit/schematics": "22.0.0-next.2",
|
|
27
27
|
"jsonc-parser": "3.3.1"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|
|
31
31
|
"url": "git+https://github.com/angular/angular-cli.git"
|
|
32
32
|
},
|
|
33
|
-
"packageManager": "pnpm@10.
|
|
33
|
+
"packageManager": "pnpm@10.32.1",
|
|
34
34
|
"engines": {
|
|
35
35
|
"node": "^22.22.0 || >=24.13.1",
|
|
36
36
|
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
|
|
@@ -16,8 +16,8 @@ exports.latestVersions = {
|
|
|
16
16
|
// As Angular CLI works with same minor versions of Angular Framework, a tilde match for the current
|
|
17
17
|
Angular: '^22.0.0-next.0',
|
|
18
18
|
NgPackagr: '^22.0.0-next.0',
|
|
19
|
-
DevkitBuildAngular: '^22.0.0-next.
|
|
20
|
-
AngularBuild: '^22.0.0-next.
|
|
21
|
-
AngularSSR: '^22.0.0-next.
|
|
19
|
+
DevkitBuildAngular: '^22.0.0-next.2',
|
|
20
|
+
AngularBuild: '^22.0.0-next.2',
|
|
21
|
+
AngularSSR: '^22.0.0-next.2',
|
|
22
22
|
};
|
|
23
23
|
//# sourceMappingURL=latest-versions.js.map
|