Skip to content

Commit 8ed291d

Browse files
crisbetoclydin
authored andcommitted
build: update to TypeScript 4.7 RC
Bumps up the repo to the RC version of TypeScript 4.7.
1 parent 9fd042d commit 8ed291d

File tree

7 files changed

+19906
-19257
lines changed

7 files changed

+19906
-19257
lines changed

goldens/public-api/angular_devkit/schematics/tools/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export class SchematicNameCollisionException extends BaseException {
275275
}
276276

277277
// @public (undocumented)
278-
export function validateOptionsWithSchema(registry: schema.SchemaRegistry): <T extends {} | null>(schematic: FileSystemSchematicDescription, options: T, context?: FileSystemSchematicContext | undefined) => Observable<T>;
278+
export function validateOptionsWithSchema(registry: schema.SchemaRegistry): <T extends {} | null>(schematic: FileSystemSchematicDescription, options: T, context?: FileSystemSchematicContext) => Observable<T>;
279279

280280
// (No @packageDocumentation comment for this package)
281281

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
"tree-kill": "1.2.2",
210210
"ts-node": "^10.0.0",
211211
"tslib": "2.4.0",
212-
"typescript": "4.7.0-beta",
212+
"typescript": "4.7.1-rc",
213213
"verdaccio": "5.10.2",
214214
"verdaccio-auth-memory": "^10.0.0",
215215
"webpack": "5.72.1",

packages/ngtools/webpack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@angular-devkit/core": "0.0.0-PLACEHOLDER",
3131
"@angular/compiler": "14.0.0-next.16",
3232
"@angular/compiler-cli": "14.0.0-next.16",
33-
"typescript": "4.7.0-beta",
33+
"typescript": "4.7.1-rc",
3434
"webpack": "5.72.1"
3535
}
3636
}

packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/BUILD.bazel

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
load("//tools:defaults.bzl", "ts_library")
22

33
# 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
55

66
# 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
99

1010
licenses(["notice"]) # Apache 2.0
1111

packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts

+21-9
Original file line numberDiff line numberDiff line change
@@ -2063,7 +2063,7 @@ declare namespace ts {
20632063
hasNoDefaultLib: boolean;
20642064
languageVersion: ScriptTarget;
20652065
/**
2066-
* When `module` is `Node12` or `NodeNext`, this field controls whether the
2066+
* When `module` is `Node16` or `NodeNext`, this field controls whether the
20672067
* source file in question is an ESNext-output-format file, or a CommonJS-output-format
20682068
* module. This is derived by the module resolver as it looks up the file, since
20692069
* it is derived from either the file extension of the module, or the containing
@@ -2172,7 +2172,9 @@ declare namespace ts {
21722172
export type ResolvedConfigFileName = string & {
21732173
_isResolvedConfigFileName: never;
21742174
};
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;
21762178
export class OperationCanceledException {
21772179
}
21782180
export interface CancellationToken {
@@ -2394,7 +2396,6 @@ declare namespace ts {
23942396
UseAliasDefinedOutsideCurrentScope = 16384,
23952397
UseSingleQuotesForStringLiteralType = 268435456,
23962398
NoTypeReduction = 536870912,
2397-
NoUndefinedOptionalParameterType = 1073741824,
23982399
AllowThisInObjectLiteral = 32768,
23992400
AllowQualifiedNameInPlaceOfIdentifier = 65536,
24002401
/** @deprecated AllowQualifedNameInPlaceOfIdentifier. Use AllowQualifiedNameInPlaceOfIdentifier instead. */
@@ -2892,7 +2893,7 @@ declare namespace ts {
28922893
export enum ModuleResolutionKind {
28932894
Classic = 1,
28942895
NodeJs = 2,
2895-
Node12 = 3,
2896+
Node16 = 3,
28962897
NodeNext = 99
28972898
}
28982899
export enum ModuleDetectionKind {
@@ -2901,7 +2902,7 @@ declare namespace ts {
29012902
*/
29022903
Legacy = 1,
29032904
/**
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+
29052906
*/
29062907
Auto = 2,
29072908
/**
@@ -3073,7 +3074,7 @@ declare namespace ts {
30733074
ES2020 = 6,
30743075
ES2022 = 7,
30753076
ESNext = 99,
3076-
Node12 = 100,
3077+
Node16 = 100,
30773078
NodeNext = 199
30783079
}
30793080
export enum JsxEmit {
@@ -4817,7 +4818,7 @@ declare namespace ts {
48174818
/**
48184819
* Controls the format the file is detected as - this can be derived from only the path
48194820
* 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`.
48214822
*/
48224823
impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS;
48234824
/**
@@ -6434,7 +6435,18 @@ declare namespace ts {
64346435
argumentIndex: number;
64356436
argumentCount: number;
64366437
}
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+
}
64376447
interface CompletionInfo {
6448+
/** For performance telemetry. */
6449+
flags?: CompletionInfoFlags;
64386450
/** Not true for all global completions. This will be true if the enclosing scope matches a few syntax kinds. See `isSnippetScope`. */
64396451
isGlobalCompletion: boolean;
64406452
isMemberCompletion: boolean;
@@ -6810,7 +6822,7 @@ declare namespace ts {
68106822
* shape of a the resulting SourceFile. This allows the DocumentRegistry to store
68116823
* multiple copies of the same file for different compilation settings. A minimal
68126824
* 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
68146826
* object should be preferred. A common host is a language service `ConfiguredProject`.
68156827
* @param scriptSnapshot Text of the file. Only used if the file was not found
68166828
* in the registry and a new one was created.
@@ -6829,7 +6841,7 @@ declare namespace ts {
68296841
* shape of a the resulting SourceFile. This allows the DocumentRegistry to store
68306842
* multiple copies of the same file for different compilation settings. A minimal
68316843
* 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
68336845
* object should be preferred. A common host is a language service `ConfiguredProject`.
68346846
* @param scriptSnapshot Text of the file.
68356847
* @param version Current version of the file.

0 commit comments

Comments
 (0)