typescript 6.0.0-dev.20260301 → 6.0.0-dev.20260303

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.20260301`;
21
+ var version = `${versionMajorMinor}.0-dev.20260303`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -66934,9 +66934,12 @@ function createTypeChecker(host) {
66934
66934
  if (relation === identityRelation) {
66935
66935
  return signaturesIdenticalTo(source2, target2, kind);
66936
66936
  }
66937
- if (target2 === anyFunctionType || source2 === anyFunctionType) {
66937
+ if (source2 === anyFunctionType) {
66938
66938
  return -1 /* True */;
66939
66939
  }
66940
+ if (target2 === anyFunctionType) {
66941
+ return 0 /* False */;
66942
+ }
66940
66943
  const sourceIsJSConstructor = source2.symbol && isJSConstructor(source2.symbol.valueDeclaration);
66941
66944
  const targetIsJSConstructor = target2.symbol && isJSConstructor(target2.symbol.valueDeclaration);
66942
66945
  const sourceSignatures = getSignaturesOfType(
@@ -74465,7 +74468,7 @@ function createTypeChecker(host) {
74465
74468
  spread,
74466
74469
  createAnonymousType(attributesSymbol, childPropMap, emptyArray, emptyArray, emptyArray),
74467
74470
  attributesSymbol,
74468
- objectFlags,
74471
+ objectFlags | getPropagatingFlagsOfTypes(childrenTypes),
74469
74472
  /*readonly*/
74470
74473
  false
74471
74474
  );
@@ -77732,6 +77735,14 @@ function createTypeChecker(host) {
77732
77735
  if (importCallOptionsType !== emptyObjectType) {
77733
77736
  checkTypeAssignableTo(optionsType, getNullableType(importCallOptionsType, 4 /* Undefined */), node.arguments[1]);
77734
77737
  }
77738
+ if (compilerOptions.ignoreDeprecations !== "6.0" && isObjectLiteralExpression(node.arguments[1])) {
77739
+ for (const prop of node.arguments[1].properties) {
77740
+ if (isPropertyAssignment(prop) && isIdentifier(prop.name) && prop.name.escapedText === "assert") {
77741
+ grammarErrorOnNode(prop.name, Diagnostics.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);
77742
+ break;
77743
+ }
77744
+ }
77745
+ }
77735
77746
  }
77736
77747
  const moduleSymbol = resolveExternalModuleName(node, specifier);
77737
77748
  if (moduleSymbol) {
@@ -81974,6 +81985,9 @@ function createTypeChecker(host) {
81974
81985
  function checkImportType(node) {
81975
81986
  checkSourceElement(node.argument);
81976
81987
  if (node.attributes) {
81988
+ if (node.attributes.token !== 118 /* WithKeyword */ && compilerOptions.ignoreDeprecations !== "6.0") {
81989
+ grammarErrorOnFirstToken(node.attributes, Diagnostics.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);
81990
+ }
81977
81991
  getResolutionModeOverride(node.attributes, grammarErrorOnNode);
81978
81992
  }
81979
81993
  checkTypeReferenceOrImport(node);
package/lib/typescript.js CHANGED
@@ -2289,7 +2289,7 @@ module.exports = __toCommonJS(typescript_exports);
2289
2289
 
2290
2290
  // src/compiler/corePublic.ts
2291
2291
  var versionMajorMinor = "6.0";
2292
- var version = `${versionMajorMinor}.0-dev.20260301`;
2292
+ var version = `${versionMajorMinor}.0-dev.20260303`;
2293
2293
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2294
2294
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2295
2295
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -71569,9 +71569,12 @@ function createTypeChecker(host) {
71569
71569
  if (relation === identityRelation) {
71570
71570
  return signaturesIdenticalTo(source2, target2, kind);
71571
71571
  }
71572
- if (target2 === anyFunctionType || source2 === anyFunctionType) {
71572
+ if (source2 === anyFunctionType) {
71573
71573
  return -1 /* True */;
71574
71574
  }
71575
+ if (target2 === anyFunctionType) {
71576
+ return 0 /* False */;
71577
+ }
71575
71578
  const sourceIsJSConstructor = source2.symbol && isJSConstructor(source2.symbol.valueDeclaration);
71576
71579
  const targetIsJSConstructor = target2.symbol && isJSConstructor(target2.symbol.valueDeclaration);
71577
71580
  const sourceSignatures = getSignaturesOfType(
@@ -79100,7 +79103,7 @@ function createTypeChecker(host) {
79100
79103
  spread,
79101
79104
  createAnonymousType(attributesSymbol, childPropMap, emptyArray, emptyArray, emptyArray),
79102
79105
  attributesSymbol,
79103
- objectFlags,
79106
+ objectFlags | getPropagatingFlagsOfTypes(childrenTypes),
79104
79107
  /*readonly*/
79105
79108
  false
79106
79109
  );
@@ -82367,6 +82370,14 @@ function createTypeChecker(host) {
82367
82370
  if (importCallOptionsType !== emptyObjectType) {
82368
82371
  checkTypeAssignableTo(optionsType, getNullableType(importCallOptionsType, 4 /* Undefined */), node.arguments[1]);
82369
82372
  }
82373
+ if (compilerOptions.ignoreDeprecations !== "6.0" && isObjectLiteralExpression(node.arguments[1])) {
82374
+ for (const prop of node.arguments[1].properties) {
82375
+ if (isPropertyAssignment(prop) && isIdentifier(prop.name) && prop.name.escapedText === "assert") {
82376
+ grammarErrorOnNode(prop.name, Diagnostics.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);
82377
+ break;
82378
+ }
82379
+ }
82380
+ }
82370
82381
  }
82371
82382
  const moduleSymbol = resolveExternalModuleName(node, specifier);
82372
82383
  if (moduleSymbol) {
@@ -86609,6 +86620,9 @@ function createTypeChecker(host) {
86609
86620
  function checkImportType(node) {
86610
86621
  checkSourceElement(node.argument);
86611
86622
  if (node.attributes) {
86623
+ if (node.attributes.token !== 118 /* WithKeyword */ && compilerOptions.ignoreDeprecations !== "6.0") {
86624
+ grammarErrorOnFirstToken(node.attributes, Diagnostics.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);
86625
+ }
86612
86626
  getResolutionModeOverride(node.attributes, grammarErrorOnNode);
86613
86627
  }
86614
86628
  checkTypeReferenceOrImport(node);
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.20260301",
5
+ "version": "6.0.0-dev.20260303",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -42,7 +42,7 @@
42
42
  "@dprint/formatter": "^0.4.1",
43
43
  "@dprint/typescript": "0.93.4",
44
44
  "@esfx/canceltoken": "^1.0.0",
45
- "@eslint/js": "^9.39.1",
45
+ "@eslint/js": "^10.0.1",
46
46
  "@octokit/rest": "^22.0.1",
47
47
  "@types/chai": "^4.3.20",
48
48
  "@types/minimist": "^1.2.5",
@@ -51,36 +51,35 @@
51
51
  "@types/node": "latest",
52
52
  "@types/source-map-support": "^0.5.10",
53
53
  "@types/which": "^3.0.4",
54
- "@typescript-eslint/rule-tester": "^8.47.0",
55
- "@typescript-eslint/type-utils": "^8.47.0",
56
- "@typescript-eslint/utils": "^8.47.0",
57
- "azure-devops-node-api": "^15.1.1",
54
+ "@typescript-eslint/rule-tester": "^8.56.1",
55
+ "@typescript-eslint/type-utils": "^8.56.1",
56
+ "@typescript-eslint/utils": "^8.56.1",
57
+ "azure-devops-node-api": "^15.1.3",
58
58
  "c8": "^10.1.3",
59
59
  "chai": "^4.5.0",
60
60
  "chokidar": "^4.0.3",
61
- "diff": "^8.0.2",
61
+ "diff": "^8.0.3",
62
62
  "dprint": "^0.49.1",
63
- "esbuild": "^0.27.0",
64
- "eslint": "^9.39.1",
65
- "eslint-formatter-autolinkable-stylish": "^1.4.0",
66
- "eslint-plugin-regexp": "^2.10.0",
67
- "fast-xml-parser": "^5.3.2",
63
+ "esbuild": "^0.27.3",
64
+ "eslint": "^10.0.2",
65
+ "eslint-plugin-regexp": "^3.0.0",
66
+ "fast-xml-parser": "^5.4.1",
68
67
  "glob": "^10.5.0",
69
- "globals": "^16.5.0",
70
- "hereby": "^1.11.1",
68
+ "globals": "^17.4.0",
69
+ "hereby": "^1.12.0",
71
70
  "jsonc-parser": "^3.3.1",
72
- "knip": "^5.70.0",
71
+ "knip": "^5.85.0",
73
72
  "minimist": "^1.2.8",
74
73
  "mocha": "^10.8.2",
75
74
  "mocha-fivemat-progress-reporter": "^0.1.0",
76
75
  "monocart-coverage-reports": "^2.12.9",
77
76
  "ms": "^2.1.3",
78
77
  "picocolors": "^1.1.1",
79
- "playwright": "^1.56.1",
78
+ "playwright": "^1.58.2",
80
79
  "source-map-support": "^0.5.21",
81
80
  "tslib": "^2.8.1",
82
81
  "typescript": "^5.9.3",
83
- "typescript-eslint": "^8.47.0",
82
+ "typescript-eslint": "^8.56.1",
84
83
  "which": "^3.0.1"
85
84
  },
86
85
  "overrides": {
@@ -112,8 +111,8 @@
112
111
  },
113
112
  "packageManager": "npm@8.19.4",
114
113
  "volta": {
115
- "node": "20.1.0",
114
+ "node": "22.22.0",
116
115
  "npm": "8.19.4"
117
116
  },
118
- "gitHead": "0c2c7a358297d66df690230deaed8c98e7d77c04"
117
+ "gitHead": "c9e7428bb76f0543a3555d0af87777e7db3a41e6"
119
118
  }