@angular/compiler-cli 21.2.6 → 21.2.7

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.
@@ -8,7 +8,7 @@ import {
8
8
  TrackedIncrementalBuildStrategy,
9
9
  freshCompilationTicket,
10
10
  incrementalFromCompilerTicket
11
- } from "./chunk-RLAJEKGV.js";
11
+ } from "./chunk-6OP6WOUI.js";
12
12
  import {
13
13
  ActivePerfRecorder,
14
14
  OptimizeFor,
@@ -18,7 +18,7 @@ import {
18
18
  TsCreateProgramDriver,
19
19
  replaceTsWithNgInErrors,
20
20
  retagAllTsFiles
21
- } from "./chunk-YF2MWLZG.js";
21
+ } from "./chunk-RSMQFEWS.js";
22
22
  import {
23
23
  absoluteFrom,
24
24
  createFileSystemTsReadDirectoryFn,
@@ -642,4 +642,4 @@ export {
642
642
  * Use of this source code is governed by an MIT-style license that can be
643
643
  * found in the LICENSE file at https://angular.dev/license
644
644
  */
645
- //# sourceMappingURL=chunk-76LW45YI.js.map
645
+ //# sourceMappingURL=chunk-4P5I33BF.js.map
@@ -88,7 +88,7 @@ import {
88
88
  toUnredirectedSourceFile,
89
89
  tryParseInitializerApi,
90
90
  untagAllTsFiles
91
- } from "./chunk-YF2MWLZG.js";
91
+ } from "./chunk-RSMQFEWS.js";
92
92
  import {
93
93
  LogicalFileSystem,
94
94
  absoluteFromSourceFile,
@@ -5374,4 +5374,4 @@ export {
5374
5374
  * Use of this source code is governed by an MIT-style license that can be
5375
5375
  * found in the LICENSE file at https://angular.dev/license
5376
5376
  */
5377
- //# sourceMappingURL=chunk-RLAJEKGV.js.map
5377
+ //# sourceMappingURL=chunk-6OP6WOUI.js.map
@@ -455,7 +455,7 @@ import { compileDirectiveFromMetadata, makeBindingParser, ParseLocation, ParseSo
455
455
  // packages/compiler-cli/linker/src/file_linker/partial_linkers/util.js
456
456
  import { createMayBeForwardRefExpression, outputAst as o2 } from "@angular/compiler";
457
457
  import semver from "semver";
458
- var PLACEHOLDER_VERSION = "21.2.6";
458
+ var PLACEHOLDER_VERSION = "21.2.7";
459
459
  function wrapReference(wrapped) {
460
460
  return { value: wrapped, type: wrapped };
461
461
  }
@@ -229,7 +229,7 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
229
229
  import { VERSION } from "@angular/compiler";
230
230
  var DOC_PAGE_BASE_URL = (() => {
231
231
  const full = VERSION.full;
232
- const isPreRelease = full.includes("-next") || full.includes("-rc") || full === "21.2.6";
232
+ const isPreRelease = full.includes("-next") || full.includes("-rc") || full === "21.2.7";
233
233
  const prefix = isPreRelease ? "next" : `v${VERSION.major}`;
234
234
  return `https://${prefix}.angular.dev`;
235
235
  })();
@@ -10420,8 +10420,11 @@ var LocalModuleScopeRegistry = class {
10420
10420
  registerPipeMetadata(pipe) {
10421
10421
  }
10422
10422
  getScopeForComponent(clazz) {
10423
- const scope = !this.declarationToModule.has(clazz) ? null : this.getScopeOfModule(this.declarationToModule.get(clazz).ngModule);
10424
- return scope;
10423
+ if (!this.declarationToModule.has(clazz)) {
10424
+ return null;
10425
+ }
10426
+ const module = this.declarationToModule.get(clazz).ngModule;
10427
+ return this.getScopeOfModule(module);
10425
10428
  }
10426
10429
  /**
10427
10430
  * If `node` is declared in more than one NgModule (duplicate declaration), then get the
@@ -10445,7 +10448,11 @@ var LocalModuleScopeRegistry = class {
10445
10448
  * defined, or the string `'error'` if the scope contained errors.
10446
10449
  */
10447
10450
  getScopeOfModule(clazz) {
10448
- return this.moduleToRef.has(clazz) ? this.getScopeOfModuleReference(this.moduleToRef.get(clazz)) : null;
10451
+ if (!this.moduleToRef.has(clazz)) {
10452
+ return null;
10453
+ }
10454
+ const scope = this.getScopeOfModuleReference(this.moduleToRef.get(clazz));
10455
+ return scope === "cycle" ? null : scope;
10449
10456
  }
10450
10457
  /**
10451
10458
  * Retrieves any `ts.Diagnostic`s produced during the calculation of the `LocalModuleScope` for
@@ -10486,9 +10493,10 @@ var LocalModuleScopeRegistry = class {
10486
10493
  getScopeOfModuleReference(ref) {
10487
10494
  if (this.cache.has(ref.node)) {
10488
10495
  const cachedValue = this.cache.get(ref.node);
10489
- if (cachedValue !== IN_PROGRESS_RESOLUTION) {
10490
- return cachedValue;
10496
+ if (cachedValue === IN_PROGRESS_RESOLUTION) {
10497
+ return "cycle";
10491
10498
  }
10499
+ return cachedValue;
10492
10500
  }
10493
10501
  this.cache.set(ref.node, IN_PROGRESS_RESOLUTION);
10494
10502
  this.sealed = true;
@@ -10674,11 +10682,11 @@ var LocalModuleScopeRegistry = class {
10674
10682
  }
10675
10683
  return this.dependencyScopeReader.resolve(ref);
10676
10684
  } else {
10677
- if (this.cache.get(ref.node) === IN_PROGRESS_RESOLUTION) {
10685
+ const scope = this.getScopeOfModuleReference(ref);
10686
+ if (scope === "cycle") {
10678
10687
  diagnostics.push(makeDiagnostic(type === "import" ? ErrorCode.NGMODULE_INVALID_IMPORT : ErrorCode.NGMODULE_INVALID_EXPORT, identifierOfNode(ref.node) || ref.node, `NgModule "${type}" field contains a cycle`));
10679
- return "cycle";
10680
10688
  }
10681
- return this.getScopeOfModuleReference(ref);
10689
+ return scope;
10682
10690
  }
10683
10691
  }
10684
10692
  getReexports(ngModule, ref, declared, exported, diagnostics) {
@@ -23126,4 +23134,4 @@ export {
23126
23134
  * Use of this source code is governed by an MIT-style license that can be
23127
23135
  * found in the LICENSE file at https://angular.dev/license
23128
23136
  */
23129
- //# sourceMappingURL=chunk-YF2MWLZG.js.map
23137
+ //# sourceMappingURL=chunk-RSMQFEWS.js.map