@angular/compiler 19.0.1 → 19.0.3

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.1
2
+ * @license Angular v19.0.3
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -363,8 +363,7 @@ declare class BindingParser {
363
363
  private _interpolationConfig;
364
364
  private _schemaRegistry;
365
365
  errors: ParseError[];
366
- private _allowInvalidAssignmentEvents;
367
- constructor(_exprParser: Parser, _interpolationConfig: InterpolationConfig, _schemaRegistry: ElementSchemaRegistry, errors: ParseError[], _allowInvalidAssignmentEvents?: boolean);
366
+ constructor(_exprParser: Parser, _interpolationConfig: InterpolationConfig, _schemaRegistry: ElementSchemaRegistry, errors: ParseError[]);
368
367
  get interpolationConfig(): InterpolationConfig;
369
368
  createBoundHostProperties(properties: HostProperties, sourceSpan: ParseSourceSpan): ParsedProperty[] | null;
370
369
  createDirectiveHostEventAsts(hostListeners: HostListeners, sourceSpan: ParseSourceSpan): ParsedEvent[] | null;
@@ -678,7 +677,7 @@ export declare type CompileClassMetadataFn = (metadata: R3ClassMetadata) => outp
678
677
  * loads dependencies from `@defer` blocks.
679
678
  *
680
679
  * Generates a call like this:
681
- * ```
680
+ * ```ts
682
681
  * setClassMetadataAsync(type, () => [
683
682
  * import('./cmp-a').then(m => m.CmpA);
684
683
  * import('./cmp-b').then(m => m.CmpB);
@@ -2027,7 +2026,7 @@ declare function localizedString(metaBlock: I18nMeta, messageParts: LiteralPiece
2027
2026
  /**
2028
2027
  * Construct a `BindingParser` with a default configuration.
2029
2028
  */
2030
- export declare function makeBindingParser(interpolationConfig?: InterpolationConfig, allowInvalidAssignmentEvents?: boolean): BindingParser;
2029
+ export declare function makeBindingParser(interpolationConfig?: InterpolationConfig): BindingParser;
2031
2030
 
2032
2031
  export declare class MapType extends Type {
2033
2032
  valueType: Type | null;
@@ -2702,12 +2701,6 @@ export declare interface ParseTemplateOptions {
2702
2701
  enableBlockSyntax?: boolean;
2703
2702
  /** Whether the `@let` syntax is enabled. */
2704
2703
  enableLetSyntax?: boolean;
2705
- /**
2706
- * Whether the parser should allow invalid two-way bindings.
2707
- *
2708
- * This option is only present to support an automated migration away from the invalid syntax.
2709
- */
2710
- allowInvalidAssignmentEvents?: boolean;
2711
2704
  }
2712
2705
 
2713
2706
  export declare class ParseTreeResult {
@@ -3744,14 +3737,29 @@ export declare interface R3HmrMetadata {
3744
3737
  className: string;
3745
3738
  /** File path of the component class. */
3746
3739
  filePath: string;
3747
- /** Name under which `@angular/core` should be referred to in the compiled HMR code. */
3748
- coreName: string;
3740
+ /**
3741
+ * When the compiler generates new imports, they get produced as namespace imports
3742
+ * (e.g. import * as i0 from '@angular/core'). These namespaces have to be captured and passed
3743
+ * along to the update callback.
3744
+ */
3745
+ namespaceDependencies: R3HmrNamespaceDependency[];
3749
3746
  /**
3750
3747
  * HMR update functions cannot contain imports so any locals the generated code depends on
3751
3748
  * (e.g. references to imports within the same file or imported symbols) have to be passed in
3752
3749
  * as function parameters. This array contains the names of those local symbols.
3753
3750
  */
3754
- locals: string[];
3751
+ localDependencies: string[];
3752
+ }
3753
+
3754
+ /** HMR dependency on a namespace import. */
3755
+ export declare interface R3HmrNamespaceDependency {
3756
+ /** Module name of the import. */
3757
+ moduleName: string;
3758
+ /**
3759
+ * Name under which to refer to the namespace inside
3760
+ * HMR-related code. Must be a valid JS identifier.
3761
+ */
3762
+ assignedName: string;
3755
3763
  }
3756
3764
 
3757
3765
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler",
3
- "version": "19.0.1",
3
+ "version": "19.0.3",
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.1"
14
+ "@angular/core": "19.0.3"
15
15
  },
16
16
  "peerDependenciesMeta": {
17
17
  "@angular/core": {