typescript 6.0.0-dev.20250909 → 6.0.0-dev.20250910

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.20250909`;
21
+ var version = `${versionMajorMinor}.0-dev.20250910`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -20271,10 +20271,22 @@ function createParenthesizerRules(factory2) {
20271
20271
  }
20272
20272
  return parenthesizerRule;
20273
20273
  }
20274
+ function mixingBinaryOperatorsRequiresParentheses(a, b) {
20275
+ if (a === 61 /* QuestionQuestionToken */) {
20276
+ return b === 56 /* AmpersandAmpersandToken */ || b === 57 /* BarBarToken */;
20277
+ }
20278
+ if (b === 61 /* QuestionQuestionToken */) {
20279
+ return a === 56 /* AmpersandAmpersandToken */ || a === 57 /* BarBarToken */;
20280
+ }
20281
+ return false;
20282
+ }
20274
20283
  function binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) {
20284
+ const emittedOperand = skipPartiallyEmittedExpressions(operand);
20285
+ if (isBinaryExpression(emittedOperand) && mixingBinaryOperatorsRequiresParentheses(binaryOperator, emittedOperand.operatorToken.kind)) {
20286
+ return true;
20287
+ }
20275
20288
  const binaryOperatorPrecedence = getOperatorPrecedence(227 /* BinaryExpression */, binaryOperator);
20276
20289
  const binaryOperatorAssociativity = getOperatorAssociativity(227 /* BinaryExpression */, binaryOperator);
20277
- const emittedOperand = skipPartiallyEmittedExpressions(operand);
20278
20290
  if (!isLeftSideOfBinary && operand.kind === 220 /* ArrowFunction */ && binaryOperatorPrecedence > 3 /* Assignment */) {
20279
20291
  return true;
20280
20292
  }
@@ -374,6 +374,8 @@ interface Float16ArrayConstructor {
374
374
  new (length?: number): Float16Array<ArrayBuffer>;
375
375
  new (array: ArrayLike<number> | Iterable<number>): Float16Array<ArrayBuffer>;
376
376
  new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Float16Array<TArrayBuffer>;
377
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float16Array<ArrayBuffer>;
378
+ new (array: ArrayLike<number> | ArrayBuffer): Float16Array<ArrayBuffer>;
377
379
 
378
380
  /**
379
381
  * The size in bytes of each element in the array.
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.20250909`;
2289
+ var version = `${versionMajorMinor}.0-dev.20250910`;
2290
2290
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2291
2291
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2292
2292
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -24366,10 +24366,22 @@ function createParenthesizerRules(factory2) {
24366
24366
  }
24367
24367
  return parenthesizerRule;
24368
24368
  }
24369
+ function mixingBinaryOperatorsRequiresParentheses(a, b) {
24370
+ if (a === 61 /* QuestionQuestionToken */) {
24371
+ return b === 56 /* AmpersandAmpersandToken */ || b === 57 /* BarBarToken */;
24372
+ }
24373
+ if (b === 61 /* QuestionQuestionToken */) {
24374
+ return a === 56 /* AmpersandAmpersandToken */ || a === 57 /* BarBarToken */;
24375
+ }
24376
+ return false;
24377
+ }
24369
24378
  function binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) {
24379
+ const emittedOperand = skipPartiallyEmittedExpressions(operand);
24380
+ if (isBinaryExpression(emittedOperand) && mixingBinaryOperatorsRequiresParentheses(binaryOperator, emittedOperand.operatorToken.kind)) {
24381
+ return true;
24382
+ }
24370
24383
  const binaryOperatorPrecedence = getOperatorPrecedence(227 /* BinaryExpression */, binaryOperator);
24371
24384
  const binaryOperatorAssociativity = getOperatorAssociativity(227 /* BinaryExpression */, binaryOperator);
24372
- const emittedOperand = skipPartiallyEmittedExpressions(operand);
24373
24385
  if (!isLeftSideOfBinary && operand.kind === 220 /* ArrowFunction */ && binaryOperatorPrecedence > 3 /* Assignment */) {
24374
24386
  return true;
24375
24387
  }
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.20250909",
5
+ "version": "6.0.0-dev.20250910",
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": "3f5c77f1f9da46dbfad7614ca6497fddaf03ed3e"
118
+ "gitHead": "3320dfdfcf17cdcdbfccb8040ea73cf110d94ba3"
119
119
  }