typescript 6.0.0-dev.20250909 → 6.0.0-dev.20250911
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 +16 -4
- package/lib/lib.esnext.float16.d.ts +2 -0
- package/lib/typescript.js +16 -4
- package/package.json +2 -2
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.
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20250911`;
|
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
|
}
|
@@ -37042,7 +37054,7 @@ var commandOptionsWithoutBuild = [
|
|
37042
37054
|
affectsProgramStructure: true,
|
37043
37055
|
category: Diagnostics.Language_and_Environment,
|
37044
37056
|
description: Diagnostics.Enable_lib_replacement,
|
37045
|
-
defaultValueDescription:
|
37057
|
+
defaultValueDescription: false
|
37046
37058
|
},
|
37047
37059
|
// Strict Type Checks
|
37048
37060
|
{
|
@@ -123998,7 +124010,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
123998
124010
|
var _a2, _b2, _c2, _d2, _e2;
|
123999
124011
|
const existing = resolvedLibProcessing == null ? void 0 : resolvedLibProcessing.get(libFileName);
|
124000
124012
|
if (existing) return existing;
|
124001
|
-
if (options.libReplacement
|
124013
|
+
if (!options.libReplacement) {
|
124002
124014
|
const result2 = {
|
124003
124015
|
resolution: {
|
124004
124016
|
resolvedModule: void 0
|
@@ -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.
|
2289
|
+
var version = `${versionMajorMinor}.0-dev.20250911`;
|
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
|
}
|
@@ -41301,7 +41313,7 @@ var commandOptionsWithoutBuild = [
|
|
41301
41313
|
affectsProgramStructure: true,
|
41302
41314
|
category: Diagnostics.Language_and_Environment,
|
41303
41315
|
description: Diagnostics.Enable_lib_replacement,
|
41304
|
-
defaultValueDescription:
|
41316
|
+
defaultValueDescription: false
|
41305
41317
|
},
|
41306
41318
|
// Strict Type Checks
|
41307
41319
|
{
|
@@ -128846,7 +128858,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
128846
128858
|
var _a2, _b2, _c2, _d2, _e2;
|
128847
128859
|
const existing = resolvedLibProcessing == null ? void 0 : resolvedLibProcessing.get(libFileName);
|
128848
128860
|
if (existing) return existing;
|
128849
|
-
if (options.libReplacement
|
128861
|
+
if (!options.libReplacement) {
|
128850
128862
|
const result2 = {
|
128851
128863
|
resolution: {
|
128852
128864
|
resolvedModule: void 0
|
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.
|
5
|
+
"version": "6.0.0-dev.20250911",
|
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": "
|
118
|
+
"gitHead": "cdfc519b999d250252b227993980b2e45b98b46e"
|
119
119
|
}
|