@typescript-deploys/pr-build 5.6.0-pr-55887-60 → 5.6.0-pr-55887-67

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.6";
21
- var version = `${versionMajorMinor}.0-insiders.20240806`;
21
+ var version = `${versionMajorMinor}.0-insiders.20240807`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -15313,7 +15313,7 @@ function skipTypeParentheses(node) {
15313
15313
  return node;
15314
15314
  }
15315
15315
  function skipParentheses(node, excludeJSDocTypeAssertions) {
15316
- const flags = excludeJSDocTypeAssertions ? 1 /* Parentheses */ | 16 /* ExcludeJSDocTypeAssertion */ : 1 /* Parentheses */;
15316
+ const flags = excludeJSDocTypeAssertions ? 1 /* Parentheses */ | -2147483648 /* ExcludeJSDocTypeAssertion */ : 1 /* Parentheses */;
15317
15317
  return skipOuterExpressions(node, flags);
15318
15318
  }
15319
15319
  function isDeleteTarget(node) {
@@ -23900,6 +23900,8 @@ function createNodeFactory(flags, baseFactory2) {
23900
23900
  return updateSatisfiesExpression(outerExpression, expression, outerExpression.type);
23901
23901
  case 235 /* NonNullExpression */:
23902
23902
  return updateNonNullExpression(outerExpression, expression);
23903
+ case 233 /* ExpressionWithTypeArguments */:
23904
+ return updateExpressionWithTypeArguments(outerExpression, expression, outerExpression.typeArguments);
23903
23905
  case 354 /* PartiallyEmittedExpression */:
23904
23906
  return updatePartiallyEmittedExpression(outerExpression, expression);
23905
23907
  }
@@ -23907,7 +23909,7 @@ function createNodeFactory(flags, baseFactory2) {
23907
23909
  function isIgnorableParen(node) {
23908
23910
  return isParenthesizedExpression(node) && nodeIsSynthesized(node) && nodeIsSynthesized(getSourceMapRange(node)) && nodeIsSynthesized(getCommentRange(node)) && !some(getSyntheticLeadingComments(node)) && !some(getSyntheticTrailingComments(node));
23909
23911
  }
23910
- function restoreOuterExpressions(outerExpression, innerExpression, kinds = 15 /* All */) {
23912
+ function restoreOuterExpressions(outerExpression, innerExpression, kinds = 31 /* All */) {
23911
23913
  if (outerExpression && isOuterExpression(outerExpression, kinds) && !isIgnorableParen(outerExpression)) {
23912
23914
  return updateOuterExpression(
23913
23915
  outerExpression,
@@ -23953,7 +23955,7 @@ function createNodeFactory(flags, baseFactory2) {
23953
23955
  }
23954
23956
  }
23955
23957
  function createCallBinding(expression, recordTempVariable, languageVersion, cacheIdentifiers = false) {
23956
- const callee = skipOuterExpressions(expression, 15 /* All */);
23958
+ const callee = skipOuterExpressions(expression, 31 /* All */);
23957
23959
  let thisArg;
23958
23960
  let target;
23959
23961
  if (isSuperProperty(callee)) {
@@ -26784,18 +26786,19 @@ function getJSDocTypeAssertionType(node) {
26784
26786
  Debug.assertIsDefined(type);
26785
26787
  return type;
26786
26788
  }
26787
- function isOuterExpression(node, kinds = 15 /* All */) {
26789
+ function isOuterExpression(node, kinds = 31 /* All */) {
26788
26790
  switch (node.kind) {
26789
26791
  case 217 /* ParenthesizedExpression */:
26790
- if (kinds & 16 /* ExcludeJSDocTypeAssertion */ && isJSDocTypeAssertion(node)) {
26792
+ if (kinds & -2147483648 /* ExcludeJSDocTypeAssertion */ && isJSDocTypeAssertion(node)) {
26791
26793
  return false;
26792
26794
  }
26793
26795
  return (kinds & 1 /* Parentheses */) !== 0;
26794
26796
  case 216 /* TypeAssertionExpression */:
26795
26797
  case 234 /* AsExpression */:
26796
- case 233 /* ExpressionWithTypeArguments */:
26797
26798
  case 238 /* SatisfiesExpression */:
26798
26799
  return (kinds & 2 /* TypeAssertions */) !== 0;
26800
+ case 233 /* ExpressionWithTypeArguments */:
26801
+ return (kinds & 16 /* ExpressionsWithTypeArguments */) !== 0;
26799
26802
  case 235 /* NonNullExpression */:
26800
26803
  return (kinds & 4 /* NonNullAssertions */) !== 0;
26801
26804
  case 354 /* PartiallyEmittedExpression */:
@@ -26803,13 +26806,13 @@ function isOuterExpression(node, kinds = 15 /* All */) {
26803
26806
  }
26804
26807
  return false;
26805
26808
  }
26806
- function skipOuterExpressions(node, kinds = 15 /* All */) {
26809
+ function skipOuterExpressions(node, kinds = 31 /* All */) {
26807
26810
  while (isOuterExpression(node, kinds)) {
26808
26811
  node = node.expression;
26809
26812
  }
26810
26813
  return node;
26811
26814
  }
26812
- function walkUpOuterExpressions(node, kinds = 15 /* All */) {
26815
+ function walkUpOuterExpressions(node, kinds = 31 /* All */) {
26813
26816
  let parent = node.parent;
26814
26817
  while (isOuterExpression(parent, kinds)) {
26815
26818
  parent = parent.parent;
@@ -77884,7 +77887,7 @@ function createTypeChecker(host) {
77884
77887
  if (isBinaryExpression(right) && (right.operatorToken.kind === 57 /* BarBarToken */ || right.operatorToken.kind === 56 /* AmpersandAmpersandToken */)) {
77885
77888
  grammarErrorOnNode(right, Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses, tokenToString(right.operatorToken.kind), tokenToString(operatorToken.kind));
77886
77889
  }
77887
- const leftTarget = skipOuterExpressions(left, 15 /* All */);
77890
+ const leftTarget = skipOuterExpressions(left, 31 /* All */);
77888
77891
  const nullishSemantics = getSyntacticNullishnessSemantics(leftTarget);
77889
77892
  if (nullishSemantics !== 3 /* Sometimes */) {
77890
77893
  if (node.parent.kind === 226 /* BinaryExpression */) {
@@ -92280,7 +92283,7 @@ function transformTypeScript(context) {
92280
92283
  return updated;
92281
92284
  }
92282
92285
  function visitParenthesizedExpression(node) {
92283
- const innerExpression = skipOuterExpressions(node.expression, ~6 /* Assertions */);
92286
+ const innerExpression = skipOuterExpressions(node.expression, ~(6 /* Assertions */ | 16 /* ExpressionsWithTypeArguments */));
92284
92287
  if (isAssertionExpression(innerExpression) || isSatisfiesExpression(innerExpression)) {
92285
92288
  const expression = visitNode(node.expression, visitor, isExpression);
92286
92289
  Debug.assert(expression);
@@ -7346,9 +7346,10 @@ declare namespace ts {
7346
7346
  TypeAssertions = 2,
7347
7347
  NonNullAssertions = 4,
7348
7348
  PartiallyEmittedExpressions = 8,
7349
+ ExpressionsWithTypeArguments = 16,
7349
7350
  Assertions = 6,
7350
- All = 15,
7351
- ExcludeJSDocTypeAssertion = 16,
7351
+ All = 31,
7352
+ ExcludeJSDocTypeAssertion = -2147483648,
7352
7353
  }
7353
7354
  type ImmediatelyInvokedFunctionExpression = CallExpression & {
7354
7355
  readonly expression: FunctionExpression;
package/lib/typescript.js CHANGED
@@ -2260,7 +2260,7 @@ module.exports = __toCommonJS(typescript_exports);
2260
2260
 
2261
2261
  // src/compiler/corePublic.ts
2262
2262
  var versionMajorMinor = "5.6";
2263
- var version = `${versionMajorMinor}.0-insiders.20240806`;
2263
+ var version = `${versionMajorMinor}.0-insiders.20240807`;
2264
2264
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2265
2265
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2266
2266
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -7113,9 +7113,10 @@ var OuterExpressionKinds = /* @__PURE__ */ ((OuterExpressionKinds2) => {
7113
7113
  OuterExpressionKinds2[OuterExpressionKinds2["TypeAssertions"] = 2] = "TypeAssertions";
7114
7114
  OuterExpressionKinds2[OuterExpressionKinds2["NonNullAssertions"] = 4] = "NonNullAssertions";
7115
7115
  OuterExpressionKinds2[OuterExpressionKinds2["PartiallyEmittedExpressions"] = 8] = "PartiallyEmittedExpressions";
7116
+ OuterExpressionKinds2[OuterExpressionKinds2["ExpressionsWithTypeArguments"] = 16] = "ExpressionsWithTypeArguments";
7116
7117
  OuterExpressionKinds2[OuterExpressionKinds2["Assertions"] = 6] = "Assertions";
7117
- OuterExpressionKinds2[OuterExpressionKinds2["All"] = 15] = "All";
7118
- OuterExpressionKinds2[OuterExpressionKinds2["ExcludeJSDocTypeAssertion"] = 16] = "ExcludeJSDocTypeAssertion";
7118
+ OuterExpressionKinds2[OuterExpressionKinds2["All"] = 31] = "All";
7119
+ OuterExpressionKinds2[OuterExpressionKinds2["ExcludeJSDocTypeAssertion"] = -2147483648] = "ExcludeJSDocTypeAssertion";
7119
7120
  return OuterExpressionKinds2;
7120
7121
  })(OuterExpressionKinds || {});
7121
7122
  var LexicalEnvironmentFlags = /* @__PURE__ */ ((LexicalEnvironmentFlags2) => {
@@ -19054,7 +19055,7 @@ function skipTypeParentheses(node) {
19054
19055
  return node;
19055
19056
  }
19056
19057
  function skipParentheses(node, excludeJSDocTypeAssertions) {
19057
- const flags = excludeJSDocTypeAssertions ? 1 /* Parentheses */ | 16 /* ExcludeJSDocTypeAssertion */ : 1 /* Parentheses */;
19058
+ const flags = excludeJSDocTypeAssertions ? 1 /* Parentheses */ | -2147483648 /* ExcludeJSDocTypeAssertion */ : 1 /* Parentheses */;
19058
19059
  return skipOuterExpressions(node, flags);
19059
19060
  }
19060
19061
  function isDeleteTarget(node) {
@@ -28014,6 +28015,8 @@ function createNodeFactory(flags, baseFactory2) {
28014
28015
  return updateSatisfiesExpression(outerExpression, expression, outerExpression.type);
28015
28016
  case 235 /* NonNullExpression */:
28016
28017
  return updateNonNullExpression(outerExpression, expression);
28018
+ case 233 /* ExpressionWithTypeArguments */:
28019
+ return updateExpressionWithTypeArguments(outerExpression, expression, outerExpression.typeArguments);
28017
28020
  case 354 /* PartiallyEmittedExpression */:
28018
28021
  return updatePartiallyEmittedExpression(outerExpression, expression);
28019
28022
  }
@@ -28021,7 +28024,7 @@ function createNodeFactory(flags, baseFactory2) {
28021
28024
  function isIgnorableParen(node) {
28022
28025
  return isParenthesizedExpression(node) && nodeIsSynthesized(node) && nodeIsSynthesized(getSourceMapRange(node)) && nodeIsSynthesized(getCommentRange(node)) && !some(getSyntheticLeadingComments(node)) && !some(getSyntheticTrailingComments(node));
28023
28026
  }
28024
- function restoreOuterExpressions(outerExpression, innerExpression, kinds = 15 /* All */) {
28027
+ function restoreOuterExpressions(outerExpression, innerExpression, kinds = 31 /* All */) {
28025
28028
  if (outerExpression && isOuterExpression(outerExpression, kinds) && !isIgnorableParen(outerExpression)) {
28026
28029
  return updateOuterExpression(
28027
28030
  outerExpression,
@@ -28067,7 +28070,7 @@ function createNodeFactory(flags, baseFactory2) {
28067
28070
  }
28068
28071
  }
28069
28072
  function createCallBinding(expression, recordTempVariable, languageVersion, cacheIdentifiers = false) {
28070
- const callee = skipOuterExpressions(expression, 15 /* All */);
28073
+ const callee = skipOuterExpressions(expression, 31 /* All */);
28071
28074
  let thisArg;
28072
28075
  let target;
28073
28076
  if (isSuperProperty(callee)) {
@@ -31035,18 +31038,19 @@ function getJSDocTypeAssertionType(node) {
31035
31038
  Debug.assertIsDefined(type);
31036
31039
  return type;
31037
31040
  }
31038
- function isOuterExpression(node, kinds = 15 /* All */) {
31041
+ function isOuterExpression(node, kinds = 31 /* All */) {
31039
31042
  switch (node.kind) {
31040
31043
  case 217 /* ParenthesizedExpression */:
31041
- if (kinds & 16 /* ExcludeJSDocTypeAssertion */ && isJSDocTypeAssertion(node)) {
31044
+ if (kinds & -2147483648 /* ExcludeJSDocTypeAssertion */ && isJSDocTypeAssertion(node)) {
31042
31045
  return false;
31043
31046
  }
31044
31047
  return (kinds & 1 /* Parentheses */) !== 0;
31045
31048
  case 216 /* TypeAssertionExpression */:
31046
31049
  case 234 /* AsExpression */:
31047
- case 233 /* ExpressionWithTypeArguments */:
31048
31050
  case 238 /* SatisfiesExpression */:
31049
31051
  return (kinds & 2 /* TypeAssertions */) !== 0;
31052
+ case 233 /* ExpressionWithTypeArguments */:
31053
+ return (kinds & 16 /* ExpressionsWithTypeArguments */) !== 0;
31050
31054
  case 235 /* NonNullExpression */:
31051
31055
  return (kinds & 4 /* NonNullAssertions */) !== 0;
31052
31056
  case 354 /* PartiallyEmittedExpression */:
@@ -31054,13 +31058,13 @@ function isOuterExpression(node, kinds = 15 /* All */) {
31054
31058
  }
31055
31059
  return false;
31056
31060
  }
31057
- function skipOuterExpressions(node, kinds = 15 /* All */) {
31061
+ function skipOuterExpressions(node, kinds = 31 /* All */) {
31058
31062
  while (isOuterExpression(node, kinds)) {
31059
31063
  node = node.expression;
31060
31064
  }
31061
31065
  return node;
31062
31066
  }
31063
- function walkUpOuterExpressions(node, kinds = 15 /* All */) {
31067
+ function walkUpOuterExpressions(node, kinds = 31 /* All */) {
31064
31068
  let parent2 = node.parent;
31065
31069
  while (isOuterExpression(parent2, kinds)) {
31066
31070
  parent2 = parent2.parent;
@@ -82503,7 +82507,7 @@ function createTypeChecker(host) {
82503
82507
  if (isBinaryExpression(right) && (right.operatorToken.kind === 57 /* BarBarToken */ || right.operatorToken.kind === 56 /* AmpersandAmpersandToken */)) {
82504
82508
  grammarErrorOnNode(right, Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses, tokenToString(right.operatorToken.kind), tokenToString(operatorToken.kind));
82505
82509
  }
82506
- const leftTarget = skipOuterExpressions(left, 15 /* All */);
82510
+ const leftTarget = skipOuterExpressions(left, 31 /* All */);
82507
82511
  const nullishSemantics = getSyntacticNullishnessSemantics(leftTarget);
82508
82512
  if (nullishSemantics !== 3 /* Sometimes */) {
82509
82513
  if (node.parent.kind === 226 /* BinaryExpression */) {
@@ -97081,7 +97085,7 @@ function transformTypeScript(context) {
97081
97085
  return updated;
97082
97086
  }
97083
97087
  function visitParenthesizedExpression(node) {
97084
- const innerExpression = skipOuterExpressions(node.expression, ~6 /* Assertions */);
97088
+ const innerExpression = skipOuterExpressions(node.expression, ~(6 /* Assertions */ | 16 /* ExpressionsWithTypeArguments */));
97085
97089
  if (isAssertionExpression(innerExpression) || isSatisfiesExpression(innerExpression)) {
97086
97090
  const expression = visitNode(node.expression, visitor, isExpression);
97087
97091
  Debug.assert(expression);
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.6.0-pr-55887-60",
5
+ "version": "5.6.0-pr-55887-67",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [