typescript 6.0.0-dev.20250925 → 6.0.0-dev.20250927

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 = "6.0";
21
- var version = `${versionMajorMinor}.0-dev.20250925`;
21
+ var version = `${versionMajorMinor}.0-dev.20250927`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -41664,7 +41664,9 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
41664
41664
  const subTarget = target[condition];
41665
41665
  const result = loadModuleFromTargetExportOrImport(subTarget, subpath, pattern, key);
41666
41666
  if (result) {
41667
- traceIfEnabled(state, Diagnostics.Resolved_under_condition_0, condition);
41667
+ if (result.value) {
41668
+ traceIfEnabled(state, Diagnostics.Resolved_under_condition_0, condition);
41669
+ }
41668
41670
  traceIfEnabled(state, Diagnostics.Exiting_conditional_exports);
41669
41671
  return result;
41670
41672
  } else {
@@ -41697,10 +41699,7 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
41697
41699
  if (state.traceEnabled) {
41698
41700
  trace(state.host, Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null, scope.packageDirectory, moduleName);
41699
41701
  }
41700
- return toSearchResult(
41701
- /*value*/
41702
- void 0
41703
- );
41702
+ return { value: void 0 };
41704
41703
  }
41705
41704
  if (state.traceEnabled) {
41706
41705
  trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName);
@@ -5908,7 +5908,6 @@ declare namespace ts {
5908
5908
  */
5909
5909
  interface SourceFileLike {
5910
5910
  readonly text: string;
5911
- languageVariant?: LanguageVariant;
5912
5911
  }
5913
5912
  interface SourceFileLike {
5914
5913
  getLineAndCharacterOfPosition(pos: number): LineAndCharacter;
package/lib/typescript.js CHANGED
@@ -2286,7 +2286,7 @@ module.exports = __toCommonJS(typescript_exports);
2286
2286
 
2287
2287
  // src/compiler/corePublic.ts
2288
2288
  var versionMajorMinor = "6.0";
2289
- var version = `${versionMajorMinor}.0-dev.20250925`;
2289
+ var version = `${versionMajorMinor}.0-dev.20250927`;
2290
2290
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2291
2291
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2292
2292
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -6791,10 +6791,10 @@ var ScriptTarget = /* @__PURE__ */ ((ScriptTarget12) => {
6791
6791
  ScriptTarget12[ScriptTarget12["Latest"] = 99 /* ESNext */] = "Latest";
6792
6792
  return ScriptTarget12;
6793
6793
  })(ScriptTarget || {});
6794
- var LanguageVariant = /* @__PURE__ */ ((LanguageVariant3) => {
6795
- LanguageVariant3[LanguageVariant3["Standard"] = 0] = "Standard";
6796
- LanguageVariant3[LanguageVariant3["JSX"] = 1] = "JSX";
6797
- return LanguageVariant3;
6794
+ var LanguageVariant = /* @__PURE__ */ ((LanguageVariant4) => {
6795
+ LanguageVariant4[LanguageVariant4["Standard"] = 0] = "Standard";
6796
+ LanguageVariant4[LanguageVariant4["JSX"] = 1] = "JSX";
6797
+ return LanguageVariant4;
6798
6798
  })(LanguageVariant || {});
6799
6799
  var WatchDirectoryFlags = /* @__PURE__ */ ((WatchDirectoryFlags3) => {
6800
6800
  WatchDirectoryFlags3[WatchDirectoryFlags3["None"] = 0] = "None";
@@ -46155,7 +46155,9 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
46155
46155
  const subTarget = target[condition];
46156
46156
  const result = loadModuleFromTargetExportOrImport(subTarget, subpath, pattern, key);
46157
46157
  if (result) {
46158
- traceIfEnabled(state, Diagnostics.Resolved_under_condition_0, condition);
46158
+ if (result.value) {
46159
+ traceIfEnabled(state, Diagnostics.Resolved_under_condition_0, condition);
46160
+ }
46159
46161
  traceIfEnabled(state, Diagnostics.Exiting_conditional_exports);
46160
46162
  return result;
46161
46163
  } else {
@@ -46188,10 +46190,7 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
46188
46190
  if (state.traceEnabled) {
46189
46191
  trace(state.host, Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null, scope.packageDirectory, moduleName);
46190
46192
  }
46191
- return toSearchResult(
46192
- /*value*/
46193
- void 0
46194
- );
46193
+ return { value: void 0 };
46195
46194
  }
46196
46195
  if (state.traceEnabled) {
46197
46196
  trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName);
@@ -140405,7 +140404,7 @@ function isInsideJsxElementOrAttribute(sourceFile, position) {
140405
140404
  if (token && token.kind === 20 /* CloseBraceToken */ && token.parent.kind === 295 /* JsxExpression */) {
140406
140405
  return true;
140407
140406
  }
140408
- if (token.kind === 31 /* LessThanSlashToken */ && token.parent.kind === 288 /* JsxClosingElement */) {
140407
+ if (token.kind === 30 /* LessThanToken */ && token.parent.kind === 288 /* JsxClosingElement */) {
140409
140408
  return true;
140410
140409
  }
140411
140410
  return false;
@@ -140433,7 +140432,7 @@ function isInJSXText(sourceFile, position) {
140433
140432
  function isInsideJsxElement(sourceFile, position) {
140434
140433
  function isInsideJsxElementTraversal(node) {
140435
140434
  while (node) {
140436
- if (node.kind >= 286 /* JsxSelfClosingElement */ && node.kind <= 295 /* JsxExpression */ || node.kind === 12 /* JsxText */ || node.kind === 30 /* LessThanToken */ || node.kind === 32 /* GreaterThanToken */ || node.kind === 80 /* Identifier */ || node.kind === 20 /* CloseBraceToken */ || node.kind === 19 /* OpenBraceToken */ || node.kind === 44 /* SlashToken */ || node.kind === 31 /* LessThanSlashToken */) {
140435
+ if (node.kind >= 286 /* JsxSelfClosingElement */ && node.kind <= 295 /* JsxExpression */ || node.kind === 12 /* JsxText */ || node.kind === 30 /* LessThanToken */ || node.kind === 32 /* GreaterThanToken */ || node.kind === 80 /* Identifier */ || node.kind === 20 /* CloseBraceToken */ || node.kind === 19 /* OpenBraceToken */ || node.kind === 44 /* SlashToken */) {
140437
140436
  node = node.parent;
140438
140437
  } else if (node.kind === 285 /* JsxElement */) {
140439
140438
  if (position > node.getStart(sourceFile)) return true;
@@ -151873,9 +151872,7 @@ function createChildren(node, sourceFile) {
151873
151872
  });
151874
151873
  return children;
151875
151874
  }
151876
- const languageVariant = (sourceFile == null ? void 0 : sourceFile.languageVariant) ?? 0 /* Standard */;
151877
151875
  scanner.setText((sourceFile || node.getSourceFile()).text);
151878
- scanner.setLanguageVariant(languageVariant);
151879
151876
  let pos = node.pos;
151880
151877
  const processNode = (child) => {
151881
151878
  addSyntheticNodes(children, pos, child.pos, node);
@@ -151892,7 +151889,6 @@ function createChildren(node, sourceFile) {
151892
151889
  node.forEachChild(processNode, processNodes);
151893
151890
  addSyntheticNodes(children, pos, node.end, node);
151894
151891
  scanner.setText(void 0);
151895
- scanner.setLanguageVariant(0 /* Standard */);
151896
151892
  return children;
151897
151893
  }
151898
151894
  function addSyntheticNodes(nodes, pos, end, parent2) {
@@ -167606,7 +167602,7 @@ function getJsxClosingTagCompletion(location, sourceFile) {
167606
167602
  switch (node.kind) {
167607
167603
  case 288 /* JsxClosingElement */:
167608
167604
  return true;
167609
- case 31 /* LessThanSlashToken */:
167605
+ case 44 /* SlashToken */:
167610
167606
  case 32 /* GreaterThanToken */:
167611
167607
  case 80 /* Identifier */:
167612
167608
  case 212 /* PropertyAccessExpression */:
@@ -168942,7 +168938,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
168942
168938
  location = currentToken;
168943
168939
  }
168944
168940
  break;
168945
- case 31 /* LessThanSlashToken */:
168941
+ case 44 /* SlashToken */:
168946
168942
  if (currentToken.parent.kind === 286 /* JsxSelfClosingElement */) {
168947
168943
  location = currentToken;
168948
168944
  }
@@ -168951,7 +168947,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
168951
168947
  }
168952
168948
  switch (parent2.kind) {
168953
168949
  case 288 /* JsxClosingElement */:
168954
- if (contextToken.kind === 31 /* LessThanSlashToken */) {
168950
+ if (contextToken.kind === 44 /* SlashToken */) {
168955
168951
  isStartingCloseTag = true;
168956
168952
  location = contextToken;
168957
168953
  }
@@ -170572,7 +170568,7 @@ function isValidTrigger(sourceFile, triggerCharacter, contextToken, position) {
170572
170568
  case "<":
170573
170569
  return !!contextToken && contextToken.kind === 30 /* LessThanToken */ && (!isBinaryExpression(contextToken.parent) || binaryExpressionMayBeOpenTag(contextToken.parent));
170574
170570
  case "/":
170575
- return !!contextToken && (isStringLiteralLike(contextToken) ? !!tryGetImportFromModuleSpecifier(contextToken) : contextToken.kind === 31 /* LessThanSlashToken */ && isJsxClosingElement(contextToken.parent));
170571
+ return !!contextToken && (isStringLiteralLike(contextToken) ? !!tryGetImportFromModuleSpecifier(contextToken) : contextToken.kind === 44 /* SlashToken */ && isJsxClosingElement(contextToken.parent));
170576
170572
  case " ":
170577
170573
  return !!contextToken && isImportKeyword(contextToken) && contextToken.parent.kind === 308 /* SourceFile */;
170578
170574
  default:
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": "6.0.0-dev.20250925",
5
+ "version": "6.0.0-dev.20250927",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -115,5 +115,5 @@
115
115
  "node": "20.1.0",
116
116
  "npm": "8.19.4"
117
117
  },
118
- "gitHead": "96acaa52902feb1320e1d8ec8936b8669cca447d"
118
+ "gitHead": "5f183ad73dc1500209619cf52e174c45d73f8617"
119
119
  }