@angular/compiler-cli 19.1.4 → 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.
Files changed (40) hide show
  1. package/bundles/{chunk-STORTTKY.js → chunk-37JMVF7H.js} +8 -8
  2. package/bundles/{chunk-5UDS2TPQ.js → chunk-77D5CI2U.js} +7 -7
  3. package/bundles/{chunk-FKFYHCYY.js → chunk-BQBPEWUM.js} +81 -81
  4. package/bundles/{chunk-KEYCV7GA.js → chunk-BYC2LPQI.js} +31 -31
  5. package/bundles/{chunk-VKWVSPWR.js → chunk-E4OAEK7A.js} +12 -12
  6. package/bundles/{chunk-GBKXY6BH.js → chunk-FKXFEX7K.js} +3 -3
  7. package/bundles/{chunk-XZ4L2FK2.js → chunk-IVYDKMDU.js} +3 -3
  8. package/bundles/{chunk-WKHF7UQD.js → chunk-J3VFQRNB.js} +74 -56
  9. package/bundles/{chunk-WKHF7UQD.js.map → chunk-J3VFQRNB.js.map} +1 -1
  10. package/bundles/{chunk-DTXH7LOW.js → chunk-L6PLONOG.js} +154 -125
  11. package/bundles/{chunk-DTXH7LOW.js.map → chunk-L6PLONOG.js.map} +1 -1
  12. package/bundles/{chunk-I6R3GL3L.js → chunk-Q2WE7ECN.js} +5 -5
  13. package/bundles/{chunk-IWQC66R5.js → chunk-YBMV7GU7.js} +5 -5
  14. package/bundles/index.js +12 -12
  15. package/bundles/linker/babel/index.js +16 -13
  16. package/bundles/linker/babel/index.js.map +1 -1
  17. package/bundles/linker/index.js +4 -4
  18. package/bundles/ngcc/index.js +1 -1
  19. package/bundles/private/bazel.js +1 -1
  20. package/bundles/private/localize.js +3 -3
  21. package/bundles/private/migrations.js +4 -4
  22. package/bundles/private/tooling.js +6 -6
  23. package/bundles/src/bin/ng_xi18n.js +10 -10
  24. package/bundles/src/bin/ngc.js +8 -8
  25. package/bundles_metadata.json +1 -1
  26. package/linker/babel/src/ast/babel_ast_factory.d.ts +1 -0
  27. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  28. package/package.json +2 -2
  29. package/src/ngtsc/translator/src/api/ast_factory.d.ts +11 -0
  30. package/src/ngtsc/translator/src/translator.d.ts +4 -1
  31. package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +1 -0
  32. /package/bundles/{chunk-STORTTKY.js.map → chunk-37JMVF7H.js.map} +0 -0
  33. /package/bundles/{chunk-5UDS2TPQ.js.map → chunk-77D5CI2U.js.map} +0 -0
  34. /package/bundles/{chunk-FKFYHCYY.js.map → chunk-BQBPEWUM.js.map} +0 -0
  35. /package/bundles/{chunk-KEYCV7GA.js.map → chunk-BYC2LPQI.js.map} +0 -0
  36. /package/bundles/{chunk-VKWVSPWR.js.map → chunk-E4OAEK7A.js.map} +0 -0
  37. /package/bundles/{chunk-GBKXY6BH.js.map → chunk-FKXFEX7K.js.map} +0 -0
  38. /package/bundles/{chunk-XZ4L2FK2.js.map → chunk-IVYDKMDU.js.map} +0 -0
  39. /package/bundles/{chunk-I6R3GL3L.js.map → chunk-Q2WE7ECN.js.map} +0 -0
  40. /package/bundles/{chunk-IWQC66R5.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.1.4";
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.1.4",
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.1.4",
56
+ "@angular/compiler": "19.2.0-next.0",
57
57
  "typescript": ">=5.5 <5.8"
58
58
  },
59
59
  "repository": {
@@ -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
- visitTaggedTemplateExpr(ast: o.TaggedTemplateExpr, context: Context): TExpression;
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;