@angular/compiler 21.1.0-rc.0 → 21.1.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/fesm2022/compiler.mjs +15 -13
- package/fesm2022/compiler.mjs.map +1 -1
- package/package.json +1 -1
- package/types/compiler.d.ts +8 -6
package/fesm2022/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.1.0
|
|
2
|
+
* @license Angular v21.1.0
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -9858,7 +9858,7 @@ function specializeBindings(job) {
|
|
|
9858
9858
|
OpList.replace(op, createAttributeOp(op.target, null, op.name, op.expression, op.securityContext, false, op.isStructuralTemplateAttribute, op.templateKind, op.i18nMessage, op.sourceSpan));
|
|
9859
9859
|
} else if (job.kind === CompilationJobKind.Host) {
|
|
9860
9860
|
OpList.replace(op, createDomPropertyOp(op.name, op.expression, op.bindingKind, op.i18nContext, op.securityContext, op.sourceSpan));
|
|
9861
|
-
} else if (op.name === '
|
|
9861
|
+
} else if (op.name === 'formField') {
|
|
9862
9862
|
OpList.replace(op, createControlOp(op));
|
|
9863
9863
|
} else {
|
|
9864
9864
|
OpList.replace(op, createPropertyOp(op.target, op.name, op.expression, op.bindingKind, op.securityContext, op.isStructuralTemplateAttribute, op.templateKind, op.i18nContext, op.i18nMessage, op.sourceSpan));
|
|
@@ -18983,6 +18983,8 @@ const UPDATE_ORDERING = [{
|
|
|
18983
18983
|
test: nonInterpolationPropertyKindTest
|
|
18984
18984
|
}, {
|
|
18985
18985
|
test: kindWithInterpolationTest(OpKind.Attribute, false)
|
|
18986
|
+
}, {
|
|
18987
|
+
test: kindTest(OpKind.Control)
|
|
18986
18988
|
}];
|
|
18987
18989
|
const UPDATE_HOST_ORDERING = [{
|
|
18988
18990
|
test: kindWithInterpolationTest(OpKind.DomProperty, true)
|
|
@@ -19001,7 +19003,7 @@ const UPDATE_HOST_ORDERING = [{
|
|
|
19001
19003
|
}, {
|
|
19002
19004
|
test: kindTest(OpKind.ClassProp)
|
|
19003
19005
|
}];
|
|
19004
|
-
const handledOpKinds = new Set([OpKind.Listener, OpKind.TwoWayListener, OpKind.AnimationListener, OpKind.StyleMap, OpKind.ClassMap, OpKind.StyleProp, OpKind.ClassProp, OpKind.Property, OpKind.TwoWayProperty, OpKind.DomProperty, OpKind.Attribute, OpKind.Animation]);
|
|
19006
|
+
const handledOpKinds = new Set([OpKind.Listener, OpKind.TwoWayListener, OpKind.AnimationListener, OpKind.StyleMap, OpKind.ClassMap, OpKind.StyleProp, OpKind.ClassProp, OpKind.Property, OpKind.TwoWayProperty, OpKind.DomProperty, OpKind.Attribute, OpKind.Animation, OpKind.Control]);
|
|
19005
19007
|
function orderOps(job) {
|
|
19006
19008
|
for (const unit of job.units) {
|
|
19007
19009
|
orderWithin(unit.create, CREATE_ORDERING);
|
|
@@ -21928,7 +21930,7 @@ function ingestElement(unit, element) {
|
|
|
21928
21930
|
ingestNodes(unit, element.children);
|
|
21929
21931
|
const endOp = createElementEndOp(id, element.endSourceSpan ?? element.startSourceSpan);
|
|
21930
21932
|
unit.create.push(endOp);
|
|
21931
|
-
const fieldInput = element.inputs.find(input =>
|
|
21933
|
+
const fieldInput = element.inputs.find(input => input.name === 'formField' && input.type === BindingType.Property);
|
|
21932
21934
|
if (fieldInput) {
|
|
21933
21935
|
unit.create.push(createControlCreateOp(fieldInput.sourceSpan));
|
|
21934
21936
|
}
|
|
@@ -28203,7 +28205,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
28203
28205
|
function compileDeclareClassMetadata(metadata) {
|
|
28204
28206
|
const definitionMap = new DefinitionMap();
|
|
28205
28207
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
28206
|
-
definitionMap.set('version', literal('21.1.0
|
|
28208
|
+
definitionMap.set('version', literal('21.1.0'));
|
|
28207
28209
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28208
28210
|
definitionMap.set('type', metadata.type);
|
|
28209
28211
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -28221,7 +28223,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
28221
28223
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
|
|
28222
28224
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
|
|
28223
28225
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
28224
|
-
definitionMap.set('version', literal('21.1.0
|
|
28226
|
+
definitionMap.set('version', literal('21.1.0'));
|
|
28225
28227
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28226
28228
|
definitionMap.set('type', metadata.type);
|
|
28227
28229
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -28294,7 +28296,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
28294
28296
|
const definitionMap = new DefinitionMap();
|
|
28295
28297
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
28296
28298
|
definitionMap.set('minVersion', literal(minVersion));
|
|
28297
|
-
definitionMap.set('version', literal('21.1.0
|
|
28299
|
+
definitionMap.set('version', literal('21.1.0'));
|
|
28298
28300
|
definitionMap.set('type', meta.type.value);
|
|
28299
28301
|
if (meta.isStandalone !== undefined) {
|
|
28300
28302
|
definitionMap.set('isStandalone', literal(meta.isStandalone));
|
|
@@ -28629,7 +28631,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
28629
28631
|
function compileDeclareFactoryFunction(meta) {
|
|
28630
28632
|
const definitionMap = new DefinitionMap();
|
|
28631
28633
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
28632
|
-
definitionMap.set('version', literal('21.1.0
|
|
28634
|
+
definitionMap.set('version', literal('21.1.0'));
|
|
28633
28635
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28634
28636
|
definitionMap.set('type', meta.type.value);
|
|
28635
28637
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -28655,7 +28657,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
28655
28657
|
function createInjectableDefinitionMap(meta) {
|
|
28656
28658
|
const definitionMap = new DefinitionMap();
|
|
28657
28659
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
28658
|
-
definitionMap.set('version', literal('21.1.0
|
|
28660
|
+
definitionMap.set('version', literal('21.1.0'));
|
|
28659
28661
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28660
28662
|
definitionMap.set('type', meta.type.value);
|
|
28661
28663
|
if (meta.providedIn !== undefined) {
|
|
@@ -28696,7 +28698,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
28696
28698
|
function createInjectorDefinitionMap(meta) {
|
|
28697
28699
|
const definitionMap = new DefinitionMap();
|
|
28698
28700
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
28699
|
-
definitionMap.set('version', literal('21.1.0
|
|
28701
|
+
definitionMap.set('version', literal('21.1.0'));
|
|
28700
28702
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28701
28703
|
definitionMap.set('type', meta.type.value);
|
|
28702
28704
|
definitionMap.set('providers', meta.providers);
|
|
@@ -28723,7 +28725,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
28723
28725
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
28724
28726
|
}
|
|
28725
28727
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
28726
|
-
definitionMap.set('version', literal('21.1.0
|
|
28728
|
+
definitionMap.set('version', literal('21.1.0'));
|
|
28727
28729
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28728
28730
|
definitionMap.set('type', meta.type.value);
|
|
28729
28731
|
if (meta.bootstrap.length > 0) {
|
|
@@ -28761,7 +28763,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
28761
28763
|
function createPipeDefinitionMap(meta) {
|
|
28762
28764
|
const definitionMap = new DefinitionMap();
|
|
28763
28765
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
28764
|
-
definitionMap.set('version', literal('21.1.0
|
|
28766
|
+
definitionMap.set('version', literal('21.1.0'));
|
|
28765
28767
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28766
28768
|
definitionMap.set('type', meta.type.value);
|
|
28767
28769
|
if (meta.isStandalone !== undefined) {
|
|
@@ -28835,7 +28837,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
28835
28837
|
return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);
|
|
28836
28838
|
}
|
|
28837
28839
|
|
|
28838
|
-
const VERSION = new Version('21.1.0
|
|
28840
|
+
const VERSION = new Version('21.1.0');
|
|
28839
28841
|
|
|
28840
28842
|
publishFacade(_global);
|
|
28841
28843
|
|