@angular/compiler-cli 21.0.0-next.8 → 21.0.0-next.9

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.
package/bundles/index.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  isTsDiagnostic,
29
29
  performCompilation,
30
30
  readConfiguration
31
- } from "./chunk-NBFYHUMW.js";
31
+ } from "./chunk-SIOKS4LN.js";
32
32
  import {
33
33
  ConsoleLogger,
34
34
  LogLevel
@@ -37,7 +37,7 @@ import {
37
37
  angularJitApplicationTransform,
38
38
  getDownlevelDecoratorsTransform,
39
39
  getInitializerApiJitTransform
40
- } from "./chunk-WXJFCHPN.js";
40
+ } from "./chunk-HRLHX4UA.js";
41
41
  import {
42
42
  ActivePerfRecorder,
43
43
  ErrorCode,
@@ -46,7 +46,7 @@ import {
46
46
  TsCreateProgramDriver,
47
47
  isLocalCompilationDiagnostics,
48
48
  ngErrorCode
49
- } from "./chunk-ELPMV5DB.js";
49
+ } from "./chunk-3UF7UI6H.js";
50
50
  import "./chunk-LS5RJ5CS.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.0.0-next.8");
80
+ var VERSION = new Version("21.0.0-next.9");
81
81
 
82
82
  // packages/compiler-cli/private/tooling.js
83
83
  var GLOBAL_DEFS_FOR_TERSER = {
@@ -13,7 +13,7 @@ import {
13
13
  TypeScriptReflectionHost,
14
14
  createForwardRefResolver,
15
15
  reflectObjectLiteral
16
- } from "../chunk-ELPMV5DB.js";
16
+ } from "../chunk-3UF7UI6H.js";
17
17
  import "../chunk-LS5RJ5CS.js";
18
18
  import "../chunk-GWZQLAGK.js";
19
19
  import "../chunk-XYYEESKY.js";
@@ -4,8 +4,8 @@
4
4
 
5
5
  import {
6
6
  angularJitApplicationTransform
7
- } from "../chunk-WXJFCHPN.js";
8
- import "../chunk-ELPMV5DB.js";
7
+ } from "../chunk-HRLHX4UA.js";
8
+ import "../chunk-3UF7UI6H.js";
9
9
  import "../chunk-LS5RJ5CS.js";
10
10
  import "../chunk-GWZQLAGK.js";
11
11
  import "../chunk-XYYEESKY.js";
@@ -6,12 +6,12 @@
6
6
  import {
7
7
  main,
8
8
  readCommandLineAndConfiguration
9
- } from "../../chunk-MVFPDRXS.js";
9
+ } from "../../chunk-IE2YQNTQ.js";
10
10
  import {
11
11
  EmitFlags
12
- } from "../../chunk-NBFYHUMW.js";
13
- import "../../chunk-WXJFCHPN.js";
14
- import "../../chunk-ELPMV5DB.js";
12
+ } from "../../chunk-SIOKS4LN.js";
13
+ import "../../chunk-HRLHX4UA.js";
14
+ import "../../chunk-3UF7UI6H.js";
15
15
  import "../../chunk-LS5RJ5CS.js";
16
16
  import {
17
17
  setFileSystem
@@ -5,10 +5,10 @@
5
5
 
6
6
  import {
7
7
  main
8
- } from "../../chunk-MVFPDRXS.js";
9
- import "../../chunk-NBFYHUMW.js";
10
- import "../../chunk-WXJFCHPN.js";
11
- import "../../chunk-ELPMV5DB.js";
8
+ } from "../../chunk-IE2YQNTQ.js";
9
+ import "../../chunk-SIOKS4LN.js";
10
+ import "../../chunk-HRLHX4UA.js";
11
+ import "../../chunk-3UF7UI6H.js";
12
12
  import "../../chunk-LS5RJ5CS.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.0.0-next.8";
10
+ export declare const PLACEHOLDER_VERSION = "21.0.0-next.9";
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.0.0-next.8",
3
+ "version": "21.0.0-next.9",
4
4
  "description": "Angular - the compiler CLI for Node.js",
5
5
  "typings": "index.d.ts",
6
6
  "bin": {
@@ -48,7 +48,7 @@
48
48
  "yargs": "^18.0.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "@angular/compiler": "21.0.0-next.8",
51
+ "@angular/compiler": "21.0.0-next.9",
52
52
  "typescript": ">=5.9 <6.0"
53
53
  },
54
54
  "peerDependenciesMeta": {
@@ -145,6 +145,11 @@ export declare enum ErrorCode {
145
145
  * Raised for `@Component` fields that aren't supported in a selectorless context.
146
146
  */
147
147
  UNSUPPORTED_SELECTORLESS_COMPONENT_FIELD = 2026,
148
+ /**
149
+ * A component is using both the `animations` property and `animate.enter` or `animate.leave`
150
+ * in the template.
151
+ */
152
+ COMPONENT_ANIMATIONS_CONFLICT = 2027,
148
153
  SYMBOL_NOT_EXPORTED = 3001,
149
154
  /**
150
155
  * Raised when a relationship between directives and/or pipes would cause a cyclic import to be
@@ -7,9 +7,8 @@
7
7
  */
8
8
  import ts from 'typescript';
9
9
  import { MetadataReader } from '../../metadata';
10
- import { ClassDeclaration } from '../../reflection';
11
- import { ClassEntry, InterfaceEntry } from './entities';
10
+ import { ClassEntry } from './entities';
12
11
  /** Extracts documentation info for a class, potentially including Angular-specific info. */
13
- export declare function extractClass(classDeclaration: ClassDeclaration & ts.ClassDeclaration, metadataReader: MetadataReader, typeChecker: ts.TypeChecker): ClassEntry;
14
- /** Extracts documentation info for an interface. */
15
- export declare function extractInterface(declaration: ts.InterfaceDeclaration, typeChecker: ts.TypeChecker): InterfaceEntry;
12
+ export declare function extractClass(classDeclaration: {
13
+ name: ts.Identifier;
14
+ } & ts.ClassDeclaration, metadataReader: MetadataReader, typeChecker: ts.TypeChecker): ClassEntry;
@@ -94,12 +94,17 @@ export interface TypeAliasEntry extends ConstantEntry {
94
94
  export interface ClassEntry extends DocEntry {
95
95
  isAbstract: boolean;
96
96
  members: MemberEntry[];
97
- extends?: string;
98
97
  generics: GenericEntry[];
98
+ extends?: string;
99
99
  implements: string[];
100
100
  }
101
101
  /** Documentation entity for a TypeScript interface. */
102
- export type InterfaceEntry = ClassEntry;
102
+ export interface InterfaceEntry extends DocEntry {
103
+ members: MemberEntry[];
104
+ generics: GenericEntry[];
105
+ extends: string[];
106
+ implements: string[];
107
+ }
103
108
  /** Documentation entity for a TypeScript enum. */
104
109
  export interface EnumEntry extends DocEntry {
105
110
  members: EnumMemberEntry[];
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+ import ts from 'typescript';
9
+ import { InterfaceEntry } from './entities';
10
+ /** Extracts documentation info for an interface. */
11
+ export declare function extractInterface(declaration: ts.InterfaceDeclaration, typeChecker: ts.TypeChecker): InterfaceEntry;
@@ -0,0 +1,96 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+ import ts from 'typescript';
9
+ import { ClassDeclaration } from '../../reflection';
10
+ import { MemberEntry, MemberTags, MethodEntry, PropertyEntry } from './entities';
11
+ /** A class member declaration that is *like* a property (including accessors) */
12
+ type PropertyDeclarationLike = ts.PropertyDeclaration | ts.AccessorDeclaration;
13
+ /** Type representing either a class declaration ro an interface declaration. */
14
+ export type ClassDeclarationLike = ts.ClassDeclaration | ts.InterfaceDeclaration;
15
+ /** Type representing either a class or interface member. */
16
+ type MemberElement = ts.ClassElement | ts.TypeElement;
17
+ /** Type representing a signature element of an interface. */
18
+ type SignatureElement = ts.CallSignatureDeclaration | ts.ConstructSignatureDeclaration;
19
+ /**
20
+ * Type representing either:
21
+ */
22
+ type MethodLike = ts.MethodDeclaration | ts.MethodSignature;
23
+ /**
24
+ * Type representing either a class property declaration or an interface property signature.
25
+ */
26
+ type PropertyLike = PropertyDeclarationLike | ts.PropertySignature;
27
+ /** Extractor to pull info for API reference documentation for a TypeScript class or interface. */
28
+ export declare abstract class PropertiesExtractor {
29
+ protected declaration: {
30
+ name: ts.Identifier;
31
+ } & ClassDeclarationLike;
32
+ protected typeChecker: ts.TypeChecker;
33
+ constructor(declaration: {
34
+ name: ts.Identifier;
35
+ } & ClassDeclarationLike, typeChecker: ts.TypeChecker);
36
+ /** Extract docs info specific to classes. */
37
+ extract(): {
38
+ members: MemberEntry[];
39
+ generics: import("./entities").GenericEntry[];
40
+ };
41
+ /** Extracts doc info for a class's members. */
42
+ protected extractAllClassMembers(): MemberEntry[];
43
+ /** Extract docs for a class's members (methods and properties). */
44
+ protected extractClassMember(memberDeclaration: MemberElement): MemberEntry | undefined;
45
+ /** Extract docs for all call signatures in the current class/interface. */
46
+ protected extractSignatures(): MemberEntry[];
47
+ /** Extracts docs for a class method. */
48
+ protected extractMethod(methodDeclaration: MethodLike): MethodEntry;
49
+ /** Extracts docs for a signature element (usually inside an interface). */
50
+ protected extractSignature(signature: SignatureElement): MethodEntry;
51
+ /** Extracts doc info for a property declaration. */
52
+ protected extractClassProperty(propertyDeclaration: PropertyLike): PropertyEntry;
53
+ /** Extracts doc info for an accessor member (getter/setter). */
54
+ protected extractGetterSetter(accessor: ts.AccessorDeclaration): PropertyEntry;
55
+ protected extractConstructor(constructorDeclaration: ts.ConstructorDeclaration): MethodEntry;
56
+ protected extractInterfaceConformance(declaration: ClassDeclaration & ClassDeclarationLike): string[];
57
+ /** Gets the tags for a member (protected, readonly, static, etc.) */
58
+ protected getMemberTags(member: MethodLike | PropertyLike | ts.ConstructorDeclaration): MemberTags[];
59
+ /** Computes all signature declarations of the class/interface. */
60
+ private computeAllSignatureDeclarations;
61
+ /** Gets all member declarations, including inherited members. */
62
+ private getMemberDeclarations;
63
+ /** The result only contains properties, method implementations and abstracts */
64
+ private filterMethodOverloads;
65
+ /** Get the tags for a member that come from the declaration modifiers. */
66
+ private getMemberTagsFromModifiers;
67
+ /** Gets the doc tag corresponding to a class member modifier (readonly, protected, etc.). */
68
+ private getTagForMemberModifier;
69
+ /**
70
+ * Gets whether a given class member should be excluded from public API docs.
71
+ * This is the case if:
72
+ * - The member does not have a name
73
+ * - The member is neither a method nor property
74
+ * - The member is private
75
+ * - The member has a name that marks it as Angular-internal.
76
+ * - The member is marked as internal via JSDoc.
77
+ */
78
+ private isMemberExcluded;
79
+ /** Gets whether a class member is a method, property, or accessor. */
80
+ private isDocumentableMember;
81
+ /** Check if the parameter is a constructor parameter with a public modifier */
82
+ private isPublicConstructorParameterProperty;
83
+ /** Gets whether a member is a property. */
84
+ private isProperty;
85
+ /** Gets whether a member is a method. */
86
+ private isMethod;
87
+ /** Gets whether the given signature declaration is documentable. */
88
+ private isDocumentableSignature;
89
+ /**
90
+ * Check wether a member has a private computed property name like [ɵWRITABLE_SIGNAL]
91
+ *
92
+ * This will prevent exposing private computed properties in the docs.
93
+ */
94
+ private hasPrivateComputedProperty;
95
+ }
96
+ export {};