Skip to content

Commit

Permalink
Bump version to 5.6.3 and LKG
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Oct 8, 2024
1 parent fefa70a commit d48a5cf
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 26 deletions.
16 changes: 7 additions & 9 deletions lib/tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ and limitations under the License.

// src/compiler/corePublic.ts
var versionMajorMinor = "5.6";
var version = "5.6.2";
var version = "5.6.3";

// src/compiler/core.ts
var emptyArray = [];
Expand Down Expand Up @@ -6885,7 +6885,6 @@ var Diagnostics = {
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."),
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}'."),
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}'."),
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'."),
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."),
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."),
Generates_corresponding_d_ts_file: diag(6002, 3 /* Message */, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."),
Expand Down Expand Up @@ -54960,7 +54959,7 @@ function createTypeChecker(host) {
/*reportErrors*/
false
) : unknownType;
return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, 0 /* Normal */, contextualType)));
return addOptionality(getWidenedLiteralTypeForInitializer(element, checkDeclarationInitializer(element, 0 /* Normal */, contextualType)));
}
if (isBindingPattern(element.name)) {
return getTypeFromBindingPattern(element.name, includePatternInType, reportErrors2);
Expand Down Expand Up @@ -78755,7 +78754,7 @@ function createTypeChecker(host) {
return createTupleType(elementTypes, elementFlags, type.target.readonly);
}
function widenTypeInferredFromInitializer(declaration, type) {
const widened = getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type);
const widened = getWidenedLiteralTypeForInitializer(declaration, type);
if (isInJSFile(declaration)) {
if (isEmptyLiteralType(widened)) {
reportImplicitAny(declaration, anyType);
Expand All @@ -78767,6 +78766,9 @@ function createTypeChecker(host) {
}
return widened;
}
function getWidenedLiteralTypeForInitializer(declaration, type) {
return getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type);
}
function isLiteralOfContextualType(candidateType, contextualType) {
if (contextualType) {
if (contextualType.flags & 3145728 /* UnionOrIntersection */) {
Expand Down Expand Up @@ -122129,11 +122131,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
}
}
const outputFile = options.outFile;
if (options.tsBuildInfoFile) {
if (!canEmitTsBuildInfo(options)) {
createDiagnosticForOptionName(Diagnostics.Option_tsBuildInfoFile_cannot_be_specified_without_specifying_option_incremental_or_composite_or_if_not_running_tsc_b, "tsBuildInfoFile");
}
} else if (options.incremental && !outputFile && !options.configFilePath) {
if (!options.tsBuildInfoFile && options.incremental && !outputFile && !options.configFilePath) {
programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));
}
verifyDeprecatedCompilerOptions();
Expand Down
19 changes: 7 additions & 12 deletions lib/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ __export(typescript_exports, {
buildOverload: () => buildOverload,
bundlerModuleNameResolver: () => bundlerModuleNameResolver,
canBeConvertedToAsync: () => canBeConvertedToAsync,
canEmitTsBuildInfo: () => canEmitTsBuildInfo,
canHaveDecorators: () => canHaveDecorators,
canHaveExportModifier: () => canHaveExportModifier,
canHaveFlowNode: () => canHaveFlowNode,
Expand Down Expand Up @@ -2263,7 +2262,7 @@ module.exports = __toCommonJS(typescript_exports);

// src/compiler/corePublic.ts
var versionMajorMinor = "5.6";
var version = "5.6.2";
var version = "5.6.3";
var Comparison = /* @__PURE__ */ ((Comparison3) => {
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
Expand Down Expand Up @@ -10283,7 +10282,6 @@ var Diagnostics = {
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."),
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}'."),
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}'."),
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'."),
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."),
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."),
Generates_corresponding_d_ts_file: diag(6002, 3 /* Message */, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."),
Expand Down Expand Up @@ -59580,7 +59578,7 @@ function createTypeChecker(host) {
/*reportErrors*/
false
) : unknownType;
return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, 0 /* Normal */, contextualType)));
return addOptionality(getWidenedLiteralTypeForInitializer(element, checkDeclarationInitializer(element, 0 /* Normal */, contextualType)));
}
if (isBindingPattern(element.name)) {
return getTypeFromBindingPattern(element.name, includePatternInType, reportErrors2);
Expand Down Expand Up @@ -83375,7 +83373,7 @@ function createTypeChecker(host) {
return createTupleType(elementTypes, elementFlags, type.target.readonly);
}
function widenTypeInferredFromInitializer(declaration, type) {
const widened = getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type);
const widened = getWidenedLiteralTypeForInitializer(declaration, type);
if (isInJSFile(declaration)) {
if (isEmptyLiteralType(widened)) {
reportImplicitAny(declaration, anyType);
Expand All @@ -83387,6 +83385,9 @@ function createTypeChecker(host) {
}
return widened;
}
function getWidenedLiteralTypeForInitializer(declaration, type) {
return getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type);
}
function isLiteralOfContextualType(candidateType, contextualType) {
if (contextualType) {
if (contextualType.flags & 3145728 /* UnionOrIntersection */) {
Expand Down Expand Up @@ -126988,11 +126989,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
}
}
const outputFile = options.outFile;
if (options.tsBuildInfoFile) {
if (!canEmitTsBuildInfo(options)) {
createDiagnosticForOptionName(Diagnostics.Option_tsBuildInfoFile_cannot_be_specified_without_specifying_option_incremental_or_composite_or_if_not_running_tsc_b, "tsBuildInfoFile");
}
} else if (options.incremental && !outputFile && !options.configFilePath) {
if (!options.tsBuildInfoFile && options.incremental && !outputFile && !options.configFilePath) {
programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));
}
verifyDeprecatedCompilerOptions();
Expand Down Expand Up @@ -179691,7 +179688,6 @@ __export(ts_exports2, {
buildOverload: () => buildOverload,
bundlerModuleNameResolver: () => bundlerModuleNameResolver,
canBeConvertedToAsync: () => canBeConvertedToAsync,
canEmitTsBuildInfo: () => canEmitTsBuildInfo,
canHaveDecorators: () => canHaveDecorators,
canHaveExportModifier: () => canHaveExportModifier,
canHaveFlowNode: () => canHaveFlowNode,
Expand Down Expand Up @@ -194049,7 +194045,6 @@ if (typeof console !== "undefined") {
buildOverload,
bundlerModuleNameResolver,
canBeConvertedToAsync,
canEmitTsBuildInfo,
canHaveDecorators,
canHaveExportModifier,
canHaveFlowNode,
Expand Down
2 changes: 1 addition & 1 deletion lib/typingsInstaller.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "typescript",
"author": "Microsoft Corp.",
"homepage": "https://www.typescriptlang.org/",
"version": "5.6.2",
"version": "5.6.3",
"license": "Apache-2.0",
"description": "TypeScript is a language for application scale JavaScript development",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/corePublic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
export const versionMajorMinor = "5.6";
// The following is baselined as a literal template type without intervention
/** The version of the TypeScript compiler release */
export const version = "5.6.2" as string;
export const version = "5.6.3" as string;

/**
* Type of objects whose values are all of the same type.
Expand Down

0 comments on commit d48a5cf

Please sign in to comment.