@angular/compiler 19.0.0 → 19.0.2
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/fesm2022/compiler.mjs +58 -39
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +44 -17
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.0.
|
|
2
|
+
* @license Angular v19.0.2
|
|
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
|
-
|
|
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;
|
|
@@ -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
|
|
2029
|
+
export declare function makeBindingParser(interpolationConfig?: InterpolationConfig): BindingParser;
|
|
2031
2030
|
|
|
2032
2031
|
export declare class MapType extends Type {
|
|
2033
2032
|
valueType: Type | null;
|
|
@@ -2400,10 +2399,29 @@ export declare class ParsedVariable {
|
|
|
2400
2399
|
}
|
|
2401
2400
|
|
|
2402
2401
|
export declare class ParseError {
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2402
|
+
/** Location of the error. */
|
|
2403
|
+
readonly span: ParseSourceSpan;
|
|
2404
|
+
/** Error message. */
|
|
2405
|
+
readonly msg: string;
|
|
2406
|
+
/** Severity level of the error. */
|
|
2407
|
+
readonly level: ParseErrorLevel;
|
|
2408
|
+
/**
|
|
2409
|
+
* Error that caused the error to be surfaced. For example, an error in a sub-expression that
|
|
2410
|
+
* couldn't be parsed. Not guaranteed to be defined, but can be used to provide more context.
|
|
2411
|
+
*/
|
|
2412
|
+
readonly relatedError?: unknown;
|
|
2413
|
+
constructor(
|
|
2414
|
+
/** Location of the error. */
|
|
2415
|
+
span: ParseSourceSpan,
|
|
2416
|
+
/** Error message. */
|
|
2417
|
+
msg: string,
|
|
2418
|
+
/** Severity level of the error. */
|
|
2419
|
+
level?: ParseErrorLevel,
|
|
2420
|
+
/**
|
|
2421
|
+
* Error that caused the error to be surfaced. For example, an error in a sub-expression that
|
|
2422
|
+
* couldn't be parsed. Not guaranteed to be defined, but can be used to provide more context.
|
|
2423
|
+
*/
|
|
2424
|
+
relatedError?: unknown);
|
|
2407
2425
|
contextualMessage(): string;
|
|
2408
2426
|
toString(): string;
|
|
2409
2427
|
}
|
|
@@ -2683,12 +2701,6 @@ export declare interface ParseTemplateOptions {
|
|
|
2683
2701
|
enableBlockSyntax?: boolean;
|
|
2684
2702
|
/** Whether the `@let` syntax is enabled. */
|
|
2685
2703
|
enableLetSyntax?: boolean;
|
|
2686
|
-
/**
|
|
2687
|
-
* Whether the parser should allow invalid two-way bindings.
|
|
2688
|
-
*
|
|
2689
|
-
* This option is only present to support an automated migration away from the invalid syntax.
|
|
2690
|
-
*/
|
|
2691
|
-
allowInvalidAssignmentEvents?: boolean;
|
|
2692
2704
|
}
|
|
2693
2705
|
|
|
2694
2706
|
export declare class ParseTreeResult {
|
|
@@ -3725,14 +3737,29 @@ export declare interface R3HmrMetadata {
|
|
|
3725
3737
|
className: string;
|
|
3726
3738
|
/** File path of the component class. */
|
|
3727
3739
|
filePath: string;
|
|
3728
|
-
/**
|
|
3729
|
-
|
|
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[];
|
|
3730
3746
|
/**
|
|
3731
3747
|
* HMR update functions cannot contain imports so any locals the generated code depends on
|
|
3732
3748
|
* (e.g. references to imports within the same file or imported symbols) have to be passed in
|
|
3733
3749
|
* as function parameters. This array contains the names of those local symbols.
|
|
3734
3750
|
*/
|
|
3735
|
-
|
|
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;
|
|
3736
3763
|
}
|
|
3737
3764
|
|
|
3738
3765
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.2",
|
|
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.
|
|
14
|
+
"@angular/core": "19.0.2"
|
|
15
15
|
},
|
|
16
16
|
"peerDependenciesMeta": {
|
|
17
17
|
"@angular/core": {
|