typescript 5.0.0-dev.20230220 → 5.0.0-dev.20230222
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.
- package/lib/tsc.js +307 -313
- package/lib/tsserver.js +314 -328
- package/lib/tsserverlibrary.js +314 -328
- package/lib/typescript.js +314 -327
- package/lib/typingsInstaller.js +32 -32
- package/package.json +1 -1
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.0";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20230222`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -6298,7 +6298,7 @@ var Diagnostics = {
|
|
|
6298
6298
|
Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler: diag(5098, 1 /* Error */, "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098", "Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),
|
|
6299
6299
|
Import_assignment_is_not_allowed_when_moduleResolution_is_set_to_bundler_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead: diag(5099, 1 /* Error */, "Import_assignment_is_not_allowed_when_moduleResolution_is_set_to_bundler_Consider_using_import_Aster_5099", `Import assignment is not allowed when 'moduleResolution' is set to 'bundler'. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),
|
|
6300
6300
|
Export_assignment_cannot_be_used_when_moduleResolution_is_set_to_bundler_Consider_using_export_default_or_another_module_format_instead: diag(5100, 1 /* Error */, "Export_assignment_cannot_be_used_when_moduleResolution_is_set_to_bundler_Consider_using_export_defau_5100", "Export assignment cannot be used when 'moduleResolution' is set to 'bundler'. Consider using 'export default' or another module format instead."),
|
|
6301
|
-
|
|
6301
|
+
Flag_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error: diag(5101, 1 /* Error */, "Flag_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecat_5101", `Flag '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),
|
|
6302
6302
|
Flag_0_is_deprecated_Please_remove_it_from_your_configuration: diag(5102, 1 /* Error */, "Flag_0_is_deprecated_Please_remove_it_from_your_configuration_5102", "Flag '{0}' is deprecated. Please remove it from your configuration."),
|
|
6303
6303
|
Invalid_value_for_ignoreDeprecations: diag(5103, 1 /* Error */, "Invalid_value_for_ignoreDeprecations_5103", "Invalid value for '--ignoreDeprecations'."),
|
|
6304
6304
|
Option_0_is_redundant_and_cannot_be_specified_with_option_1: diag(5104, 1 /* Error */, "Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104", "Option '{0}' is redundant and cannot be specified with option '{1}'."),
|
|
@@ -29718,35 +29718,36 @@ function initFlowNode(node) {
|
|
|
29718
29718
|
}
|
|
29719
29719
|
var binder = createBinder();
|
|
29720
29720
|
function createBinder() {
|
|
29721
|
-
|
|
29722
|
-
|
|
29723
|
-
|
|
29724
|
-
|
|
29725
|
-
|
|
29726
|
-
|
|
29727
|
-
|
|
29728
|
-
|
|
29729
|
-
|
|
29730
|
-
|
|
29731
|
-
|
|
29732
|
-
|
|
29733
|
-
|
|
29734
|
-
|
|
29735
|
-
|
|
29736
|
-
|
|
29737
|
-
|
|
29738
|
-
|
|
29739
|
-
|
|
29740
|
-
|
|
29741
|
-
|
|
29742
|
-
|
|
29743
|
-
|
|
29744
|
-
|
|
29745
|
-
|
|
29746
|
-
|
|
29747
|
-
|
|
29748
|
-
|
|
29749
|
-
|
|
29721
|
+
var file;
|
|
29722
|
+
var options;
|
|
29723
|
+
var languageVersion;
|
|
29724
|
+
var parent;
|
|
29725
|
+
var container;
|
|
29726
|
+
var thisParentContainer;
|
|
29727
|
+
var blockScopeContainer;
|
|
29728
|
+
var lastContainer;
|
|
29729
|
+
var delayedTypeAliases;
|
|
29730
|
+
var seenThisKeyword;
|
|
29731
|
+
var currentFlow;
|
|
29732
|
+
var currentBreakTarget;
|
|
29733
|
+
var currentContinueTarget;
|
|
29734
|
+
var currentReturnTarget;
|
|
29735
|
+
var currentTrueTarget;
|
|
29736
|
+
var currentFalseTarget;
|
|
29737
|
+
var currentExceptionTarget;
|
|
29738
|
+
var preSwitchCaseFlow;
|
|
29739
|
+
var activeLabelList;
|
|
29740
|
+
var hasExplicitReturn;
|
|
29741
|
+
var emitFlags;
|
|
29742
|
+
var inStrictMode;
|
|
29743
|
+
var inAssignmentPattern = false;
|
|
29744
|
+
var symbolCount = 0;
|
|
29745
|
+
var Symbol12;
|
|
29746
|
+
var classifiableNames;
|
|
29747
|
+
var unreachableFlow = { flags: 1 /* Unreachable */ };
|
|
29748
|
+
var reportedUnreachableFlow = { flags: 1 /* Unreachable */ };
|
|
29749
|
+
var bindBinaryExpressionFlow = createBindBinaryExpressionFlow();
|
|
29750
|
+
return bindSourceFile2;
|
|
29750
29751
|
function createDiagnosticForNode2(node, message, arg0, arg1, arg2) {
|
|
29751
29752
|
return createDiagnosticForNodeInSourceFile(getSourceFileOfNode(node) || file, node, message, arg0, arg1, arg2);
|
|
29752
29753
|
}
|
|
@@ -29797,7 +29798,6 @@ function createBinder() {
|
|
|
29797
29798
|
inAssignmentPattern = false;
|
|
29798
29799
|
emitFlags = 0 /* None */;
|
|
29799
29800
|
}
|
|
29800
|
-
return bindSourceFile2;
|
|
29801
29801
|
function bindInStrictMode(file2, opts) {
|
|
29802
29802
|
if (getStrictOptionValue(opts, "alwaysStrict") && !file2.isDeclarationFile) {
|
|
29803
29803
|
return true;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.0.0-dev.
|
|
5
|
+
"version": "5.0.0-dev.20230222",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|