@angular/compiler 18.0.0-next.3 → 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/esm2022/src/render3/partial/class_metadata.mjs +2 -2
- package/esm2022/src/render3/partial/directive.mjs +1 -1
- package/esm2022/src/render3/partial/factory.mjs +1 -1
- package/esm2022/src/render3/partial/injectable.mjs +1 -1
- package/esm2022/src/render3/partial/injector.mjs +1 -1
- package/esm2022/src/render3/partial/ng_module.mjs +1 -1
- package/esm2022/src/render3/partial/pipe.mjs +1 -1
- package/esm2022/src/render3/r3_identifiers.mjs +1 -5
- package/esm2022/src/render3/view/template.mjs +5 -5
- package/esm2022/src/render3/view/util.mjs +7 -28
- package/esm2022/src/template/pipeline/ir/src/ops/update.mjs +2 -3
- package/esm2022/src/template/pipeline/src/ingest.mjs +3 -9
- package/esm2022/src/template/pipeline/src/instruction.mjs +4 -18
- package/esm2022/src/template/pipeline/src/phases/reify.mjs +2 -5
- package/esm2022/src/template/pipeline/src/phases/transform_two_way_binding_set.mjs +16 -61
- package/esm2022/src/template_parser/binding_parser.mjs +8 -2
- package/esm2022/src/version.mjs +1 -1
- package/fesm2022/compiler.mjs +50 -137
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +11 -5
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v18.0.0-next.
|
|
3
|
-
* (c) 2010-
|
|
2
|
+
* @license Angular v18.0.0-next.5
|
|
3
|
+
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -363,7 +363,8 @@ declare class BindingParser {
|
|
|
363
363
|
private _interpolationConfig;
|
|
364
364
|
private _schemaRegistry;
|
|
365
365
|
errors: ParseError[];
|
|
366
|
-
|
|
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 {
|
|
@@ -3894,7 +3901,6 @@ export declare class R3Identifiers {
|
|
|
3894
3901
|
static InputTransformsFeatureFeature: outputAst.ExternalReference;
|
|
3895
3902
|
static listener: outputAst.ExternalReference;
|
|
3896
3903
|
static getInheritedFactory: outputAst.ExternalReference;
|
|
3897
|
-
static InputFlags: outputAst.ExternalReference;
|
|
3898
3904
|
static sanitizeHtml: outputAst.ExternalReference;
|
|
3899
3905
|
static sanitizeStyle: outputAst.ExternalReference;
|
|
3900
3906
|
static sanitizeResourceUrl: outputAst.ExternalReference;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler",
|
|
3
|
-
"version": "18.0.0-next.
|
|
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.
|
|
14
|
+
"@angular/core": "18.0.0-next.5"
|
|
15
15
|
},
|
|
16
16
|
"peerDependenciesMeta": {
|
|
17
17
|
"@angular/core": {
|