typescript 5.0.0-dev.20230226 → 5.0.2

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.
@@ -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.20230226`;
57
+ var version = "5.0.2";
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -3302,6 +3302,7 @@ var DiagnosticCategory = /* @__PURE__ */ ((DiagnosticCategory2) => {
3302
3302
  })(DiagnosticCategory || {});
3303
3303
  var ModuleResolutionKind = /* @__PURE__ */ ((ModuleResolutionKind2) => {
3304
3304
  ModuleResolutionKind2[ModuleResolutionKind2["Classic"] = 1] = "Classic";
3305
+ ModuleResolutionKind2[ModuleResolutionKind2["NodeJs"] = 2] = "NodeJs";
3305
3306
  ModuleResolutionKind2[ModuleResolutionKind2["Node10"] = 2] = "Node10";
3306
3307
  ModuleResolutionKind2[ModuleResolutionKind2["Node16"] = 3] = "Node16";
3307
3308
  ModuleResolutionKind2[ModuleResolutionKind2["NodeNext"] = 99] = "NodeNext";
@@ -4348,20 +4349,6 @@ function patchWriteFileEnsuringDirectory(sys2) {
4348
4349
  (path3) => sys2.directoryExists(path3)
4349
4350
  );
4350
4351
  }
4351
- function getNodeMajorVersion() {
4352
- if (typeof process === "undefined") {
4353
- return void 0;
4354
- }
4355
- const version2 = process.version;
4356
- if (!version2) {
4357
- return void 0;
4358
- }
4359
- const dot = version2.indexOf(".");
4360
- if (dot === -1) {
4361
- return void 0;
4362
- }
4363
- return parseInt(version2.substring(1, dot));
4364
- }
4365
4352
  var sys = (() => {
4366
4353
  const byteOrderMarkIndicator = "\uFEFF";
4367
4354
  function getNodeSystem() {
@@ -4378,14 +4365,12 @@ var sys = (() => {
4378
4365
  let activeSession;
4379
4366
  let profilePath = "./profile.cpuprofile";
4380
4367
  const Buffer2 = require("buffer").Buffer;
4381
- const nodeVersion = getNodeMajorVersion();
4382
- const isNode4OrLater = nodeVersion >= 4;
4383
4368
  const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
4384
4369
  const platform = _os.platform();
4385
4370
  const useCaseSensitiveFileNames = isFileSystemCaseSensitive();
4386
4371
  const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
4387
4372
  const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
4388
- const fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
4373
+ const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin";
4389
4374
  const getCurrentDirectory = memoize(() => process.cwd());
4390
4375
  const { watchFile, watchDirectory } = createSystemWatchFunctions({
4391
4376
  pollingWatchFileWorker: fsWatchFileWorker,
@@ -6296,12 +6281,14 @@ var Diagnostics = {
6296
6281
  Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set: diag(5096, 1 /* Error */, "Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096", "Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),
6297
6282
  An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled: diag(5097, 1 /* Error */, "An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097", "An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),
6298
6283
  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
- 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.`),
6300
- 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."),
6284
+ Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error: diag(5101, 1 /* Error */, "Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101", `Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),
6285
+ Option_0_has_been_removed_Please_remove_it_from_your_configuration: diag(5102, 1 /* Error */, "Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102", "Option '{0}' has been removed. Please remove it from your configuration."),
6301
6286
  Invalid_value_for_ignoreDeprecations: diag(5103, 1 /* Error */, "Invalid_value_for_ignoreDeprecations_5103", "Invalid value for '--ignoreDeprecations'."),
6302
6287
  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}'."),
6303
6288
  Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System: diag(5105, 1 /* Error */, "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105", "Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),
6304
6289
  Use_0_instead: diag(5106, 3 /* Message */, "Use_0_instead_5106", "Use '{0}' instead."),
6290
+ Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error: diag(5107, 1 /* Error */, "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107", `Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),
6291
+ 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."),
6305
6292
  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."),
6306
6293
  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."),
6307
6294
  Generates_corresponding_d_ts_file: diag(6002, 3 /* Message */, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."),
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.20230226",
5
+ "version": "5.0.2",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -26,7 +26,7 @@
26
26
  "tsserver": "./bin/tsserver"
27
27
  },
28
28
  "engines": {
29
- "node": ">=4.2.0"
29
+ "node": ">=12.20"
30
30
  },
31
31
  "files": [
32
32
  "bin",
@@ -41,21 +41,21 @@
41
41
  "devDependencies": {
42
42
  "@esfx/canceltoken": "^1.0.0",
43
43
  "@octokit/rest": "latest",
44
- "@types/chai": "latest",
44
+ "@types/chai": "^4.3.4",
45
45
  "@types/fs-extra": "^9.0.13",
46
- "@types/glob": "latest",
47
- "@types/microsoft__typescript-etw": "latest",
48
- "@types/minimist": "latest",
49
- "@types/mocha": "latest",
50
- "@types/ms": "latest",
46
+ "@types/glob": "^8.1.0",
47
+ "@types/microsoft__typescript-etw": "^0.1.1",
48
+ "@types/minimist": "^1.2.2",
49
+ "@types/mocha": "^10.0.1",
50
+ "@types/ms": "^0.7.31",
51
51
  "@types/node": "latest",
52
- "@types/source-map-support": "latest",
52
+ "@types/source-map-support": "^0.5.6",
53
53
  "@types/which": "^2.0.1",
54
54
  "@typescript-eslint/eslint-plugin": "^5.33.1",
55
55
  "@typescript-eslint/parser": "^5.33.1",
56
56
  "@typescript-eslint/utils": "^5.33.1",
57
57
  "azure-devops-node-api": "^11.2.0",
58
- "chai": "latest",
58
+ "chai": "^4.3.7",
59
59
  "chalk": "^4.1.2",
60
60
  "chokidar": "^3.5.3",
61
61
  "del": "^6.1.1",
@@ -69,15 +69,15 @@
69
69
  "eslint-plugin-simple-import-sort": "^10.0.0",
70
70
  "fast-xml-parser": "^4.0.11",
71
71
  "fs-extra": "^9.1.0",
72
- "glob": "latest",
72
+ "glob": "^8.1.0",
73
73
  "hereby": "^1.6.4",
74
74
  "jsonc-parser": "^3.2.0",
75
- "minimist": "latest",
76
- "mocha": "latest",
77
- "mocha-fivemat-progress-reporter": "latest",
75
+ "minimist": "^1.2.8",
76
+ "mocha": "^10.2.0",
77
+ "mocha-fivemat-progress-reporter": "^0.1.0",
78
78
  "ms": "^2.1.3",
79
79
  "node-fetch": "^3.2.10",
80
- "source-map-support": "latest",
80
+ "source-map-support": "^0.5.21",
81
81
  "typescript": "5.0.0-dev.20230112",
82
82
  "which": "^2.0.2"
83
83
  },
@@ -112,4 +112,4 @@
112
112
  "node": "14.21.1",
113
113
  "npm": "8.19.3"
114
114
  }
115
- }
115
+ }