@typescript-deploys/pr-build 5.8.0-pr-60630-2 → 5.8.0-pr-55267-194

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.20241203`;
21
+ var version = `${versionMajorMinor}.0-insiders.20241204`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -11144,6 +11144,7 @@ function sortAndDeduplicateDiagnostics(diagnostics) {
11144
11144
  }
11145
11145
  var targetToLibMap = /* @__PURE__ */ new Map([
11146
11146
  [99 /* ESNext */, "lib.esnext.full.d.ts"],
11147
+ [11 /* ES2024 */, "lib.es2024.full.d.ts"],
11147
11148
  [10 /* ES2023 */, "lib.es2023.full.d.ts"],
11148
11149
  [9 /* ES2022 */, "lib.es2022.full.d.ts"],
11149
11150
  [8 /* ES2021 */, "lib.es2021.full.d.ts"],
@@ -11159,6 +11160,7 @@ function getDefaultLibFileName(options) {
11159
11160
  const target = getEmitScriptTarget(options);
11160
11161
  switch (target) {
11161
11162
  case 99 /* ESNext */:
11163
+ case 11 /* ES2024 */:
11162
11164
  case 10 /* ES2023 */:
11163
11165
  case 9 /* ES2022 */:
11164
11166
  case 8 /* ES2021 */:
@@ -42324,6 +42326,9 @@ function createBinder() {
42324
42326
  const saveInAssignmentPattern = inAssignmentPattern;
42325
42327
  inAssignmentPattern = false;
42326
42328
  if (checkUnreachable(node)) {
42329
+ if (canHaveFlowNode(node) && node.flowNode) {
42330
+ node.flowNode = void 0;
42331
+ }
42327
42332
  bindEachChild(node);
42328
42333
  bindJSDoc(node);
42329
42334
  inAssignmentPattern = saveInAssignmentPattern;
@@ -85144,7 +85149,7 @@ function createTypeChecker(host) {
85144
85149
  }
85145
85150
  }
85146
85151
  }
85147
- if (isOnlyImportableAsDefault(node.moduleSpecifier, resolvedModule) && !hasTypeJsonImportAttribute(node)) {
85152
+ if (moduleKind === 199 /* NodeNext */ && isOnlyImportableAsDefault(node.moduleSpecifier, resolvedModule) && !hasTypeJsonImportAttribute(node)) {
85148
85153
  error(node.moduleSpecifier, Diagnostics.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0, ModuleKind[moduleKind]);
85149
85154
  }
85150
85155
  } else if (noUncheckedSideEffectImports && !importClause) {
@@ -127183,8 +127188,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
127183
127188
  return removeAtRoot;
127184
127189
  }
127185
127190
  function stopWatchFailedLookupLocationOfResolution(resolution, filePath, getResolutionWithResolvedFileName) {
127186
- if (!resolution.files) return;
127187
- resolution.files.delete(filePath);
127191
+ Debug.checkDefined(resolution.files).delete(filePath);
127188
127192
  if (resolution.files.size) return;
127189
127193
  resolution.files = void 0;
127190
127194
  const resolved = getResolutionWithResolvedFileName(resolution);
package/lib/typescript.js CHANGED
@@ -2278,7 +2278,7 @@ module.exports = __toCommonJS(typescript_exports);
2278
2278
 
2279
2279
  // src/compiler/corePublic.ts
2280
2280
  var versionMajorMinor = "5.8";
2281
- var version = `${versionMajorMinor}.0-insiders.20241203`;
2281
+ var version = `${versionMajorMinor}.0-insiders.20241204`;
2282
2282
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2283
2283
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2284
2284
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -14549,6 +14549,7 @@ function sortAndDeduplicateDiagnostics(diagnostics) {
14549
14549
  }
14550
14550
  var targetToLibMap = /* @__PURE__ */ new Map([
14551
14551
  [99 /* ESNext */, "lib.esnext.full.d.ts"],
14552
+ [11 /* ES2024 */, "lib.es2024.full.d.ts"],
14552
14553
  [10 /* ES2023 */, "lib.es2023.full.d.ts"],
14553
14554
  [9 /* ES2022 */, "lib.es2022.full.d.ts"],
14554
14555
  [8 /* ES2021 */, "lib.es2021.full.d.ts"],
@@ -14564,6 +14565,7 @@ function getDefaultLibFileName(options) {
14564
14565
  const target = getEmitScriptTarget(options);
14565
14566
  switch (target) {
14566
14567
  case 99 /* ESNext */:
14568
+ case 11 /* ES2024 */:
14567
14569
  case 10 /* ES2023 */:
14568
14570
  case 9 /* ES2022 */:
14569
14571
  case 8 /* ES2021 */:
@@ -46828,6 +46830,9 @@ function createBinder() {
46828
46830
  const saveInAssignmentPattern = inAssignmentPattern;
46829
46831
  inAssignmentPattern = false;
46830
46832
  if (checkUnreachable(node)) {
46833
+ if (canHaveFlowNode(node) && node.flowNode) {
46834
+ node.flowNode = void 0;
46835
+ }
46831
46836
  bindEachChild(node);
46832
46837
  bindJSDoc(node);
46833
46838
  inAssignmentPattern = saveInAssignmentPattern;
@@ -89748,7 +89753,7 @@ function createTypeChecker(host) {
89748
89753
  }
89749
89754
  }
89750
89755
  }
89751
- if (isOnlyImportableAsDefault(node.moduleSpecifier, resolvedModule) && !hasTypeJsonImportAttribute(node)) {
89756
+ if (moduleKind === 199 /* NodeNext */ && isOnlyImportableAsDefault(node.moduleSpecifier, resolvedModule) && !hasTypeJsonImportAttribute(node)) {
89752
89757
  error2(node.moduleSpecifier, Diagnostics.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0, ModuleKind[moduleKind]);
89753
89758
  }
89754
89759
  } else if (noUncheckedSideEffectImports && !importClause) {
@@ -132087,8 +132092,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
132087
132092
  return removeAtRoot;
132088
132093
  }
132089
132094
  function stopWatchFailedLookupLocationOfResolution(resolution, filePath, getResolutionWithResolvedFileName) {
132090
- if (!resolution.files) return;
132091
- resolution.files.delete(filePath);
132095
+ Debug.checkDefined(resolution.files).delete(filePath);
132092
132096
  if (resolution.files.size) return;
132093
132097
  resolution.files = void 0;
132094
132098
  const resolved = getResolutionWithResolvedFileName(resolution);
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-60630-2",
5
+ "version": "5.8.0-pr-55267-194",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [