@angular/compiler 19.1.0-rc.0 → 19.1.1

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-rc.0
2
+ * @license Angular v19.1.1
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -62,58 +62,6 @@ export declare abstract class AST {
62
62
  toString(): string;
63
63
  }
64
64
 
65
- export declare class AstMemoryEfficientTransformer implements AstVisitor {
66
- visitImplicitReceiver(ast: ImplicitReceiver, context: any): AST;
67
- visitThisReceiver(ast: ThisReceiver, context: any): AST;
68
- visitInterpolation(ast: Interpolation, context: any): Interpolation;
69
- visitLiteralPrimitive(ast: LiteralPrimitive, context: any): AST;
70
- visitPropertyRead(ast: PropertyRead, context: any): AST;
71
- visitPropertyWrite(ast: PropertyWrite, context: any): AST;
72
- visitSafePropertyRead(ast: SafePropertyRead, context: any): AST;
73
- visitLiteralArray(ast: LiteralArray, context: any): AST;
74
- visitLiteralMap(ast: LiteralMap, context: any): AST;
75
- visitUnary(ast: Unary, context: any): AST;
76
- visitBinary(ast: Binary, context: any): AST;
77
- visitPrefixNot(ast: PrefixNot, context: any): AST;
78
- visitTypeofExpresion(ast: TypeofExpression, context: any): AST;
79
- visitNonNullAssert(ast: NonNullAssert, context: any): AST;
80
- visitConditional(ast: Conditional, context: any): AST;
81
- visitPipe(ast: BindingPipe, context: any): AST;
82
- visitKeyedRead(ast: KeyedRead, context: any): AST;
83
- visitKeyedWrite(ast: KeyedWrite, context: any): AST;
84
- visitAll(asts: any[]): any[];
85
- visitChain(ast: Chain, context: any): AST;
86
- visitCall(ast: Call, context: any): AST;
87
- visitSafeCall(ast: SafeCall, context: any): AST;
88
- visitSafeKeyedRead(ast: SafeKeyedRead, context: any): AST;
89
- }
90
-
91
- export declare class AstTransformer implements AstVisitor {
92
- visitImplicitReceiver(ast: ImplicitReceiver, context: any): AST;
93
- visitThisReceiver(ast: ThisReceiver, context: any): AST;
94
- visitInterpolation(ast: Interpolation, context: any): AST;
95
- visitLiteralPrimitive(ast: LiteralPrimitive, context: any): AST;
96
- visitPropertyRead(ast: PropertyRead, context: any): AST;
97
- visitPropertyWrite(ast: PropertyWrite, context: any): AST;
98
- visitSafePropertyRead(ast: SafePropertyRead, context: any): AST;
99
- visitLiteralArray(ast: LiteralArray, context: any): AST;
100
- visitLiteralMap(ast: LiteralMap, context: any): AST;
101
- visitUnary(ast: Unary, context: any): AST;
102
- visitBinary(ast: Binary, context: any): AST;
103
- visitPrefixNot(ast: PrefixNot, context: any): AST;
104
- visitTypeofExpresion(ast: TypeofExpression, context: any): AST;
105
- visitNonNullAssert(ast: NonNullAssert, context: any): AST;
106
- visitConditional(ast: Conditional, context: any): AST;
107
- visitPipe(ast: BindingPipe, context: any): AST;
108
- visitKeyedRead(ast: KeyedRead, context: any): AST;
109
- visitKeyedWrite(ast: KeyedWrite, context: any): AST;
110
- visitCall(ast: Call, context: any): AST;
111
- visitSafeCall(ast: SafeCall, context: any): AST;
112
- visitAll(asts: any[]): any[];
113
- visitChain(ast: Chain, context: any): AST;
114
- visitSafeKeyedRead(ast: SafeKeyedRead, context: any): AST;
115
- }
116
-
117
65
  export declare interface AstVisitor {
118
66
  /**
119
67
  * The `visitUnary` method is declared as optional for backwards compatibility. In an upcoming
@@ -137,7 +85,7 @@ export declare interface AstVisitor {
137
85
  visitLiteralPrimitive(ast: LiteralPrimitive, context: any): any;
138
86
  visitPipe(ast: BindingPipe, context: any): any;
139
87
  visitPrefixNot(ast: PrefixNot, context: any): any;
140
- visitTypeofExpresion(ast: TypeofExpression, context: any): any;
88
+ visitTypeofExpression(ast: TypeofExpression, context: any): any;
141
89
  visitNonNullAssert(ast: NonNullAssert, context: any): any;
142
90
  visitPropertyRead(ast: PropertyRead, context: any): any;
143
91
  visitPropertyWrite(ast: PropertyWrite, context: any): any;
@@ -198,12 +146,12 @@ declare const enum AttributeMarker {
198
146
  * ## Example:
199
147
  *
200
148
  * Given:
201
- * ```
202
- * <div class="foo bar baz">...<d/vi>
149
+ * ```html
150
+ * <div class="foo bar baz">...</div>
203
151
  * ```
204
152
  *
205
153
  * the generated code is:
206
- * ```
154
+ * ```ts
207
155
  * var _c1 = [AttributeMarker.Classes, 'foo', 'bar', 'baz'];
208
156
  * ```
209
157
  */
@@ -216,12 +164,12 @@ declare const enum AttributeMarker {
216
164
  * ## Example:
217
165
  *
218
166
  * Given:
219
- * ```
167
+ * ```html
220
168
  * <div style="width:100px; height:200px; color:red">...</div>
221
169
  * ```
222
170
  *
223
171
  * the generated code is:
224
- * ```
172
+ * ```ts
225
173
  * var _c1 = [AttributeMarker.Styles, 'width', '100px', 'height'. '200px', 'color', 'red'];
226
174
  * ```
227
175
  */
@@ -231,13 +179,13 @@ declare const enum AttributeMarker {
231
179
  *
232
180
  * For example, given the following HTML:
233
181
  *
234
- * ```
182
+ * ```html
235
183
  * <div moo="car" [foo]="exp" (bar)="doSth()">
236
184
  * ```
237
185
  *
238
186
  * the generated code is:
239
187
  *
240
- * ```
188
+ * ```ts
241
189
  * var _c1 = ['moo', 'car', AttributeMarker.Bindings, 'foo', 'bar'];
242
190
  * ```
243
191
  */
@@ -247,7 +195,7 @@ declare const enum AttributeMarker {
247
195
  *
248
196
  * For example, given the following HTML:
249
197
  *
250
- * ```
198
+ * ```html
251
199
  * <div *ngFor="let value of values; trackBy:trackBy" dirA [dirB]="value">
252
200
  * ```
253
201
  *
@@ -271,7 +219,7 @@ declare const enum AttributeMarker {
271
219
  *
272
220
  * For example, given the following HTML:
273
221
  *
274
- * ```
222
+ * ```html
275
223
  * <h1 attr="value" ngProjectAs="[title]">
276
224
  * ```
277
225
  *
@@ -287,14 +235,15 @@ declare const enum AttributeMarker {
287
235
  *
288
236
  * For example, given the following HTML:
289
237
  *
290
- * ```
238
+ * ```html
291
239
  * <div moo="car" foo="value" i18n-foo [bar]="binding" i18n-bar>
292
240
  * ```
293
241
  *
294
242
  * the generated code is:
295
243
  *
296
- * ```
244
+ * ```ts
297
245
  * var _c1 = ['moo', 'car', AttributeMarker.I18n, 'foo', 'bar'];
246
+ * ```
298
247
  */
299
248
  I18n = 6
300
249
  }
@@ -389,7 +338,7 @@ declare class BindingParser {
389
338
  parseInlineTemplateBinding(tplKey: string, tplValue: string, sourceSpan: ParseSourceSpan, absoluteValueOffset: number, targetMatchableAttrs: string[][], targetProps: ParsedProperty[], targetVars: ParsedVariable[], isIvyAst: boolean): void;
390
339
  /**
391
340
  * Parses the bindings in a microsyntax expression, e.g.
392
- * ```
341
+ * ```html
393
342
  * <tag *tplKey="let value1 = prop; let value2 = localVar">
394
343
  * ```
395
344
  *
@@ -977,7 +926,7 @@ export declare const enum DeclarationListEmitMode {
977
926
  /**
978
927
  * The list of declarations is emitted into the generated code as is.
979
928
  *
980
- * ```
929
+ * ```ts
981
930
  * directives: [MyDir],
982
931
  * ```
983
932
  */
@@ -986,7 +935,7 @@ export declare const enum DeclarationListEmitMode {
986
935
  * The list of declarations is emitted into the generated code wrapped inside a closure, which
987
936
  * is needed when at least one declaration is a forward reference.
988
937
  *
989
- * ```
938
+ * ```ts
990
939
  * directives: function () { return [MyDir, ForwardDir]; },
991
940
  * ```
992
941
  */
@@ -999,13 +948,13 @@ export declare const enum DeclarationListEmitMode {
999
948
  * any forward references within the list are resolved when the outer closure is invoked.
1000
949
  *
1001
950
  * Consider the case where the runtime has captured two declarations in two distinct values:
1002
- * ```
951
+ * ```ts
1003
952
  * const dirA = MyDir;
1004
953
  * const dirB = forwardRef(function() { return ForwardRef; });
1005
954
  * ```
1006
955
  *
1007
956
  * This mode would emit the declarations captured in `dirA` and `dirB` as follows:
1008
- * ```
957
+ * ```ts
1009
958
  * directives: function () { return [dirA, dirB].map(ng.resolveForwardRef); },
1010
959
  * ```
1011
960
  */
@@ -2475,7 +2424,7 @@ export declare class Parser {
2475
2424
  * parsing errors in case the given expression is invalid.
2476
2425
  *
2477
2426
  * For example,
2478
- * ```
2427
+ * ```html
2479
2428
  * <div *ngFor="let item of items">
2480
2429
  * ^ ^ absoluteValueOffset for `templateValue`
2481
2430
  * absoluteKeyOffset for `templateKey`
@@ -2486,7 +2435,7 @@ export declare class Parser {
2486
2435
  * 3. ngForOf -> items
2487
2436
  *
2488
2437
  * This is apparent from the de-sugared template:
2489
- * ```
2438
+ * ```html
2490
2439
  * <ng-template ngFor let-item [ngForOf]="items">
2491
2440
  * ```
2492
2441
  *
@@ -4444,7 +4393,7 @@ export declare class RecursiveAstVisitor implements AstVisitor {
4444
4393
  visitLiteralMap(ast: LiteralMap, context: any): any;
4445
4394
  visitLiteralPrimitive(ast: LiteralPrimitive, context: any): any;
4446
4395
  visitPrefixNot(ast: PrefixNot, context: any): any;
4447
- visitTypeofExpresion(ast: TypeofExpression, context: any): void;
4396
+ visitTypeofExpression(ast: TypeofExpression, context: any): void;
4448
4397
  visitNonNullAssert(ast: NonNullAssert, context: any): any;
4449
4398
  visitPropertyRead(ast: PropertyRead, context: any): any;
4450
4399
  visitPropertyWrite(ast: PropertyWrite, context: any): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler",
3
- "version": "19.1.0-rc.0",
3
+ "version": "19.1.1",
4
4
  "description": "Angular - the compiler library",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -11,7 +11,7 @@
11
11
  "tslib": "^2.3.0"
12
12
  },
13
13
  "peerDependencies": {
14
- "@angular/core": "19.1.0-rc.0"
14
+ "@angular/core": "19.1.1"
15
15
  },
16
16
  "peerDependenciesMeta": {
17
17
  "@angular/core": {