@typescript-deploys/pr-build 5.8.0-pr-60921-3 → 5.8.0-pr-60898-2

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.8";
21
- var version = `${versionMajorMinor}.0-insiders.20250113`;
21
+ var version = `${versionMajorMinor}.0-insiders.20250118`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -18875,7 +18875,7 @@ function isValidBigIntString(s, roundTripOnly) {
18875
18875
  return success && result === 10 /* BigIntLiteral */ && scanner.getTokenEnd() === s.length + 1 && !(flags & 512 /* ContainsSeparator */) && (!roundTripOnly || s === pseudoBigIntToString({ negative, base10Value: parsePseudoBigInt(scanner.getTokenValue()) }));
18876
18876
  }
18877
18877
  function isValidTypeOnlyAliasUseSite(useSite) {
18878
- return !!(useSite.flags & 33554432 /* Ambient */) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));
18878
+ return !!(useSite.flags & 33554432 /* Ambient */) || isInJSDoc(useSite) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));
18879
18879
  }
18880
18880
  function isShorthandPropertyNameUseSite(useSite) {
18881
18881
  return isIdentifier(useSite) && isShorthandPropertyAssignment(useSite.parent) && useSite.parent.name === useSite;
@@ -35209,6 +35209,7 @@ var Parser;
35209
35209
  const node = factory2.createExpressionWithTypeArguments(expression, typeArguments);
35210
35210
  const res = finishNode(node, pos);
35211
35211
  if (usedBrace) {
35212
+ skipWhitespace();
35212
35213
  parseExpected(20 /* CloseBraceToken */);
35213
35214
  }
35214
35215
  return res;
@@ -42476,9 +42477,6 @@ function createBinder() {
42476
42477
  if (canHaveFlowNode(node) && node.flowNode) {
42477
42478
  node.flowNode = void 0;
42478
42479
  }
42479
- if (isJSDocImportTag(node)) {
42480
- return;
42481
- }
42482
42480
  bindEachChild(node);
42483
42481
  bindJSDoc(node);
42484
42482
  inAssignmentPattern = saveInAssignmentPattern;
@@ -46458,6 +46456,7 @@ function createTypeChecker(host) {
46458
46456
  getNumberLiteralType,
46459
46457
  getBigIntType: () => bigintType,
46460
46458
  getBigIntLiteralType,
46459
+ getUnknownType: () => unknownType,
46461
46460
  createPromiseType,
46462
46461
  createArrayType,
46463
46462
  getElementTypeOfArrayType,
@@ -49,7 +49,7 @@ interface Array<T> {
49
49
  * Returns a copy of an array with its elements sorted.
50
50
  * @param compareFn Function used to determine the order of the elements. It is expected to return
51
51
  * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
52
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
52
+ * value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.
53
53
  * ```ts
54
54
  * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]
55
55
  * ```
@@ -127,7 +127,7 @@ interface ReadonlyArray<T> {
127
127
  * Copies and sorts the array.
128
128
  * @param compareFn Function used to determine the order of the elements. It is expected to return
129
129
  * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
130
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
130
+ * value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.
131
131
  * ```ts
132
132
  * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]
133
133
  * ```
package/lib/lib.es5.d.ts CHANGED
@@ -1384,7 +1384,7 @@ interface Array<T> {
1384
1384
  * This method mutates the array and returns a reference to the same array.
1385
1385
  * @param compareFn Function used to determine the order of the elements. It is expected to return
1386
1386
  * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
1387
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
1387
+ * value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.
1388
1388
  * ```ts
1389
1389
  * [11,2,22,1].sort((a, b) => a - b)
1390
1390
  * ```
@@ -6288,6 +6288,7 @@ declare namespace ts {
6288
6288
  getBigIntType(): Type;
6289
6289
  getBigIntLiteralType(value: PseudoBigInt): BigIntLiteralType;
6290
6290
  getBooleanType(): Type;
6291
+ getUnknownType(): Type;
6291
6292
  getFalseType(): Type;
6292
6293
  getTrueType(): Type;
6293
6294
  getVoidType(): Type;
package/lib/typescript.js CHANGED
@@ -2285,7 +2285,7 @@ module.exports = __toCommonJS(typescript_exports);
2285
2285
 
2286
2286
  // src/compiler/corePublic.ts
2287
2287
  var versionMajorMinor = "5.8";
2288
- var version = `${versionMajorMinor}.0-insiders.20250113`;
2288
+ var version = `${versionMajorMinor}.0-insiders.20250118`;
2289
2289
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2290
2290
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2291
2291
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -22865,7 +22865,7 @@ function isValidBigIntString(s, roundTripOnly) {
22865
22865
  return success && result === 10 /* BigIntLiteral */ && scanner2.getTokenEnd() === s.length + 1 && !(flags & 512 /* ContainsSeparator */) && (!roundTripOnly || s === pseudoBigIntToString({ negative, base10Value: parsePseudoBigInt(scanner2.getTokenValue()) }));
22866
22866
  }
22867
22867
  function isValidTypeOnlyAliasUseSite(useSite) {
22868
- return !!(useSite.flags & 33554432 /* Ambient */) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));
22868
+ return !!(useSite.flags & 33554432 /* Ambient */) || isInJSDoc(useSite) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));
22869
22869
  }
22870
22870
  function isShorthandPropertyNameUseSite(useSite) {
22871
22871
  return isIdentifier(useSite) && isShorthandPropertyAssignment(useSite.parent) && useSite.parent.name === useSite;
@@ -39469,6 +39469,7 @@ var Parser;
39469
39469
  const node = factory2.createExpressionWithTypeArguments(expression, typeArguments);
39470
39470
  const res = finishNode(node, pos);
39471
39471
  if (usedBrace) {
39472
+ skipWhitespace();
39472
39473
  parseExpected(20 /* CloseBraceToken */);
39473
39474
  }
39474
39475
  return res;
@@ -46986,9 +46987,6 @@ function createBinder() {
46986
46987
  if (canHaveFlowNode(node) && node.flowNode) {
46987
46988
  node.flowNode = void 0;
46988
46989
  }
46989
- if (isJSDocImportTag(node)) {
46990
- return;
46991
- }
46992
46990
  bindEachChild(node);
46993
46991
  bindJSDoc(node);
46994
46992
  inAssignmentPattern = saveInAssignmentPattern;
@@ -51068,6 +51066,7 @@ function createTypeChecker(host) {
51068
51066
  getNumberLiteralType,
51069
51067
  getBigIntType: () => bigintType,
51070
51068
  getBigIntLiteralType,
51069
+ getUnknownType: () => unknownType,
51071
51070
  createPromiseType,
51072
51071
  createArrayType,
51073
51072
  getElementTypeOfArrayType,
@@ -173129,7 +173128,7 @@ var Core;
173129
173128
  } else {
173130
173129
  addIfImplementation(body);
173131
173130
  }
173132
- } else if (isAssertionExpression(typeHavingNode)) {
173131
+ } else if (isAssertionExpression(typeHavingNode) || isSatisfiesExpression(typeHavingNode)) {
173133
173132
  addIfImplementation(typeHavingNode.expression);
173134
173133
  }
173135
173134
  }
@@ -174361,22 +174360,24 @@ function provideInlayHints(context) {
174361
174360
  if (!signature) {
174362
174361
  return;
174363
174362
  }
174364
- for (let i = 0; i < node.parameters.length && i < signature.parameters.length; ++i) {
174365
- const param = node.parameters[i];
174366
- if (!isHintableDeclaration(param)) {
174367
- continue;
174368
- }
174369
- const effectiveTypeAnnotation = getEffectiveTypeAnnotationNode(param);
174370
- if (effectiveTypeAnnotation) {
174371
- continue;
174363
+ let pos = 0;
174364
+ for (const param of node.parameters) {
174365
+ if (isHintableDeclaration(param)) {
174366
+ addParameterTypeHint(param, parameterIsThisKeyword(param) ? signature.thisParameter : signature.parameters[pos]);
174372
174367
  }
174373
- const typeHints = getParameterDeclarationTypeHints(signature.parameters[i]);
174374
- if (!typeHints) {
174368
+ if (parameterIsThisKeyword(param)) {
174375
174369
  continue;
174376
174370
  }
174377
- addTypeHints(typeHints, param.questionToken ? param.questionToken.end : param.name.end);
174371
+ pos++;
174378
174372
  }
174379
174373
  }
174374
+ function addParameterTypeHint(node, symbol) {
174375
+ const effectiveTypeAnnotation = getEffectiveTypeAnnotationNode(node);
174376
+ if (effectiveTypeAnnotation || symbol === void 0) return;
174377
+ const typeHints = getParameterDeclarationTypeHints(symbol);
174378
+ if (typeHints === void 0) return;
174379
+ addTypeHints(typeHints, node.questionToken ? node.questionToken.end : node.name.end);
174380
+ }
174380
174381
  function getParameterDeclarationTypeHints(symbol) {
174381
174382
  const valueDeclaration = symbol.valueDeclaration;
174382
174383
  if (!valueDeclaration || !isParameter(valueDeclaration)) {
@@ -182183,6 +182184,12 @@ var SmartIndenter;
182183
182184
  return false;
182184
182185
  }
182185
182186
  break;
182187
+ case 258 /* TryStatement */:
182188
+ const tryStatement = parent2;
182189
+ if (tryStatement.finallyBlock && tryStatement.finallyBlock === child) {
182190
+ return false;
182191
+ }
182192
+ break;
182186
182193
  }
182187
182194
  return indentByDefault;
182188
182195
  }
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.8.0-pr-60921-3",
5
+ "version": "5.8.0-pr-60898-2",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [