@angular/compiler 18.0.0-next.4 → 18.0.0-next.5

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 v18.0.0-next.4
2
+ * @license Angular v18.0.0-next.5
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -363,7 +363,8 @@ declare class BindingParser {
363
363
  private _interpolationConfig;
364
364
  private _schemaRegistry;
365
365
  errors: ParseError[];
366
- constructor(_exprParser: Parser, _interpolationConfig: InterpolationConfig, _schemaRegistry: ElementSchemaRegistry, errors: ParseError[]);
366
+ private _allowInvalidAssignmentEvents;
367
+ constructor(_exprParser: Parser, _interpolationConfig: InterpolationConfig, _schemaRegistry: ElementSchemaRegistry, errors: ParseError[], _allowInvalidAssignmentEvents?: boolean);
367
368
  get interpolationConfig(): InterpolationConfig;
368
369
  createBoundHostProperties(properties: HostProperties, sourceSpan: ParseSourceSpan): ParsedProperty[] | null;
369
370
  createDirectiveHostEventAsts(hostListeners: HostListeners, sourceSpan: ParseSourceSpan): ParsedEvent[] | null;
@@ -1974,7 +1975,7 @@ declare function localizedString(metaBlock: I18nMeta, messageParts: LiteralPiece
1974
1975
  /**
1975
1976
  * Construct a `BindingParser` with a default configuration.
1976
1977
  */
1977
- export declare function makeBindingParser(interpolationConfig?: InterpolationConfig): BindingParser;
1978
+ export declare function makeBindingParser(interpolationConfig?: InterpolationConfig, allowInvalidAssignmentEvents?: boolean): BindingParser;
1978
1979
 
1979
1980
  export declare class MapType extends Type {
1980
1981
  valueType: Type | null;
@@ -2623,6 +2624,12 @@ export declare interface ParseTemplateOptions {
2623
2624
  collectCommentNodes?: boolean;
2624
2625
  /** Whether the @ block syntax is enabled. */
2625
2626
  enableBlockSyntax?: boolean;
2627
+ /**
2628
+ * Whether the parser should allow invalid two-way bindings.
2629
+ *
2630
+ * This option is only present to support an automated migration away from the invalid syntax.
2631
+ */
2632
+ allowInvalidAssignmentEvents?: boolean;
2626
2633
  }
2627
2634
 
2628
2635
  export declare class ParseTreeResult {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler",
3
- "version": "18.0.0-next.4",
3
+ "version": "18.0.0-next.5",
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": "18.0.0-next.4"
14
+ "@angular/core": "18.0.0-next.5"
15
15
  },
16
16
  "peerDependenciesMeta": {
17
17
  "@angular/core": {