@typescript-deploys/pr-build 5.4.0-pr-56403-3 → 5.4.0-pr-56404-7

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 CHANGED
@@ -4521,7 +4521,6 @@ function createSystemWatchFunctions({
4521
4521
  useNonPollingWatchers,
4522
4522
  tscWatchDirectory,
4523
4523
  inodeWatching,
4524
- fsWatchWithTimestamp,
4525
4524
  sysLog: sysLog2
4526
4525
  }) {
4527
4526
  const pollingWatches = /* @__PURE__ */ new Map();
@@ -4760,7 +4759,7 @@ function createSystemWatchFunctions({
4760
4759
  return watchPresentFileSystemEntryWithFsWatchFile();
4761
4760
  }
4762
4761
  try {
4763
- const presentWatcher = (!fsWatchWithTimestamp ? fsWatchWorker : fsWatchWorkerHandlingTimestamp)(
4762
+ const presentWatcher = fsWatchWorker(
4764
4763
  fileOrDirectory,
4765
4764
  recursive,
4766
4765
  inodeWatching ? callbackChangingToMissingFileSystemEntry : callback
@@ -4823,18 +4822,6 @@ function createSystemWatchFunctions({
4823
4822
  );
4824
4823
  }
4825
4824
  }
4826
- function fsWatchWorkerHandlingTimestamp(fileOrDirectory, recursive, callback) {
4827
- let modifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime;
4828
- return fsWatchWorker(fileOrDirectory, recursive, (eventName, relativeFileName, currentModifiedTime) => {
4829
- if (eventName === "change") {
4830
- currentModifiedTime || (currentModifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime);
4831
- if (currentModifiedTime.getTime() === modifiedTime.getTime())
4832
- return;
4833
- }
4834
- modifiedTime = currentModifiedTime || getModifiedTime3(fileOrDirectory) || missingFileModifiedTime;
4835
- callback(eventName, relativeFileName, modifiedTime);
4836
- });
4837
- }
4838
4825
  }
4839
4826
  function patchWriteFileEnsuringDirectory(sys2) {
4840
4827
  const originalWriteFile = sys2.writeFile;
@@ -4863,13 +4850,12 @@ var sys = (() => {
4863
4850
  let activeSession;
4864
4851
  let profilePath = "./profile.cpuprofile";
4865
4852
  const Buffer = require("buffer").Buffer;
4866
- const isMacOs = process.platform === "darwin";
4867
- const isLinuxOrMacOs = process.platform === "linux" || isMacOs;
4853
+ const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
4868
4854
  const platform = _os.platform();
4869
4855
  const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive();
4870
4856
  const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
4871
4857
  const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
4872
- const fsSupportsRecursiveFsWatch = process.platform === "win32" || isMacOs;
4858
+ const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin";
4873
4859
  const getCurrentDirectory = memoize(() => process.cwd());
4874
4860
  const { watchFile: watchFile2, watchDirectory } = createSystemWatchFunctions({
4875
4861
  pollingWatchFileWorker: fsWatchFileWorker,
@@ -4889,7 +4875,6 @@ var sys = (() => {
4889
4875
  useNonPollingWatchers: !!process.env.TSC_NONPOLLING_WATCHER,
4890
4876
  tscWatchDirectory: process.env.TSC_WATCHDIRECTORY,
4891
4877
  inodeWatching: isLinuxOrMacOs,
4892
- fsWatchWithTimestamp: isMacOs,
4893
4878
  sysLog
4894
4879
  });
4895
4880
  const nodeSystem = {
@@ -48247,13 +48232,15 @@ function createTypeChecker(host) {
48247
48232
  }
48248
48233
  const cachedResult = (_a2 = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _a2.get(key);
48249
48234
  if (cachedResult) {
48250
- (_b2 = cachedResult.trackedSymbols) == null ? void 0 : _b2.forEach(
48251
- ([symbol, enclosingDeclaration, meaning]) => context.tracker.trackSymbol(
48252
- symbol,
48253
- enclosingDeclaration,
48254
- meaning
48255
- )
48256
- );
48235
+ if (context.trackedSymbols !== cachedResult.trackedSymbols) {
48236
+ (_b2 = cachedResult.trackedSymbols) == null ? void 0 : _b2.forEach(
48237
+ ([symbol, enclosingDeclaration, meaning]) => context.tracker.trackSymbol(
48238
+ symbol,
48239
+ enclosingDeclaration,
48240
+ meaning
48241
+ )
48242
+ );
48243
+ }
48257
48244
  if (cachedResult.truncating) {
48258
48245
  context.truncating = true;
48259
48246
  }
package/lib/tsserver.js CHANGED
@@ -8041,7 +8041,6 @@ function createSystemWatchFunctions({
8041
8041
  useNonPollingWatchers,
8042
8042
  tscWatchDirectory,
8043
8043
  inodeWatching,
8044
- fsWatchWithTimestamp,
8045
8044
  sysLog: sysLog2
8046
8045
  }) {
8047
8046
  const pollingWatches = /* @__PURE__ */ new Map();
@@ -8280,7 +8279,7 @@ function createSystemWatchFunctions({
8280
8279
  return watchPresentFileSystemEntryWithFsWatchFile();
8281
8280
  }
8282
8281
  try {
8283
- const presentWatcher = (!fsWatchWithTimestamp ? fsWatchWorker : fsWatchWorkerHandlingTimestamp)(
8282
+ const presentWatcher = fsWatchWorker(
8284
8283
  fileOrDirectory,
8285
8284
  recursive,
8286
8285
  inodeWatching ? callbackChangingToMissingFileSystemEntry : callback
@@ -8343,18 +8342,6 @@ function createSystemWatchFunctions({
8343
8342
  );
8344
8343
  }
8345
8344
  }
8346
- function fsWatchWorkerHandlingTimestamp(fileOrDirectory, recursive, callback) {
8347
- let modifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime;
8348
- return fsWatchWorker(fileOrDirectory, recursive, (eventName, relativeFileName, currentModifiedTime) => {
8349
- if (eventName === "change") {
8350
- currentModifiedTime || (currentModifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime);
8351
- if (currentModifiedTime.getTime() === modifiedTime.getTime())
8352
- return;
8353
- }
8354
- modifiedTime = currentModifiedTime || getModifiedTime3(fileOrDirectory) || missingFileModifiedTime;
8355
- callback(eventName, relativeFileName, modifiedTime);
8356
- });
8357
- }
8358
8345
  }
8359
8346
  function patchWriteFileEnsuringDirectory(sys2) {
8360
8347
  const originalWriteFile = sys2.writeFile;
@@ -8383,13 +8370,12 @@ var sys = (() => {
8383
8370
  let activeSession;
8384
8371
  let profilePath = "./profile.cpuprofile";
8385
8372
  const Buffer2 = require("buffer").Buffer;
8386
- const isMacOs = process.platform === "darwin";
8387
- const isLinuxOrMacOs = process.platform === "linux" || isMacOs;
8373
+ const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
8388
8374
  const platform = _os.platform();
8389
8375
  const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive();
8390
8376
  const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
8391
8377
  const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
8392
- const fsSupportsRecursiveFsWatch = process.platform === "win32" || isMacOs;
8378
+ const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin";
8393
8379
  const getCurrentDirectory = memoize(() => process.cwd());
8394
8380
  const { watchFile: watchFile2, watchDirectory } = createSystemWatchFunctions({
8395
8381
  pollingWatchFileWorker: fsWatchFileWorker,
@@ -8409,7 +8395,6 @@ var sys = (() => {
8409
8395
  useNonPollingWatchers: !!process.env.TSC_NONPOLLING_WATCHER,
8410
8396
  tscWatchDirectory: process.env.TSC_WATCHDIRECTORY,
8411
8397
  inodeWatching: isLinuxOrMacOs,
8412
- fsWatchWithTimestamp: isMacOs,
8413
8398
  sysLog
8414
8399
  });
8415
8400
  const nodeSystem = {
@@ -52955,13 +52940,15 @@ function createTypeChecker(host) {
52955
52940
  }
52956
52941
  const cachedResult = (_a2 = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _a2.get(key);
52957
52942
  if (cachedResult) {
52958
- (_b2 = cachedResult.trackedSymbols) == null ? void 0 : _b2.forEach(
52959
- ([symbol, enclosingDeclaration, meaning]) => context.tracker.trackSymbol(
52960
- symbol,
52961
- enclosingDeclaration,
52962
- meaning
52963
- )
52964
- );
52943
+ if (context.trackedSymbols !== cachedResult.trackedSymbols) {
52944
+ (_b2 = cachedResult.trackedSymbols) == null ? void 0 : _b2.forEach(
52945
+ ([symbol, enclosingDeclaration, meaning]) => context.tracker.trackSymbol(
52946
+ symbol,
52947
+ enclosingDeclaration,
52948
+ meaning
52949
+ )
52950
+ );
52951
+ }
52965
52952
  if (cachedResult.truncating) {
52966
52953
  context.truncating = true;
52967
52954
  }
package/lib/typescript.js CHANGED
@@ -5779,7 +5779,6 @@ ${lanes.join("\n")}
5779
5779
  useNonPollingWatchers,
5780
5780
  tscWatchDirectory,
5781
5781
  inodeWatching,
5782
- fsWatchWithTimestamp,
5783
5782
  sysLog: sysLog2
5784
5783
  }) {
5785
5784
  const pollingWatches = /* @__PURE__ */ new Map();
@@ -6018,7 +6017,7 @@ ${lanes.join("\n")}
6018
6017
  return watchPresentFileSystemEntryWithFsWatchFile();
6019
6018
  }
6020
6019
  try {
6021
- const presentWatcher = (!fsWatchWithTimestamp ? fsWatchWorker : fsWatchWorkerHandlingTimestamp)(
6020
+ const presentWatcher = fsWatchWorker(
6022
6021
  fileOrDirectory,
6023
6022
  recursive,
6024
6023
  inodeWatching ? callbackChangingToMissingFileSystemEntry : callback
@@ -6081,18 +6080,6 @@ ${lanes.join("\n")}
6081
6080
  );
6082
6081
  }
6083
6082
  }
6084
- function fsWatchWorkerHandlingTimestamp(fileOrDirectory, recursive, callback) {
6085
- let modifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime;
6086
- return fsWatchWorker(fileOrDirectory, recursive, (eventName, relativeFileName, currentModifiedTime) => {
6087
- if (eventName === "change") {
6088
- currentModifiedTime || (currentModifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime);
6089
- if (currentModifiedTime.getTime() === modifiedTime.getTime())
6090
- return;
6091
- }
6092
- modifiedTime = currentModifiedTime || getModifiedTime3(fileOrDirectory) || missingFileModifiedTime;
6093
- callback(eventName, relativeFileName, modifiedTime);
6094
- });
6095
- }
6096
6083
  }
6097
6084
  function patchWriteFileEnsuringDirectory(sys2) {
6098
6085
  const originalWriteFile = sys2.writeFile;
@@ -6152,13 +6139,12 @@ ${lanes.join("\n")}
6152
6139
  let activeSession;
6153
6140
  let profilePath = "./profile.cpuprofile";
6154
6141
  const Buffer2 = require("buffer").Buffer;
6155
- const isMacOs = process.platform === "darwin";
6156
- const isLinuxOrMacOs = process.platform === "linux" || isMacOs;
6142
+ const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
6157
6143
  const platform = _os.platform();
6158
6144
  const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive();
6159
6145
  const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
6160
6146
  const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
6161
- const fsSupportsRecursiveFsWatch = process.platform === "win32" || isMacOs;
6147
+ const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin";
6162
6148
  const getCurrentDirectory = memoize(() => process.cwd());
6163
6149
  const { watchFile: watchFile2, watchDirectory } = createSystemWatchFunctions({
6164
6150
  pollingWatchFileWorker: fsWatchFileWorker,
@@ -6178,7 +6164,6 @@ ${lanes.join("\n")}
6178
6164
  useNonPollingWatchers: !!process.env.TSC_NONPOLLING_WATCHER,
6179
6165
  tscWatchDirectory: process.env.TSC_WATCHDIRECTORY,
6180
6166
  inodeWatching: isLinuxOrMacOs,
6181
- fsWatchWithTimestamp: isMacOs,
6182
6167
  sysLog
6183
6168
  });
6184
6169
  const nodeSystem = {
@@ -50720,13 +50705,15 @@ ${lanes.join("\n")}
50720
50705
  }
50721
50706
  const cachedResult = (_a2 = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _a2.get(key);
50722
50707
  if (cachedResult) {
50723
- (_b2 = cachedResult.trackedSymbols) == null ? void 0 : _b2.forEach(
50724
- ([symbol, enclosingDeclaration, meaning]) => context.tracker.trackSymbol(
50725
- symbol,
50726
- enclosingDeclaration,
50727
- meaning
50728
- )
50729
- );
50708
+ if (context.trackedSymbols !== cachedResult.trackedSymbols) {
50709
+ (_b2 = cachedResult.trackedSymbols) == null ? void 0 : _b2.forEach(
50710
+ ([symbol, enclosingDeclaration, meaning]) => context.tracker.trackSymbol(
50711
+ symbol,
50712
+ enclosingDeclaration,
50713
+ meaning
50714
+ )
50715
+ );
50716
+ }
50730
50717
  if (cachedResult.truncating) {
50731
50718
  context.truncating = true;
50732
50719
  }
@@ -3934,7 +3934,6 @@ function createSystemWatchFunctions({
3934
3934
  useNonPollingWatchers,
3935
3935
  tscWatchDirectory,
3936
3936
  inodeWatching,
3937
- fsWatchWithTimestamp,
3938
3937
  sysLog: sysLog2
3939
3938
  }) {
3940
3939
  const pollingWatches = /* @__PURE__ */ new Map();
@@ -4173,7 +4172,7 @@ function createSystemWatchFunctions({
4173
4172
  return watchPresentFileSystemEntryWithFsWatchFile();
4174
4173
  }
4175
4174
  try {
4176
- const presentWatcher = (!fsWatchWithTimestamp ? fsWatchWorker : fsWatchWorkerHandlingTimestamp)(
4175
+ const presentWatcher = fsWatchWorker(
4177
4176
  fileOrDirectory,
4178
4177
  recursive,
4179
4178
  inodeWatching ? callbackChangingToMissingFileSystemEntry : callback
@@ -4236,18 +4235,6 @@ function createSystemWatchFunctions({
4236
4235
  );
4237
4236
  }
4238
4237
  }
4239
- function fsWatchWorkerHandlingTimestamp(fileOrDirectory, recursive, callback) {
4240
- let modifiedTime = getModifiedTime2(fileOrDirectory) || missingFileModifiedTime;
4241
- return fsWatchWorker(fileOrDirectory, recursive, (eventName, relativeFileName, currentModifiedTime) => {
4242
- if (eventName === "change") {
4243
- currentModifiedTime || (currentModifiedTime = getModifiedTime2(fileOrDirectory) || missingFileModifiedTime);
4244
- if (currentModifiedTime.getTime() === modifiedTime.getTime())
4245
- return;
4246
- }
4247
- modifiedTime = currentModifiedTime || getModifiedTime2(fileOrDirectory) || missingFileModifiedTime;
4248
- callback(eventName, relativeFileName, modifiedTime);
4249
- });
4250
- }
4251
4238
  }
4252
4239
  function patchWriteFileEnsuringDirectory(sys2) {
4253
4240
  const originalWriteFile = sys2.writeFile;
@@ -4276,13 +4263,12 @@ var sys = (() => {
4276
4263
  let activeSession;
4277
4264
  let profilePath = "./profile.cpuprofile";
4278
4265
  const Buffer2 = require("buffer").Buffer;
4279
- const isMacOs = process.platform === "darwin";
4280
- const isLinuxOrMacOs = process.platform === "linux" || isMacOs;
4266
+ const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
4281
4267
  const platform = _os.platform();
4282
4268
  const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive();
4283
4269
  const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
4284
4270
  const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
4285
- const fsSupportsRecursiveFsWatch = process.platform === "win32" || isMacOs;
4271
+ const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin";
4286
4272
  const getCurrentDirectory = memoize(() => process.cwd());
4287
4273
  const { watchFile, watchDirectory } = createSystemWatchFunctions({
4288
4274
  pollingWatchFileWorker: fsWatchFileWorker,
@@ -4302,7 +4288,6 @@ var sys = (() => {
4302
4288
  useNonPollingWatchers: !!process.env.TSC_NONPOLLING_WATCHER,
4303
4289
  tscWatchDirectory: process.env.TSC_WATCHDIRECTORY,
4304
4290
  inodeWatching: isLinuxOrMacOs,
4305
- fsWatchWithTimestamp: isMacOs,
4306
4291
  sysLog
4307
4292
  });
4308
4293
  const nodeSystem = {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typescript-deploys/pr-build",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.4.0-pr-56403-3",
5
+ "version": "5.4.0-pr-56404-7",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -115,5 +115,5 @@
115
115
  "node": "20.1.0",
116
116
  "npm": "8.19.4"
117
117
  },
118
- "gitHead": "7b7725db2ed53b6e61c2ab6b8cba53fc297baf7c"
118
+ "gitHead": "6ab635994fd78fd55a82a7c5078db32c34525259"
119
119
  }