typescript 5.1.0-dev.20230308 → 5.1.0-dev.20230310

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.1";
57
- var version = `${versionMajorMinor}.0-dev.20230308`;
57
+ var version = `${versionMajorMinor}.0-dev.20230310`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -4264,20 +4264,6 @@ function patchWriteFileEnsuringDirectory(sys2) {
4264
4264
  (path3) => sys2.directoryExists(path3)
4265
4265
  );
4266
4266
  }
4267
- function getNodeMajorVersion() {
4268
- if (typeof process === "undefined") {
4269
- return void 0;
4270
- }
4271
- const version2 = process.version;
4272
- if (!version2) {
4273
- return void 0;
4274
- }
4275
- const dot = version2.indexOf(".");
4276
- if (dot === -1) {
4277
- return void 0;
4278
- }
4279
- return parseInt(version2.substring(1, dot));
4280
- }
4281
4267
  var sys = (() => {
4282
4268
  const byteOrderMarkIndicator = "\uFEFF";
4283
4269
  function getNodeSystem() {
@@ -4294,14 +4280,12 @@ var sys = (() => {
4294
4280
  let activeSession;
4295
4281
  let profilePath = "./profile.cpuprofile";
4296
4282
  const Buffer2 = require("buffer").Buffer;
4297
- const nodeVersion = getNodeMajorVersion();
4298
- const isNode4OrLater = nodeVersion >= 4;
4299
4283
  const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
4300
4284
  const platform = _os.platform();
4301
4285
  const useCaseSensitiveFileNames = isFileSystemCaseSensitive();
4302
4286
  const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
4303
4287
  const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
4304
- const fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
4288
+ const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin";
4305
4289
  const getCurrentDirectory = memoize(() => process.cwd());
4306
4290
  const { watchFile, watchDirectory } = createSystemWatchFunctions({
4307
4291
  pollingWatchFileWorker: fsWatchFileWorker,
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.1.0-dev.20230308",
5
+ "version": "5.1.0-dev.20230310",
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",
@@ -112,5 +112,5 @@
112
112
  "node": "14.21.1",
113
113
  "npm": "8.19.3"
114
114
  },
115
- "gitHead": "746a6feb2e7ba6987b6c72db538dd498b35cd461"
115
+ "gitHead": "a8ffab2f30074b8135c978851e8bf8146dfd3239"
116
116
  }