From ccf3d3c5f9b4bc2883d700870ed2dac454050f1f Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Mon, 30 Jan 2023 18:14:14 +0000 Subject: [PATCH] Bump version to '4.9.5' and LKG. --- lib/tsc.js | 11 ++++++++--- lib/tsserver.js | 14 ++++++++++++-- lib/tsserverlibrary.js | 14 ++++++++++++-- lib/typescript.js | 14 ++++++++++++-- lib/typescriptServices.js | 14 ++++++++++++-- lib/typingsInstaller.js | 14 ++++++++++++-- package.json | 2 +- src/compiler/corePublic.ts | 2 +- 8 files changed, 70 insertions(+), 15 deletions(-) diff --git a/lib/tsc.js b/lib/tsc.js index 80afaea533e28..fab7c8588bf31 100644 --- a/lib/tsc.js +++ b/lib/tsc.js @@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { var ts; (function (ts) { ts.versionMajorMinor = "4.9"; - ts.version = "".concat(ts.versionMajorMinor, ".4"); + ts.version = "".concat(ts.versionMajorMinor, ".5"); var NativeCollections; (function (NativeCollections) { var globals = typeof globalThis !== "undefined" ? globalThis : @@ -33654,7 +33654,12 @@ var ts; description: ts.Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files, category: ts.Diagnostics.Language_and_Environment, defaultValueDescription: ts.Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules, - } + }, + { + name: "ignoreDeprecations", + type: "string", + defaultValueDescription: undefined, + }, ]; ts.optionDeclarations = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), commandOptionsWithoutBuild, true); ts.semanticDiagnosticsOptionDeclarations = ts.optionDeclarations.filter(function (option) { return !!option.affectsSemanticDiagnostics; }); @@ -104329,7 +104334,7 @@ var ts; function getLocaleTimeString(system) { return !system.now ? new Date().toLocaleTimeString() : - system.now().toLocaleTimeString("en-US", { timeZone: "UTC" }); + system.now().toLocaleTimeString("en-US", { timeZone: "UTC" }).replace("\u202f", " "); } ts.getLocaleTimeString = getLocaleTimeString; function createWatchStatusReporter(system, pretty) { diff --git a/lib/tsserver.js b/lib/tsserver.js index a2960e9f6795b..537e3f9703391 100644 --- a/lib/tsserver.js +++ b/lib/tsserver.js @@ -41291,7 +41291,12 @@ var ts; description: ts.Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files, category: ts.Diagnostics.Language_and_Environment, defaultValueDescription: ts.Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules, - } + }, + { + name: "ignoreDeprecations", + type: "string", + defaultValueDescription: undefined, + }, ]; /* @internal */ ts.optionDeclarations = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), commandOptionsWithoutBuild, true); @@ -125798,7 +125803,12 @@ var ts; function getLocaleTimeString(system) { return !system.now ? new Date().toLocaleTimeString() : - system.now().toLocaleTimeString("en-US", { timeZone: "UTC" }); + // On some systems / builds of Node, there's a non-breaking space between the time and AM/PM. + // This branch is solely for testing, so just switch it to a normal space for baseline stability. + // See: + // - https://github.com/nodejs/node/issues/45171 + // - https://github.com/nodejs/node/issues/45753 + system.now().toLocaleTimeString("en-US", { timeZone: "UTC" }).replace("\u202f", " "); } ts.getLocaleTimeString = getLocaleTimeString; /** diff --git a/lib/tsserverlibrary.js b/lib/tsserverlibrary.js index 1b41c9347d2f7..6ceabf9aa3b3c 100644 --- a/lib/tsserverlibrary.js +++ b/lib/tsserverlibrary.js @@ -41290,7 +41290,12 @@ var ts; description: ts.Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files, category: ts.Diagnostics.Language_and_Environment, defaultValueDescription: ts.Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules, - } + }, + { + name: "ignoreDeprecations", + type: "string", + defaultValueDescription: undefined, + }, ]; /* @internal */ ts.optionDeclarations = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), commandOptionsWithoutBuild, true); @@ -125797,7 +125802,12 @@ var ts; function getLocaleTimeString(system) { return !system.now ? new Date().toLocaleTimeString() : - system.now().toLocaleTimeString("en-US", { timeZone: "UTC" }); + // On some systems / builds of Node, there's a non-breaking space between the time and AM/PM. + // This branch is solely for testing, so just switch it to a normal space for baseline stability. + // See: + // - https://github.com/nodejs/node/issues/45171 + // - https://github.com/nodejs/node/issues/45753 + system.now().toLocaleTimeString("en-US", { timeZone: "UTC" }).replace("\u202f", " "); } ts.getLocaleTimeString = getLocaleTimeString; /** diff --git a/lib/typescript.js b/lib/typescript.js index c2688dd27c335..b9ac17f6c8d07 100644 --- a/lib/typescript.js +++ b/lib/typescript.js @@ -41281,7 +41281,12 @@ var ts; description: ts.Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files, category: ts.Diagnostics.Language_and_Environment, defaultValueDescription: ts.Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules, - } + }, + { + name: "ignoreDeprecations", + type: "string", + defaultValueDescription: undefined, + }, ]; /* @internal */ ts.optionDeclarations = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), commandOptionsWithoutBuild, true); @@ -125788,7 +125793,12 @@ var ts; function getLocaleTimeString(system) { return !system.now ? new Date().toLocaleTimeString() : - system.now().toLocaleTimeString("en-US", { timeZone: "UTC" }); + // On some systems / builds of Node, there's a non-breaking space between the time and AM/PM. + // This branch is solely for testing, so just switch it to a normal space for baseline stability. + // See: + // - https://github.com/nodejs/node/issues/45171 + // - https://github.com/nodejs/node/issues/45753 + system.now().toLocaleTimeString("en-US", { timeZone: "UTC" }).replace("\u202f", " "); } ts.getLocaleTimeString = getLocaleTimeString; /** diff --git a/lib/typescriptServices.js b/lib/typescriptServices.js index 98086d72a80af..0e663bd6912b2 100644 --- a/lib/typescriptServices.js +++ b/lib/typescriptServices.js @@ -41281,7 +41281,12 @@ var ts; description: ts.Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files, category: ts.Diagnostics.Language_and_Environment, defaultValueDescription: ts.Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules, - } + }, + { + name: "ignoreDeprecations", + type: "string", + defaultValueDescription: undefined, + }, ]; /* @internal */ ts.optionDeclarations = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), commandOptionsWithoutBuild, true); @@ -125788,7 +125793,12 @@ var ts; function getLocaleTimeString(system) { return !system.now ? new Date().toLocaleTimeString() : - system.now().toLocaleTimeString("en-US", { timeZone: "UTC" }); + // On some systems / builds of Node, there's a non-breaking space between the time and AM/PM. + // This branch is solely for testing, so just switch it to a normal space for baseline stability. + // See: + // - https://github.com/nodejs/node/issues/45171 + // - https://github.com/nodejs/node/issues/45753 + system.now().toLocaleTimeString("en-US", { timeZone: "UTC" }).replace("\u202f", " "); } ts.getLocaleTimeString = getLocaleTimeString; /** diff --git a/lib/typingsInstaller.js b/lib/typingsInstaller.js index a4a6c6314ce7e..290ebb3e8f366 100644 --- a/lib/typingsInstaller.js +++ b/lib/typingsInstaller.js @@ -41271,7 +41271,12 @@ var ts; description: ts.Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files, category: ts.Diagnostics.Language_and_Environment, defaultValueDescription: ts.Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules, - } + }, + { + name: "ignoreDeprecations", + type: "string", + defaultValueDescription: undefined, + }, ]; /* @internal */ ts.optionDeclarations = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), commandOptionsWithoutBuild, true); @@ -125778,7 +125783,12 @@ var ts; function getLocaleTimeString(system) { return !system.now ? new Date().toLocaleTimeString() : - system.now().toLocaleTimeString("en-US", { timeZone: "UTC" }); + // On some systems / builds of Node, there's a non-breaking space between the time and AM/PM. + // This branch is solely for testing, so just switch it to a normal space for baseline stability. + // See: + // - https://github.com/nodejs/node/issues/45171 + // - https://github.com/nodejs/node/issues/45753 + system.now().toLocaleTimeString("en-US", { timeZone: "UTC" }).replace("\u202f", " "); } ts.getLocaleTimeString = getLocaleTimeString; /** diff --git a/package.json b/package.json index f5de7c1fc823a..44f7055d942f3 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "typescript", "author": "Microsoft Corp.", "homepage": "https://www.typescriptlang.org/", - "version": "4.9.4", + "version": "4.9.5", "license": "Apache-2.0", "description": "TypeScript is a language for application scale JavaScript development", "keywords": [ diff --git a/src/compiler/corePublic.ts b/src/compiler/corePublic.ts index 449bd11b603ff..3e6da979a69d4 100644 --- a/src/compiler/corePublic.ts +++ b/src/compiler/corePublic.ts @@ -5,7 +5,7 @@ namespace ts { // The following is baselined as a literal template type without intervention /** The version of the TypeScript compiler release */ // eslint-disable-next-line @typescript-eslint/no-inferrable-types - export const version: string = `${versionMajorMinor}.4`; + export const version: string = `${versionMajorMinor}.5`; /** * Type of objects whose values are all of the same type.