@typescript-deploys/pr-build 5.8.0-pr-60576-12 → 5.8.0-pr-55267-203

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.8";
21
- var version = `${versionMajorMinor}.0-insiders.20241204`;
21
+ var version = `${versionMajorMinor}.0-insiders.20241205`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -46800,6 +46800,12 @@ function createTypeChecker(host) {
46800
46800
  /*isReadonly*/
46801
46801
  true
46802
46802
  );
46803
+ var anyBaseTypeIndexInfo = createIndexInfo(
46804
+ stringType,
46805
+ anyType,
46806
+ /*isReadonly*/
46807
+ false
46808
+ );
46803
46809
  var iterationTypesCache = /* @__PURE__ */ new Map();
46804
46810
  var noIterationTypes = {
46805
46811
  get yieldType() {
@@ -56742,12 +56748,7 @@ function createTypeChecker(host) {
56742
56748
  addInheritedMembers(members, getPropertiesOfType(instantiatedBaseType));
56743
56749
  callSignatures = concatenate(callSignatures, getSignaturesOfType(instantiatedBaseType, 0 /* Call */));
56744
56750
  constructSignatures = concatenate(constructSignatures, getSignaturesOfType(instantiatedBaseType, 1 /* Construct */));
56745
- const inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [createIndexInfo(
56746
- stringType,
56747
- anyType,
56748
- /*isReadonly*/
56749
- false
56750
- )];
56751
+ const inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [anyBaseTypeIndexInfo];
56751
56752
  indexInfos = concatenate(indexInfos, filter(inheritedIndexInfos, (info) => !findIndexInfo(indexInfos, info.keyType)));
56752
56753
  }
56753
56754
  }
@@ -57273,12 +57274,7 @@ function createTypeChecker(host) {
57273
57274
  members = createSymbolTable(getNamedOrIndexSignatureMembers(members));
57274
57275
  addInheritedMembers(members, getPropertiesOfType(baseConstructorType));
57275
57276
  } else if (baseConstructorType === anyType) {
57276
- baseConstructorIndexInfo = createIndexInfo(
57277
- stringType,
57278
- anyType,
57279
- /*isReadonly*/
57280
- false
57281
- );
57277
+ baseConstructorIndexInfo = anyBaseTypeIndexInfo;
57282
57278
  }
57283
57279
  }
57284
57280
  const indexSymbol = getIndexSymbolFromSymbolTable(members);
@@ -70696,8 +70692,9 @@ function createTypeChecker(host) {
70696
70692
  }
70697
70693
  if (isJsxOpeningFragment(node)) {
70698
70694
  const file = getSourceFileOfNode(node);
70699
- const localJsxNamespace = getLocalJsxNamespace(file);
70700
- if (localJsxNamespace) {
70695
+ const entity = getJsxFactoryEntity(file);
70696
+ if (entity) {
70697
+ const localJsxNamespace = getFirstIdentifier(entity).escapedText;
70701
70698
  resolveName(
70702
70699
  jsxFactoryLocation,
70703
70700
  localJsxNamespace,
@@ -74276,6 +74273,13 @@ function createTypeChecker(host) {
74276
74273
  return getIntersectionType(x);
74277
74274
  }
74278
74275
  function reportNonexistentProperty(propNode, containingType, isUncheckedJS) {
74276
+ const links = getNodeLinks(propNode);
74277
+ const cache = links.nonExistentPropCheckCache || (links.nonExistentPropCheckCache = /* @__PURE__ */ new Set());
74278
+ const key = `${getTypeId(containingType)}|${isUncheckedJS}`;
74279
+ if (cache.has(key)) {
74280
+ return;
74281
+ }
74282
+ cache.add(key);
74279
74283
  let errorInfo;
74280
74284
  let relatedInfo;
74281
74285
  if (!isPrivateIdentifier(propNode) && containingType.flags & 1048576 /* Union */ && !(containingType.flags & 402784252 /* Primitive */)) {
@@ -87433,6 +87437,7 @@ function createTypeChecker(host) {
87433
87437
  result || (result = []);
87434
87438
  for (const info of infoList) {
87435
87439
  if (info.declaration) continue;
87440
+ if (info === anyBaseTypeIndexInfo) continue;
87436
87441
  const node = nodeBuilder.indexInfoToIndexSignatureDeclaration(info, enclosing, flags, internalFlags, tracker);
87437
87442
  if (node && infoList === staticInfos) {
87438
87443
  (node.modifiers || (node.modifiers = factory.createNodeArray())).unshift(factory.createModifier(126 /* StaticKeyword */));
package/lib/typescript.js CHANGED
@@ -2278,7 +2278,7 @@ module.exports = __toCommonJS(typescript_exports);
2278
2278
 
2279
2279
  // src/compiler/corePublic.ts
2280
2280
  var versionMajorMinor = "5.8";
2281
- var version = `${versionMajorMinor}.0-insiders.20241204`;
2281
+ var version = `${versionMajorMinor}.0-insiders.20241205`;
2282
2282
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2283
2283
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2284
2284
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -51404,6 +51404,12 @@ function createTypeChecker(host) {
51404
51404
  /*isReadonly*/
51405
51405
  true
51406
51406
  );
51407
+ var anyBaseTypeIndexInfo = createIndexInfo(
51408
+ stringType,
51409
+ anyType,
51410
+ /*isReadonly*/
51411
+ false
51412
+ );
51407
51413
  var iterationTypesCache = /* @__PURE__ */ new Map();
51408
51414
  var noIterationTypes = {
51409
51415
  get yieldType() {
@@ -61346,12 +61352,7 @@ function createTypeChecker(host) {
61346
61352
  addInheritedMembers(members, getPropertiesOfType(instantiatedBaseType));
61347
61353
  callSignatures = concatenate(callSignatures, getSignaturesOfType(instantiatedBaseType, 0 /* Call */));
61348
61354
  constructSignatures = concatenate(constructSignatures, getSignaturesOfType(instantiatedBaseType, 1 /* Construct */));
61349
- const inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [createIndexInfo(
61350
- stringType,
61351
- anyType,
61352
- /*isReadonly*/
61353
- false
61354
- )];
61355
+ const inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [anyBaseTypeIndexInfo];
61355
61356
  indexInfos = concatenate(indexInfos, filter(inheritedIndexInfos, (info) => !findIndexInfo(indexInfos, info.keyType)));
61356
61357
  }
61357
61358
  }
@@ -61877,12 +61878,7 @@ function createTypeChecker(host) {
61877
61878
  members = createSymbolTable(getNamedOrIndexSignatureMembers(members));
61878
61879
  addInheritedMembers(members, getPropertiesOfType(baseConstructorType));
61879
61880
  } else if (baseConstructorType === anyType) {
61880
- baseConstructorIndexInfo = createIndexInfo(
61881
- stringType,
61882
- anyType,
61883
- /*isReadonly*/
61884
- false
61885
- );
61881
+ baseConstructorIndexInfo = anyBaseTypeIndexInfo;
61886
61882
  }
61887
61883
  }
61888
61884
  const indexSymbol = getIndexSymbolFromSymbolTable(members);
@@ -75300,8 +75296,9 @@ function createTypeChecker(host) {
75300
75296
  }
75301
75297
  if (isJsxOpeningFragment(node)) {
75302
75298
  const file = getSourceFileOfNode(node);
75303
- const localJsxNamespace = getLocalJsxNamespace(file);
75304
- if (localJsxNamespace) {
75299
+ const entity = getJsxFactoryEntity(file);
75300
+ if (entity) {
75301
+ const localJsxNamespace = getFirstIdentifier(entity).escapedText;
75305
75302
  resolveName(
75306
75303
  jsxFactoryLocation,
75307
75304
  localJsxNamespace,
@@ -78880,6 +78877,13 @@ function createTypeChecker(host) {
78880
78877
  return getIntersectionType(x);
78881
78878
  }
78882
78879
  function reportNonexistentProperty(propNode, containingType, isUncheckedJS) {
78880
+ const links = getNodeLinks(propNode);
78881
+ const cache = links.nonExistentPropCheckCache || (links.nonExistentPropCheckCache = /* @__PURE__ */ new Set());
78882
+ const key = `${getTypeId(containingType)}|${isUncheckedJS}`;
78883
+ if (cache.has(key)) {
78884
+ return;
78885
+ }
78886
+ cache.add(key);
78883
78887
  let errorInfo;
78884
78888
  let relatedInfo;
78885
78889
  if (!isPrivateIdentifier(propNode) && containingType.flags & 1048576 /* Union */ && !(containingType.flags & 402784252 /* Primitive */)) {
@@ -92037,6 +92041,7 @@ function createTypeChecker(host) {
92037
92041
  result || (result = []);
92038
92042
  for (const info of infoList) {
92039
92043
  if (info.declaration) continue;
92044
+ if (info === anyBaseTypeIndexInfo) continue;
92040
92045
  const node = nodeBuilder.indexInfoToIndexSignatureDeclaration(info, enclosing, flags, internalFlags, tracker);
92041
92046
  if (node && infoList === staticInfos) {
92042
92047
  (node.modifiers || (node.modifiers = factory.createNodeArray())).unshift(factory.createModifier(126 /* StaticKeyword */));
@@ -157315,6 +157320,7 @@ var errorCodes19 = [
157315
157320
  Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,
157316
157321
  Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,
157317
157322
  Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,
157323
+ Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code,
157318
157324
  Diagnostics.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code
157319
157325
  ];
157320
157326
  registerCodeFix({
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.8.0-pr-60576-12",
5
+ "version": "5.8.0-pr-55267-203",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [