@angular/compiler-cli 19.1.5 → 19.2.0-next.0
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-STORTTKY.js → chunk-37JMVF7H.js} +8 -8
- package/bundles/{chunk-5UDS2TPQ.js → chunk-77D5CI2U.js} +7 -7
- package/bundles/{chunk-DNXA7U6Z.js → chunk-BQBPEWUM.js} +81 -81
- package/bundles/{chunk-KEYCV7GA.js → chunk-BYC2LPQI.js} +31 -31
- package/bundles/{chunk-DNKJBJUY.js → chunk-E4OAEK7A.js} +12 -12
- package/bundles/{chunk-GBKXY6BH.js → chunk-FKXFEX7K.js} +3 -3
- package/bundles/{chunk-EEK4TGRE.js → chunk-IVYDKMDU.js} +3 -3
- package/bundles/{chunk-WKHF7UQD.js → chunk-J3VFQRNB.js} +74 -56
- package/bundles/{chunk-WKHF7UQD.js.map → chunk-J3VFQRNB.js.map} +1 -1
- package/bundles/{chunk-K5NXWRJU.js → chunk-L6PLONOG.js} +168 -187
- package/bundles/chunk-L6PLONOG.js.map +6 -0
- package/bundles/{chunk-I6R3GL3L.js → chunk-Q2WE7ECN.js} +5 -5
- package/bundles/{chunk-ADWOXAAC.js → chunk-YBMV7GU7.js} +5 -5
- package/bundles/index.js +12 -12
- package/bundles/linker/babel/index.js +16 -13
- package/bundles/linker/babel/index.js.map +1 -1
- package/bundles/linker/index.js +4 -4
- package/bundles/ngcc/index.js +1 -1
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +4 -4
- package/bundles/private/tooling.js +6 -6
- package/bundles/src/bin/ng_xi18n.js +10 -10
- package/bundles/src/bin/ngc.js +8 -8
- package/bundles_metadata.json +1 -1
- package/linker/babel/src/ast/babel_ast_factory.d.ts +1 -0
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/hmr/src/extract_dependencies.d.ts +4 -8
- package/src/ngtsc/hmr/src/metadata.d.ts +1 -2
- package/src/ngtsc/translator/src/api/ast_factory.d.ts +11 -0
- package/src/ngtsc/translator/src/translator.d.ts +4 -1
- package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +1 -0
- package/bundles/chunk-K5NXWRJU.js.map +0 -6
- /package/bundles/{chunk-STORTTKY.js.map → chunk-37JMVF7H.js.map} +0 -0
- /package/bundles/{chunk-5UDS2TPQ.js.map → chunk-77D5CI2U.js.map} +0 -0
- /package/bundles/{chunk-DNXA7U6Z.js.map → chunk-BQBPEWUM.js.map} +0 -0
- /package/bundles/{chunk-KEYCV7GA.js.map → chunk-BYC2LPQI.js.map} +0 -0
- /package/bundles/{chunk-DNKJBJUY.js.map → chunk-E4OAEK7A.js.map} +0 -0
- /package/bundles/{chunk-GBKXY6BH.js.map → chunk-FKXFEX7K.js.map} +0 -0
- /package/bundles/{chunk-EEK4TGRE.js.map → chunk-IVYDKMDU.js.map} +0 -0
- /package/bundles/{chunk-I6R3GL3L.js.map → chunk-Q2WE7ECN.js.map} +0 -0
- /package/bundles/{chunk-ADWOXAAC.js.map → chunk-YBMV7GU7.js.map} +0 -0
|
@@ -38,6 +38,7 @@ export declare class BabelAstFactory implements AstFactory<t.Statement, t.Expres
|
|
|
38
38
|
createPropertyAccess(expression: t.Expression, propertyName: string): t.Expression;
|
|
39
39
|
createReturnStatement: typeof t.returnStatement;
|
|
40
40
|
createTaggedTemplate(tag: t.Expression, template: TemplateLiteral<t.Expression>): t.Expression;
|
|
41
|
+
createTemplateLiteral(template: TemplateLiteral<t.Expression>): t.TemplateLiteral;
|
|
41
42
|
createThrowStatement: typeof t.throwStatement;
|
|
42
43
|
createTypeOfExpression(expression: t.Expression): t.Expression;
|
|
43
44
|
createUnaryExpression: typeof t.unaryExpression;
|
|
@@ -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 = "19.
|
|
10
|
+
export declare const PLACEHOLDER_VERSION = "19.2.0-next.0";
|
|
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": "19.
|
|
3
|
+
"version": "19.2.0-next.0",
|
|
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": "19.
|
|
56
|
+
"@angular/compiler": "19.2.0-next.0",
|
|
57
57
|
"typescript": ">=5.5 <5.8"
|
|
58
58
|
},
|
|
59
59
|
"repository": {
|
|
@@ -6,9 +6,8 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { R3CompiledExpression, R3ComponentDeferMetadata, R3HmrNamespaceDependency, outputAst as o } from '@angular/compiler';
|
|
9
|
-
import { DeclarationNode
|
|
9
|
+
import { DeclarationNode } from '../../reflection';
|
|
10
10
|
import { CompileResult } from '../../transform';
|
|
11
|
-
import { PartialEvaluator } from '../../partial_evaluator';
|
|
12
11
|
/**
|
|
13
12
|
* Determines the file-level dependencies that the HMR initializer needs to capture and pass along.
|
|
14
13
|
* @param sourceFile File in which the file is being compiled.
|
|
@@ -18,10 +17,7 @@ import { PartialEvaluator } from '../../partial_evaluator';
|
|
|
18
17
|
* @param classMetadata Compiled `setClassMetadata` expression, if any.
|
|
19
18
|
* @param debugInfo Compiled `setClassDebugInfo` expression, if any.
|
|
20
19
|
*/
|
|
21
|
-
export declare function extractHmrDependencies(node: DeclarationNode, definition: R3CompiledExpression, factory: CompileResult, deferBlockMetadata: R3ComponentDeferMetadata, classMetadata: o.Statement | null, debugInfo: o.Statement | null
|
|
22
|
-
local:
|
|
23
|
-
name: string;
|
|
24
|
-
runtimeRepresentation: o.Expression;
|
|
25
|
-
}[];
|
|
20
|
+
export declare function extractHmrDependencies(node: DeclarationNode, definition: R3CompiledExpression, factory: CompileResult, deferBlockMetadata: R3ComponentDeferMetadata, classMetadata: o.Statement | null, debugInfo: o.Statement | null): {
|
|
21
|
+
local: string[];
|
|
26
22
|
external: R3HmrNamespaceDependency[];
|
|
27
|
-
}
|
|
23
|
+
};
|
|
@@ -9,7 +9,6 @@ import { R3CompiledExpression, R3ComponentDeferMetadata, R3HmrMetadata, outputAs
|
|
|
9
9
|
import { DeclarationNode, ReflectionHost } from '../../reflection';
|
|
10
10
|
import { CompileResult } from '../../transform';
|
|
11
11
|
import ts from 'typescript';
|
|
12
|
-
import { PartialEvaluator } from '../../partial_evaluator';
|
|
13
12
|
/**
|
|
14
13
|
* Extracts the HMR metadata for a class declaration.
|
|
15
14
|
* @param clazz Class being analyzed.
|
|
@@ -22,4 +21,4 @@ import { PartialEvaluator } from '../../partial_evaluator';
|
|
|
22
21
|
* @param classMetadata Analyzed `setClassMetadata` expression, if any.
|
|
23
22
|
* @param debugInfo Analyzed `setClassDebugInfo` expression, if any.
|
|
24
23
|
*/
|
|
25
|
-
export declare function extractHmrMetatadata(clazz: DeclarationNode, reflection: ReflectionHost,
|
|
24
|
+
export declare function extractHmrMetatadata(clazz: DeclarationNode, reflection: ReflectionHost, compilerHost: Pick<ts.CompilerHost, 'getCanonicalFileName'>, rootDirs: readonly string[], definition: R3CompiledExpression, factory: CompileResult, deferBlockMetadata: R3ComponentDeferMetadata, classMetadata: o.Statement | null, debugInfo: o.Statement | null): R3HmrMetadata | null;
|
|
@@ -174,6 +174,17 @@ export interface AstFactory<TStatement, TExpression> {
|
|
|
174
174
|
* template literal.
|
|
175
175
|
*/
|
|
176
176
|
createTaggedTemplate(tag: TExpression, template: TemplateLiteral<TExpression>): TExpression;
|
|
177
|
+
/**
|
|
178
|
+
* Create an untagged template literal
|
|
179
|
+
*
|
|
180
|
+
* ```
|
|
181
|
+
* `str1${expr1}str2${expr2}str3`
|
|
182
|
+
* ```
|
|
183
|
+
*
|
|
184
|
+
* @param template the collection of strings and expressions that constitute an interpolated
|
|
185
|
+
* template literal.
|
|
186
|
+
*/
|
|
187
|
+
createTemplateLiteral(template: TemplateLiteral<TExpression>): TExpression;
|
|
177
188
|
/**
|
|
178
189
|
* Create a throw statement (e.g. `throw expr;`).
|
|
179
190
|
*
|
|
@@ -34,7 +34,8 @@ export declare class ExpressionTranslatorVisitor<TFile, TStatement, TExpression>
|
|
|
34
34
|
visitWriteKeyExpr(expr: o.WriteKeyExpr, context: Context): TExpression;
|
|
35
35
|
visitWritePropExpr(expr: o.WritePropExpr, context: Context): TExpression;
|
|
36
36
|
visitInvokeFunctionExpr(ast: o.InvokeFunctionExpr, context: Context): TExpression;
|
|
37
|
-
|
|
37
|
+
visitTaggedTemplateLiteralExpr(ast: o.TaggedTemplateLiteralExpr, context: Context): TExpression;
|
|
38
|
+
visitTemplateLiteralExpr(ast: o.TemplateLiteralExpr, context: Context): TExpression;
|
|
38
39
|
visitInstantiateExpr(ast: o.InstantiateExpr, context: Context): TExpression;
|
|
39
40
|
visitLiteralExpr(ast: o.LiteralExpr, _context: Context): TExpression;
|
|
40
41
|
visitLocalizedString(ast: o.LocalizedString, context: Context): TExpression;
|
|
@@ -56,10 +57,12 @@ export declare class ExpressionTranslatorVisitor<TFile, TStatement, TExpression>
|
|
|
56
57
|
visitLiteralArrayExpr(ast: o.LiteralArrayExpr, context: Context): TExpression;
|
|
57
58
|
visitLiteralMapExpr(ast: o.LiteralMapExpr, context: Context): TExpression;
|
|
58
59
|
visitCommaExpr(ast: o.CommaExpr, context: Context): never;
|
|
60
|
+
visitTemplateLiteralElementExpr(ast: o.TemplateLiteralElementExpr, context: any): void;
|
|
59
61
|
visitWrappedNodeExpr(ast: o.WrappedNodeExpr<any>, _context: Context): any;
|
|
60
62
|
visitTypeofExpr(ast: o.TypeofExpr, context: Context): TExpression;
|
|
61
63
|
visitUnaryOperatorExpr(ast: o.UnaryOperatorExpr, context: Context): TExpression;
|
|
62
64
|
private visitStatements;
|
|
63
65
|
private setSourceMapRange;
|
|
64
66
|
private attachComments;
|
|
67
|
+
private getTemplateLiteralFromAst;
|
|
65
68
|
}
|
|
@@ -36,6 +36,7 @@ export declare class TypeScriptAstFactory implements AstFactory<ts.Statement, ts
|
|
|
36
36
|
createPropertyAccess: (expression: ts.Expression, name: string | ts.MemberName) => ts.PropertyAccessExpression;
|
|
37
37
|
createReturnStatement(expression: ts.Expression | null): ts.Statement;
|
|
38
38
|
createTaggedTemplate(tag: ts.Expression, template: TemplateLiteral<ts.Expression>): ts.Expression;
|
|
39
|
+
createTemplateLiteral(template: TemplateLiteral<ts.Expression>): ts.TemplateLiteral;
|
|
39
40
|
createThrowStatement: (expression: ts.Expression) => ts.ThrowStatement;
|
|
40
41
|
createTypeOfExpression: (expression: ts.Expression) => ts.TypeOfExpression;
|
|
41
42
|
createUnaryExpression(operator: UnaryOperator, operand: ts.Expression): ts.Expression;
|