@angular/compiler-cli 19.2.0-rc.0 → 20.0.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-HHTMNOE7.js → chunk-2MJ6YSB2.js} +135 -125
  2. package/bundles/{chunk-HHTMNOE7.js.map → chunk-2MJ6YSB2.js.map} +1 -1
  3. package/bundles/{chunk-OZ2WSYWM.js → chunk-5B64KRP2.js} +52 -43
  4. package/bundles/{chunk-OZ2WSYWM.js.map → chunk-5B64KRP2.js.map} +1 -1
  5. package/bundles/{chunk-77D5CI2U.js → chunk-5UDS2TPQ.js} +7 -7
  6. package/bundles/{chunk-FKXFEX7K.js → chunk-GBKXY6BH.js} +3 -3
  7. package/bundles/{chunk-JBQ2W4H2.js → chunk-HXSKCJMP.js} +3 -3
  8. package/bundles/{chunk-Q2WE7ECN.js → chunk-I6R3GL3L.js} +5 -5
  9. package/bundles/{chunk-E7POVVFX.js → chunk-KDHDNSXW.js} +12 -12
  10. package/bundles/{chunk-FTZQEOD7.js → chunk-NSLVDBJJ.js} +5 -5
  11. package/bundles/{chunk-37JMVF7H.js → chunk-STORTTKY.js} +8 -8
  12. package/bundles/{chunk-J7S5XIBF.js → chunk-SXMUFI7N.js} +31 -31
  13. package/bundles/{chunk-67OPP2P5.js → chunk-UCG5K4BI.js} +82 -82
  14. package/bundles/index.js +12 -12
  15. package/bundles/linker/babel/index.js +15 -12
  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 +7 -1
  30. package/src/ngtsc/translator/src/translator.d.ts +1 -0
  31. package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +1 -0
  32. /package/bundles/{chunk-77D5CI2U.js.map → chunk-5UDS2TPQ.js.map} +0 -0
  33. /package/bundles/{chunk-FKXFEX7K.js.map → chunk-GBKXY6BH.js.map} +0 -0
  34. /package/bundles/{chunk-JBQ2W4H2.js.map → chunk-HXSKCJMP.js.map} +0 -0
  35. /package/bundles/{chunk-Q2WE7ECN.js.map → chunk-I6R3GL3L.js.map} +0 -0
  36. /package/bundles/{chunk-E7POVVFX.js.map → chunk-KDHDNSXW.js.map} +0 -0
  37. /package/bundles/{chunk-FTZQEOD7.js.map → chunk-NSLVDBJJ.js.map} +0 -0
  38. /package/bundles/{chunk-37JMVF7H.js.map → chunk-STORTTKY.js.map} +0 -0
  39. /package/bundles/{chunk-J7S5XIBF.js.map → chunk-SXMUFI7N.js.map} +0 -0
  40. /package/bundles/{chunk-67OPP2P5.js.map → chunk-UCG5K4BI.js.map} +0 -0
@@ -41,6 +41,7 @@ export declare class BabelAstFactory implements AstFactory<t.Statement, t.Expres
41
41
  createTemplateLiteral(template: TemplateLiteral<t.Expression>): t.TemplateLiteral;
42
42
  createThrowStatement: typeof t.throwStatement;
43
43
  createTypeOfExpression(expression: t.Expression): t.Expression;
44
+ createVoidExpression(expression: t.Expression): t.Expression;
44
45
  createUnaryExpression: typeof t.unaryExpression;
45
46
  createVariableDeclaration(variableName: string, initializer: t.Expression | null, type: VariableDeclarationType): t.Statement;
46
47
  setSourceMapRange<T extends t.Statement | t.Expression | t.TemplateElement>(node: T, sourceMapRange: SourceMapRange | null): T;
@@ -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.2.0-rc.0";
10
+ export declare const PLACEHOLDER_VERSION = "20.0.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.2.0-rc.0",
3
+ "version": "20.0.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.2.0-rc.0",
56
+ "@angular/compiler": "20.0.0-next.0",
57
57
  "typescript": ">=5.5 <5.9"
58
58
  },
59
59
  "repository": {
@@ -197,6 +197,12 @@ export interface AstFactory<TStatement, TExpression> {
197
197
  * @param expression the expression whose type we want.
198
198
  */
199
199
  createTypeOfExpression(expression: TExpression): TExpression;
200
+ /**
201
+ * Create an expression that evaluates an expression and returns `undefined`.
202
+ *
203
+ * @param expression the expression whose type we want.
204
+ */
205
+ createVoidExpression(expression: TExpression): TExpression;
200
206
  /**
201
207
  * Prefix the `operand` with the given `operator` (e.g. `-expr`).
202
208
  *
@@ -232,7 +238,7 @@ export type UnaryOperator = '+' | '-' | '!';
232
238
  /**
233
239
  * The binary operators supported by the `AstFactory`.
234
240
  */
235
- export type BinaryOperator = '&&' | '>' | '>=' | '&' | '|' | '/' | '==' | '===' | '<' | '<=' | '-' | '%' | '*' | '!=' | '!==' | '||' | '+' | '??';
241
+ export type BinaryOperator = '&&' | '>' | '>=' | '&' | '|' | '/' | '==' | '===' | '<' | '<=' | '-' | '%' | '*' | '**' | '!=' | '!==' | '||' | '+' | '??';
236
242
  /**
237
243
  * The original location of the start or end of a node created by the `AstFactory`.
238
244
  */
@@ -60,6 +60,7 @@ export declare class ExpressionTranslatorVisitor<TFile, TStatement, TExpression>
60
60
  visitTemplateLiteralElementExpr(ast: o.TemplateLiteralElementExpr, context: any): void;
61
61
  visitWrappedNodeExpr(ast: o.WrappedNodeExpr<any>, _context: Context): any;
62
62
  visitTypeofExpr(ast: o.TypeofExpr, context: Context): TExpression;
63
+ visitVoidExpr(ast: o.VoidExpr, context: Context): TExpression;
63
64
  visitUnaryOperatorExpr(ast: o.UnaryOperatorExpr, context: Context): TExpression;
64
65
  private visitStatements;
65
66
  private setSourceMapRange;
@@ -39,6 +39,7 @@ export declare class TypeScriptAstFactory implements AstFactory<ts.Statement, ts
39
39
  createTemplateLiteral(template: TemplateLiteral<ts.Expression>): ts.TemplateLiteral;
40
40
  createThrowStatement: (expression: ts.Expression) => ts.ThrowStatement;
41
41
  createTypeOfExpression: (expression: ts.Expression) => ts.TypeOfExpression;
42
+ createVoidExpression: (expression: ts.Expression) => ts.VoidExpression;
42
43
  createUnaryExpression(operator: UnaryOperator, operand: ts.Expression): ts.Expression;
43
44
  createVariableDeclaration(variableName: string, initializer: ts.Expression | null, type: VariableDeclarationType): ts.Statement;
44
45
  setSourceMapRange<T extends ts.Node>(node: T, sourceMapRange: SourceMapRange | null): T;