@angular/compiler 21.0.8 → 21.0.9

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.0.8
2
+ * @license Angular v21.0.9
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -9803,7 +9803,7 @@ function specializeBindings(job) {
9803
9803
  OpList.replace(op, createAttributeOp(op.target, null, op.name, op.expression, op.securityContext, false, op.isStructuralTemplateAttribute, op.templateKind, op.i18nMessage, op.sourceSpan));
9804
9804
  } else if (job.kind === CompilationJobKind.Host) {
9805
9805
  OpList.replace(op, createDomPropertyOp(op.name, op.expression, op.bindingKind, op.i18nContext, op.securityContext, op.sourceSpan));
9806
- } else if (op.name === 'field' || op.name === 'formField') {
9806
+ } else if (op.name === 'formField') {
9807
9807
  OpList.replace(op, createControlOp(op));
9808
9808
  } else {
9809
9809
  OpList.replace(op, createPropertyOp(op.target, op.name, op.expression, op.bindingKind, op.securityContext, op.isStructuralTemplateAttribute, op.templateKind, op.i18nContext, op.i18nMessage, op.sourceSpan));
@@ -18879,6 +18879,8 @@ const UPDATE_ORDERING = [{
18879
18879
  test: nonInterpolationPropertyKindTest
18880
18880
  }, {
18881
18881
  test: kindWithInterpolationTest(OpKind.Attribute, false)
18882
+ }, {
18883
+ test: kindTest(OpKind.Control)
18882
18884
  }];
18883
18885
  const UPDATE_HOST_ORDERING = [{
18884
18886
  test: kindWithInterpolationTest(OpKind.DomProperty, true)
@@ -18897,7 +18899,7 @@ const UPDATE_HOST_ORDERING = [{
18897
18899
  }, {
18898
18900
  test: kindTest(OpKind.ClassProp)
18899
18901
  }];
18900
- 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]);
18902
+ 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]);
18901
18903
  function orderOps(job) {
18902
18904
  for (const unit of job.units) {
18903
18905
  orderWithin(unit.create, CREATE_ORDERING);
@@ -21804,7 +21806,7 @@ function ingestElement(unit, element) {
21804
21806
  ingestNodes(unit, element.children);
21805
21807
  const endOp = createElementEndOp(id, element.endSourceSpan ?? element.startSourceSpan);
21806
21808
  unit.create.push(endOp);
21807
- const fieldInput = element.inputs.find(input => (input.name === 'field' || input.name === 'formField') && input.type === BindingType.Property);
21809
+ const fieldInput = element.inputs.find(input => input.name === 'formField' && input.type === BindingType.Property);
21808
21810
  if (fieldInput) {
21809
21811
  unit.create.push(createControlCreateOp(fieldInput.sourceSpan));
21810
21812
  }
@@ -28049,7 +28051,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
28049
28051
  function compileDeclareClassMetadata(metadata) {
28050
28052
  const definitionMap = new DefinitionMap();
28051
28053
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
28052
- definitionMap.set('version', literal('21.0.8'));
28054
+ definitionMap.set('version', literal('21.0.9'));
28053
28055
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28054
28056
  definitionMap.set('type', metadata.type);
28055
28057
  definitionMap.set('decorators', metadata.decorators);
@@ -28067,7 +28069,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
28067
28069
  callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
28068
28070
  callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
28069
28071
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
28070
- definitionMap.set('version', literal('21.0.8'));
28072
+ definitionMap.set('version', literal('21.0.9'));
28071
28073
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28072
28074
  definitionMap.set('type', metadata.type);
28073
28075
  definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
@@ -28140,7 +28142,7 @@ function createDirectiveDefinitionMap(meta) {
28140
28142
  const definitionMap = new DefinitionMap();
28141
28143
  const minVersion = getMinimumVersionForPartialOutput(meta);
28142
28144
  definitionMap.set('minVersion', literal(minVersion));
28143
- definitionMap.set('version', literal('21.0.8'));
28145
+ definitionMap.set('version', literal('21.0.9'));
28144
28146
  definitionMap.set('type', meta.type.value);
28145
28147
  if (meta.isStandalone !== undefined) {
28146
28148
  definitionMap.set('isStandalone', literal(meta.isStandalone));
@@ -28472,7 +28474,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
28472
28474
  function compileDeclareFactoryFunction(meta) {
28473
28475
  const definitionMap = new DefinitionMap();
28474
28476
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
28475
- definitionMap.set('version', literal('21.0.8'));
28477
+ definitionMap.set('version', literal('21.0.9'));
28476
28478
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28477
28479
  definitionMap.set('type', meta.type.value);
28478
28480
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -28498,7 +28500,7 @@ function compileDeclareInjectableFromMetadata(meta) {
28498
28500
  function createInjectableDefinitionMap(meta) {
28499
28501
  const definitionMap = new DefinitionMap();
28500
28502
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
28501
- definitionMap.set('version', literal('21.0.8'));
28503
+ definitionMap.set('version', literal('21.0.9'));
28502
28504
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28503
28505
  definitionMap.set('type', meta.type.value);
28504
28506
  if (meta.providedIn !== undefined) {
@@ -28539,7 +28541,7 @@ function compileDeclareInjectorFromMetadata(meta) {
28539
28541
  function createInjectorDefinitionMap(meta) {
28540
28542
  const definitionMap = new DefinitionMap();
28541
28543
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
28542
- definitionMap.set('version', literal('21.0.8'));
28544
+ definitionMap.set('version', literal('21.0.9'));
28543
28545
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28544
28546
  definitionMap.set('type', meta.type.value);
28545
28547
  definitionMap.set('providers', meta.providers);
@@ -28566,7 +28568,7 @@ function createNgModuleDefinitionMap(meta) {
28566
28568
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
28567
28569
  }
28568
28570
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
28569
- definitionMap.set('version', literal('21.0.8'));
28571
+ definitionMap.set('version', literal('21.0.9'));
28570
28572
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28571
28573
  definitionMap.set('type', meta.type.value);
28572
28574
  if (meta.bootstrap.length > 0) {
@@ -28604,7 +28606,7 @@ function compileDeclarePipeFromMetadata(meta) {
28604
28606
  function createPipeDefinitionMap(meta) {
28605
28607
  const definitionMap = new DefinitionMap();
28606
28608
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
28607
- definitionMap.set('version', literal('21.0.8'));
28609
+ definitionMap.set('version', literal('21.0.9'));
28608
28610
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28609
28611
  definitionMap.set('type', meta.type.value);
28610
28612
  if (meta.isStandalone !== undefined) {
@@ -28678,7 +28680,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
28678
28680
  return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);
28679
28681
  }
28680
28682
 
28681
- const VERSION = new Version('21.0.8');
28683
+ const VERSION = new Version('21.0.9');
28682
28684
 
28683
28685
  publishFacade(_global);
28684
28686