@typescript-deploys/pr-build 5.6.0-pr-58824-2 → 5.6.0-pr-58825-5

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.6";
21
- var version = `${versionMajorMinor}.0-insiders.20240610`;
21
+ var version = `${versionMajorMinor}.0-insiders.20240611`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -53851,7 +53851,7 @@ function createTypeChecker(host) {
53851
53851
  }
53852
53852
  }
53853
53853
  function pushTypeResolution(target, propertyName) {
53854
- const resolutionCycleStartIndex = findResolutionCycleStartIndex(target, propertyName, resolutionStart);
53854
+ const resolutionCycleStartIndex = findResolutionCycleStartIndex(target, propertyName);
53855
53855
  if (resolutionCycleStartIndex >= 0) {
53856
53856
  const { length: length2 } = resolutionTargets;
53857
53857
  for (let i = resolutionCycleStartIndex; i < length2; i++) {
@@ -53867,11 +53867,8 @@ function createTypeChecker(host) {
53867
53867
  resolutionPropertyNames.push(propertyName);
53868
53868
  return true;
53869
53869
  }
53870
- function isInResolutionStack(target, propertyName) {
53871
- return findResolutionCycleStartIndex(target, propertyName, 0) >= 0;
53872
- }
53873
- function findResolutionCycleStartIndex(target, propertyName, start) {
53874
- for (let i = resolutionTargets.length - 1; i >= start; i--) {
53870
+ function findResolutionCycleStartIndex(target, propertyName) {
53871
+ for (let i = resolutionTargets.length - 1; i >= resolutionStart; i--) {
53875
53872
  if (resolutionTargetHasProperty(resolutionTargets[i], resolutionPropertyNames[i])) {
53876
53873
  return -1;
53877
53874
  }
@@ -57927,7 +57924,7 @@ function createTypeChecker(host) {
57927
57924
  return getReturnTypeOfTypeTag(declaration);
57928
57925
  }
57929
57926
  function isResolvingReturnTypeOfSignature(signature) {
57930
- return signature.compositeSignatures && some(signature.compositeSignatures, isResolvingReturnTypeOfSignature) || !signature.resolvedReturnType && isInResolutionStack(signature, 3 /* ResolvedReturnType */);
57927
+ return signature.compositeSignatures && some(signature.compositeSignatures, isResolvingReturnTypeOfSignature) || !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0;
57931
57928
  }
57932
57929
  function getRestTypeOfSignature(signature) {
57933
57930
  return tryGetRestTypeOfSignature(signature) || anyType;
@@ -61552,7 +61549,7 @@ function createTypeChecker(host) {
61552
61549
  if (t.flags & (3 /* AnyOrUnknown */ | 58982400 /* InstantiableNonPrimitive */ | 524288 /* Object */ | 2097152 /* Intersection */) && t !== wildcardType && !isErrorType(t)) {
61553
61550
  if (!type.declaration.nameType) {
61554
61551
  let constraint;
61555
- if (isArrayType(t) || t.flags & 1 /* Any */ && !isInResolutionStack(typeVariable, 4 /* ImmediateBaseConstraint */) && (constraint = getConstraintOfTypeParameter(typeVariable)) && everyType(constraint, isArrayOrTupleType)) {
61552
+ if (isArrayType(t) || t.flags & 1 /* Any */ && findResolutionCycleStartIndex(typeVariable, 4 /* ImmediateBaseConstraint */) < 0 && (constraint = getConstraintOfTypeParameter(typeVariable)) && everyType(constraint, isArrayOrTupleType)) {
61556
61553
  return instantiateMappedArrayType(t, type, prependTypeMapping(typeVariable, t, mapper));
61557
61554
  }
61558
61555
  if (isTupleType(t)) {
@@ -70915,7 +70912,7 @@ function createTypeChecker(host) {
70915
70912
  return nameStr !== void 0 && getTypeOfPropertyOfContextualType(thisType, nameStr) || void 0;
70916
70913
  }
70917
70914
  function isCircularMappedProperty(symbol) {
70918
- return !!(getCheckFlags(symbol) & 262144 /* Mapped */ && !symbol.links.type && isInResolutionStack(symbol, 0 /* Type */));
70915
+ return !!(getCheckFlags(symbol) & 262144 /* Mapped */ && !symbol.links.type && findResolutionCycleStartIndex(symbol, 0 /* Type */) >= 0);
70919
70916
  }
70920
70917
  function getTypeOfPropertyOfContextualType(type, name, nameType) {
70921
70918
  return mapType(
@@ -118987,7 +118984,8 @@ function getConfigFileParsingDiagnostics(configFileParseResult) {
118987
118984
  return configFileParseResult.options.configFile ? [...configFileParseResult.options.configFile.parseDiagnostics, ...configFileParseResult.errors] : configFileParseResult.errors;
118988
118985
  }
118989
118986
  function getImpliedNodeFormatForFileWorker(fileName, packageJsonInfoCache, host, options) {
118990
- return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0;
118987
+ const moduleKind = getEmitModuleKind(options);
118988
+ return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ || pathContainsNodeModules(fileName)) && fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0;
118991
118989
  function lookupFromPackageJson() {
118992
118990
  const state = getTemporaryModuleResolutionState(packageJsonInfoCache, host, options);
118993
118991
  const packageJsonLocations = [];
package/lib/typescript.js CHANGED
@@ -2375,7 +2375,7 @@ module.exports = __toCommonJS(typescript_exports);
2375
2375
 
2376
2376
  // src/compiler/corePublic.ts
2377
2377
  var versionMajorMinor = "5.6";
2378
- var version = `${versionMajorMinor}.0-insiders.20240610`;
2378
+ var version = `${versionMajorMinor}.0-insiders.20240611`;
2379
2379
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2380
2380
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2381
2381
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -58624,7 +58624,7 @@ function createTypeChecker(host) {
58624
58624
  }
58625
58625
  }
58626
58626
  function pushTypeResolution(target, propertyName) {
58627
- const resolutionCycleStartIndex = findResolutionCycleStartIndex(target, propertyName, resolutionStart);
58627
+ const resolutionCycleStartIndex = findResolutionCycleStartIndex(target, propertyName);
58628
58628
  if (resolutionCycleStartIndex >= 0) {
58629
58629
  const { length: length2 } = resolutionTargets;
58630
58630
  for (let i = resolutionCycleStartIndex; i < length2; i++) {
@@ -58640,11 +58640,8 @@ function createTypeChecker(host) {
58640
58640
  resolutionPropertyNames.push(propertyName);
58641
58641
  return true;
58642
58642
  }
58643
- function isInResolutionStack(target, propertyName) {
58644
- return findResolutionCycleStartIndex(target, propertyName, 0) >= 0;
58645
- }
58646
- function findResolutionCycleStartIndex(target, propertyName, start) {
58647
- for (let i = resolutionTargets.length - 1; i >= start; i--) {
58643
+ function findResolutionCycleStartIndex(target, propertyName) {
58644
+ for (let i = resolutionTargets.length - 1; i >= resolutionStart; i--) {
58648
58645
  if (resolutionTargetHasProperty(resolutionTargets[i], resolutionPropertyNames[i])) {
58649
58646
  return -1;
58650
58647
  }
@@ -62700,7 +62697,7 @@ function createTypeChecker(host) {
62700
62697
  return getReturnTypeOfTypeTag(declaration);
62701
62698
  }
62702
62699
  function isResolvingReturnTypeOfSignature(signature) {
62703
- return signature.compositeSignatures && some(signature.compositeSignatures, isResolvingReturnTypeOfSignature) || !signature.resolvedReturnType && isInResolutionStack(signature, 3 /* ResolvedReturnType */);
62700
+ return signature.compositeSignatures && some(signature.compositeSignatures, isResolvingReturnTypeOfSignature) || !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0;
62704
62701
  }
62705
62702
  function getRestTypeOfSignature(signature) {
62706
62703
  return tryGetRestTypeOfSignature(signature) || anyType;
@@ -66325,7 +66322,7 @@ function createTypeChecker(host) {
66325
66322
  if (t.flags & (3 /* AnyOrUnknown */ | 58982400 /* InstantiableNonPrimitive */ | 524288 /* Object */ | 2097152 /* Intersection */) && t !== wildcardType && !isErrorType(t)) {
66326
66323
  if (!type.declaration.nameType) {
66327
66324
  let constraint;
66328
- if (isArrayType(t) || t.flags & 1 /* Any */ && !isInResolutionStack(typeVariable, 4 /* ImmediateBaseConstraint */) && (constraint = getConstraintOfTypeParameter(typeVariable)) && everyType(constraint, isArrayOrTupleType)) {
66325
+ if (isArrayType(t) || t.flags & 1 /* Any */ && findResolutionCycleStartIndex(typeVariable, 4 /* ImmediateBaseConstraint */) < 0 && (constraint = getConstraintOfTypeParameter(typeVariable)) && everyType(constraint, isArrayOrTupleType)) {
66329
66326
  return instantiateMappedArrayType(t, type, prependTypeMapping(typeVariable, t, mapper));
66330
66327
  }
66331
66328
  if (isTupleType(t)) {
@@ -75688,7 +75685,7 @@ function createTypeChecker(host) {
75688
75685
  return nameStr !== void 0 && getTypeOfPropertyOfContextualType(thisType, nameStr) || void 0;
75689
75686
  }
75690
75687
  function isCircularMappedProperty(symbol) {
75691
- return !!(getCheckFlags(symbol) & 262144 /* Mapped */ && !symbol.links.type && isInResolutionStack(symbol, 0 /* Type */));
75688
+ return !!(getCheckFlags(symbol) & 262144 /* Mapped */ && !symbol.links.type && findResolutionCycleStartIndex(symbol, 0 /* Type */) >= 0);
75692
75689
  }
75693
75690
  function getTypeOfPropertyOfContextualType(type, name, nameType) {
75694
75691
  return mapType(
@@ -123999,7 +123996,8 @@ function getImpliedNodeFormatForFile(fileName, packageJsonInfoCache, host, optio
123999
123996
  return typeof result === "object" ? result.impliedNodeFormat : result;
124000
123997
  }
124001
123998
  function getImpliedNodeFormatForFileWorker(fileName, packageJsonInfoCache, host, options) {
124002
- return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0;
123999
+ const moduleKind = getEmitModuleKind(options);
124000
+ return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ || pathContainsNodeModules(fileName)) && fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0;
124003
124001
  function lookupFromPackageJson() {
124004
124002
  const state = getTemporaryModuleResolutionState(packageJsonInfoCache, host, options);
124005
124003
  const packageJsonLocations = [];
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.6.0-pr-58824-2",
5
+ "version": "5.6.0-pr-58825-5",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [