@angular/compiler 21.2.1 → 21.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 v21.2.1
2
+ * @license Angular v21.2.2
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -5328,9 +5328,8 @@ let RecursiveVisitor$1 = class RecursiveVisitor {
5328
5328
  visitAll$1(this, block.branches);
5329
5329
  }
5330
5330
  visitIfBlockBranch(block) {
5331
- const blockItems = block.children;
5332
- block.expressionAlias && blockItems.push(block.expressionAlias);
5333
- visitAll$1(this, blockItems);
5331
+ visitAll$1(this, block.children);
5332
+ block.expressionAlias?.visit(this);
5334
5333
  }
5335
5334
  visitContent(content) {
5336
5335
  visitAll$1(this, content.children);
@@ -28530,7 +28529,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
28530
28529
  function compileDeclareClassMetadata(metadata) {
28531
28530
  const definitionMap = new DefinitionMap();
28532
28531
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
28533
- definitionMap.set('version', literal('21.2.1'));
28532
+ definitionMap.set('version', literal('21.2.2'));
28534
28533
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28535
28534
  definitionMap.set('type', metadata.type);
28536
28535
  definitionMap.set('decorators', metadata.decorators);
@@ -28548,7 +28547,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
28548
28547
  callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
28549
28548
  callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
28550
28549
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
28551
- definitionMap.set('version', literal('21.2.1'));
28550
+ definitionMap.set('version', literal('21.2.2'));
28552
28551
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28553
28552
  definitionMap.set('type', metadata.type);
28554
28553
  definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
@@ -28621,7 +28620,7 @@ function createDirectiveDefinitionMap(meta) {
28621
28620
  const definitionMap = new DefinitionMap();
28622
28621
  const minVersion = getMinimumVersionForPartialOutput(meta);
28623
28622
  definitionMap.set('minVersion', literal(minVersion));
28624
- definitionMap.set('version', literal('21.2.1'));
28623
+ definitionMap.set('version', literal('21.2.2'));
28625
28624
  definitionMap.set('type', meta.type.value);
28626
28625
  if (meta.isStandalone !== undefined) {
28627
28626
  definitionMap.set('isStandalone', literal(meta.isStandalone));
@@ -28963,7 +28962,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
28963
28962
  function compileDeclareFactoryFunction(meta) {
28964
28963
  const definitionMap = new DefinitionMap();
28965
28964
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
28966
- definitionMap.set('version', literal('21.2.1'));
28965
+ definitionMap.set('version', literal('21.2.2'));
28967
28966
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28968
28967
  definitionMap.set('type', meta.type.value);
28969
28968
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -28989,7 +28988,7 @@ function compileDeclareInjectableFromMetadata(meta) {
28989
28988
  function createInjectableDefinitionMap(meta) {
28990
28989
  const definitionMap = new DefinitionMap();
28991
28990
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
28992
- definitionMap.set('version', literal('21.2.1'));
28991
+ definitionMap.set('version', literal('21.2.2'));
28993
28992
  definitionMap.set('ngImport', importExpr(Identifiers.core));
28994
28993
  definitionMap.set('type', meta.type.value);
28995
28994
  if (meta.providedIn !== undefined) {
@@ -29030,7 +29029,7 @@ function compileDeclareInjectorFromMetadata(meta) {
29030
29029
  function createInjectorDefinitionMap(meta) {
29031
29030
  const definitionMap = new DefinitionMap();
29032
29031
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
29033
- definitionMap.set('version', literal('21.2.1'));
29032
+ definitionMap.set('version', literal('21.2.2'));
29034
29033
  definitionMap.set('ngImport', importExpr(Identifiers.core));
29035
29034
  definitionMap.set('type', meta.type.value);
29036
29035
  definitionMap.set('providers', meta.providers);
@@ -29057,7 +29056,7 @@ function createNgModuleDefinitionMap(meta) {
29057
29056
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
29058
29057
  }
29059
29058
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
29060
- definitionMap.set('version', literal('21.2.1'));
29059
+ definitionMap.set('version', literal('21.2.2'));
29061
29060
  definitionMap.set('ngImport', importExpr(Identifiers.core));
29062
29061
  definitionMap.set('type', meta.type.value);
29063
29062
  if (meta.bootstrap.length > 0) {
@@ -29095,7 +29094,7 @@ function compileDeclarePipeFromMetadata(meta) {
29095
29094
  function createPipeDefinitionMap(meta) {
29096
29095
  const definitionMap = new DefinitionMap();
29097
29096
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
29098
- definitionMap.set('version', literal('21.2.1'));
29097
+ definitionMap.set('version', literal('21.2.2'));
29099
29098
  definitionMap.set('ngImport', importExpr(Identifiers.core));
29100
29099
  definitionMap.set('type', meta.type.value);
29101
29100
  if (meta.isStandalone !== undefined) {
@@ -29169,7 +29168,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
29169
29168
  return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);
29170
29169
  }
29171
29170
 
29172
- const VERSION = new Version('21.2.1');
29171
+ const VERSION = new Version('21.2.2');
29173
29172
 
29174
29173
  publishFacade(_global);
29175
29174