Skip to content

Commit d48a5cf

Browse files
Bump version to 5.6.3 and LKG
1 parent fefa70a commit d48a5cf

File tree

6 files changed

+19
-26
lines changed

6 files changed

+19
-26
lines changed

lib/tsc.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ and limitations under the License.
1818

1919
// src/compiler/corePublic.ts
2020
var versionMajorMinor = "5.6";
21-
var version = "5.6.2";
21+
var version = "5.6.3";
2222

2323
// src/compiler/core.ts
2424
var emptyArray = [];
@@ -6885,7 +6885,6 @@ var Diagnostics = {
68856885
Option_0_1_has_been_removed_Please_remove_it_from_your_configuration: diag(5108, 1 /* Error */, "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108", "Option '{0}={1}' has been removed. Please remove it from your configuration."),
68866886
Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1: diag(5109, 1 /* Error */, "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109", "Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),
68876887
Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1: diag(5110, 1 /* Error */, "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110", "Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),
6888-
Option_tsBuildInfoFile_cannot_be_specified_without_specifying_option_incremental_or_composite_or_if_not_running_tsc_b: diag(5111, 1 /* Error */, "Option_tsBuildInfoFile_cannot_be_specified_without_specifying_option_incremental_or_composite_or_if__5111", "Option 'tsBuildInfoFile' cannot be specified without specifying option 'incremental' or 'composite' or if not running 'tsc -b'."),
68896888
Generates_a_sourcemap_for_each_corresponding_d_ts_file: diag(6e3, 3 /* Message */, "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000", "Generates a sourcemap for each corresponding '.d.ts' file."),
68906889
Concatenate_and_emit_output_to_single_file: diag(6001, 3 /* Message */, "Concatenate_and_emit_output_to_single_file_6001", "Concatenate and emit output to single file."),
68916890
Generates_corresponding_d_ts_file: diag(6002, 3 /* Message */, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."),
@@ -54960,7 +54959,7 @@ function createTypeChecker(host) {
5496054959
/*reportErrors*/
5496154960
false
5496254961
) : unknownType;
54963-
return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, 0 /* Normal */, contextualType)));
54962+
return addOptionality(getWidenedLiteralTypeForInitializer(element, checkDeclarationInitializer(element, 0 /* Normal */, contextualType)));
5496454963
}
5496554964
if (isBindingPattern(element.name)) {
5496654965
return getTypeFromBindingPattern(element.name, includePatternInType, reportErrors2);
@@ -78755,7 +78754,7 @@ function createTypeChecker(host) {
7875578754
return createTupleType(elementTypes, elementFlags, type.target.readonly);
7875678755
}
7875778756
function widenTypeInferredFromInitializer(declaration, type) {
78758-
const widened = getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type);
78757+
const widened = getWidenedLiteralTypeForInitializer(declaration, type);
7875978758
if (isInJSFile(declaration)) {
7876078759
if (isEmptyLiteralType(widened)) {
7876178760
reportImplicitAny(declaration, anyType);
@@ -78767,6 +78766,9 @@ function createTypeChecker(host) {
7876778766
}
7876878767
return widened;
7876978768
}
78769+
function getWidenedLiteralTypeForInitializer(declaration, type) {
78770+
return getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type);
78771+
}
7877078772
function isLiteralOfContextualType(candidateType, contextualType) {
7877178773
if (contextualType) {
7877278774
if (contextualType.flags & 3145728 /* UnionOrIntersection */) {
@@ -122129,11 +122131,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
122129122131
}
122130122132
}
122131122133
const outputFile = options.outFile;
122132-
if (options.tsBuildInfoFile) {
122133-
if (!canEmitTsBuildInfo(options)) {
122134-
createDiagnosticForOptionName(Diagnostics.Option_tsBuildInfoFile_cannot_be_specified_without_specifying_option_incremental_or_composite_or_if_not_running_tsc_b, "tsBuildInfoFile");
122135-
}
122136-
} else if (options.incremental && !outputFile && !options.configFilePath) {
122134+
if (!options.tsBuildInfoFile && options.incremental && !outputFile && !options.configFilePath) {
122137122135
programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));
122138122136
}
122139122137
verifyDeprecatedCompilerOptions();

lib/typescript.js

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ __export(typescript_exports, {
239239
buildOverload: () => buildOverload,
240240
bundlerModuleNameResolver: () => bundlerModuleNameResolver,
241241
canBeConvertedToAsync: () => canBeConvertedToAsync,
242-
canEmitTsBuildInfo: () => canEmitTsBuildInfo,
243242
canHaveDecorators: () => canHaveDecorators,
244243
canHaveExportModifier: () => canHaveExportModifier,
245244
canHaveFlowNode: () => canHaveFlowNode,
@@ -2263,7 +2262,7 @@ module.exports = __toCommonJS(typescript_exports);
22632262

22642263
// src/compiler/corePublic.ts
22652264
var versionMajorMinor = "5.6";
2266-
var version = "5.6.2";
2265+
var version = "5.6.3";
22672266
var Comparison = /* @__PURE__ */ ((Comparison3) => {
22682267
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
22692268
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -10283,7 +10282,6 @@ var Diagnostics = {
1028310282
Option_0_1_has_been_removed_Please_remove_it_from_your_configuration: diag(5108, 1 /* Error */, "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108", "Option '{0}={1}' has been removed. Please remove it from your configuration."),
1028410283
Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1: diag(5109, 1 /* Error */, "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109", "Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),
1028510284
Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1: diag(5110, 1 /* Error */, "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110", "Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),
10286-
Option_tsBuildInfoFile_cannot_be_specified_without_specifying_option_incremental_or_composite_or_if_not_running_tsc_b: diag(5111, 1 /* Error */, "Option_tsBuildInfoFile_cannot_be_specified_without_specifying_option_incremental_or_composite_or_if__5111", "Option 'tsBuildInfoFile' cannot be specified without specifying option 'incremental' or 'composite' or if not running 'tsc -b'."),
1028710285
Generates_a_sourcemap_for_each_corresponding_d_ts_file: diag(6e3, 3 /* Message */, "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000", "Generates a sourcemap for each corresponding '.d.ts' file."),
1028810286
Concatenate_and_emit_output_to_single_file: diag(6001, 3 /* Message */, "Concatenate_and_emit_output_to_single_file_6001", "Concatenate and emit output to single file."),
1028910287
Generates_corresponding_d_ts_file: diag(6002, 3 /* Message */, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."),
@@ -59580,7 +59578,7 @@ function createTypeChecker(host) {
5958059578
/*reportErrors*/
5958159579
false
5958259580
) : unknownType;
59583-
return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, 0 /* Normal */, contextualType)));
59581+
return addOptionality(getWidenedLiteralTypeForInitializer(element, checkDeclarationInitializer(element, 0 /* Normal */, contextualType)));
5958459582
}
5958559583
if (isBindingPattern(element.name)) {
5958659584
return getTypeFromBindingPattern(element.name, includePatternInType, reportErrors2);
@@ -83375,7 +83373,7 @@ function createTypeChecker(host) {
8337583373
return createTupleType(elementTypes, elementFlags, type.target.readonly);
8337683374
}
8337783375
function widenTypeInferredFromInitializer(declaration, type) {
83378-
const widened = getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type);
83376+
const widened = getWidenedLiteralTypeForInitializer(declaration, type);
8337983377
if (isInJSFile(declaration)) {
8338083378
if (isEmptyLiteralType(widened)) {
8338183379
reportImplicitAny(declaration, anyType);
@@ -83387,6 +83385,9 @@ function createTypeChecker(host) {
8338783385
}
8338883386
return widened;
8338983387
}
83388+
function getWidenedLiteralTypeForInitializer(declaration, type) {
83389+
return getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type);
83390+
}
8339083391
function isLiteralOfContextualType(candidateType, contextualType) {
8339183392
if (contextualType) {
8339283393
if (contextualType.flags & 3145728 /* UnionOrIntersection */) {
@@ -126988,11 +126989,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
126988126989
}
126989126990
}
126990126991
const outputFile = options.outFile;
126991-
if (options.tsBuildInfoFile) {
126992-
if (!canEmitTsBuildInfo(options)) {
126993-
createDiagnosticForOptionName(Diagnostics.Option_tsBuildInfoFile_cannot_be_specified_without_specifying_option_incremental_or_composite_or_if_not_running_tsc_b, "tsBuildInfoFile");
126994-
}
126995-
} else if (options.incremental && !outputFile && !options.configFilePath) {
126992+
if (!options.tsBuildInfoFile && options.incremental && !outputFile && !options.configFilePath) {
126996126993
programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));
126997126994
}
126998126995
verifyDeprecatedCompilerOptions();
@@ -179691,7 +179688,6 @@ __export(ts_exports2, {
179691179688
buildOverload: () => buildOverload,
179692179689
bundlerModuleNameResolver: () => bundlerModuleNameResolver,
179693179690
canBeConvertedToAsync: () => canBeConvertedToAsync,
179694-
canEmitTsBuildInfo: () => canEmitTsBuildInfo,
179695179691
canHaveDecorators: () => canHaveDecorators,
179696179692
canHaveExportModifier: () => canHaveExportModifier,
179697179693
canHaveFlowNode: () => canHaveFlowNode,
@@ -194049,7 +194045,6 @@ if (typeof console !== "undefined") {
194049194045
buildOverload,
194050194046
bundlerModuleNameResolver,
194051194047
canBeConvertedToAsync,
194052-
canEmitTsBuildInfo,
194053194048
canHaveDecorators,
194054194049
canHaveExportModifier,
194055194050
canHaveFlowNode,

lib/typingsInstaller.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "typescript",
33
"author": "Microsoft Corp.",
44
"homepage": "https://www.typescriptlang.org/",
5-
"version": "5.6.2",
5+
"version": "5.6.3",
66
"license": "Apache-2.0",
77
"description": "TypeScript is a language for application scale JavaScript development",
88
"keywords": [

src/compiler/corePublic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
export const versionMajorMinor = "5.6";
44
// The following is baselined as a literal template type without intervention
55
/** The version of the TypeScript compiler release */
6-
export const version = "5.6.2" as string;
6+
export const version = "5.6.3" as string;
77

88
/**
99
* Type of objects whose values are all of the same type.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy