typescript 5.3.0-dev.20231016 → 5.3.0-dev.20231018

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.3";
21
- var version = `${versionMajorMinor}.0-dev.20231016`;
21
+ var version = `${versionMajorMinor}.0-dev.20231018`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -13878,9 +13878,9 @@ function ownsJSDocTag(hostNode, tag) {
13878
13878
  }
13879
13879
  function getNextJSDocCommentLocation(node) {
13880
13880
  const parent = node.parent;
13881
- if (parent.kind === 303 /* PropertyAssignment */ || parent.kind === 277 /* ExportAssignment */ || parent.kind === 172 /* PropertyDeclaration */ || parent.kind === 244 /* ExpressionStatement */ && node.kind === 211 /* PropertyAccessExpression */ || parent.kind === 253 /* ReturnStatement */ || getNestedModuleDeclaration(parent) || isBinaryExpression(node) && node.operatorToken.kind === 64 /* EqualsToken */) {
13881
+ if (parent.kind === 303 /* PropertyAssignment */ || parent.kind === 277 /* ExportAssignment */ || parent.kind === 172 /* PropertyDeclaration */ || parent.kind === 244 /* ExpressionStatement */ && node.kind === 211 /* PropertyAccessExpression */ || parent.kind === 253 /* ReturnStatement */ || getNestedModuleDeclaration(parent) || isAssignmentExpression(node)) {
13882
13882
  return parent;
13883
- } else if (parent.parent && (getSingleVariableOfVariableStatement(parent.parent) === node || isBinaryExpression(parent) && parent.operatorToken.kind === 64 /* EqualsToken */)) {
13883
+ } else if (parent.parent && (getSingleVariableOfVariableStatement(parent.parent) === node || isAssignmentExpression(parent))) {
13884
13884
  return parent.parent;
13885
13885
  } else if (parent.parent && parent.parent.parent && (getSingleVariableOfVariableStatement(parent.parent.parent) || getSingleInitializerOfVariableStatementOrPropertyDeclaration(parent.parent.parent) === node || getSourceOfDefaultedAssignment(parent.parent.parent))) {
13886
13886
  return parent.parent.parent;
@@ -34843,7 +34843,7 @@ var commandOptionsWithoutBuild = [
34843
34843
  affectsBuildInfo: true,
34844
34844
  affectsDeclarationPath: true,
34845
34845
  isFilePath: false,
34846
- // This is intentionally broken to support compatability with existing tsconfig files
34846
+ // This is intentionally broken to support compatibility with existing tsconfig files
34847
34847
  // for correct behaviour, please use outFile
34848
34848
  category: Diagnostics.Backwards_Compatibility,
34849
34849
  paramType: Diagnostics.FILE,
@@ -67350,7 +67350,7 @@ function createTypeChecker(host) {
67350
67350
  return getWidenedType(contextualType ? getNonNullableType(contextualType) : checkExpressionCached(containingLiteral));
67351
67351
  }
67352
67352
  const parent = walkUpParenthesizedExpressions(func.parent);
67353
- if (parent.kind === 226 /* BinaryExpression */ && parent.operatorToken.kind === 64 /* EqualsToken */) {
67353
+ if (isAssignmentExpression(parent)) {
67354
67354
  const target = parent.left;
67355
67355
  if (isAccessExpression(target)) {
67356
67356
  const { expression } = target;
@@ -73704,7 +73704,7 @@ function createTypeChecker(host) {
73704
73704
  return typeofType;
73705
73705
  }
73706
73706
  function checkVoidExpression(node) {
73707
- checkExpression(node.expression);
73707
+ checkNodeDeferred(node);
73708
73708
  return undefinedWideningType;
73709
73709
  }
73710
73710
  function checkAwaitGrammar(node) {
@@ -80900,6 +80900,9 @@ function createTypeChecker(host) {
80900
80900
  case 217 /* ParenthesizedExpression */:
80901
80901
  checkAssertionDeferred(node);
80902
80902
  break;
80903
+ case 222 /* VoidExpression */:
80904
+ checkExpression(node.expression);
80905
+ break;
80903
80906
  case 226 /* BinaryExpression */:
80904
80907
  if (isInstanceOfExpression(node)) {
80905
80908
  resolveUntypedCall(node);
package/lib/tsserver.js CHANGED
@@ -2328,7 +2328,7 @@ module.exports = __toCommonJS(server_exports);
2328
2328
 
2329
2329
  // src/compiler/corePublic.ts
2330
2330
  var versionMajorMinor = "5.3";
2331
- var version = `${versionMajorMinor}.0-dev.20231016`;
2331
+ var version = `${versionMajorMinor}.0-dev.20231018`;
2332
2332
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2333
2333
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2334
2334
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -17745,9 +17745,9 @@ function ownsJSDocTag(hostNode, tag) {
17745
17745
  }
17746
17746
  function getNextJSDocCommentLocation(node) {
17747
17747
  const parent2 = node.parent;
17748
- if (parent2.kind === 303 /* PropertyAssignment */ || parent2.kind === 277 /* ExportAssignment */ || parent2.kind === 172 /* PropertyDeclaration */ || parent2.kind === 244 /* ExpressionStatement */ && node.kind === 211 /* PropertyAccessExpression */ || parent2.kind === 253 /* ReturnStatement */ || getNestedModuleDeclaration(parent2) || isBinaryExpression(node) && node.operatorToken.kind === 64 /* EqualsToken */) {
17748
+ if (parent2.kind === 303 /* PropertyAssignment */ || parent2.kind === 277 /* ExportAssignment */ || parent2.kind === 172 /* PropertyDeclaration */ || parent2.kind === 244 /* ExpressionStatement */ && node.kind === 211 /* PropertyAccessExpression */ || parent2.kind === 253 /* ReturnStatement */ || getNestedModuleDeclaration(parent2) || isAssignmentExpression(node)) {
17749
17749
  return parent2;
17750
- } else if (parent2.parent && (getSingleVariableOfVariableStatement(parent2.parent) === node || isBinaryExpression(parent2) && parent2.operatorToken.kind === 64 /* EqualsToken */)) {
17750
+ } else if (parent2.parent && (getSingleVariableOfVariableStatement(parent2.parent) === node || isAssignmentExpression(parent2))) {
17751
17751
  return parent2.parent;
17752
17752
  } else if (parent2.parent && parent2.parent.parent && (getSingleVariableOfVariableStatement(parent2.parent.parent) || getSingleInitializerOfVariableStatementOrPropertyDeclaration(parent2.parent.parent) === node || getSourceOfDefaultedAssignment(parent2.parent.parent))) {
17753
17753
  return parent2.parent.parent;
@@ -39247,7 +39247,7 @@ var commandOptionsWithoutBuild = [
39247
39247
  affectsBuildInfo: true,
39248
39248
  affectsDeclarationPath: true,
39249
39249
  isFilePath: false,
39250
- // This is intentionally broken to support compatability with existing tsconfig files
39250
+ // This is intentionally broken to support compatibility with existing tsconfig files
39251
39251
  // for correct behaviour, please use outFile
39252
39252
  category: Diagnostics.Backwards_Compatibility,
39253
39253
  paramType: Diagnostics.FILE,
@@ -72062,7 +72062,7 @@ function createTypeChecker(host) {
72062
72062
  return getWidenedType(contextualType ? getNonNullableType(contextualType) : checkExpressionCached(containingLiteral));
72063
72063
  }
72064
72064
  const parent2 = walkUpParenthesizedExpressions(func.parent);
72065
- if (parent2.kind === 226 /* BinaryExpression */ && parent2.operatorToken.kind === 64 /* EqualsToken */) {
72065
+ if (isAssignmentExpression(parent2)) {
72066
72066
  const target = parent2.left;
72067
72067
  if (isAccessExpression(target)) {
72068
72068
  const { expression } = target;
@@ -78416,7 +78416,7 @@ function createTypeChecker(host) {
78416
78416
  return typeofType;
78417
78417
  }
78418
78418
  function checkVoidExpression(node) {
78419
- checkExpression(node.expression);
78419
+ checkNodeDeferred(node);
78420
78420
  return undefinedWideningType;
78421
78421
  }
78422
78422
  function checkAwaitGrammar(node) {
@@ -85612,6 +85612,9 @@ function createTypeChecker(host) {
85612
85612
  case 217 /* ParenthesizedExpression */:
85613
85613
  checkAssertionDeferred(node);
85614
85614
  break;
85615
+ case 222 /* VoidExpression */:
85616
+ checkExpression(node.expression);
85617
+ break;
85615
85618
  case 226 /* BinaryExpression */:
85616
85619
  if (isInstanceOfExpression(node)) {
85617
85620
  resolveUntypedCall(node);
package/lib/typescript.js CHANGED
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.3";
38
- version = `${versionMajorMinor}.0-dev.20231016`;
38
+ version = `${versionMajorMinor}.0-dev.20231018`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -15128,9 +15128,9 @@ ${lanes.join("\n")}
15128
15128
  }
15129
15129
  function getNextJSDocCommentLocation(node) {
15130
15130
  const parent2 = node.parent;
15131
- if (parent2.kind === 303 /* PropertyAssignment */ || parent2.kind === 277 /* ExportAssignment */ || parent2.kind === 172 /* PropertyDeclaration */ || parent2.kind === 244 /* ExpressionStatement */ && node.kind === 211 /* PropertyAccessExpression */ || parent2.kind === 253 /* ReturnStatement */ || getNestedModuleDeclaration(parent2) || isBinaryExpression(node) && node.operatorToken.kind === 64 /* EqualsToken */) {
15131
+ if (parent2.kind === 303 /* PropertyAssignment */ || parent2.kind === 277 /* ExportAssignment */ || parent2.kind === 172 /* PropertyDeclaration */ || parent2.kind === 244 /* ExpressionStatement */ && node.kind === 211 /* PropertyAccessExpression */ || parent2.kind === 253 /* ReturnStatement */ || getNestedModuleDeclaration(parent2) || isAssignmentExpression(node)) {
15132
15132
  return parent2;
15133
- } else if (parent2.parent && (getSingleVariableOfVariableStatement(parent2.parent) === node || isBinaryExpression(parent2) && parent2.operatorToken.kind === 64 /* EqualsToken */)) {
15133
+ } else if (parent2.parent && (getSingleVariableOfVariableStatement(parent2.parent) === node || isAssignmentExpression(parent2))) {
15134
15134
  return parent2.parent;
15135
15135
  } else if (parent2.parent && parent2.parent.parent && (getSingleVariableOfVariableStatement(parent2.parent.parent) || getSingleInitializerOfVariableStatementOrPropertyDeclaration(parent2.parent.parent) === node || getSourceOfDefaultedAssignment(parent2.parent.parent))) {
15136
15136
  return parent2.parent.parent;
@@ -38730,7 +38730,7 @@ ${lanes.join("\n")}
38730
38730
  affectsBuildInfo: true,
38731
38731
  affectsDeclarationPath: true,
38732
38732
  isFilePath: false,
38733
- // This is intentionally broken to support compatability with existing tsconfig files
38733
+ // This is intentionally broken to support compatibility with existing tsconfig files
38734
38734
  // for correct behaviour, please use outFile
38735
38735
  category: Diagnostics.Backwards_Compatibility,
38736
38736
  paramType: Diagnostics.FILE,
@@ -69829,7 +69829,7 @@ ${lanes.join("\n")}
69829
69829
  return getWidenedType(contextualType ? getNonNullableType(contextualType) : checkExpressionCached(containingLiteral));
69830
69830
  }
69831
69831
  const parent2 = walkUpParenthesizedExpressions(func.parent);
69832
- if (parent2.kind === 226 /* BinaryExpression */ && parent2.operatorToken.kind === 64 /* EqualsToken */) {
69832
+ if (isAssignmentExpression(parent2)) {
69833
69833
  const target = parent2.left;
69834
69834
  if (isAccessExpression(target)) {
69835
69835
  const { expression } = target;
@@ -76183,7 +76183,7 @@ ${lanes.join("\n")}
76183
76183
  return typeofType;
76184
76184
  }
76185
76185
  function checkVoidExpression(node) {
76186
- checkExpression(node.expression);
76186
+ checkNodeDeferred(node);
76187
76187
  return undefinedWideningType;
76188
76188
  }
76189
76189
  function checkAwaitGrammar(node) {
@@ -83379,6 +83379,9 @@ ${lanes.join("\n")}
83379
83379
  case 217 /* ParenthesizedExpression */:
83380
83380
  checkAssertionDeferred(node);
83381
83381
  break;
83382
+ case 222 /* VoidExpression */:
83383
+ checkExpression(node.expression);
83384
+ break;
83382
83385
  case 226 /* BinaryExpression */:
83383
83386
  if (isInstanceOfExpression(node)) {
83384
83387
  resolveUntypedCall(node);
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.3";
57
- var version = `${versionMajorMinor}.0-dev.20231016`;
57
+ var version = `${versionMajorMinor}.0-dev.20231018`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -10593,9 +10593,9 @@ function ownsJSDocTag(hostNode, tag) {
10593
10593
  }
10594
10594
  function getNextJSDocCommentLocation(node) {
10595
10595
  const parent = node.parent;
10596
- if (parent.kind === 303 /* PropertyAssignment */ || parent.kind === 277 /* ExportAssignment */ || parent.kind === 172 /* PropertyDeclaration */ || parent.kind === 244 /* ExpressionStatement */ && node.kind === 211 /* PropertyAccessExpression */ || parent.kind === 253 /* ReturnStatement */ || getNestedModuleDeclaration(parent) || isBinaryExpression(node) && node.operatorToken.kind === 64 /* EqualsToken */) {
10596
+ if (parent.kind === 303 /* PropertyAssignment */ || parent.kind === 277 /* ExportAssignment */ || parent.kind === 172 /* PropertyDeclaration */ || parent.kind === 244 /* ExpressionStatement */ && node.kind === 211 /* PropertyAccessExpression */ || parent.kind === 253 /* ReturnStatement */ || getNestedModuleDeclaration(parent) || isAssignmentExpression(node)) {
10597
10597
  return parent;
10598
- } else if (parent.parent && (getSingleVariableOfVariableStatement(parent.parent) === node || isBinaryExpression(parent) && parent.operatorToken.kind === 64 /* EqualsToken */)) {
10598
+ } else if (parent.parent && (getSingleVariableOfVariableStatement(parent.parent) === node || isAssignmentExpression(parent))) {
10599
10599
  return parent.parent;
10600
10600
  } else if (parent.parent && parent.parent.parent && (getSingleVariableOfVariableStatement(parent.parent.parent) || getSingleInitializerOfVariableStatementOrPropertyDeclaration(parent.parent.parent) === node || getSourceOfDefaultedAssignment(parent.parent.parent))) {
10601
10601
  return parent.parent.parent;
@@ -26652,7 +26652,7 @@ var commandOptionsWithoutBuild = [
26652
26652
  affectsBuildInfo: true,
26653
26653
  affectsDeclarationPath: true,
26654
26654
  isFilePath: false,
26655
- // This is intentionally broken to support compatability with existing tsconfig files
26655
+ // This is intentionally broken to support compatibility with existing tsconfig files
26656
26656
  // for correct behaviour, please use outFile
26657
26657
  category: Diagnostics.Backwards_Compatibility,
26658
26658
  paramType: Diagnostics.FILE,
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.3.0-dev.20231016",
5
+ "version": "5.3.0-dev.20231018",
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": "e38944d8b8b5f6039e18b36574720ce337a5be1b"
117
+ "gitHead": "413179867f6262dfca87f285e8bf6991ef393289"
118
118
  }