@angular/compiler-cli 17.2.2 → 17.2.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.
Files changed (36) hide show
  1. package/bundles/{chunk-6VI5PEAF.js → chunk-FS75LCNP.js} +3 -3
  2. package/bundles/{chunk-5BWCY2AS.js → chunk-LWM7EW6L.js} +18 -18
  3. package/bundles/{chunk-5BWCY2AS.js.map → chunk-LWM7EW6L.js.map} +1 -1
  4. package/bundles/{chunk-SN7STUDB.js → chunk-MV5DSSRA.js} +487 -483
  5. package/bundles/chunk-MV5DSSRA.js.map +6 -0
  6. package/bundles/{chunk-RMH722TZ.js → chunk-NQAH24UD.js} +2 -2
  7. package/bundles/{chunk-FUGV6LEW.js → chunk-SGHI77T2.js} +77 -53
  8. package/bundles/chunk-SGHI77T2.js.map +6 -0
  9. package/bundles/{chunk-HL2GCSY7.js → chunk-YBXVKJOM.js} +213 -153
  10. package/bundles/{chunk-HL2GCSY7.js.map → chunk-YBXVKJOM.js.map} +3 -3
  11. package/bundles/index.js +5 -5
  12. package/bundles/linker/babel/index.js +2 -2
  13. package/bundles/linker/index.js +2 -2
  14. package/bundles/private/migrations.js +2 -2
  15. package/bundles/private/tooling.js +3 -3
  16. package/bundles/src/bin/ng_xi18n.js +4 -4
  17. package/bundles/src/bin/ngc.js +4 -4
  18. package/bundles_metadata.json +1 -1
  19. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  20. package/package.json +2 -2
  21. package/src/ngtsc/annotations/component/src/handler.d.ts +3 -2
  22. package/src/ngtsc/annotations/directive/src/handler.d.ts +3 -2
  23. package/src/ngtsc/annotations/directive/src/initializer_functions.d.ts +2 -3
  24. package/src/ngtsc/annotations/directive/src/input_function.d.ts +2 -1
  25. package/src/ngtsc/annotations/directive/src/model_function.d.ts +2 -1
  26. package/src/ngtsc/annotations/directive/src/output_function.d.ts +2 -1
  27. package/src/ngtsc/annotations/directive/src/query_functions.d.ts +2 -1
  28. package/src/ngtsc/annotations/directive/src/shared.d.ts +2 -2
  29. package/src/ngtsc/imports/index.d.ts +1 -0
  30. package/src/ngtsc/imports/src/imported_symbols_tracker.d.ts +37 -0
  31. package/src/transformers/jit_transforms/initializer_api_transforms/transform.d.ts +2 -1
  32. package/src/transformers/jit_transforms/initializer_api_transforms/transform_api.d.ts +3 -2
  33. package/bundles/chunk-FUGV6LEW.js.map +0 -6
  34. package/bundles/chunk-SN7STUDB.js.map +0 -6
  35. /package/bundles/{chunk-6VI5PEAF.js.map → chunk-FS75LCNP.js.map} +0 -0
  36. /package/bundles/{chunk-RMH722TZ.js.map → chunk-NQAH24UD.js.map} +0 -0
@@ -39,7 +39,7 @@ import {
39
39
  declarationTransformFactory,
40
40
  isHostDirectiveMetaForGlobalMode,
41
41
  ivyTransformFactory
42
- } from "./chunk-SN7STUDB.js";
42
+ } from "./chunk-MV5DSSRA.js";
43
43
  import {
44
44
  AbsoluteModuleStrategy,
45
45
  AliasStrategy,
@@ -52,6 +52,7 @@ import {
52
52
  ExtendedTemplateDiagnosticName,
53
53
  ImportFlags,
54
54
  ImportManager,
55
+ ImportedSymbolsTracker,
55
56
  LocalCompilationExtraImportsTracker,
56
57
  LocalIdentifierStrategy,
57
58
  LogicalProjectStrategy,
@@ -88,7 +89,7 @@ import {
88
89
  toUnredirectedSourceFile,
89
90
  translateExpression,
90
91
  translateType
91
- } from "./chunk-HL2GCSY7.js";
92
+ } from "./chunk-YBXVKJOM.js";
92
93
  import {
93
94
  ActivePerfRecorder,
94
95
  DelegatingPerfRecorder,
@@ -180,7 +181,7 @@ var MemberTags;
180
181
 
181
182
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
182
183
  import { HtmlParser, MessageBundle } from "@angular/compiler";
183
- import ts38 from "typescript";
184
+ import ts39 from "typescript";
184
185
 
185
186
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
186
187
  import { Xliff, Xliff2, Xmb } from "@angular/compiler";
@@ -285,7 +286,7 @@ function verifySupportedTypeScriptVersion() {
285
286
  }
286
287
 
287
288
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
288
- import ts36 from "typescript";
289
+ import ts37 from "typescript";
289
290
 
290
291
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
291
292
  var CycleAnalyzer = class {
@@ -7278,6 +7279,7 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
7278
7279
 
7279
7280
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
7280
7281
  import { Interpolation, PropertyRead as PropertyRead6 } from "@angular/compiler";
7282
+ import ts33 from "typescript";
7281
7283
 
7282
7284
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
7283
7285
  import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
@@ -7404,6 +7406,15 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
7404
7406
  };
7405
7407
 
7406
7408
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
7409
+ var SIGNAL_FNS = /* @__PURE__ */ new Set([
7410
+ "WritableSignal",
7411
+ "Signal",
7412
+ "InputSignal",
7413
+ "InputSignalWithTransform",
7414
+ "ModelSignal"
7415
+ ]);
7416
+ var SIGNAL_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["set", "update", "asReadonly"]);
7417
+ var FUNCTION_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["name", "length", "prototype"]);
7407
7418
  var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
7408
7419
  constructor() {
7409
7420
  super(...arguments);
@@ -7411,18 +7422,23 @@ var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
7411
7422
  }
7412
7423
  visitNode(ctx, component, node) {
7413
7424
  if (node instanceof Interpolation) {
7414
- return node.expressions.filter((item) => item instanceof PropertyRead6).flatMap((item) => {
7415
- if (item instanceof PropertyRead6) {
7416
- return buildDiagnosticForSignal(ctx, item, component);
7417
- }
7418
- return [];
7419
- });
7425
+ return node.expressions.filter((item) => item instanceof PropertyRead6).flatMap((item) => buildDiagnosticForSignal(ctx, item, component));
7420
7426
  }
7421
7427
  return [];
7422
7428
  }
7423
7429
  };
7424
7430
  function isSignal(symbol) {
7425
- return ((symbol == null ? void 0 : symbol.escapedName) === "WritableSignal" || (symbol == null ? void 0 : symbol.escapedName) === "Signal" || (symbol == null ? void 0 : symbol.escapedName) === "InputSignal" || (symbol == null ? void 0 : symbol.escapedName) === "InputSignalWithTransform" || (symbol == null ? void 0 : symbol.escapedName) === "ModelSignal") && symbol.parent.escapedName.includes("@angular/core");
7431
+ const declarations = symbol == null ? void 0 : symbol.getDeclarations();
7432
+ return declarations !== void 0 && declarations.some((decl) => {
7433
+ const fileName = decl.getSourceFile().fileName;
7434
+ return (ts33.isInterfaceDeclaration(decl) || ts33.isTypeAliasDeclaration(decl)) && SIGNAL_FNS.has(decl.name.text) && (fileName.includes("@angular/core") || fileName.includes("angular2/rc/packages/core"));
7435
+ });
7436
+ }
7437
+ function isFunctionInstanceProperty(name) {
7438
+ return FUNCTION_INSTANCE_PROPERTIES.has(name);
7439
+ }
7440
+ function isSignalInstanceProperty(name) {
7441
+ return SIGNAL_INSTANCE_PROPERTIES.has(name);
7426
7442
  }
7427
7443
  function buildDiagnosticForSignal(ctx, node, component) {
7428
7444
  const symbol = ctx.templateTypeChecker.getSymbolOfNode(node, component);
@@ -7432,6 +7448,13 @@ function buildDiagnosticForSignal(ctx, node, component) {
7432
7448
  const diagnostic = ctx.makeTemplateDiagnostic(templateMapping.span, errorString);
7433
7449
  return [diagnostic];
7434
7450
  }
7451
+ const symbolOfReceiver = ctx.templateTypeChecker.getSymbolOfNode(node.receiver, component);
7452
+ if ((isFunctionInstanceProperty(node.name) || isSignalInstanceProperty(node.name)) && (symbolOfReceiver == null ? void 0 : symbolOfReceiver.kind) === SymbolKind.Expression && (isSignal(symbolOfReceiver.tsType.symbol) || isSignal(symbolOfReceiver.tsType.aliasSymbol))) {
7453
+ const templateMapping = ctx.templateTypeChecker.getTemplateMappingAtTcbLocation(symbolOfReceiver.tcbLocation);
7454
+ const errorString = `${node.receiver.name} is a function and should be invoked: ${node.receiver.name}()`;
7455
+ const diagnostic = ctx.makeTemplateDiagnostic(templateMapping.span, errorString);
7456
+ return [diagnostic];
7457
+ }
7435
7458
  return [];
7436
7459
  }
7437
7460
  var factory = {
@@ -7546,7 +7569,7 @@ var factory4 = {
7546
7569
 
7547
7570
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
7548
7571
  import { Binary } from "@angular/compiler";
7549
- import ts33 from "typescript";
7572
+ import ts34 from "typescript";
7550
7573
  var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
7551
7574
  constructor() {
7552
7575
  super(...arguments);
@@ -7560,7 +7583,7 @@ var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
7560
7583
  return [];
7561
7584
  }
7562
7585
  const typeLeft = symbolLeft.tsType;
7563
- if (typeLeft.flags & (ts33.TypeFlags.Any | ts33.TypeFlags.Unknown)) {
7586
+ if (typeLeft.flags & (ts34.TypeFlags.Any | ts34.TypeFlags.Unknown)) {
7564
7587
  return [];
7565
7588
  }
7566
7589
  if (typeLeft.getNonNullableType() !== typeLeft)
@@ -7591,7 +7614,7 @@ var factory5 = {
7591
7614
 
7592
7615
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
7593
7616
  import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
7594
- import ts34 from "typescript";
7617
+ import ts35 from "typescript";
7595
7618
  var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
7596
7619
  constructor() {
7597
7620
  super(...arguments);
@@ -7605,7 +7628,7 @@ var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
7605
7628
  return [];
7606
7629
  }
7607
7630
  const typeLeft = symbolLeft.tsType;
7608
- if (typeLeft.flags & (ts34.TypeFlags.Any | ts34.TypeFlags.Unknown)) {
7631
+ if (typeLeft.flags & (ts35.TypeFlags.Any | ts35.TypeFlags.Unknown)) {
7609
7632
  return [];
7610
7633
  }
7611
7634
  if (typeLeft.getNonNullableType() !== typeLeft)
@@ -7699,7 +7722,7 @@ var factory8 = {
7699
7722
  };
7700
7723
 
7701
7724
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
7702
- import ts35 from "typescript";
7725
+ import ts36 from "typescript";
7703
7726
 
7704
7727
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
7705
7728
  var DiagnosticCategoryLabel;
@@ -7748,9 +7771,9 @@ var ExtendedTemplateCheckerImpl = class {
7748
7771
  function diagnosticLabelToCategory(label) {
7749
7772
  switch (label) {
7750
7773
  case DiagnosticCategoryLabel.Warning:
7751
- return ts35.DiagnosticCategory.Warning;
7774
+ return ts36.DiagnosticCategory.Warning;
7752
7775
  case DiagnosticCategoryLabel.Error:
7753
- return ts35.DiagnosticCategory.Error;
7776
+ return ts36.DiagnosticCategory.Error;
7754
7777
  case DiagnosticCategoryLabel.Suppress:
7755
7778
  return null;
7756
7779
  default:
@@ -7871,7 +7894,7 @@ var NgCompiler = class {
7871
7894
  this.currentProgram = inputProgram;
7872
7895
  this.closureCompilerEnabled = !!this.options.annotateForClosureCompiler;
7873
7896
  this.entryPoint = adapter.entryPoint !== null ? getSourceFileOrNull(inputProgram, adapter.entryPoint) : null;
7874
- const moduleResolutionCache = ts36.createModuleResolutionCache(
7897
+ const moduleResolutionCache = ts37.createModuleResolutionCache(
7875
7898
  this.adapter.getCurrentDirectory(),
7876
7899
  this.adapter.getCanonicalFileName.bind(this.adapter)
7877
7900
  );
@@ -7915,7 +7938,7 @@ var NgCompiler = class {
7915
7938
  }
7916
7939
  for (const clazz of classesToUpdate) {
7917
7940
  this.compilation.traitCompiler.updateResources(clazz);
7918
- if (!ts36.isClassDeclaration(clazz)) {
7941
+ if (!ts37.isClassDeclaration(clazz)) {
7919
7942
  continue;
7920
7943
  }
7921
7944
  this.compilation.templateTypeChecker.invalidateClass(clazz);
@@ -8336,6 +8359,7 @@ var NgCompiler = class {
8336
8359
  const injectableRegistry = new InjectableClassRegistry(reflector, isCore);
8337
8360
  const hostDirectivesResolver = new HostDirectivesResolver(metaReader);
8338
8361
  const exportedProviderStatusResolver = new ExportedProviderStatusResolver(metaReader);
8362
+ const importTracker = new ImportedSymbolsTracker();
8339
8363
  const typeCheckScopeRegistry = new TypeCheckScopeRegistry(scopeReader, metaReader, hostDirectivesResolver);
8340
8364
  let referencesRegistry;
8341
8365
  let exportReferenceGraph = null;
@@ -8366,8 +8390,8 @@ var NgCompiler = class {
8366
8390
  throw new Error('JIT mode support ("supportJitMode" option) cannot be disabled when forbidOrphanComponents is set to true');
8367
8391
  }
8368
8392
  const handlers = [
8369
- new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, supportTestBed, compilationMode, deferredSymbolsTracker, !!this.options.forbidOrphanComponents, this.enableBlockSyntax, (_d = this.options.useTemplatePipeline) != null ? _d : SHOULD_USE_TEMPLATE_PIPELINE, localCompilationExtraImportsTracker),
8370
- new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, supportTestBed, compilationMode, (_e = this.options.useTemplatePipeline) != null ? _e : SHOULD_USE_TEMPLATE_PIPELINE, !!this.options.generateExtraImportsInLocalMode),
8393
+ new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, importTracker, supportTestBed, compilationMode, deferredSymbolsTracker, !!this.options.forbidOrphanComponents, this.enableBlockSyntax, (_d = this.options.useTemplatePipeline) != null ? _d : SHOULD_USE_TEMPLATE_PIPELINE, localCompilationExtraImportsTracker),
8394
+ new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, importTracker, supportTestBed, compilationMode, (_e = this.options.useTemplatePipeline) != null ? _e : SHOULD_USE_TEMPLATE_PIPELINE, !!this.options.generateExtraImportsInLocalMode),
8371
8395
  new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder, supportTestBed, compilationMode, !!this.options.generateExtraImportsInLocalMode),
8372
8396
  new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, compilationMode),
8373
8397
  new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, this.closureCompilerEnabled, (_f = this.options.onlyPublishPublicTypingsForNgModules) != null ? _f : false, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, supportJitMode, compilationMode, localCompilationExtraImportsTracker)
@@ -8403,18 +8427,18 @@ function isAngularCorePackage(program) {
8403
8427
  return false;
8404
8428
  }
8405
8429
  return r3Symbols.statements.some((stmt) => {
8406
- if (!ts36.isVariableStatement(stmt)) {
8430
+ if (!ts37.isVariableStatement(stmt)) {
8407
8431
  return false;
8408
8432
  }
8409
- const modifiers = ts36.getModifiers(stmt);
8410
- if (modifiers === void 0 || !modifiers.some((mod) => mod.kind === ts36.SyntaxKind.ExportKeyword)) {
8433
+ const modifiers = ts37.getModifiers(stmt);
8434
+ if (modifiers === void 0 || !modifiers.some((mod) => mod.kind === ts37.SyntaxKind.ExportKeyword)) {
8411
8435
  return false;
8412
8436
  }
8413
8437
  return stmt.declarationList.declarations.some((decl) => {
8414
- if (!ts36.isIdentifier(decl.name) || decl.name.text !== "ITS_JUST_ANGULAR") {
8438
+ if (!ts37.isIdentifier(decl.name) || decl.name.text !== "ITS_JUST_ANGULAR") {
8415
8439
  return false;
8416
8440
  }
8417
- if (decl.initializer === void 0 || decl.initializer.kind !== ts36.SyntaxKind.TrueKeyword) {
8441
+ if (decl.initializer === void 0 || decl.initializer.kind !== ts37.SyntaxKind.TrueKeyword) {
8418
8442
  return false;
8419
8443
  }
8420
8444
  return true;
@@ -8428,7 +8452,7 @@ function* verifyCompatibleTypeCheckOptions(options) {
8428
8452
  var _a, _b, _c;
8429
8453
  if (options.fullTemplateTypeCheck === false && options.strictTemplates === true) {
8430
8454
  yield makeConfigDiagnostic({
8431
- category: ts36.DiagnosticCategory.Error,
8455
+ category: ts37.DiagnosticCategory.Error,
8432
8456
  code: ErrorCode.CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK,
8433
8457
  messageText: `
8434
8458
  Angular compiler option "strictTemplates" is enabled, however "fullTemplateTypeCheck" is disabled.
@@ -8447,7 +8471,7 @@ https://angular.io/guide/template-typecheck
8447
8471
  }
8448
8472
  if (options.extendedDiagnostics && options.strictTemplates === false) {
8449
8473
  yield makeConfigDiagnostic({
8450
- category: ts36.DiagnosticCategory.Error,
8474
+ category: ts37.DiagnosticCategory.Error,
8451
8475
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES,
8452
8476
  messageText: `
8453
8477
  Angular compiler option "extendedDiagnostics" is configured, however "strictTemplates" is disabled.
@@ -8464,7 +8488,7 @@ One of the following actions is required:
8464
8488
  const defaultCategory = (_a = options.extendedDiagnostics) == null ? void 0 : _a.defaultCategory;
8465
8489
  if (defaultCategory && !allowedCategoryLabels.includes(defaultCategory)) {
8466
8490
  yield makeConfigDiagnostic({
8467
- category: ts36.DiagnosticCategory.Error,
8491
+ category: ts37.DiagnosticCategory.Error,
8468
8492
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL,
8469
8493
  messageText: `
8470
8494
  Angular compiler option "extendedDiagnostics.defaultCategory" has an unknown diagnostic category: "${defaultCategory}".
@@ -8477,7 +8501,7 @@ ${allowedCategoryLabels.join("\n")}
8477
8501
  for (const [checkName, category] of Object.entries((_c = (_b = options.extendedDiagnostics) == null ? void 0 : _b.checks) != null ? _c : {})) {
8478
8502
  if (!SUPPORTED_DIAGNOSTIC_NAMES.has(checkName)) {
8479
8503
  yield makeConfigDiagnostic({
8480
- category: ts36.DiagnosticCategory.Error,
8504
+ category: ts37.DiagnosticCategory.Error,
8481
8505
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK,
8482
8506
  messageText: `
8483
8507
  Angular compiler option "extendedDiagnostics.checks" has an unknown check: "${checkName}".
@@ -8489,7 +8513,7 @@ ${Array.from(SUPPORTED_DIAGNOSTIC_NAMES).join("\n")}
8489
8513
  }
8490
8514
  if (!allowedCategoryLabels.includes(category)) {
8491
8515
  yield makeConfigDiagnostic({
8492
- category: ts36.DiagnosticCategory.Error,
8516
+ category: ts37.DiagnosticCategory.Error,
8493
8517
  code: ErrorCode.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL,
8494
8518
  messageText: `
8495
8519
  Angular compiler option "extendedDiagnostics.checks['${checkName}']" has an unknown diagnostic category: "${category}".
@@ -8519,7 +8543,7 @@ var ReferenceGraphAdapter = class {
8519
8543
  for (const { node } of references) {
8520
8544
  let sourceFile = node.getSourceFile();
8521
8545
  if (sourceFile === void 0) {
8522
- sourceFile = ts36.getOriginalNode(node).getSourceFile();
8546
+ sourceFile = ts37.getOriginalNode(node).getSourceFile();
8523
8547
  }
8524
8548
  if (sourceFile === void 0 || !isDtsPath(sourceFile.fileName)) {
8525
8549
  this.graph.add(source, node);
@@ -8567,7 +8591,7 @@ var Version = class {
8567
8591
  };
8568
8592
 
8569
8593
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
8570
- import ts37 from "typescript";
8594
+ import ts38 from "typescript";
8571
8595
  var DelegatingCompilerHost2 = class {
8572
8596
  get jsDocParsingMode() {
8573
8597
  return this.delegate.jsDocParsingMode;
@@ -8652,7 +8676,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
8652
8676
  entryPoint = findFlatIndexEntryPoint(normalizedTsInputFiles);
8653
8677
  if (entryPoint === null) {
8654
8678
  diagnostics.push({
8655
- category: ts37.DiagnosticCategory.Error,
8679
+ category: ts38.DiagnosticCategory.Error,
8656
8680
  code: ngErrorCode(ErrorCode.CONFIG_FLAT_MODULE_NO_INDEX),
8657
8681
  file: void 0,
8658
8682
  start: void 0,
@@ -8695,10 +8719,10 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
8695
8719
  return this.fileNameToModuleName !== void 0 ? this : null;
8696
8720
  }
8697
8721
  createCachedResolveModuleNamesFunction() {
8698
- const moduleResolutionCache = ts37.createModuleResolutionCache(this.getCurrentDirectory(), this.getCanonicalFileName.bind(this));
8722
+ const moduleResolutionCache = ts38.createModuleResolutionCache(this.getCurrentDirectory(), this.getCanonicalFileName.bind(this));
8699
8723
  return (moduleNames, containingFile, reusedNames, redirectedReference, options) => {
8700
8724
  return moduleNames.map((moduleName) => {
8701
- const module = ts37.resolveModuleName(moduleName, containingFile, options, this, moduleResolutionCache, redirectedReference);
8725
+ const module = ts38.resolveModuleName(moduleName, containingFile, options, this, moduleResolutionCache, redirectedReference);
8702
8726
  return module.resolvedModule;
8703
8727
  });
8704
8728
  };
@@ -8722,7 +8746,7 @@ var NgtscProgram = class {
8722
8746
  if (reuseProgram !== void 0) {
8723
8747
  retagAllTsFiles(reuseProgram);
8724
8748
  }
8725
- this.tsProgram = perfRecorder.inPhase(PerfPhase.TypeScriptProgramCreate, () => ts38.createProgram(this.host.inputFiles, options, this.host, reuseProgram));
8749
+ this.tsProgram = perfRecorder.inPhase(PerfPhase.TypeScriptProgramCreate, () => ts39.createProgram(this.host.inputFiles, options, this.host, reuseProgram));
8726
8750
  perfRecorder.phase(PerfPhase.Unaccounted);
8727
8751
  perfRecorder.memory(PerfCheckpoint.TypeScriptProgramCreate);
8728
8752
  this.host.postProgramCreationCleanup();
@@ -8938,16 +8962,16 @@ function createProgram({ rootNames, options, host, oldProgram }) {
8938
8962
  }
8939
8963
 
8940
8964
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
8941
- import ts40 from "typescript";
8965
+ import ts41 from "typescript";
8942
8966
 
8943
8967
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
8944
- import ts39 from "typescript";
8968
+ import ts40 from "typescript";
8945
8969
  function createMessageDiagnostic(messageText) {
8946
8970
  return {
8947
8971
  file: void 0,
8948
8972
  start: void 0,
8949
8973
  length: void 0,
8950
- category: ts39.DiagnosticCategory.Message,
8974
+ category: ts40.DiagnosticCategory.Message,
8951
8975
  messageText,
8952
8976
  code: DEFAULT_ERROR_CODE,
8953
8977
  source: SOURCE
@@ -8956,13 +8980,13 @@ function createMessageDiagnostic(messageText) {
8956
8980
 
8957
8981
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
8958
8982
  var defaultFormatHost = {
8959
- getCurrentDirectory: () => ts40.sys.getCurrentDirectory(),
8983
+ getCurrentDirectory: () => ts41.sys.getCurrentDirectory(),
8960
8984
  getCanonicalFileName: (fileName) => fileName,
8961
- getNewLine: () => ts40.sys.newLine
8985
+ getNewLine: () => ts41.sys.newLine
8962
8986
  };
8963
8987
  function formatDiagnostics(diags, host = defaultFormatHost) {
8964
8988
  if (diags && diags.length) {
8965
- return diags.map((diagnostic) => replaceTsWithNgInErrors(ts40.formatDiagnosticsWithColorAndContext([diagnostic], host))).join("");
8989
+ return diags.map((diagnostic) => replaceTsWithNgInErrors(ts41.formatDiagnosticsWithColorAndContext([diagnostic], host))).join("");
8966
8990
  } else {
8967
8991
  return "";
8968
8992
  }
@@ -8979,7 +9003,7 @@ function readConfiguration(project, existingOptions, host = getFileSystem()) {
8979
9003
  var _a;
8980
9004
  try {
8981
9005
  const fs = getFileSystem();
8982
- const readConfigFile = (configFile) => ts40.readConfigFile(configFile, (file) => host.readFile(host.resolve(file)));
9006
+ const readConfigFile = (configFile) => ts41.readConfigFile(configFile, (file) => host.readFile(host.resolve(file)));
8983
9007
  const readAngularCompilerOptions = (configFile, parentOptions = {}) => {
8984
9008
  const { config: config2, error: error2 } = readConfigFile(configFile);
8985
9009
  if (error2) {
@@ -9014,7 +9038,7 @@ function readConfiguration(project, existingOptions, host = getFileSystem()) {
9014
9038
  ...existingOptions
9015
9039
  };
9016
9040
  const parseConfigHost = createParseConfigHost(host, fs);
9017
- const { options, errors, fileNames: rootNames, projectReferences } = ts40.parseJsonConfigFileContent(config, parseConfigHost, basePath, existingCompilerOptions, configFileName);
9041
+ const { options, errors, fileNames: rootNames, projectReferences } = ts41.parseJsonConfigFileContent(config, parseConfigHost, basePath, existingCompilerOptions, configFileName);
9018
9042
  let emitFlags = EmitFlags.Default;
9019
9043
  if (!(options["skipMetadataEmit"] || options["flatModuleOutFile"])) {
9020
9044
  emitFlags |= EmitFlags.Metadata;
@@ -9025,7 +9049,7 @@ function readConfiguration(project, existingOptions, host = getFileSystem()) {
9025
9049
  return { project: projectFile, rootNames, projectReferences, options, errors, emitFlags };
9026
9050
  } catch (e) {
9027
9051
  const errors = [{
9028
- category: ts40.DiagnosticCategory.Error,
9052
+ category: ts41.DiagnosticCategory.Error,
9029
9053
  messageText: (_a = e.stack) != null ? _a : e.message,
9030
9054
  file: void 0,
9031
9055
  start: void 0,
@@ -9039,7 +9063,7 @@ function readConfiguration(project, existingOptions, host = getFileSystem()) {
9039
9063
  function createParseConfigHost(host, fs = getFileSystem()) {
9040
9064
  return {
9041
9065
  fileExists: host.exists.bind(host),
9042
- readDirectory: ts40.sys.readDirectory,
9066
+ readDirectory: ts41.sys.readDirectory,
9043
9067
  readFile: host.readFile.bind(host),
9044
9068
  useCaseSensitiveFileNames: fs.isCaseSensitive()
9045
9069
  };
@@ -9059,7 +9083,7 @@ function getExtendedConfigPathWorker(configFile, extendsValue, host, fs) {
9059
9083
  }
9060
9084
  } else {
9061
9085
  const parseConfigHost = createParseConfigHost(host, fs);
9062
- const { resolvedModule } = ts40.nodeModuleNameResolver(extendsValue, configFile, { moduleResolution: ts40.ModuleResolutionKind.Node10, resolveJsonModule: true }, parseConfigHost);
9086
+ const { resolvedModule } = ts41.nodeModuleNameResolver(extendsValue, configFile, { moduleResolution: ts41.ModuleResolutionKind.Node10, resolveJsonModule: true }, parseConfigHost);
9063
9087
  if (resolvedModule) {
9064
9088
  return absoluteFrom(resolvedModule.resolvedFileName);
9065
9089
  }
@@ -9069,7 +9093,7 @@ function getExtendedConfigPathWorker(configFile, extendsValue, host, fs) {
9069
9093
  function exitCodeFromResult(diags) {
9070
9094
  if (!diags)
9071
9095
  return 0;
9072
- if (diags.every((diag) => diag.category !== ts40.DiagnosticCategory.Error)) {
9096
+ if (diags.every((diag) => diag.category !== ts41.DiagnosticCategory.Error)) {
9073
9097
  return 0;
9074
9098
  }
9075
9099
  return diags.some((d) => d.source === "angular" && d.code === UNKNOWN_ERROR_CODE) ? 2 : 1;
@@ -9102,7 +9126,7 @@ function performCompilation({ rootNames, options, host, oldProgram, emitCallback
9102
9126
  } catch (e) {
9103
9127
  program = void 0;
9104
9128
  allDiagnostics.push({
9105
- category: ts40.DiagnosticCategory.Error,
9129
+ category: ts41.DiagnosticCategory.Error,
9106
9130
  messageText: (_a = e.stack) != null ? _a : e.message,
9107
9131
  code: UNKNOWN_ERROR_CODE,
9108
9132
  file: void 0,
@@ -9129,7 +9153,7 @@ function defaultGatherDiagnostics(program) {
9129
9153
  return allDiagnostics;
9130
9154
  }
9131
9155
  function hasErrors(diags) {
9132
- return diags.some((d) => d.category === ts40.DiagnosticCategory.Error);
9156
+ return diags.some((d) => d.category === ts41.DiagnosticCategory.Error);
9133
9157
  }
9134
9158
 
9135
9159
  export {
@@ -9167,4 +9191,4 @@ export {
9167
9191
  * Use of this source code is governed by an MIT-style license that can be
9168
9192
  * found in the LICENSE file at https://angular.io/license
9169
9193
  */
9170
- //# sourceMappingURL=chunk-FUGV6LEW.js.map
9194
+ //# sourceMappingURL=chunk-SGHI77T2.js.map