@angular/compiler 21.1.0-rc.0 → 21.1.1

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.1.0-rc.0
2
+ * @license Angular v21.1.1
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -2268,9 +2268,6 @@ function isLongStringLiteral(expr) {
2268
2268
 
2269
2269
  const CORE = '@angular/core';
2270
2270
  class Identifiers {
2271
- static NEW_METHOD = 'factory';
2272
- static TRANSFORM_METHOD = 'transform';
2273
- static PATCH_DEPS = 'patchedDeps';
2274
2271
  static core = {
2275
2272
  name: null,
2276
2273
  moduleName: CORE
@@ -9858,7 +9855,7 @@ function specializeBindings(job) {
9858
9855
  OpList.replace(op, createAttributeOp(op.target, null, op.name, op.expression, op.securityContext, false, op.isStructuralTemplateAttribute, op.templateKind, op.i18nMessage, op.sourceSpan));
9859
9856
  } else if (job.kind === CompilationJobKind.Host) {
9860
9857
  OpList.replace(op, createDomPropertyOp(op.name, op.expression, op.bindingKind, op.i18nContext, op.securityContext, op.sourceSpan));
9861
- } else if (op.name === 'field' || op.name === 'formField') {
9858
+ } else if (op.name === 'formField') {
9862
9859
  OpList.replace(op, createControlOp(op));
9863
9860
  } else {
9864
9861
  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 +18980,8 @@ const UPDATE_ORDERING = [{
18983
18980
  test: nonInterpolationPropertyKindTest
18984
18981
  }, {
18985
18982
  test: kindWithInterpolationTest(OpKind.Attribute, false)
18983
+ }, {
18984
+ test: kindTest(OpKind.Control)
18986
18985
  }];
18987
18986
  const UPDATE_HOST_ORDERING = [{
18988
18987
  test: kindWithInterpolationTest(OpKind.DomProperty, true)
@@ -19001,7 +19000,7 @@ const UPDATE_HOST_ORDERING = [{
19001
19000
  }, {
19002
19001
  test: kindTest(OpKind.ClassProp)
19003
19002
  }];
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]);
19003
+ 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
19004
  function orderOps(job) {
19006
19005
  for (const unit of job.units) {
19007
19006
  orderWithin(unit.create, CREATE_ORDERING);
@@ -21928,7 +21927,7 @@ function ingestElement(unit, element) {
21928
21927
  ingestNodes(unit, element.children);
21929
21928
  const endOp = createElementEndOp(id, element.endSourceSpan ?? element.startSourceSpan);
21930
21929
  unit.create.push(endOp);
21931
- const fieldInput = element.inputs.find(input => (input.name === 'field' || input.name === 'formField') && input.type === BindingType.Property);
21930
+ const fieldInput = element.inputs.find(input => input.name === 'formField' && input.type === BindingType.Property);
21932
21931
  if (fieldInput) {
21933
21932
  unit.create.push(createControlCreateOp(fieldInput.sourceSpan));
21934
21933
  }
@@ -28203,7 +28202,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
28203
28202
  function compileDeclareClassMetadata(metadata) {
28204
28203
  const definitionMap = new DefinitionMap();
28205
28204
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
28206
- definitionMap.set('version', literal('21.1.0-rc.0'));
28205
+ definitionMap.set('version', literal('21.1.1'));
28207
28206
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28208
28207
  definitionMap.set('type', metadata.type);
28209
28208
  definitionMap.set('decorators', metadata.decorators);
@@ -28221,7 +28220,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
28221
28220
  callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
28222
28221
  callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
28223
28222
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
28224
- definitionMap.set('version', literal('21.1.0-rc.0'));
28223
+ definitionMap.set('version', literal('21.1.1'));
28225
28224
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28226
28225
  definitionMap.set('type', metadata.type);
28227
28226
  definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
@@ -28294,7 +28293,7 @@ function createDirectiveDefinitionMap(meta) {
28294
28293
  const definitionMap = new DefinitionMap();
28295
28294
  const minVersion = getMinimumVersionForPartialOutput(meta);
28296
28295
  definitionMap.set('minVersion', literal(minVersion));
28297
- definitionMap.set('version', literal('21.1.0-rc.0'));
28296
+ definitionMap.set('version', literal('21.1.1'));
28298
28297
  definitionMap.set('type', meta.type.value);
28299
28298
  if (meta.isStandalone !== undefined) {
28300
28299
  definitionMap.set('isStandalone', literal(meta.isStandalone));
@@ -28629,7 +28628,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
28629
28628
  function compileDeclareFactoryFunction(meta) {
28630
28629
  const definitionMap = new DefinitionMap();
28631
28630
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
28632
- definitionMap.set('version', literal('21.1.0-rc.0'));
28631
+ definitionMap.set('version', literal('21.1.1'));
28633
28632
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28634
28633
  definitionMap.set('type', meta.type.value);
28635
28634
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -28655,7 +28654,7 @@ function compileDeclareInjectableFromMetadata(meta) {
28655
28654
  function createInjectableDefinitionMap(meta) {
28656
28655
  const definitionMap = new DefinitionMap();
28657
28656
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
28658
- definitionMap.set('version', literal('21.1.0-rc.0'));
28657
+ definitionMap.set('version', literal('21.1.1'));
28659
28658
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28660
28659
  definitionMap.set('type', meta.type.value);
28661
28660
  if (meta.providedIn !== undefined) {
@@ -28696,7 +28695,7 @@ function compileDeclareInjectorFromMetadata(meta) {
28696
28695
  function createInjectorDefinitionMap(meta) {
28697
28696
  const definitionMap = new DefinitionMap();
28698
28697
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
28699
- definitionMap.set('version', literal('21.1.0-rc.0'));
28698
+ definitionMap.set('version', literal('21.1.1'));
28700
28699
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28701
28700
  definitionMap.set('type', meta.type.value);
28702
28701
  definitionMap.set('providers', meta.providers);
@@ -28723,7 +28722,7 @@ function createNgModuleDefinitionMap(meta) {
28723
28722
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
28724
28723
  }
28725
28724
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
28726
- definitionMap.set('version', literal('21.1.0-rc.0'));
28725
+ definitionMap.set('version', literal('21.1.1'));
28727
28726
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28728
28727
  definitionMap.set('type', meta.type.value);
28729
28728
  if (meta.bootstrap.length > 0) {
@@ -28761,7 +28760,7 @@ function compileDeclarePipeFromMetadata(meta) {
28761
28760
  function createPipeDefinitionMap(meta) {
28762
28761
  const definitionMap = new DefinitionMap();
28763
28762
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
28764
- definitionMap.set('version', literal('21.1.0-rc.0'));
28763
+ definitionMap.set('version', literal('21.1.1'));
28765
28764
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28766
28765
  definitionMap.set('type', meta.type.value);
28767
28766
  if (meta.isStandalone !== undefined) {
@@ -28835,7 +28834,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
28835
28834
  return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);
28836
28835
  }
28837
28836
 
28838
- const VERSION = new Version('21.1.0-rc.0');
28837
+ const VERSION = new Version('21.1.1');
28839
28838
 
28840
28839
  publishFacade(_global);
28841
28840