@angular/compiler 19.0.0 → 19.1.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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0
2
+ * @license Angular v19.1.0-next.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1480,8 +1480,8 @@ declare const FUNCTION_TYPE: BuiltinType;
1480
1480
  export declare class FunctionExpr extends Expression {
1481
1481
  params: FnParam[];
1482
1482
  statements: Statement[];
1483
- name?: (string | null) | undefined;
1484
- constructor(params: FnParam[], statements: Statement[], type?: Type | null, sourceSpan?: ParseSourceSpan | null, name?: (string | null) | undefined);
1483
+ name?: string | null | undefined;
1484
+ constructor(params: FnParam[], statements: Statement[], type?: Type | null, sourceSpan?: ParseSourceSpan | null, name?: string | null | undefined);
1485
1485
  isEquivalent(e: Expression | Statement): boolean;
1486
1486
  isConstant(): boolean;
1487
1487
  visitExpression(visitor: ExpressionVisitor, context: any): any;
@@ -2400,10 +2400,29 @@ export declare class ParsedVariable {
2400
2400
  }
2401
2401
 
2402
2402
  export declare class ParseError {
2403
- span: ParseSourceSpan;
2404
- msg: string;
2405
- level: ParseErrorLevel;
2406
- constructor(span: ParseSourceSpan, msg: string, level?: ParseErrorLevel);
2403
+ /** Location of the error. */
2404
+ readonly span: ParseSourceSpan;
2405
+ /** Error message. */
2406
+ readonly msg: string;
2407
+ /** Severity level of the error. */
2408
+ readonly level: ParseErrorLevel;
2409
+ /**
2410
+ * Error that caused the error to be surfaced. For example, an error in a sub-expression that
2411
+ * couldn't be parsed. Not guaranteed to be defined, but can be used to provide more context.
2412
+ */
2413
+ readonly relatedError?: unknown | undefined;
2414
+ constructor(
2415
+ /** Location of the error. */
2416
+ span: ParseSourceSpan,
2417
+ /** Error message. */
2418
+ msg: string,
2419
+ /** Severity level of the error. */
2420
+ level?: ParseErrorLevel,
2421
+ /**
2422
+ * Error that caused the error to be surfaced. For example, an error in a sub-expression that
2423
+ * couldn't be parsed. Not guaranteed to be defined, but can be used to provide more context.
2424
+ */
2425
+ relatedError?: unknown | undefined);
2407
2426
  contextualMessage(): string;
2408
2427
  toString(): string;
2409
2428
  }
@@ -2521,9 +2540,9 @@ declare class Parser_2 {
2521
2540
  export declare class ParserError {
2522
2541
  input: string;
2523
2542
  errLocation: string;
2524
- ctxLocation?: any;
2543
+ ctxLocation?: any | undefined;
2525
2544
  message: string;
2526
- constructor(message: string, input: string, errLocation: string, ctxLocation?: any);
2545
+ constructor(message: string, input: string, errLocation: string, ctxLocation?: any | undefined);
2527
2546
  }
2528
2547
 
2529
2548
  declare function parseSelectorToR3Selector(selector: string | null): R3CssSelectorList;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler",
3
- "version": "19.0.0",
3
+ "version": "19.1.0-next.0",
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.0.0"
14
+ "@angular/core": "19.1.0-next.0"
15
15
  },
16
16
  "peerDependenciesMeta": {
17
17
  "@angular/core": {