@schematics/angular 14.0.0-rc.0 → 14.0.0-rc.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.
@@ -1,4 +1,4 @@
1
- import { Component, OnInit<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%><% if(changeDetection !== 'Default') { %>, ChangeDetectionStrategy<% }%> } from '@angular/core';<% if(standalone) {%>
1
+ import { <% if(changeDetection !== 'Default') { %>ChangeDetectionStrategy, <% }%>Component, OnInit<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%> } from '@angular/core';<% if(standalone) {%>
2
2
  import { CommonModule } from '@angular/common';<% } %>
3
3
 
4
4
  @Component({<% if(!skipSelector) {%>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematics/angular",
3
- "version": "14.0.0-rc.0",
3
+ "version": "14.0.0-rc.1",
4
4
  "description": "Schematics specific to Angular",
5
5
  "homepage": "https://github.com/angular/angular-cli",
6
6
  "keywords": [
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "schematics": "./collection.json",
24
24
  "dependencies": {
25
- "@angular-devkit/core": "14.0.0-rc.0",
26
- "@angular-devkit/schematics": "14.0.0-rc.0",
25
+ "@angular-devkit/core": "14.0.0-rc.1",
26
+ "@angular-devkit/schematics": "14.0.0-rc.1",
27
27
  "jsonc-parser": "3.0.0"
28
28
  },
29
29
  "repository": {
@@ -1,11 +1,11 @@
1
1
  load("//tools:defaults.bzl", "ts_library")
2
2
 
3
3
  # files fetched on 2022-05-06 from
4
- # https://github.com/microsoft/TypeScript/releases/tag/v4.7-beta
4
+ # https://github.com/microsoft/TypeScript/releases/tag/v4.7-rc
5
5
 
6
6
  # Commands to download:
7
- # curl https://raw.githubusercontent.com/microsoft/TypeScript/v4.7-beta/lib/typescript.d.ts -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts
8
- # curl https://raw.githubusercontent.com/microsoft/TypeScript/v4.7-beta/lib/typescript.js -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js
7
+ # curl https://raw.githubusercontent.com/microsoft/TypeScript/v4.7-rc/lib/typescript.d.ts -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts
8
+ # curl https://raw.githubusercontent.com/microsoft/TypeScript/v4.7-rc/lib/typescript.js -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js
9
9
 
10
10
  licenses(["notice"]) # Apache 2.0
11
11
 
@@ -2063,7 +2063,7 @@ declare namespace ts {
2063
2063
  hasNoDefaultLib: boolean;
2064
2064
  languageVersion: ScriptTarget;
2065
2065
  /**
2066
- * When `module` is `Node12` or `NodeNext`, this field controls whether the
2066
+ * When `module` is `Node16` or `NodeNext`, this field controls whether the
2067
2067
  * source file in question is an ESNext-output-format file, or a CommonJS-output-format
2068
2068
  * module. This is derived by the module resolver as it looks up the file, since
2069
2069
  * it is derived from either the file extension of the module, or the containing
@@ -2172,7 +2172,9 @@ declare namespace ts {
2172
2172
  export type ResolvedConfigFileName = string & {
2173
2173
  _isResolvedConfigFileName: never;
2174
2174
  };
2175
- export type WriteFileCallback = (fileName: string, data: string, writeByteOrderMark: boolean, onError?: (message: string) => void, sourceFiles?: readonly SourceFile[]) => void;
2175
+ export interface WriteFileCallbackData {
2176
+ }
2177
+ export type WriteFileCallback = (fileName: string, text: string, writeByteOrderMark: boolean, onError?: (message: string) => void, sourceFiles?: readonly SourceFile[], data?: WriteFileCallbackData) => void;
2176
2178
  export class OperationCanceledException {
2177
2179
  }
2178
2180
  export interface CancellationToken {
@@ -2394,7 +2396,6 @@ declare namespace ts {
2394
2396
  UseAliasDefinedOutsideCurrentScope = 16384,
2395
2397
  UseSingleQuotesForStringLiteralType = 268435456,
2396
2398
  NoTypeReduction = 536870912,
2397
- NoUndefinedOptionalParameterType = 1073741824,
2398
2399
  AllowThisInObjectLiteral = 32768,
2399
2400
  AllowQualifiedNameInPlaceOfIdentifier = 65536,
2400
2401
  /** @deprecated AllowQualifedNameInPlaceOfIdentifier. Use AllowQualifiedNameInPlaceOfIdentifier instead. */
@@ -2892,7 +2893,7 @@ declare namespace ts {
2892
2893
  export enum ModuleResolutionKind {
2893
2894
  Classic = 1,
2894
2895
  NodeJs = 2,
2895
- Node12 = 3,
2896
+ Node16 = 3,
2896
2897
  NodeNext = 99
2897
2898
  }
2898
2899
  export enum ModuleDetectionKind {
@@ -2901,7 +2902,7 @@ declare namespace ts {
2901
2902
  */
2902
2903
  Legacy = 1,
2903
2904
  /**
2904
- * Legacy, but also files with jsx under react-jsx or react-jsxdev and esm mode files under moduleResolution: node12+
2905
+ * Legacy, but also files with jsx under react-jsx or react-jsxdev and esm mode files under moduleResolution: node16+
2905
2906
  */
2906
2907
  Auto = 2,
2907
2908
  /**
@@ -3073,7 +3074,7 @@ declare namespace ts {
3073
3074
  ES2020 = 6,
3074
3075
  ES2022 = 7,
3075
3076
  ESNext = 99,
3076
- Node12 = 100,
3077
+ Node16 = 100,
3077
3078
  NodeNext = 199
3078
3079
  }
3079
3080
  export enum JsxEmit {
@@ -4817,7 +4818,7 @@ declare namespace ts {
4817
4818
  /**
4818
4819
  * Controls the format the file is detected as - this can be derived from only the path
4819
4820
  * and files on disk, but needs to be done with a module resolution cache in scope to be performant.
4820
- * This is usually `undefined` for compilations that do not have `moduleResolution` values of `node12` or `nodenext`.
4821
+ * This is usually `undefined` for compilations that do not have `moduleResolution` values of `node16` or `nodenext`.
4821
4822
  */
4822
4823
  impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS;
4823
4824
  /**
@@ -6434,7 +6435,18 @@ declare namespace ts {
6434
6435
  argumentIndex: number;
6435
6436
  argumentCount: number;
6436
6437
  }
6438
+ enum CompletionInfoFlags {
6439
+ None = 0,
6440
+ MayIncludeAutoImports = 1,
6441
+ IsImportStatementCompletion = 2,
6442
+ IsContinuation = 4,
6443
+ ResolvedModuleSpecifiers = 8,
6444
+ ResolvedModuleSpecifiersBeyondLimit = 16,
6445
+ MayIncludeMethodSnippets = 32
6446
+ }
6437
6447
  interface CompletionInfo {
6448
+ /** For performance telemetry. */
6449
+ flags?: CompletionInfoFlags;
6438
6450
  /** Not true for all global completions. This will be true if the enclosing scope matches a few syntax kinds. See `isSnippetScope`. */
6439
6451
  isGlobalCompletion: boolean;
6440
6452
  isMemberCompletion: boolean;
@@ -6810,7 +6822,7 @@ declare namespace ts {
6810
6822
  * shape of a the resulting SourceFile. This allows the DocumentRegistry to store
6811
6823
  * multiple copies of the same file for different compilation settings. A minimal
6812
6824
  * resolution cache is needed to fully define a source file's shape when
6813
- * the compilation settings include `module: node12`+, so providing a cache host
6825
+ * the compilation settings include `module: node16`+, so providing a cache host
6814
6826
  * object should be preferred. A common host is a language service `ConfiguredProject`.
6815
6827
  * @param scriptSnapshot Text of the file. Only used if the file was not found
6816
6828
  * in the registry and a new one was created.
@@ -6829,7 +6841,7 @@ declare namespace ts {
6829
6841
  * shape of a the resulting SourceFile. This allows the DocumentRegistry to store
6830
6842
  * multiple copies of the same file for different compilation settings. A minimal
6831
6843
  * resolution cache is needed to fully define a source file's shape when
6832
- * the compilation settings include `module: node12`+, so providing a cache host
6844
+ * the compilation settings include `module: node16`+, so providing a cache host
6833
6845
  * object should be preferred. A common host is a language service `ConfiguredProject`.
6834
6846
  * @param scriptSnapshot Text of the file.
6835
6847
  * @param version Current version of the file.