@schematics/angular 22.0.0-next.0 → 22.0.0-next.1

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.
@@ -116,7 +116,7 @@ export type Schema = {
116
116
  * Configures the change detection strategy for the component.
117
117
  */
118
118
  export declare enum ChangeDetection {
119
- Default = "Default",
119
+ Eager = "Eager",
120
120
  OnPush = "OnPush"
121
121
  }
122
122
  /**
@@ -8,7 +8,7 @@ exports.ViewEncapsulation = exports.Style = exports.ChangeDetection = void 0;
8
8
  */
9
9
  var ChangeDetection;
10
10
  (function (ChangeDetection) {
11
- ChangeDetection["Default"] = "Default";
11
+ ChangeDetection["Eager"] = "Eager";
12
12
  ChangeDetection["OnPush"] = "OnPush";
13
13
  })(ChangeDetection || (exports.ChangeDetection = ChangeDetection = {}));
14
14
  /**
@@ -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,sCAAmB,CAAA;IACnB,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"}
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"}
@@ -65,9 +65,9 @@
65
65
  },
66
66
  "changeDetection": {
67
67
  "description": "Configures the change detection strategy for the component.",
68
- "enum": ["Default", "OnPush"],
68
+ "enum": ["Eager", "OnPush"],
69
69
  "type": "string",
70
- "default": "Default",
70
+ "default": "Eager",
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": "21.0.0",
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematics/angular",
3
- "version": "22.0.0-next.0",
3
+ "version": "22.0.0-next.1",
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.0",
26
- "@angular-devkit/schematics": "22.0.0-next.0",
25
+ "@angular-devkit/core": "22.0.0-next.1",
26
+ "@angular-devkit/schematics": "22.0.0-next.1",
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.30.3",
33
+ "packageManager": "pnpm@10.31.0",
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.0',
20
- AngularBuild: '^22.0.0-next.0',
21
- AngularSSR: '^22.0.0-next.0',
19
+ DevkitBuildAngular: '^22.0.0-next.1',
20
+ AngularBuild: '^22.0.0-next.1',
21
+ AngularSSR: '^22.0.0-next.1',
22
22
  };
23
23
  //# sourceMappingURL=latest-versions.js.map