@angular/compiler 20.2.1 → 20.2.2

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 v20.2.1
2
+ * @license Angular v20.2.2
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -29930,6 +29930,12 @@ class HtmlAstToIvyAst {
29930
29930
  }
29931
29931
  return directives;
29932
29932
  }
29933
+ filterAnimationAttributes(attributes) {
29934
+ return attributes.filter((a) => !a.name.startsWith('animate.'));
29935
+ }
29936
+ filterAnimationInputs(attributes) {
29937
+ return attributes.filter((a) => a.type !== BindingType.Animation);
29938
+ }
29933
29939
  wrapInTemplate(node, templateProperties, templateVariables, i18nAttrsMeta, isTemplateElement, isI18nRootElement) {
29934
29940
  // We need to hoist the attributes of the node to the template for content projection purposes.
29935
29941
  const attrs = this.categorizePropertyAttributes('ng-template', templateProperties, i18nAttrsMeta);
@@ -29942,8 +29948,8 @@ class HtmlAstToIvyAst {
29942
29948
  outputs: [],
29943
29949
  };
29944
29950
  if (node instanceof Element$1 || node instanceof Component$1) {
29945
- hoistedAttrs.attributes.push(...node.attributes);
29946
- hoistedAttrs.inputs.push(...node.inputs);
29951
+ hoistedAttrs.attributes.push(...this.filterAnimationAttributes(node.attributes));
29952
+ hoistedAttrs.inputs.push(...this.filterAnimationInputs(node.inputs));
29947
29953
  hoistedAttrs.outputs.push(...node.outputs);
29948
29954
  }
29949
29955
  // For <ng-template>s with structural directives on them, avoid passing i18n information to
@@ -34317,7 +34323,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
34317
34323
  function compileDeclareClassMetadata(metadata) {
34318
34324
  const definitionMap = new DefinitionMap();
34319
34325
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
34320
- definitionMap.set('version', literal('20.2.1'));
34326
+ definitionMap.set('version', literal('20.2.2'));
34321
34327
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34322
34328
  definitionMap.set('type', metadata.type);
34323
34329
  definitionMap.set('decorators', metadata.decorators);
@@ -34335,7 +34341,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
34335
34341
  callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
34336
34342
  callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
34337
34343
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
34338
- definitionMap.set('version', literal('20.2.1'));
34344
+ definitionMap.set('version', literal('20.2.2'));
34339
34345
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34340
34346
  definitionMap.set('type', metadata.type);
34341
34347
  definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
@@ -34430,7 +34436,7 @@ function createDirectiveDefinitionMap(meta) {
34430
34436
  const definitionMap = new DefinitionMap();
34431
34437
  const minVersion = getMinimumVersionForPartialOutput(meta);
34432
34438
  definitionMap.set('minVersion', literal(minVersion));
34433
- definitionMap.set('version', literal('20.2.1'));
34439
+ definitionMap.set('version', literal('20.2.2'));
34434
34440
  // e.g. `type: MyDirective`
34435
34441
  definitionMap.set('type', meta.type.value);
34436
34442
  if (meta.isStandalone !== undefined) {
@@ -34846,7 +34852,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
34846
34852
  function compileDeclareFactoryFunction(meta) {
34847
34853
  const definitionMap = new DefinitionMap();
34848
34854
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
34849
- definitionMap.set('version', literal('20.2.1'));
34855
+ definitionMap.set('version', literal('20.2.2'));
34850
34856
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34851
34857
  definitionMap.set('type', meta.type.value);
34852
34858
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -34881,7 +34887,7 @@ function compileDeclareInjectableFromMetadata(meta) {
34881
34887
  function createInjectableDefinitionMap(meta) {
34882
34888
  const definitionMap = new DefinitionMap();
34883
34889
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
34884
- definitionMap.set('version', literal('20.2.1'));
34890
+ definitionMap.set('version', literal('20.2.2'));
34885
34891
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34886
34892
  definitionMap.set('type', meta.type.value);
34887
34893
  // Only generate providedIn property if it has a non-null value
@@ -34932,7 +34938,7 @@ function compileDeclareInjectorFromMetadata(meta) {
34932
34938
  function createInjectorDefinitionMap(meta) {
34933
34939
  const definitionMap = new DefinitionMap();
34934
34940
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
34935
- definitionMap.set('version', literal('20.2.1'));
34941
+ definitionMap.set('version', literal('20.2.2'));
34936
34942
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34937
34943
  definitionMap.set('type', meta.type.value);
34938
34944
  definitionMap.set('providers', meta.providers);
@@ -34965,7 +34971,7 @@ function createNgModuleDefinitionMap(meta) {
34965
34971
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
34966
34972
  }
34967
34973
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
34968
- definitionMap.set('version', literal('20.2.1'));
34974
+ definitionMap.set('version', literal('20.2.2'));
34969
34975
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34970
34976
  definitionMap.set('type', meta.type.value);
34971
34977
  // We only generate the keys in the metadata if the arrays contain values.
@@ -35016,7 +35022,7 @@ function compileDeclarePipeFromMetadata(meta) {
35016
35022
  function createPipeDefinitionMap(meta) {
35017
35023
  const definitionMap = new DefinitionMap();
35018
35024
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
35019
- definitionMap.set('version', literal('20.2.1'));
35025
+ definitionMap.set('version', literal('20.2.2'));
35020
35026
  definitionMap.set('ngImport', importExpr(Identifiers.core));
35021
35027
  // e.g. `type: MyPipe`
35022
35028
  definitionMap.set('type', meta.type.value);
@@ -35172,7 +35178,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
35172
35178
  * @description
35173
35179
  * Entry point for all public APIs of the compiler package.
35174
35180
  */
35175
- const VERSION = new Version('20.2.1');
35181
+ const VERSION = new Version('20.2.2');
35176
35182
 
35177
35183
  //////////////////////////////////////
35178
35184
  // THIS FILE HAS GLOBAL SIDE EFFECT //