@typescript-deploys/pr-build 5.8.0-pr-60921-3 → 5.8.0-pr-60454-3

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.20250117`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -42476,9 +42476,6 @@ function createBinder() {
42476
42476
  if (canHaveFlowNode(node) && node.flowNode) {
42477
42477
  node.flowNode = void 0;
42478
42478
  }
42479
- if (isJSDocImportTag(node)) {
42480
- return;
42481
- }
42482
42479
  bindEachChild(node);
42483
42480
  bindJSDoc(node);
42484
42481
  inAssignmentPattern = saveInAssignmentPattern;
@@ -73126,6 +73123,7 @@ function createTypeChecker(host) {
73126
73123
  return links.immediateTarget;
73127
73124
  }
73128
73125
  function checkObjectLiteral(node, checkMode = 0 /* Normal */) {
73126
+ var _a;
73129
73127
  const inDestructuringPattern = isAssignmentTarget(node);
73130
73128
  checkGrammarObjectLiteralExpression(node, inDestructuringPattern);
73131
73129
  const allPropertiesTable = strictNullChecks ? createSymbolTable() : void 0;
@@ -73199,6 +73197,14 @@ function createTypeChecker(host) {
73199
73197
  prop.links.target = member;
73200
73198
  member = prop;
73201
73199
  allPropertiesTable == null ? void 0 : allPropertiesTable.set(prop.escapedName, prop);
73200
+ if (contextualType) {
73201
+ forEach((_a = getPropertyOfType(contextualType, member.escapedName)) == null ? void 0 : _a.declarations, (declaration) => {
73202
+ const symbol = getSymbolOfDeclaration(declaration);
73203
+ if (isDeprecatedSymbol(symbol) && symbol.declarations && isTypeAssignableTo(type, getTypeOfSymbol(symbol))) {
73204
+ addDeprecatedSuggestion(memberDecl.name, symbol.declarations, member.escapedName);
73205
+ }
73206
+ });
73207
+ }
73202
73208
  if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && (memberDecl.kind === 303 /* PropertyAssignment */ || memberDecl.kind === 174 /* MethodDeclaration */) && isContextSensitive(memberDecl)) {
73203
73209
  const inferenceContext = getInferenceContext(node);
73204
73210
  Debug.assert(inferenceContext);
@@ -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
  * ```
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.20250117`;
2289
2289
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2290
2290
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2291
2291
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -46986,9 +46986,6 @@ function createBinder() {
46986
46986
  if (canHaveFlowNode(node) && node.flowNode) {
46987
46987
  node.flowNode = void 0;
46988
46988
  }
46989
- if (isJSDocImportTag(node)) {
46990
- return;
46991
- }
46992
46989
  bindEachChild(node);
46993
46990
  bindJSDoc(node);
46994
46991
  inAssignmentPattern = saveInAssignmentPattern;
@@ -77736,6 +77733,7 @@ function createTypeChecker(host) {
77736
77733
  return links.immediateTarget;
77737
77734
  }
77738
77735
  function checkObjectLiteral(node, checkMode = 0 /* Normal */) {
77736
+ var _a;
77739
77737
  const inDestructuringPattern = isAssignmentTarget(node);
77740
77738
  checkGrammarObjectLiteralExpression(node, inDestructuringPattern);
77741
77739
  const allPropertiesTable = strictNullChecks ? createSymbolTable() : void 0;
@@ -77809,6 +77807,14 @@ function createTypeChecker(host) {
77809
77807
  prop.links.target = member;
77810
77808
  member = prop;
77811
77809
  allPropertiesTable == null ? void 0 : allPropertiesTable.set(prop.escapedName, prop);
77810
+ if (contextualType) {
77811
+ forEach((_a = getPropertyOfType(contextualType, member.escapedName)) == null ? void 0 : _a.declarations, (declaration) => {
77812
+ const symbol = getSymbolOfDeclaration(declaration);
77813
+ if (isDeprecatedSymbol(symbol) && symbol.declarations && isTypeAssignableTo(type, getTypeOfSymbol(symbol))) {
77814
+ addDeprecatedSuggestion(memberDecl.name, symbol.declarations, member.escapedName);
77815
+ }
77816
+ });
77817
+ }
77812
77818
  if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && (memberDecl.kind === 303 /* PropertyAssignment */ || memberDecl.kind === 174 /* MethodDeclaration */) && isContextSensitive(memberDecl)) {
77813
77819
  const inferenceContext = getInferenceContext(node);
77814
77820
  Debug.assert(inferenceContext);
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-60454-3",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [