typescript 5.9.0-dev.20250623 → 5.9.0-dev.20250624

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.9";
21
- var version = `${versionMajorMinor}.0-dev.20250623`;
21
+ var version = `${versionMajorMinor}.0-dev.20250624`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
package/lib/typescript.js CHANGED
@@ -2285,7 +2285,7 @@ module.exports = __toCommonJS(typescript_exports);
2285
2285
 
2286
2286
  // src/compiler/corePublic.ts
2287
2287
  var versionMajorMinor = "5.9";
2288
- var version = `${versionMajorMinor}.0-dev.20250623`;
2288
+ var version = `${versionMajorMinor}.0-dev.20250624`;
2289
2289
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2290
2290
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2291
2291
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -139324,6 +139324,9 @@ function getMeaningFromRightHandSideOfImportEquals(node) {
139324
139324
  return name && name.parent.kind === 272 /* ImportEqualsDeclaration */ ? 7 /* All */ : 4 /* Namespace */;
139325
139325
  }
139326
139326
  function isInRightSideOfInternalImportEqualsDeclaration(node) {
139327
+ if (!node.parent) {
139328
+ return false;
139329
+ }
139327
139330
  while (node.parent.kind === 167 /* QualifiedName */) {
139328
139331
  node = node.parent;
139329
139332
  }
@@ -168297,48 +168300,46 @@ function getCompletionEntriesFromSymbols(symbols, entries, replacementToken, con
168297
168300
  function shouldIncludeSymbol(symbol, symbolToSortTextMap2) {
168298
168301
  var _a;
168299
168302
  let allFlags = symbol.flags;
168300
- if (!isSourceFile(location)) {
168301
- if (isExportAssignment(location.parent)) {
168302
- return true;
168303
+ if (location.parent && isExportAssignment(location.parent)) {
168304
+ return true;
168305
+ }
168306
+ if (closestSymbolDeclaration && tryCast(closestSymbolDeclaration, isVariableDeclaration)) {
168307
+ if (symbol.valueDeclaration === closestSymbolDeclaration) {
168308
+ return false;
168303
168309
  }
168304
- if (closestSymbolDeclaration && tryCast(closestSymbolDeclaration, isVariableDeclaration)) {
168305
- if (symbol.valueDeclaration === closestSymbolDeclaration) {
168310
+ if (isBindingPattern(closestSymbolDeclaration.name) && closestSymbolDeclaration.name.elements.some((e) => e === symbol.valueDeclaration)) {
168311
+ return false;
168312
+ }
168313
+ }
168314
+ const symbolDeclaration = symbol.valueDeclaration ?? ((_a = symbol.declarations) == null ? void 0 : _a[0]);
168315
+ if (closestSymbolDeclaration && symbolDeclaration) {
168316
+ if (isParameter(closestSymbolDeclaration) && isParameter(symbolDeclaration)) {
168317
+ const parameters = closestSymbolDeclaration.parent.parameters;
168318
+ if (symbolDeclaration.pos >= closestSymbolDeclaration.pos && symbolDeclaration.pos < parameters.end) {
168306
168319
  return false;
168307
168320
  }
168308
- if (isBindingPattern(closestSymbolDeclaration.name) && closestSymbolDeclaration.name.elements.some((e) => e === symbol.valueDeclaration)) {
168321
+ } else if (isTypeParameterDeclaration(closestSymbolDeclaration) && isTypeParameterDeclaration(symbolDeclaration)) {
168322
+ if (closestSymbolDeclaration === symbolDeclaration && (contextToken == null ? void 0 : contextToken.kind) === 96 /* ExtendsKeyword */) {
168309
168323
  return false;
168310
168324
  }
168311
- }
168312
- const symbolDeclaration = symbol.valueDeclaration ?? ((_a = symbol.declarations) == null ? void 0 : _a[0]);
168313
- if (closestSymbolDeclaration && symbolDeclaration) {
168314
- if (isParameter(closestSymbolDeclaration) && isParameter(symbolDeclaration)) {
168315
- const parameters = closestSymbolDeclaration.parent.parameters;
168316
- if (symbolDeclaration.pos >= closestSymbolDeclaration.pos && symbolDeclaration.pos < parameters.end) {
168317
- return false;
168318
- }
168319
- } else if (isTypeParameterDeclaration(closestSymbolDeclaration) && isTypeParameterDeclaration(symbolDeclaration)) {
168320
- if (closestSymbolDeclaration === symbolDeclaration && (contextToken == null ? void 0 : contextToken.kind) === 96 /* ExtendsKeyword */) {
168325
+ if (isInTypeParameterDefault(contextToken) && !isInferTypeNode(closestSymbolDeclaration.parent)) {
168326
+ const typeParameters = closestSymbolDeclaration.parent.typeParameters;
168327
+ if (typeParameters && symbolDeclaration.pos >= closestSymbolDeclaration.pos && symbolDeclaration.pos < typeParameters.end) {
168321
168328
  return false;
168322
168329
  }
168323
- if (isInTypeParameterDefault(contextToken) && !isInferTypeNode(closestSymbolDeclaration.parent)) {
168324
- const typeParameters = closestSymbolDeclaration.parent.typeParameters;
168325
- if (typeParameters && symbolDeclaration.pos >= closestSymbolDeclaration.pos && symbolDeclaration.pos < typeParameters.end) {
168326
- return false;
168327
- }
168328
- }
168329
168330
  }
168330
168331
  }
168331
- const symbolOrigin = skipAlias(symbol, typeChecker);
168332
- if (!!sourceFile.externalModuleIndicator && !compilerOptions.allowUmdGlobalAccess && symbolToSortTextMap2[getSymbolId(symbol)] === SortText.GlobalsOrKeywords && (symbolToSortTextMap2[getSymbolId(symbolOrigin)] === SortText.AutoImportSuggestions || symbolToSortTextMap2[getSymbolId(symbolOrigin)] === SortText.LocationPriority)) {
168333
- return false;
168334
- }
168335
- allFlags |= getCombinedLocalAndExportSymbolFlags(symbolOrigin);
168336
- if (isInRightSideOfInternalImportEqualsDeclaration(location)) {
168337
- return !!(allFlags & 1920 /* Namespace */);
168338
- }
168339
- if (isTypeOnlyLocation) {
168340
- return symbolCanBeReferencedAtTypeLocation(symbol, typeChecker);
168341
- }
168332
+ }
168333
+ const symbolOrigin = skipAlias(symbol, typeChecker);
168334
+ if (!!sourceFile.externalModuleIndicator && !compilerOptions.allowUmdGlobalAccess && symbolToSortTextMap2[getSymbolId(symbol)] === SortText.GlobalsOrKeywords && (symbolToSortTextMap2[getSymbolId(symbolOrigin)] === SortText.AutoImportSuggestions || symbolToSortTextMap2[getSymbolId(symbolOrigin)] === SortText.LocationPriority)) {
168335
+ return false;
168336
+ }
168337
+ allFlags |= getCombinedLocalAndExportSymbolFlags(symbolOrigin);
168338
+ if (isInRightSideOfInternalImportEqualsDeclaration(location)) {
168339
+ return !!(allFlags & 1920 /* Namespace */);
168340
+ }
168341
+ if (isTypeOnlyLocation) {
168342
+ return symbolCanBeReferencedAtTypeLocation(symbol, typeChecker);
168342
168343
  }
168343
168344
  return !!(allFlags & 111551 /* Value */);
168344
168345
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "typescript",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.9.0-dev.20250623",
5
+ "version": "5.9.0-dev.20250624",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -116,5 +116,5 @@
116
116
  "node": "20.1.0",
117
117
  "npm": "8.19.4"
118
118
  },
119
- "gitHead": "479285d0ac293c35a926508d17f0bb5eca7e0303"
119
+ "gitHead": "78c16795cdee70b9d9f0f248b6dbb6ba50994a59"
120
120
  }