@typescript-deploys/pr-build 5.3.0-pr-54778-3 → 5.3.0-pr-54678-12

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
@@ -51928,7 +51928,7 @@ function createTypeChecker(host) {
51928
51928
  if (reportErrors2) {
51929
51929
  reportErrorsFromWidening(declaration, type);
51930
51930
  }
51931
- if (type.flags & 8192 /* UniqueESSymbol */ && !declaration.type && type.symbol !== getSymbolOfDeclaration(declaration) && !isValueSymbolAccessible(type.symbol, type.symbol.valueDeclaration)) {
51931
+ if (type.flags & 8192 /* UniqueESSymbol */ && (isBindingElement(declaration) || !declaration.type) && type.symbol !== getSymbolOfDeclaration(declaration)) {
51932
51932
  type = esSymbolType;
51933
51933
  }
51934
51934
  return getWidenedType(type);
@@ -74410,7 +74410,7 @@ function createTypeChecker(host) {
74410
74410
  return createTupleType(elementTypes, elementFlags, type.target.readonly);
74411
74411
  }
74412
74412
  function widenTypeInferredFromInitializer(declaration, type) {
74413
- const widened = getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedUniqueESSymbolType(getWidenedLiteralType(type));
74413
+ const widened = getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type);
74414
74414
  if (isInJSFile(declaration)) {
74415
74415
  if (isEmptyLiteralType(widened)) {
74416
74416
  reportImplicitAny(declaration, anyType);
package/lib/tsserver.js CHANGED
@@ -56637,7 +56637,7 @@ function createTypeChecker(host) {
56637
56637
  if (reportErrors2) {
56638
56638
  reportErrorsFromWidening(declaration, type);
56639
56639
  }
56640
- if (type.flags & 8192 /* UniqueESSymbol */ && !declaration.type && type.symbol !== getSymbolOfDeclaration(declaration) && !isValueSymbolAccessible(type.symbol, type.symbol.valueDeclaration)) {
56640
+ if (type.flags & 8192 /* UniqueESSymbol */ && (isBindingElement(declaration) || !declaration.type) && type.symbol !== getSymbolOfDeclaration(declaration)) {
56641
56641
  type = esSymbolType;
56642
56642
  }
56643
56643
  return getWidenedType(type);
@@ -79119,7 +79119,7 @@ function createTypeChecker(host) {
79119
79119
  return createTupleType(elementTypes, elementFlags, type.target.readonly);
79120
79120
  }
79121
79121
  function widenTypeInferredFromInitializer(declaration, type) {
79122
- const widened = getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedUniqueESSymbolType(getWidenedLiteralType(type));
79122
+ const widened = getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type);
79123
79123
  if (isInJSFile(declaration)) {
79124
79124
  if (isEmptyLiteralType(widened)) {
79125
79125
  reportImplicitAny(declaration, anyType);
@@ -133326,7 +133326,7 @@ function createCacheableExportInfoMap(host) {
133326
133326
  }
133327
133327
  };
133328
133328
  if (Debug.isDebugging) {
133329
- Object.defineProperty(cache, "__cache", { get: () => exportInfo });
133329
+ Object.defineProperty(cache, "__cache", { value: exportInfo });
133330
133330
  }
133331
133331
  return cache;
133332
133332
  function rehydrateCachedInfo(info) {
@@ -133362,11 +133362,15 @@ function createCacheableExportInfoMap(host) {
133362
133362
  }
133363
133363
  function key(importedName, symbol, ambientModuleName, checker) {
133364
133364
  const moduleKey = ambientModuleName || "";
133365
- return `${importedName}|${getSymbolId(skipAlias(symbol, checker))}|${moduleKey}`;
133365
+ return `${importedName.length} ${getSymbolId(skipAlias(symbol, checker))} ${importedName} ${moduleKey}`;
133366
133366
  }
133367
133367
  function parseKey(key2) {
133368
- const symbolName2 = key2.substring(0, key2.indexOf("|"));
133369
- const moduleKey = key2.substring(key2.lastIndexOf("|") + 1);
133368
+ const firstSpace = key2.indexOf(" ");
133369
+ const secondSpace = key2.indexOf(" ", firstSpace + 1);
133370
+ const symbolNameLength = parseInt(key2.substring(0, firstSpace), 10);
133371
+ const data = key2.substring(secondSpace + 1);
133372
+ const symbolName2 = data.substring(0, symbolNameLength);
133373
+ const moduleKey = data.substring(symbolNameLength + 1);
133370
133374
  const ambientModuleName = moduleKey === "" ? void 0 : moduleKey;
133371
133375
  return { symbolName: symbolName2, ambientModuleName };
133372
133376
  }
@@ -147399,7 +147403,7 @@ function symbolReferenceIsAlsoMissingAwait(reference, diagnostics, sourceFile, c
147399
147403
  checker.getTypeAtLocation(errorNode).flags & 1 /* Any */;
147400
147404
  }
147401
147405
  function isInsideAwaitableBody(node) {
147402
- return node.kind & 65536 /* AwaitContext */ || !!findAncestor(node, (ancestor) => ancestor.parent && isArrowFunction(ancestor.parent) && ancestor.parent.body === ancestor || isBlock(ancestor) && (ancestor.parent.kind === 262 /* FunctionDeclaration */ || ancestor.parent.kind === 218 /* FunctionExpression */ || ancestor.parent.kind === 219 /* ArrowFunction */ || ancestor.parent.kind === 174 /* MethodDeclaration */));
147406
+ return node.flags & 65536 /* AwaitContext */ || !!findAncestor(node, (ancestor) => ancestor.parent && isArrowFunction(ancestor.parent) && ancestor.parent.body === ancestor || isBlock(ancestor) && (ancestor.parent.kind === 262 /* FunctionDeclaration */ || ancestor.parent.kind === 218 /* FunctionExpression */ || ancestor.parent.kind === 219 /* ArrowFunction */ || ancestor.parent.kind === 174 /* MethodDeclaration */));
147403
147407
  }
147404
147408
  function makeChange3(changeTracker, errorCode, sourceFile, checker, insertionSite, fixedDeclarations) {
147405
147409
  if (isForOfStatement(insertionSite.parent) && !insertionSite.parent.awaitModifier) {
@@ -10813,7 +10813,7 @@ declare namespace ts {
10813
10813
  * in the case of InternalSymbolName.ExportEquals and InternalSymbolName.Default.
10814
10814
  */
10815
10815
  exportName: string;
10816
- exportMapKey?: string;
10816
+ exportMapKey?: ExportMapInfoKey;
10817
10817
  moduleSpecifier?: string;
10818
10818
  /** The file name declaring the export's module symbol, if it was an external module */
10819
10819
  fileName?: string;
@@ -10823,7 +10823,7 @@ declare namespace ts {
10823
10823
  isPackageJsonImport?: true;
10824
10824
  }
10825
10825
  interface CompletionEntryDataUnresolved extends CompletionEntryDataAutoImport {
10826
- exportMapKey: string;
10826
+ exportMapKey: ExportMapInfoKey;
10827
10827
  }
10828
10828
  interface CompletionEntryDataResolved extends CompletionEntryDataAutoImport {
10829
10829
  moduleSpecifier: string;
@@ -11138,6 +11138,9 @@ declare namespace ts {
11138
11138
  span: TextSpan;
11139
11139
  preferences: UserPreferences;
11140
11140
  }
11141
+ type ExportMapInfoKey = string & {
11142
+ __exportInfoKey: void;
11143
+ };
11141
11144
  /** The classifier is used for syntactic highlighting in editors via the TSServer */
11142
11145
  function createClassifier(): Classifier;
11143
11146
  interface DocumentHighlights {
@@ -54400,7 +54400,7 @@ ${lanes.join("\n")}
54400
54400
  if (reportErrors2) {
54401
54401
  reportErrorsFromWidening(declaration, type);
54402
54402
  }
54403
- if (type.flags & 8192 /* UniqueESSymbol */ && !declaration.type && type.symbol !== getSymbolOfDeclaration(declaration) && !isValueSymbolAccessible(type.symbol, type.symbol.valueDeclaration)) {
54403
+ if (type.flags & 8192 /* UniqueESSymbol */ && (isBindingElement(declaration) || !declaration.type) && type.symbol !== getSymbolOfDeclaration(declaration)) {
54404
54404
  type = esSymbolType;
54405
54405
  }
54406
54406
  return getWidenedType(type);
@@ -76882,7 +76882,7 @@ ${lanes.join("\n")}
76882
76882
  return createTupleType(elementTypes, elementFlags, type.target.readonly);
76883
76883
  }
76884
76884
  function widenTypeInferredFromInitializer(declaration, type) {
76885
- const widened = getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedUniqueESSymbolType(getWidenedLiteralType(type));
76885
+ const widened = getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type);
76886
76886
  if (isInJSFile(declaration)) {
76887
76887
  if (isEmptyLiteralType(widened)) {
76888
76888
  reportImplicitAny(declaration, anyType);
@@ -131623,7 +131623,7 @@ ${lanes.join("\n")}
131623
131623
  }
131624
131624
  };
131625
131625
  if (Debug.isDebugging) {
131626
- Object.defineProperty(cache, "__cache", { get: () => exportInfo });
131626
+ Object.defineProperty(cache, "__cache", { value: exportInfo });
131627
131627
  }
131628
131628
  return cache;
131629
131629
  function rehydrateCachedInfo(info) {
@@ -131659,11 +131659,15 @@ ${lanes.join("\n")}
131659
131659
  }
131660
131660
  function key(importedName, symbol, ambientModuleName, checker) {
131661
131661
  const moduleKey = ambientModuleName || "";
131662
- return `${importedName}|${getSymbolId(skipAlias(symbol, checker))}|${moduleKey}`;
131662
+ return `${importedName.length} ${getSymbolId(skipAlias(symbol, checker))} ${importedName} ${moduleKey}`;
131663
131663
  }
131664
131664
  function parseKey(key2) {
131665
- const symbolName2 = key2.substring(0, key2.indexOf("|"));
131666
- const moduleKey = key2.substring(key2.lastIndexOf("|") + 1);
131665
+ const firstSpace = key2.indexOf(" ");
131666
+ const secondSpace = key2.indexOf(" ", firstSpace + 1);
131667
+ const symbolNameLength = parseInt(key2.substring(0, firstSpace), 10);
131668
+ const data = key2.substring(secondSpace + 1);
131669
+ const symbolName2 = data.substring(0, symbolNameLength);
131670
+ const moduleKey = data.substring(symbolNameLength + 1);
131667
131671
  const ambientModuleName = moduleKey === "" ? void 0 : moduleKey;
131668
131672
  return { symbolName: symbolName2, ambientModuleName };
131669
131673
  }
@@ -145996,7 +146000,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
145996
146000
  checker.getTypeAtLocation(errorNode).flags & 1 /* Any */;
145997
146001
  }
145998
146002
  function isInsideAwaitableBody(node) {
145999
- return node.kind & 65536 /* AwaitContext */ || !!findAncestor(node, (ancestor) => ancestor.parent && isArrowFunction(ancestor.parent) && ancestor.parent.body === ancestor || isBlock(ancestor) && (ancestor.parent.kind === 262 /* FunctionDeclaration */ || ancestor.parent.kind === 218 /* FunctionExpression */ || ancestor.parent.kind === 219 /* ArrowFunction */ || ancestor.parent.kind === 174 /* MethodDeclaration */));
146003
+ return node.flags & 65536 /* AwaitContext */ || !!findAncestor(node, (ancestor) => ancestor.parent && isArrowFunction(ancestor.parent) && ancestor.parent.body === ancestor || isBlock(ancestor) && (ancestor.parent.kind === 262 /* FunctionDeclaration */ || ancestor.parent.kind === 218 /* FunctionExpression */ || ancestor.parent.kind === 219 /* ArrowFunction */ || ancestor.parent.kind === 174 /* MethodDeclaration */));
146000
146004
  }
146001
146005
  function makeChange3(changeTracker, errorCode, sourceFile, checker, insertionSite, fixedDeclarations) {
146002
146006
  if (isForOfStatement(insertionSite.parent) && !insertionSite.parent.awaitModifier) {
@@ -6837,7 +6837,7 @@ declare namespace ts {
6837
6837
  * in the case of InternalSymbolName.ExportEquals and InternalSymbolName.Default.
6838
6838
  */
6839
6839
  exportName: string;
6840
- exportMapKey?: string;
6840
+ exportMapKey?: ExportMapInfoKey;
6841
6841
  moduleSpecifier?: string;
6842
6842
  /** The file name declaring the export's module symbol, if it was an external module */
6843
6843
  fileName?: string;
@@ -6847,7 +6847,7 @@ declare namespace ts {
6847
6847
  isPackageJsonImport?: true;
6848
6848
  }
6849
6849
  interface CompletionEntryDataUnresolved extends CompletionEntryDataAutoImport {
6850
- exportMapKey: string;
6850
+ exportMapKey: ExportMapInfoKey;
6851
6851
  }
6852
6852
  interface CompletionEntryDataResolved extends CompletionEntryDataAutoImport {
6853
6853
  moduleSpecifier: string;
@@ -7162,6 +7162,9 @@ declare namespace ts {
7162
7162
  span: TextSpan;
7163
7163
  preferences: UserPreferences;
7164
7164
  }
7165
+ type ExportMapInfoKey = string & {
7166
+ __exportInfoKey: void;
7167
+ };
7165
7168
  /** The classifier is used for syntactic highlighting in editors via the TSServer */
7166
7169
  function createClassifier(): Classifier;
7167
7170
  interface DocumentHighlights {
package/lib/typescript.js CHANGED
@@ -54400,7 +54400,7 @@ ${lanes.join("\n")}
54400
54400
  if (reportErrors2) {
54401
54401
  reportErrorsFromWidening(declaration, type);
54402
54402
  }
54403
- if (type.flags & 8192 /* UniqueESSymbol */ && !declaration.type && type.symbol !== getSymbolOfDeclaration(declaration) && !isValueSymbolAccessible(type.symbol, type.symbol.valueDeclaration)) {
54403
+ if (type.flags & 8192 /* UniqueESSymbol */ && (isBindingElement(declaration) || !declaration.type) && type.symbol !== getSymbolOfDeclaration(declaration)) {
54404
54404
  type = esSymbolType;
54405
54405
  }
54406
54406
  return getWidenedType(type);
@@ -76882,7 +76882,7 @@ ${lanes.join("\n")}
76882
76882
  return createTupleType(elementTypes, elementFlags, type.target.readonly);
76883
76883
  }
76884
76884
  function widenTypeInferredFromInitializer(declaration, type) {
76885
- const widened = getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedUniqueESSymbolType(getWidenedLiteralType(type));
76885
+ const widened = getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type);
76886
76886
  if (isInJSFile(declaration)) {
76887
76887
  if (isEmptyLiteralType(widened)) {
76888
76888
  reportImplicitAny(declaration, anyType);
@@ -131638,7 +131638,7 @@ ${lanes.join("\n")}
131638
131638
  }
131639
131639
  };
131640
131640
  if (Debug.isDebugging) {
131641
- Object.defineProperty(cache, "__cache", { get: () => exportInfo });
131641
+ Object.defineProperty(cache, "__cache", { value: exportInfo });
131642
131642
  }
131643
131643
  return cache;
131644
131644
  function rehydrateCachedInfo(info) {
@@ -131674,11 +131674,15 @@ ${lanes.join("\n")}
131674
131674
  }
131675
131675
  function key(importedName, symbol, ambientModuleName, checker) {
131676
131676
  const moduleKey = ambientModuleName || "";
131677
- return `${importedName}|${getSymbolId(skipAlias(symbol, checker))}|${moduleKey}`;
131677
+ return `${importedName.length} ${getSymbolId(skipAlias(symbol, checker))} ${importedName} ${moduleKey}`;
131678
131678
  }
131679
131679
  function parseKey(key2) {
131680
- const symbolName2 = key2.substring(0, key2.indexOf("|"));
131681
- const moduleKey = key2.substring(key2.lastIndexOf("|") + 1);
131680
+ const firstSpace = key2.indexOf(" ");
131681
+ const secondSpace = key2.indexOf(" ", firstSpace + 1);
131682
+ const symbolNameLength = parseInt(key2.substring(0, firstSpace), 10);
131683
+ const data = key2.substring(secondSpace + 1);
131684
+ const symbolName2 = data.substring(0, symbolNameLength);
131685
+ const moduleKey = data.substring(symbolNameLength + 1);
131682
131686
  const ambientModuleName = moduleKey === "" ? void 0 : moduleKey;
131683
131687
  return { symbolName: symbolName2, ambientModuleName };
131684
131688
  }
@@ -146011,7 +146015,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
146011
146015
  checker.getTypeAtLocation(errorNode).flags & 1 /* Any */;
146012
146016
  }
146013
146017
  function isInsideAwaitableBody(node) {
146014
- return node.kind & 65536 /* AwaitContext */ || !!findAncestor(node, (ancestor) => ancestor.parent && isArrowFunction(ancestor.parent) && ancestor.parent.body === ancestor || isBlock(ancestor) && (ancestor.parent.kind === 262 /* FunctionDeclaration */ || ancestor.parent.kind === 218 /* FunctionExpression */ || ancestor.parent.kind === 219 /* ArrowFunction */ || ancestor.parent.kind === 174 /* MethodDeclaration */));
146018
+ return node.flags & 65536 /* AwaitContext */ || !!findAncestor(node, (ancestor) => ancestor.parent && isArrowFunction(ancestor.parent) && ancestor.parent.body === ancestor || isBlock(ancestor) && (ancestor.parent.kind === 262 /* FunctionDeclaration */ || ancestor.parent.kind === 218 /* FunctionExpression */ || ancestor.parent.kind === 219 /* ArrowFunction */ || ancestor.parent.kind === 174 /* MethodDeclaration */));
146015
146019
  }
146016
146020
  function makeChange3(changeTracker, errorCode, sourceFile, checker, insertionSite, fixedDeclarations) {
146017
146021
  if (isForOfStatement(insertionSite.parent) && !insertionSite.parent.awaitModifier) {
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.3.0-pr-54778-3",
5
+ "version": "5.3.0-pr-54678-12",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -114,5 +114,5 @@
114
114
  "node": "20.1.0",
115
115
  "npm": "8.19.4"
116
116
  },
117
- "gitHead": "e591aa05f00ddd117f74bd2048399c9ffbb451d9"
117
+ "gitHead": "91985590dede6458f12483e25b5beb1362d867b8"
118
118
  }