typescript 5.3.0-dev.20230920 → 5.3.0-dev.20230921

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.20230920`;
57
+ var version = `${versionMajorMinor}.0-dev.20230921`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -15692,7 +15692,6 @@ function createNodeFactory(flags, baseFactory2) {
15692
15692
  node.imports = void 0;
15693
15693
  node.moduleAugmentations = void 0;
15694
15694
  node.ambientModuleNames = void 0;
15695
- node.resolvedModules = void 0;
15696
15695
  node.classifiableNames = void 0;
15697
15696
  node.impliedNodeFormat = void 0;
15698
15697
  return node;
@@ -25913,6 +25912,7 @@ var moduleOptionDeclaration = {
25913
25912
  node16: 100 /* Node16 */,
25914
25913
  nodenext: 199 /* NodeNext */
25915
25914
  })),
25915
+ affectsSourceFile: true,
25916
25916
  affectsModuleResolution: true,
25917
25917
  affectsEmit: true,
25918
25918
  affectsBuildInfo: true,
@@ -26349,6 +26349,7 @@ var commandOptionsWithoutBuild = [
26349
26349
  bundler: 100 /* Bundler */
26350
26350
  })),
26351
26351
  deprecatedKeys: /* @__PURE__ */ new Set(["node"]),
26352
+ affectsSourceFile: true,
26352
26353
  affectsModuleResolution: true,
26353
26354
  paramType: Diagnostics.STRATEGY,
26354
26355
  category: Diagnostics.Modules,
@@ -26891,6 +26892,7 @@ var commandOptionsWithoutBuild = [
26891
26892
  legacy: 1 /* Legacy */,
26892
26893
  force: 3 /* Force */
26893
26894
  })),
26895
+ affectsSourceFile: true,
26894
26896
  affectsModuleResolution: true,
26895
26897
  description: Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files,
26896
26898
  category: Diagnostics.Language_and_Environment,
@@ -26910,7 +26912,7 @@ var semanticDiagnosticsOptionDeclarations = optionDeclarations.filter((option) =
26910
26912
  var affectsEmitOptionDeclarations = optionDeclarations.filter((option) => !!option.affectsEmit);
26911
26913
  var affectsDeclarationPathOptionDeclarations = optionDeclarations.filter((option) => !!option.affectsDeclarationPath);
26912
26914
  var moduleResolutionOptionDeclarations = optionDeclarations.filter((option) => !!option.affectsModuleResolution);
26913
- var sourceFileAffectingCompilerOptions = optionDeclarations.filter((option) => !!option.affectsSourceFile || !!option.affectsModuleResolution || !!option.affectsBindDiagnostics);
26915
+ var sourceFileAffectingCompilerOptions = optionDeclarations.filter((option) => !!option.affectsSourceFile || !!option.affectsBindDiagnostics);
26914
26916
  var optionsAffectingProgramStructure = optionDeclarations.filter((option) => !!option.affectsProgramStructure);
26915
26917
  var transpileOptionValueCompilerOptions = optionDeclarations.filter((option) => hasProperty(option, "transpileOptionValue"));
26916
26918
  var optionsForBuild = [
@@ -30932,6 +30934,7 @@ var BuilderState;
30932
30934
  return toPath(program.getProjectReferenceRedirect(fileName) || fileName, sourceFileDirectory, getCanonicalFileName);
30933
30935
  }
30934
30936
  function getReferencedFiles(program, sourceFile, getCanonicalFileName) {
30937
+ var _a;
30935
30938
  let referencedFiles;
30936
30939
  if (sourceFile.imports && sourceFile.imports.length > 0) {
30937
30940
  const checker = program.getTypeChecker();
@@ -30947,8 +30950,9 @@ var BuilderState;
30947
30950
  addReferencedFile(referencedPath);
30948
30951
  }
30949
30952
  }
30950
- if (sourceFile.resolvedTypeReferenceDirectiveNames) {
30951
- sourceFile.resolvedTypeReferenceDirectiveNames.forEach(({ resolvedTypeReferenceDirective }) => {
30953
+ const resolvedTypeReferenceDirectiveNames = (_a = program.resolvedTypeReferenceDirectiveNames) == null ? void 0 : _a.get(sourceFile.path);
30954
+ if (resolvedTypeReferenceDirectiveNames) {
30955
+ resolvedTypeReferenceDirectiveNames.forEach(({ resolvedTypeReferenceDirective }) => {
30952
30956
  if (!resolvedTypeReferenceDirective) {
30953
30957
  return;
30954
30958
  }
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.20230920",
5
+ "version": "5.3.0-dev.20230921",
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": "2738fbf1e05b9429d03b5956ba0413d92f5b993c"
116
+ "gitHead": "f3dad2a07d007c40d260f13d6b087a2d5685d12d"
117
117
  }