@angular/compiler 21.0.2 → 21.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.0.2
2
+ * @license Angular v21.0.3
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -21800,6 +21800,10 @@ function ingestElement(unit, element) {
21800
21800
  ingestNodes(unit, element.children);
21801
21801
  const endOp = createElementEndOp(id, element.endSourceSpan ?? element.startSourceSpan);
21802
21802
  unit.create.push(endOp);
21803
+ const fieldInput = element.inputs.find(input => input.name === 'field' && input.type === BindingType.Property);
21804
+ if (fieldInput) {
21805
+ unit.create.push(createControlCreateOp(fieldInput.sourceSpan));
21806
+ }
21803
21807
  if (i18nBlockId !== null) {
21804
21808
  OpList.insertBefore(createI18nEndOp(i18nBlockId, element.endSourceSpan ?? element.startSourceSpan), endOp);
21805
21809
  }
@@ -22276,9 +22280,6 @@ function ingestElementBindings(unit, op, element) {
22276
22280
  console.error(`On component ${unit.job.componentName}, the binding ${input.name} is both an i18n attribute and a property. You may want to remove the property binding. This will become a compilation error in future versions of Angular.`);
22277
22281
  }
22278
22282
  bindings.push(createBindingOp(op.xref, BINDING_KINDS.get(input.type), input.name, convertAstWithInterpolation(unit.job, astOf(input.value), input.i18n), input.unit, input.securityContext, false, false, null, asMessage(input.i18n) ?? null, input.sourceSpan));
22279
- if (input.type === BindingType.Property && input.name === 'field') {
22280
- unit.create.push(createControlCreateOp(input.sourceSpan));
22281
- }
22282
22283
  }
22283
22284
  unit.create.push(bindings.filter(b => b?.kind === OpKind.ExtractedAttribute));
22284
22285
  unit.update.push(bindings.filter(b => b?.kind === OpKind.Binding));
@@ -28023,7 +28024,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
28023
28024
  function compileDeclareClassMetadata(metadata) {
28024
28025
  const definitionMap = new DefinitionMap();
28025
28026
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
28026
- definitionMap.set('version', literal('21.0.2'));
28027
+ definitionMap.set('version', literal('21.0.3'));
28027
28028
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28028
28029
  definitionMap.set('type', metadata.type);
28029
28030
  definitionMap.set('decorators', metadata.decorators);
@@ -28041,7 +28042,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
28041
28042
  callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
28042
28043
  callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
28043
28044
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
28044
- definitionMap.set('version', literal('21.0.2'));
28045
+ definitionMap.set('version', literal('21.0.3'));
28045
28046
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28046
28047
  definitionMap.set('type', metadata.type);
28047
28048
  definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
@@ -28114,7 +28115,7 @@ function createDirectiveDefinitionMap(meta) {
28114
28115
  const definitionMap = new DefinitionMap();
28115
28116
  const minVersion = getMinimumVersionForPartialOutput(meta);
28116
28117
  definitionMap.set('minVersion', literal(minVersion));
28117
- definitionMap.set('version', literal('21.0.2'));
28118
+ definitionMap.set('version', literal('21.0.3'));
28118
28119
  definitionMap.set('type', meta.type.value);
28119
28120
  if (meta.isStandalone !== undefined) {
28120
28121
  definitionMap.set('isStandalone', literal(meta.isStandalone));
@@ -28446,7 +28447,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
28446
28447
  function compileDeclareFactoryFunction(meta) {
28447
28448
  const definitionMap = new DefinitionMap();
28448
28449
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
28449
- definitionMap.set('version', literal('21.0.2'));
28450
+ definitionMap.set('version', literal('21.0.3'));
28450
28451
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28451
28452
  definitionMap.set('type', meta.type.value);
28452
28453
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -28472,7 +28473,7 @@ function compileDeclareInjectableFromMetadata(meta) {
28472
28473
  function createInjectableDefinitionMap(meta) {
28473
28474
  const definitionMap = new DefinitionMap();
28474
28475
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
28475
- definitionMap.set('version', literal('21.0.2'));
28476
+ definitionMap.set('version', literal('21.0.3'));
28476
28477
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28477
28478
  definitionMap.set('type', meta.type.value);
28478
28479
  if (meta.providedIn !== undefined) {
@@ -28513,7 +28514,7 @@ function compileDeclareInjectorFromMetadata(meta) {
28513
28514
  function createInjectorDefinitionMap(meta) {
28514
28515
  const definitionMap = new DefinitionMap();
28515
28516
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
28516
- definitionMap.set('version', literal('21.0.2'));
28517
+ definitionMap.set('version', literal('21.0.3'));
28517
28518
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28518
28519
  definitionMap.set('type', meta.type.value);
28519
28520
  definitionMap.set('providers', meta.providers);
@@ -28540,7 +28541,7 @@ function createNgModuleDefinitionMap(meta) {
28540
28541
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
28541
28542
  }
28542
28543
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
28543
- definitionMap.set('version', literal('21.0.2'));
28544
+ definitionMap.set('version', literal('21.0.3'));
28544
28545
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28545
28546
  definitionMap.set('type', meta.type.value);
28546
28547
  if (meta.bootstrap.length > 0) {
@@ -28578,7 +28579,7 @@ function compileDeclarePipeFromMetadata(meta) {
28578
28579
  function createPipeDefinitionMap(meta) {
28579
28580
  const definitionMap = new DefinitionMap();
28580
28581
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
28581
- definitionMap.set('version', literal('21.0.2'));
28582
+ definitionMap.set('version', literal('21.0.3'));
28582
28583
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28583
28584
  definitionMap.set('type', meta.type.value);
28584
28585
  if (meta.isStandalone !== undefined) {
@@ -28652,7 +28653,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
28652
28653
  return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);
28653
28654
  }
28654
28655
 
28655
- const VERSION = new Version('21.0.2');
28656
+ const VERSION = new Version('21.0.3');
28656
28657
 
28657
28658
  publishFacade(_global);
28658
28659