@angular/compiler-cli 17.0.0-rc.0 → 17.0.0-rc.2
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/{chunk-LPMZPYYV.js → chunk-6JN5EFEW.js} +9 -5
- package/bundles/{chunk-LPMZPYYV.js.map → chunk-6JN5EFEW.js.map} +1 -1
- package/bundles/{chunk-225M55ER.js → chunk-6WFRHXYB.js} +2 -2
- package/bundles/{chunk-RAK4OYZY.js → chunk-CLTYCPJK.js} +7 -2
- package/bundles/{chunk-RAK4OYZY.js.map → chunk-CLTYCPJK.js.map} +1 -1
- package/bundles/{chunk-Q5XOEMMF.js → chunk-KIPH6OCC.js} +312 -267
- package/bundles/chunk-KIPH6OCC.js.map +6 -0
- package/bundles/{chunk-YR36R26L.js → chunk-QDHJ26RK.js} +218 -148
- package/bundles/chunk-QDHJ26RK.js.map +6 -0
- package/bundles/{chunk-GTB2POO5.js → chunk-QFTMYSLL.js} +3 -3
- package/bundles/{chunk-7BZJ2Z2V.js → chunk-VNJI35KB.js} +2 -2
- package/bundles/index.js +8 -6
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +3 -3
- package/bundles/linker/index.js +3 -3
- package/bundles/private/migrations.js +3 -3
- package/bundles/private/tooling.js +2 -2
- package/bundles/src/bin/ng_xi18n.js +5 -5
- package/bundles/src/bin/ngc.js +5 -5
- package/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +3 -3
- package/src/ngtsc/docs/src/decorator_extractor.d.ts +15 -0
- package/src/ngtsc/docs/src/entities.d.ts +13 -2
- package/src/ngtsc/docs/src/jsdoc_extractor.d.ts +2 -2
- package/src/ngtsc/metadata/src/api.d.ts +1 -1
- package/src/ngtsc/translator/index.d.ts +1 -0
- package/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.d.ts +4 -1
- package/src/ngtsc/typecheck/src/environment.d.ts +2 -2
- package/bundles/chunk-Q5XOEMMF.js.map +0 -6
- package/bundles/chunk-YR36R26L.js.map +0 -6
- /package/bundles/{chunk-225M55ER.js.map → chunk-6WFRHXYB.js.map} +0 -0
- /package/bundles/{chunk-GTB2POO5.js.map → chunk-QFTMYSLL.js.map} +0 -0
- /package/bundles/{chunk-7BZJ2Z2V.js.map → chunk-VNJI35KB.js.map} +0 -0
- /package/src/ngtsc/{typecheck → translator}/src/type_emitter.d.ts +0 -0
|
@@ -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 = "17.0.0-rc.
|
|
10
|
+
export declare const PLACEHOLDER_VERSION = "17.0.0-rc.2";
|
|
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": "17.0.0-rc.
|
|
3
|
+
"version": "17.0.0-rc.2",
|
|
4
4
|
"description": "Angular - the compiler CLI for Node.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"bin": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"yargs": "^17.2.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@angular/compiler": "17.0.0-rc.
|
|
56
|
+
"@angular/compiler": "17.0.0-rc.2",
|
|
57
57
|
"typescript": ">=5.2 <5.3"
|
|
58
58
|
},
|
|
59
59
|
"repository": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
],
|
|
68
68
|
"license": "MIT",
|
|
69
69
|
"engines": {
|
|
70
|
-
"node": "
|
|
70
|
+
"node": "^18.13.0 || >=20.9.0"
|
|
71
71
|
},
|
|
72
72
|
"bugs": {
|
|
73
73
|
"url": "https://github.com/angular/angular/issues"
|
|
@@ -0,0 +1,15 @@
|
|
|
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.io/license
|
|
7
|
+
*/
|
|
8
|
+
import ts from 'typescript';
|
|
9
|
+
import { DecoratorEntry } from './entities';
|
|
10
|
+
/** Extracts an API documentation entry for an Angular decorator. */
|
|
11
|
+
export declare function extractorDecorator(declaration: ts.VariableDeclaration, typeChecker: ts.TypeChecker): DecoratorEntry;
|
|
12
|
+
/** Gets whether the given variable declaration is an Angular decorator declaration. */
|
|
13
|
+
export declare function isDecoratorDeclaration(declaration: ts.VariableDeclaration): boolean;
|
|
14
|
+
/** Gets whether an interface is the options interface for a decorator in the same file. */
|
|
15
|
+
export declare function isDecoratorOptionsInterface(declaration: ts.InterfaceDeclaration): boolean;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
/** Type of top-level documentation entry. */
|
|
9
9
|
export declare enum EntryType {
|
|
10
|
-
Block = "
|
|
10
|
+
Block = "block",
|
|
11
11
|
Component = "component",
|
|
12
12
|
Constant = "constant",
|
|
13
13
|
Decorator = "decorator",
|
|
@@ -29,6 +29,11 @@ export declare enum MemberType {
|
|
|
29
29
|
Setter = "setter",
|
|
30
30
|
EnumItem = "enum_item"
|
|
31
31
|
}
|
|
32
|
+
export declare enum DecoratorType {
|
|
33
|
+
Class = "class",
|
|
34
|
+
Member = "member",
|
|
35
|
+
Parameter = "parameter"
|
|
36
|
+
}
|
|
32
37
|
/** Informational tags applicable to class members. */
|
|
33
38
|
export declare enum MemberTags {
|
|
34
39
|
Abstract = "abstract",
|
|
@@ -37,7 +42,8 @@ export declare enum MemberTags {
|
|
|
37
42
|
Protected = "protected",
|
|
38
43
|
Optional = "optional",
|
|
39
44
|
Input = "input",
|
|
40
|
-
Output = "output"
|
|
45
|
+
Output = "output",
|
|
46
|
+
Inherited = "override"
|
|
41
47
|
}
|
|
42
48
|
/** Documentation entity for single JsDoc tag. */
|
|
43
49
|
export interface JsDocTagEntry {
|
|
@@ -76,6 +82,11 @@ export type InterfaceEntry = ClassEntry;
|
|
|
76
82
|
export interface EnumEntry extends DocEntry {
|
|
77
83
|
members: EnumMemberEntry[];
|
|
78
84
|
}
|
|
85
|
+
/** Documentation entity for an Angular decorator. */
|
|
86
|
+
export interface DecoratorEntry extends DocEntry {
|
|
87
|
+
decoratorType: DecoratorType;
|
|
88
|
+
members: PropertyEntry[];
|
|
89
|
+
}
|
|
79
90
|
/** Documentation entity for an Angular directives and components. */
|
|
80
91
|
export interface DirectiveEntry extends ClassEntry {
|
|
81
92
|
selector: string;
|
|
@@ -15,7 +15,7 @@ export declare function extractJsDocTags(node: ts.HasJSDoc): JsDocTagEntry[];
|
|
|
15
15
|
*/
|
|
16
16
|
export declare function extractJsDocDescription(node: ts.HasJSDoc): string;
|
|
17
17
|
/**
|
|
18
|
-
* Gets the raw JsDoc applied to a node.
|
|
19
|
-
* returns the empty string.
|
|
18
|
+
* Gets the raw JsDoc applied to a node.
|
|
19
|
+
* If the node does not have a JsDoc block, returns the empty string.
|
|
20
20
|
*/
|
|
21
21
|
export declare function extractRawJsDoc(node: ts.HasJSDoc): string;
|
|
@@ -119,7 +119,7 @@ export type InputMapping = InputOrOutput & {
|
|
|
119
119
|
/** Metadata for an input's transform function. */
|
|
120
120
|
export interface InputTransform {
|
|
121
121
|
node: ts.Node;
|
|
122
|
-
type: ts.TypeNode
|
|
122
|
+
type: Reference<ts.TypeNode>;
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Metadata collected for a directive within an NgModule's scope.
|
|
@@ -10,6 +10,7 @@ export { ImportGenerator, NamedImport } from './src/api/import_generator';
|
|
|
10
10
|
export { Context } from './src/context';
|
|
11
11
|
export { Import, ImportManager } from './src/import_manager';
|
|
12
12
|
export { ExpressionTranslatorVisitor, RecordWrappedNodeFn, TranslatorOptions } from './src/translator';
|
|
13
|
+
export { canEmitType, TypeEmitter, TypeReferenceTranslator } from './src/type_emitter';
|
|
13
14
|
export { translateType } from './src/type_translator';
|
|
14
15
|
export { attachComments, createTemplateMiddle, createTemplateTail, TypeScriptAstFactory } from './src/typescript_ast_factory';
|
|
15
16
|
export { translateExpression, translateStatement } from './src/typescript_translator';
|
|
@@ -16,5 +16,8 @@ import { TemplateCheckFactory } from '../../api';
|
|
|
16
16
|
* are used as structural directives and a warning would be generated. Once the
|
|
17
17
|
* `CommonModule` is included, the `ngSwitch` would also be covered.
|
|
18
18
|
*/
|
|
19
|
-
export declare const KNOWN_CONTROL_FLOW_DIRECTIVES: Map<string,
|
|
19
|
+
export declare const KNOWN_CONTROL_FLOW_DIRECTIVES: Map<string, {
|
|
20
|
+
directive: string;
|
|
21
|
+
builtIn: string;
|
|
22
|
+
}>;
|
|
20
23
|
export declare const factory: TemplateCheckFactory<ErrorCode.MISSING_CONTROL_FLOW_DIRECTIVE, ExtendedTemplateDiagnosticName.MISSING_CONTROL_FLOW_DIRECTIVE>;
|
|
@@ -67,8 +67,8 @@ export declare class Environment implements ReferenceEmitEnvironment {
|
|
|
67
67
|
/**
|
|
68
68
|
* Generates a `ts.TypeNode` representing a type that is being referenced from a different place
|
|
69
69
|
* in the program. Any type references inside the transplanted type will be rewritten so that
|
|
70
|
-
* they can be imported in the context
|
|
70
|
+
* they can be imported in the context file.
|
|
71
71
|
*/
|
|
72
|
-
referenceTransplantedType(type: TransplantedType<ts.TypeNode
|
|
72
|
+
referenceTransplantedType(type: TransplantedType<Reference<ts.TypeNode>>): ts.TypeNode;
|
|
73
73
|
getPreludeStatements(): ts.Statement[];
|
|
74
74
|
}
|