typescript 5.3.0-dev.20230922 → 5.3.0-dev.20230924

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.
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.3";
57
- var version = `${versionMajorMinor}.0-dev.20230922`;
57
+ var version = `${versionMajorMinor}.0-dev.20230924`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -6019,6 +6019,7 @@ var Diagnostics = {
6019
6019
  await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(2852, 1 /* Error */, "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852", "'await using' statements are only allowed within async functions and at the top levels of modules."),
6020
6020
  await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(2853, 1 /* Error */, "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853", "'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),
6021
6021
  Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher: diag(2854, 1 /* Error */, "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854", "Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),
6022
+ Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super: diag(2855, 1 /* Error */, "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855", "Class field '{0}' defined by the parent class is not accessible in the child class via super."),
6022
6023
  Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
6023
6024
  Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
6024
6025
  Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
@@ -30944,7 +30945,6 @@ var BuilderState;
30944
30945
  return toPath(program.getProjectReferenceRedirect(fileName) || fileName, sourceFileDirectory, getCanonicalFileName);
30945
30946
  }
30946
30947
  function getReferencedFiles(program, sourceFile, getCanonicalFileName) {
30947
- var _a;
30948
30948
  let referencedFiles;
30949
30949
  if (sourceFile.imports && sourceFile.imports.length > 0) {
30950
30950
  const checker = program.getTypeChecker();
@@ -30960,17 +30960,14 @@ var BuilderState;
30960
30960
  addReferencedFile(referencedPath);
30961
30961
  }
30962
30962
  }
30963
- const resolvedTypeReferenceDirectiveNames = (_a = program.resolvedTypeReferenceDirectiveNames) == null ? void 0 : _a.get(sourceFile.path);
30964
- if (resolvedTypeReferenceDirectiveNames) {
30965
- resolvedTypeReferenceDirectiveNames.forEach(({ resolvedTypeReferenceDirective }) => {
30966
- if (!resolvedTypeReferenceDirective) {
30967
- return;
30968
- }
30969
- const fileName = resolvedTypeReferenceDirective.resolvedFileName;
30970
- const typeFilePath = getReferencedFileFromFileName(program, fileName, sourceFileDirectory, getCanonicalFileName);
30971
- addReferencedFile(typeFilePath);
30972
- });
30973
- }
30963
+ program.forEachResolvedTypeReferenceDirective(({ resolvedTypeReferenceDirective }) => {
30964
+ if (!resolvedTypeReferenceDirective) {
30965
+ return;
30966
+ }
30967
+ const fileName = resolvedTypeReferenceDirective.resolvedFileName;
30968
+ const typeFilePath = getReferencedFileFromFileName(program, fileName, sourceFileDirectory, getCanonicalFileName);
30969
+ addReferencedFile(typeFilePath);
30970
+ }, sourceFile);
30974
30971
  if (sourceFile.moduleAugmentations.length) {
30975
30972
  const checker = program.getTypeChecker();
30976
30973
  for (const moduleName of sourceFile.moduleAugmentations) {
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": "5.3.0-dev.20230922",
5
+ "version": "5.3.0-dev.20230924",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -113,5 +113,5 @@
113
113
  "node": "20.1.0",
114
114
  "npm": "8.19.4"
115
115
  },
116
- "gitHead": "b47022b997301b8788ed44012316ae582697f891"
116
+ "gitHead": "97147915ab667a52e31ac743843786cbc9049559"
117
117
  }