@angular/compiler-cli 21.1.3 → 21.1.4

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.
@@ -12,7 +12,7 @@ import {
12
12
  formatDiagnostics,
13
13
  performCompilation,
14
14
  readConfiguration
15
- } from "./chunk-HGWUZTYN.js";
15
+ } from "./chunk-VVZRG35Z.js";
16
16
 
17
17
  // packages/compiler-cli/src/main.js
18
18
  import ts2 from "typescript";
@@ -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.1.3";
232
+ const isPreRelease = full.includes("-next") || full.includes("-rc") || full === "21.1.4";
233
233
  const prefix = isPreRelease ? "next" : `v${VERSION.major}`;
234
234
  return `https://${prefix}.angular.dev`;
235
235
  })();
@@ -2648,7 +2648,7 @@ function resolveProvidersRequiringFactory(rawProviders, reflector, evaluator) {
2648
2648
  });
2649
2649
  return providers;
2650
2650
  }
2651
- function wrapTypeReference(reflector, clazz) {
2651
+ function wrapTypeReference(clazz) {
2652
2652
  const value = new WrappedNodeExpr2(clazz.name);
2653
2653
  const type = value;
2654
2654
  return { value, type };
@@ -8252,7 +8252,7 @@ function extractDirectiveMetadata(clazz, decorator, reflector, importTracker, ev
8252
8252
  }
8253
8253
  const usesInheritance = reflector.hasBaseClass(clazz);
8254
8254
  const sourceFile = clazz.getSourceFile();
8255
- const type = wrapTypeReference(reflector, clazz);
8255
+ const type = wrapTypeReference(clazz);
8256
8256
  const rawHostDirectives = directive.get("hostDirectives") || null;
8257
8257
  const hostDirectives = rawHostDirectives === null ? null : extractHostDirectives(rawHostDirectives, evaluator, reflector, compilationMode, createForwardRefResolver(isCore), emitDeclarationOnly);
8258
8258
  if (compilationMode !== CompilationMode.LOCAL && hostDirectives !== null) {
@@ -20015,7 +20015,7 @@ var NgModuleDecoratorHandler = class {
20015
20015
  const exports = exportRefs.map((exp) => this._toR3Reference(exp.getOriginForDiagnostics(meta, node.name), exp, valueContext));
20016
20016
  const isForwardReference = (ref) => isExpressionForwardReference(ref.value, node.name, valueContext);
20017
20017
  const containsForwardDecls = bootstrap.some(isForwardReference) || declarations.some(isForwardReference) || imports.some(isForwardReference) || exports.some(isForwardReference);
20018
- const type = wrapTypeReference(this.reflector, node);
20018
+ const type = wrapTypeReference(node);
20019
20019
  let ngModuleMetadata;
20020
20020
  if (allowUnresolvedReferences) {
20021
20021
  ngModuleMetadata = {
@@ -22445,7 +22445,7 @@ var InjectableDecoratorHandler = class {
22445
22445
  };
22446
22446
  function extractInjectableMetadata(clazz, decorator, reflector) {
22447
22447
  const name = clazz.name.text;
22448
- const type = wrapTypeReference(reflector, clazz);
22448
+ const type = wrapTypeReference(clazz);
22449
22449
  const typeArgumentCount = reflector.getGenericArityOfClass(clazz) || 0;
22450
22450
  if (decorator.args === null) {
22451
22451
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_NOT_CALLED, decorator.node, "@Injectable must be called");
@@ -22647,7 +22647,7 @@ var PipeDecoratorHandler = class {
22647
22647
  analyze(clazz, decorator) {
22648
22648
  this.perf.eventCount(PerfEvent.AnalyzePipe);
22649
22649
  const name = clazz.name.text;
22650
- const type = wrapTypeReference(this.reflector, clazz);
22650
+ const type = wrapTypeReference(clazz);
22651
22651
  if (decorator.args === null) {
22652
22652
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_NOT_CALLED, decorator.node, `@Pipe must be called`);
22653
22653
  }
@@ -88,7 +88,7 @@ import {
88
88
  toUnredirectedSourceFile,
89
89
  tryParseInitializerApi,
90
90
  untagAllTsFiles
91
- } from "./chunk-GBKWMNM6.js";
91
+ } from "./chunk-RUZT54XX.js";
92
92
  import {
93
93
  LogicalFileSystem,
94
94
  absoluteFromSourceFile,
@@ -8,7 +8,7 @@ import {
8
8
  TrackedIncrementalBuildStrategy,
9
9
  freshCompilationTicket,
10
10
  incrementalFromCompilerTicket
11
- } from "./chunk-YPCN4FK3.js";
11
+ } from "./chunk-TU2XV7EG.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-GBKWMNM6.js";
21
+ } from "./chunk-RUZT54XX.js";
22
22
  import {
23
23
  absoluteFrom,
24
24
  createFileSystemTsReadDirectoryFn,
@@ -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.1.3";
458
+ var PLACEHOLDER_VERSION = "21.1.4";
459
459
  function wrapReference(wrapped) {
460
460
  return { value: wrapped, type: wrapped };
461
461
  }
package/bundles/index.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  isTsDiagnostic,
18
18
  performCompilation,
19
19
  readConfiguration
20
- } from "./chunk-HGWUZTYN.js";
20
+ } from "./chunk-VVZRG35Z.js";
21
21
  import {
22
22
  ConsoleLogger,
23
23
  LogLevel
@@ -34,7 +34,7 @@ import {
34
34
  freshCompilationTicket,
35
35
  incrementalFromStateTicket,
36
36
  isDocEntryWithSourceInfo
37
- } from "./chunk-YPCN4FK3.js";
37
+ } from "./chunk-TU2XV7EG.js";
38
38
  import {
39
39
  ActivePerfRecorder,
40
40
  ErrorCode,
@@ -46,7 +46,7 @@ import {
46
46
  getInitializerApiJitTransform,
47
47
  isLocalCompilationDiagnostics,
48
48
  ngErrorCode
49
- } from "./chunk-GBKWMNM6.js";
49
+ } from "./chunk-RUZT54XX.js";
50
50
  import "./chunk-FROPOOFC.js";
51
51
  import {
52
52
  InvalidFileSystem,
@@ -77,7 +77,7 @@ import "./chunk-G7GFT6BU.js";
77
77
 
78
78
  // packages/compiler-cli/src/version.js
79
79
  import { Version } from "@angular/compiler";
80
- var VERSION = new Version("21.1.3");
80
+ var VERSION = new Version("21.1.4");
81
81
 
82
82
  // packages/compiler-cli/private/tooling.js
83
83
  var GLOBAL_DEFS_FOR_TERSER = {
@@ -5,7 +5,7 @@
5
5
  import {
6
6
  DiagnosticCategoryLabel,
7
7
  NgCompiler
8
- } from "../chunk-YPCN4FK3.js";
8
+ } from "../chunk-TU2XV7EG.js";
9
9
  import {
10
10
  CompilationMode,
11
11
  DtsMetadataReader,
@@ -32,7 +32,7 @@ import {
32
32
  queryDecoratorNames,
33
33
  reflectObjectLiteral,
34
34
  unwrapExpression
35
- } from "../chunk-GBKWMNM6.js";
35
+ } from "../chunk-RUZT54XX.js";
36
36
  import "../chunk-FROPOOFC.js";
37
37
  import {
38
38
  getFileSystem,
@@ -6,7 +6,7 @@ import {
6
6
  ImportedSymbolsTracker,
7
7
  TypeScriptReflectionHost,
8
8
  getInitializerApiJitTransform
9
- } from "../chunk-GBKWMNM6.js";
9
+ } from "../chunk-RUZT54XX.js";
10
10
  import "../chunk-FROPOOFC.js";
11
11
  import {
12
12
  InvalidFileSystem,
@@ -415,8 +415,9 @@ var FS_ALL = [FS_OS_X, FS_WINDOWS, FS_UNIX, FS_NATIVE];
415
415
  function runInEachFileSystemFn(callback) {
416
416
  FS_ALL.forEach((os2) => runInFileSystem(os2, callback, false));
417
417
  }
418
+ var counter = 0;
418
419
  function runInFileSystem(os2, callback, error) {
419
- describe(`<<FileSystem: ${os2}>>`, () => {
420
+ describe(`<<FileSystem: ${os2}>>/${counter++}`, () => {
420
421
  beforeEach(() => initMockFileSystem(os2));
421
422
  afterEach(() => setFileSystem(new InvalidFileSystem()));
422
423
  callback(os2);
@@ -4,7 +4,7 @@
4
4
 
5
5
  import {
6
6
  angularJitApplicationTransform
7
- } from "../chunk-GBKWMNM6.js";
7
+ } from "../chunk-RUZT54XX.js";
8
8
  import "../chunk-FROPOOFC.js";
9
9
  import "../chunk-CEBE44Q5.js";
10
10
  import "../chunk-XYYEESKY.js";
@@ -6,12 +6,12 @@
6
6
  import {
7
7
  main,
8
8
  readCommandLineAndConfiguration
9
- } from "../../chunk-C74B7SVK.js";
9
+ } from "../../chunk-2XURAWTH.js";
10
10
  import {
11
11
  EmitFlags
12
- } from "../../chunk-HGWUZTYN.js";
13
- import "../../chunk-YPCN4FK3.js";
14
- import "../../chunk-GBKWMNM6.js";
12
+ } from "../../chunk-VVZRG35Z.js";
13
+ import "../../chunk-TU2XV7EG.js";
14
+ import "../../chunk-RUZT54XX.js";
15
15
  import "../../chunk-FROPOOFC.js";
16
16
  import {
17
17
  setFileSystem
@@ -5,10 +5,10 @@
5
5
 
6
6
  import {
7
7
  main
8
- } from "../../chunk-C74B7SVK.js";
9
- import "../../chunk-HGWUZTYN.js";
10
- import "../../chunk-YPCN4FK3.js";
11
- import "../../chunk-GBKWMNM6.js";
8
+ } from "../../chunk-2XURAWTH.js";
9
+ import "../../chunk-VVZRG35Z.js";
10
+ import "../../chunk-TU2XV7EG.js";
11
+ import "../../chunk-RUZT54XX.js";
12
12
  import "../../chunk-FROPOOFC.js";
13
13
  import {
14
14
  setFileSystem
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { MaybeForwardRefExpression, outputAst as o, R3DeclareDependencyMetadata, R3DependencyMetadata, R3Reference } from '@angular/compiler';
9
9
  import { AstObject, AstValue } from '../../ast/ast_value';
10
- export declare const PLACEHOLDER_VERSION = "21.1.3";
10
+ export declare const PLACEHOLDER_VERSION = "21.1.4";
11
11
  export declare function wrapReference<TExpression>(wrapped: o.WrappedNodeExpr<TExpression>): R3Reference;
12
12
  /**
13
13
  * Parses the value of an enum from the AST value's symbol name.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler-cli",
3
- "version": "21.1.3",
3
+ "version": "21.1.4",
4
4
  "description": "Angular - the compiler CLI for Node.js",
5
5
  "typings": "index.d.ts",
6
6
  "bin": {
@@ -43,7 +43,7 @@
43
43
  "typescript": "5.9.3"
44
44
  },
45
45
  "peerDependencies": {
46
- "@angular/compiler": "21.1.3",
46
+ "@angular/compiler": "21.1.4",
47
47
  "typescript": ">=5.9 <6.0"
48
48
  },
49
49
  "peerDependenciesMeta": {
@@ -104,7 +104,7 @@ export declare function resolveProvidersRequiringFactory(rawProviders: ts.Expres
104
104
  * The `value` is the exported declaration of the class from its source file.
105
105
  * The `type` is an expression that would be used in the typings (.d.ts) files.
106
106
  */
107
- export declare function wrapTypeReference(reflector: ReflectionHost, clazz: ClassDeclaration): R3Reference;
107
+ export declare function wrapTypeReference(clazz: ClassDeclaration): R3Reference;
108
108
  /** Creates a ParseSourceSpan for a TypeScript node. */
109
109
  export declare function createSourceSpan(node: ts.Node): ParseSourceSpan;
110
110
  /**