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

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.
@@ -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.component.ts` file.
17
- * Only CSS styles can be included inline. By default, a separate stylesheet file (e.g.,
18
- * `app.component.css`) is created.
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.component.ts`
23
- * file. By default, a separate template file (e.g., `app.component.html`) is created.
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
  /**
@@ -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.component.ts` file. Only CSS styles can be included inline. By default, a separate stylesheet file (e.g., `app.component.css`) is created.",
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.component.ts` file. By default, a separate template file (e.g., `app.component.html`) is created.",
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"
@@ -1,4 +1,4 @@
1
- import { <% if(changeDetection !== 'Default') { %>ChangeDetectionStrategy, <% }%>Component<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%> } from '@angular/core';
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 !== 'Default') { %>
19
+ encapsulation: ViewEncapsulation.<%= viewEncapsulation %>,<% } if (changeDetection !== 'OnPush') { %>
20
20
  changeDetection: ChangeDetectionStrategy.<%= changeDetection %>,<% } %>
21
21
  })
22
22
  export <% if(exportDefault) {%>default <%}%>class <%= classifiedName %> {
@@ -67,7 +67,7 @@
67
67
  "description": "Configures the change detection strategy for the component.",
68
68
  "enum": ["Eager", "OnPush"],
69
69
  "type": "string",
70
- "default": "Eager",
70
+ "default": "OnPush",
71
71
  "alias": "c"
72
72
  },
73
73
  "prefix": {
@@ -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.component.ts` file. By default, a separate stylesheet file (e.g.,
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.component.ts` file. By default, a separate template file (e.g.,
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
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["schema.ts"],"names":[],"mappings":";AACA,mFAAmF;AACnF,oFAAoF;;;AAoIpF,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"}
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"}
@@ -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.component.ts` file. By default, a separate stylesheet file (e.g., `app.component.css`) is created.",
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.component.ts` file. By default, a separate template file (e.g., `app.component.html`) is created.",
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.1",
3
+ "version": "22.0.0-next.3",
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.1",
26
- "@angular-devkit/schematics": "22.0.0-next.1",
25
+ "@angular-devkit/core": "22.0.0-next.3",
26
+ "@angular-devkit/schematics": "22.0.0-next.3",
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.31.0",
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",
@@ -7,7 +7,7 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
@@ -2530,6 +2530,7 @@ declare namespace ts {
2530
2530
  Node = "node",
2531
2531
  /** @deprecated Renamed to `Node10` */
2532
2532
  NodeJs = "node",
2533
+ /** @deprecated */
2533
2534
  Node10 = "node10",
2534
2535
  Node16 = "node16",
2535
2536
  NodeNext = "nodenext",
@@ -2542,6 +2543,7 @@ declare namespace ts {
2542
2543
  export enum ScriptTarget {
2543
2544
  /** @deprecated */
2544
2545
  ES3 = "es3",
2546
+ /** @deprecated */
2545
2547
  ES5 = "es5",
2546
2548
  ES6 = "es6",
2547
2549
  ES2015 = "es2015",
@@ -2554,9 +2556,11 @@ declare namespace ts {
2554
2556
  ES2022 = "es2022",
2555
2557
  ES2023 = "es2023",
2556
2558
  ES2024 = "es2024",
2559
+ ES2025 = "es2025",
2557
2560
  ESNext = "esnext",
2558
2561
  JSON = "json",
2559
2562
  Latest = "esnext",
2563
+ LatestStandard = "es2025",
2560
2564
  }
2561
2565
  }
2562
2566
  namespace typingsInstaller {
@@ -3646,7 +3650,7 @@ declare namespace ts {
3646
3650
  readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[] | undefined, depth?: number): string[];
3647
3651
  }
3648
3652
  }
3649
- const versionMajorMinor = "5.9";
3653
+ const versionMajorMinor = "6.0";
3650
3654
  /** The version of the TypeScript compiler release */
3651
3655
  const version: string;
3652
3656
  /**
@@ -5907,7 +5911,6 @@ declare namespace ts {
5907
5911
  */
5908
5912
  interface SourceFileLike {
5909
5913
  readonly text: string;
5910
- languageVariant?: LanguageVariant;
5911
5914
  }
5912
5915
  interface SourceFileLike {
5913
5916
  getLineAndCharacterOfPosition(pos: number): LineAndCharacter;
@@ -5926,14 +5929,7 @@ declare namespace ts {
5926
5929
  libReferenceDirectives: readonly FileReference[];
5927
5930
  languageVariant: LanguageVariant;
5928
5931
  isDeclarationFile: boolean;
5929
- /**
5930
- * lib.d.ts should have a reference comment like
5931
- *
5932
- * /// <reference no-default-lib="true"/>
5933
- *
5934
- * If any other file has this comment, it signals not to include lib.d.ts
5935
- * because this containing file is intended to act as a default library.
5936
- */
5932
+ /** @deprecated Always false. Use a Program to determine if a file is a lib file. */
5937
5933
  hasNoDefaultLib: boolean;
5938
5934
  languageVersion: ScriptTarget;
5939
5935
  /**
@@ -6598,53 +6594,53 @@ declare namespace ts {
6598
6594
  enum TypeFlags {
6599
6595
  Any = 1,
6600
6596
  Unknown = 2,
6601
- String = 4,
6602
- Number = 8,
6603
- Boolean = 16,
6604
- Enum = 32,
6605
- BigInt = 64,
6606
- StringLiteral = 128,
6607
- NumberLiteral = 256,
6608
- BooleanLiteral = 512,
6609
- EnumLiteral = 1024,
6610
- BigIntLiteral = 2048,
6611
- ESSymbol = 4096,
6612
- UniqueESSymbol = 8192,
6613
- Void = 16384,
6614
- Undefined = 32768,
6615
- Null = 65536,
6616
- Never = 131072,
6617
- TypeParameter = 262144,
6618
- Object = 524288,
6619
- Union = 1048576,
6620
- Intersection = 2097152,
6621
- Index = 4194304,
6622
- IndexedAccess = 8388608,
6623
- Conditional = 16777216,
6624
- Substitution = 33554432,
6625
- NonPrimitive = 67108864,
6626
- TemplateLiteral = 134217728,
6627
- StringMapping = 268435456,
6628
- Literal = 2944,
6629
- Unit = 109472,
6630
- Freshable = 2976,
6631
- StringOrNumberLiteral = 384,
6632
- PossiblyFalsy = 117724,
6633
- StringLike = 402653316,
6634
- NumberLike = 296,
6635
- BigIntLike = 2112,
6636
- BooleanLike = 528,
6637
- EnumLike = 1056,
6638
- ESSymbolLike = 12288,
6639
- VoidLike = 49152,
6640
- UnionOrIntersection = 3145728,
6641
- StructuredType = 3670016,
6642
- TypeVariable = 8650752,
6643
- InstantiableNonPrimitive = 58982400,
6644
- InstantiablePrimitive = 406847488,
6645
- Instantiable = 465829888,
6646
- StructuredOrInstantiable = 469499904,
6647
- Narrowable = 536624127,
6597
+ Undefined = 4,
6598
+ Null = 8,
6599
+ Void = 16,
6600
+ String = 32,
6601
+ Number = 64,
6602
+ BigInt = 128,
6603
+ Boolean = 256,
6604
+ ESSymbol = 512,
6605
+ StringLiteral = 1024,
6606
+ NumberLiteral = 2048,
6607
+ BigIntLiteral = 4096,
6608
+ BooleanLiteral = 8192,
6609
+ UniqueESSymbol = 16384,
6610
+ EnumLiteral = 32768,
6611
+ Enum = 65536,
6612
+ NonPrimitive = 131072,
6613
+ Never = 262144,
6614
+ TypeParameter = 524288,
6615
+ Object = 1048576,
6616
+ Index = 2097152,
6617
+ TemplateLiteral = 4194304,
6618
+ StringMapping = 8388608,
6619
+ Substitution = 16777216,
6620
+ IndexedAccess = 33554432,
6621
+ Conditional = 67108864,
6622
+ Union = 134217728,
6623
+ Intersection = 268435456,
6624
+ Literal = 15360,
6625
+ Unit = 97292,
6626
+ Freshable = 80896,
6627
+ StringOrNumberLiteral = 3072,
6628
+ PossiblyFalsy = 15868,
6629
+ StringLike = 12583968,
6630
+ NumberLike = 67648,
6631
+ BigIntLike = 4224,
6632
+ BooleanLike = 8448,
6633
+ EnumLike = 98304,
6634
+ ESSymbolLike = 16896,
6635
+ VoidLike = 20,
6636
+ UnionOrIntersection = 402653184,
6637
+ StructuredType = 403701760,
6638
+ TypeVariable = 34078720,
6639
+ InstantiableNonPrimitive = 117964800,
6640
+ InstantiablePrimitive = 14680064,
6641
+ Instantiable = 132644864,
6642
+ StructuredOrInstantiable = 536346624,
6643
+ Narrowable = 536575971,
6648
6644
  }
6649
6645
  type DestructuringPattern = BindingPattern | ObjectLiteralExpression | ArrayLiteralExpression;
6650
6646
  interface Type {
@@ -6951,6 +6947,7 @@ declare namespace ts {
6951
6947
  Message = 3,
6952
6948
  }
6953
6949
  enum ModuleResolutionKind {
6950
+ /** @deprecated */
6954
6951
  Classic = 1,
6955
6952
  /**
6956
6953
  * @deprecated
@@ -6958,6 +6955,9 @@ declare namespace ts {
6958
6955
  * Use the new name or consider switching to a modern module resolution target.
6959
6956
  */
6960
6957
  NodeJs = 2,
6958
+ /**
6959
+ * @deprecated
6960
+ */
6961
6961
  Node10 = 2,
6962
6962
  Node16 = 3,
6963
6963
  NodeNext = 99,
@@ -7020,6 +7020,7 @@ declare namespace ts {
7020
7020
  allowUnreachableCode?: boolean;
7021
7021
  allowUnusedLabels?: boolean;
7022
7022
  alwaysStrict?: boolean;
7023
+ /** @deprecated */
7023
7024
  baseUrl?: string;
7024
7025
  /** @deprecated */
7025
7026
  charset?: string;
@@ -7033,6 +7034,7 @@ declare namespace ts {
7033
7034
  disableSourceOfProjectReferenceRedirect?: boolean;
7034
7035
  disableSolutionSearching?: boolean;
7035
7036
  disableReferencedProjectLoad?: boolean;
7037
+ /** @deprecated */
7036
7038
  downlevelIteration?: boolean;
7037
7039
  emitBOM?: boolean;
7038
7040
  emitDecoratorMetadata?: boolean;
@@ -7150,10 +7152,14 @@ declare namespace ts {
7150
7152
  [option: string]: CompilerOptionsValue | undefined;
7151
7153
  }
7152
7154
  enum ModuleKind {
7155
+ /** @deprecated */
7153
7156
  None = 0,
7154
7157
  CommonJS = 1,
7158
+ /** @deprecated */
7155
7159
  AMD = 2,
7160
+ /** @deprecated */
7156
7161
  UMD = 3,
7162
+ /** @deprecated */
7157
7163
  System = 4,
7158
7164
  ES2015 = 5,
7159
7165
  ES2020 = 6,
@@ -7205,6 +7211,7 @@ declare namespace ts {
7205
7211
  enum ScriptTarget {
7206
7212
  /** @deprecated */
7207
7213
  ES3 = 0,
7214
+ /** @deprecated */
7208
7215
  ES5 = 1,
7209
7216
  ES2015 = 2,
7210
7217
  ES2016 = 3,
@@ -7216,9 +7223,11 @@ declare namespace ts {
7216
7223
  ES2022 = 9,
7217
7224
  ES2023 = 10,
7218
7225
  ES2024 = 11,
7226
+ ES2025 = 12,
7219
7227
  ESNext = 99,
7220
7228
  JSON = 100,
7221
7229
  Latest = 99,
7230
+ LatestStandard = 12,
7222
7231
  }
7223
7232
  enum LanguageVariant {
7224
7233
  Standard = 0,
@@ -9320,7 +9329,7 @@ declare namespace ts {
9320
9329
  * Given a set of options, returns the set of type directive names
9321
9330
  * that should be included for this program automatically.
9322
9331
  * This list could either come from the config file,
9323
- * or from enumerating the types root + initial secondary types lookup location.
9332
+ * and/or from enumerating the types root + initial secondary types lookup location given "*" compat wildcard.
9324
9333
  * More type directives might appear in the program later as a result of loading actual source files;
9325
9334
  * this list is only the set of defaults that are implicitly included.
9326
9335
  */
@@ -10039,6 +10048,7 @@ declare namespace ts {
10039
10048
  libReferenceDirectives: FileReference[];
10040
10049
  importedFiles: FileReference[];
10041
10050
  ambientExternalModules?: string[];
10051
+ /** @deprecated Always false. Use a Program to determine if a file is a lib file. */
10042
10052
  isLibFile: boolean;
10043
10053
  }
10044
10054
  interface HostCancellationToken {