@typescript-deploys/pr-build 5.7.0-pr-59709-8 → 5.7.0-pr-59417-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
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "5.7";
21
- var version = `${versionMajorMinor}.0-insiders.20240822`;
21
+ var version = `${versionMajorMinor}.0-insiders.20240823`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -67680,8 +67680,7 @@ function createTypeChecker(host) {
67680
67680
  const inferredCovariantType = inference.candidates ? getCovariantInference(inference, context.signature) : void 0;
67681
67681
  const inferredContravariantType = inference.contraCandidates ? getContravariantInference(inference) : void 0;
67682
67682
  if (inferredCovariantType || inferredContravariantType) {
67683
- const compareTypes = inference.priority & 128 /* ReturnType */ ? isTypeSubtypeOf : isTypeAssignableTo;
67684
- const preferCovariantType = inferredCovariantType && (!inferredContravariantType || !(inferredCovariantType.flags & (131072 /* Never */ | 1 /* Any */)) && some(inference.contraCandidates, (t) => compareTypes(inferredCovariantType, t)) && every(context.inferences, (other) => other !== inference && getConstraintOfTypeParameter(other.typeParameter) !== inference.typeParameter || every(other.candidates, (t) => compareTypes(t, inferredCovariantType))));
67683
+ const preferCovariantType = inferredCovariantType && (!inferredContravariantType || !(inferredCovariantType.flags & (131072 /* Never */ | 1 /* Any */)) && some(inference.contraCandidates, (t) => isTypeAssignableTo(inferredCovariantType, t)) && every(context.inferences, (other) => other !== inference && getConstraintOfTypeParameter(other.typeParameter) !== inference.typeParameter || every(other.candidates, (t) => isTypeAssignableTo(t, inferredCovariantType))));
67685
67684
  inferredType = preferCovariantType ? inferredCovariantType : inferredContravariantType;
67686
67685
  fallbackType = preferCovariantType ? inferredContravariantType : inferredCovariantType;
67687
67686
  } else if (context.flags & 1 /* NoDefault */) {
package/lib/typescript.js CHANGED
@@ -2265,7 +2265,7 @@ module.exports = __toCommonJS(typescript_exports);
2265
2265
 
2266
2266
  // src/compiler/corePublic.ts
2267
2267
  var versionMajorMinor = "5.7";
2268
- var version = `${versionMajorMinor}.0-insiders.20240822`;
2268
+ var version = `${versionMajorMinor}.0-insiders.20240823`;
2269
2269
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2270
2270
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2271
2271
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -49162,7 +49162,7 @@ function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions
49162
49162
  cache == null ? void 0 : cache.set(importingSourceFile.path, moduleSourceFile.path, userPreferences, options, result.kind, modulePaths, result.moduleSpecifiers);
49163
49163
  return result;
49164
49164
  }
49165
- function getLocalModuleSpecifierBetweenFileNames(importingFile, targetFileName, compilerOptions, host, options = {}) {
49165
+ function getLocalModuleSpecifierBetweenFileNames(importingFile, targetFileName, compilerOptions, host, preferences, options = {}) {
49166
49166
  const info = getInfo(importingFile.fileName, host);
49167
49167
  const importMode = options.overrideImportMode ?? importingFile.impliedNodeFormat;
49168
49168
  return getLocalModuleSpecifier(
@@ -49171,7 +49171,7 @@ function getLocalModuleSpecifierBetweenFileNames(importingFile, targetFileName,
49171
49171
  compilerOptions,
49172
49172
  host,
49173
49173
  importMode,
49174
- getModuleSpecifierPreferences({}, host, compilerOptions, importingFile)
49174
+ getModuleSpecifierPreferences(preferences, host, compilerOptions, importingFile)
49175
49175
  );
49176
49176
  }
49177
49177
  function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) {
@@ -72302,8 +72302,7 @@ function createTypeChecker(host) {
72302
72302
  const inferredCovariantType = inference.candidates ? getCovariantInference(inference, context.signature) : void 0;
72303
72303
  const inferredContravariantType = inference.contraCandidates ? getContravariantInference(inference) : void 0;
72304
72304
  if (inferredCovariantType || inferredContravariantType) {
72305
- const compareTypes = inference.priority & 128 /* ReturnType */ ? isTypeSubtypeOf : isTypeAssignableTo;
72306
- const preferCovariantType = inferredCovariantType && (!inferredContravariantType || !(inferredCovariantType.flags & (131072 /* Never */ | 1 /* Any */)) && some(inference.contraCandidates, (t) => compareTypes(inferredCovariantType, t)) && every(context.inferences, (other) => other !== inference && getConstraintOfTypeParameter(other.typeParameter) !== inference.typeParameter || every(other.candidates, (t) => compareTypes(t, inferredCovariantType))));
72305
+ const preferCovariantType = inferredCovariantType && (!inferredContravariantType || !(inferredCovariantType.flags & (131072 /* Never */ | 1 /* Any */)) && some(inference.contraCandidates, (t) => isTypeAssignableTo(inferredCovariantType, t)) && every(context.inferences, (other) => other !== inference && getConstraintOfTypeParameter(other.typeParameter) !== inference.typeParameter || every(other.candidates, (t) => isTypeAssignableTo(t, inferredCovariantType))));
72307
72306
  inferredType = preferCovariantType ? inferredCovariantType : inferredContravariantType;
72308
72307
  fallbackType = preferCovariantType ? inferredContravariantType : inferredCovariantType;
72309
72308
  } else if (context.flags & 1 /* NoDefault */) {
@@ -155391,7 +155390,8 @@ function createImportAdderWorker(sourceFile, program, useAutoImportProvider, pre
155391
155390
  sourceFile,
155392
155391
  exportingFileName,
155393
155392
  compilerOptions,
155394
- createModuleSpecifierResolutionHost(program, host)
155393
+ createModuleSpecifierResolutionHost(program, host),
155394
+ preferences
155395
155395
  );
155396
155396
  const importKind = getImportKind(futureExportingSourceFile, exportKind, program);
155397
155397
  const addAsTypeOnly = getAddAsTypeOnly(
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.7.0-pr-59709-8",
5
+ "version": "5.7.0-pr-59417-7",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [