@angular/compiler 20.1.4 → 20.1.6

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.1.4
2
+ * @license Angular v20.1.6
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -30509,7 +30509,8 @@ class R3TargetBinder {
30509
30509
  // Bind the host element in a separate scope. Note that it only uses the
30510
30510
  // `TemplateBinder` since directives don't apply inside a host context.
30511
30511
  if (target.host) {
30512
- TemplateBinder.applyWithScope(target.host, Scope.apply(target.host), expressions, symbols, nestingLevel, usedPipes, eagerPipes, deferBlocks);
30512
+ directives.set(target.host.node, target.host.directives);
30513
+ TemplateBinder.applyWithScope(target.host.node, Scope.apply(target.host.node), expressions, symbols, nestingLevel, usedPipes, eagerPipes, deferBlocks);
30513
30514
  }
30514
30515
  return new R3BoundTarget(target, directives, eagerDirectives, missingDirectives, bindings, references, expressions, symbols, nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, deferBlocks);
30515
30516
  }
@@ -31302,7 +31303,8 @@ class R3BoundTarget {
31302
31303
  }
31303
31304
  if (target instanceof Template ||
31304
31305
  target.node instanceof Component$1 ||
31305
- target.node instanceof Directive$1) {
31306
+ target.node instanceof Directive$1 ||
31307
+ target.node instanceof HostElement) {
31306
31308
  return null;
31307
31309
  }
31308
31310
  return this.referenceTargetToElement(target.node);
@@ -33778,7 +33780,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
33778
33780
  function compileDeclareClassMetadata(metadata) {
33779
33781
  const definitionMap = new DefinitionMap();
33780
33782
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
33781
- definitionMap.set('version', literal('20.1.4'));
33783
+ definitionMap.set('version', literal('20.1.6'));
33782
33784
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33783
33785
  definitionMap.set('type', metadata.type);
33784
33786
  definitionMap.set('decorators', metadata.decorators);
@@ -33796,7 +33798,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
33796
33798
  callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
33797
33799
  callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
33798
33800
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
33799
- definitionMap.set('version', literal('20.1.4'));
33801
+ definitionMap.set('version', literal('20.1.6'));
33800
33802
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33801
33803
  definitionMap.set('type', metadata.type);
33802
33804
  definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
@@ -33891,7 +33893,7 @@ function createDirectiveDefinitionMap(meta) {
33891
33893
  const definitionMap = new DefinitionMap();
33892
33894
  const minVersion = getMinimumVersionForPartialOutput(meta);
33893
33895
  definitionMap.set('minVersion', literal(minVersion));
33894
- definitionMap.set('version', literal('20.1.4'));
33896
+ definitionMap.set('version', literal('20.1.6'));
33895
33897
  // e.g. `type: MyDirective`
33896
33898
  definitionMap.set('type', meta.type.value);
33897
33899
  if (meta.isStandalone !== undefined) {
@@ -34307,7 +34309,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
34307
34309
  function compileDeclareFactoryFunction(meta) {
34308
34310
  const definitionMap = new DefinitionMap();
34309
34311
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
34310
- definitionMap.set('version', literal('20.1.4'));
34312
+ definitionMap.set('version', literal('20.1.6'));
34311
34313
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34312
34314
  definitionMap.set('type', meta.type.value);
34313
34315
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -34342,7 +34344,7 @@ function compileDeclareInjectableFromMetadata(meta) {
34342
34344
  function createInjectableDefinitionMap(meta) {
34343
34345
  const definitionMap = new DefinitionMap();
34344
34346
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
34345
- definitionMap.set('version', literal('20.1.4'));
34347
+ definitionMap.set('version', literal('20.1.6'));
34346
34348
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34347
34349
  definitionMap.set('type', meta.type.value);
34348
34350
  // Only generate providedIn property if it has a non-null value
@@ -34393,7 +34395,7 @@ function compileDeclareInjectorFromMetadata(meta) {
34393
34395
  function createInjectorDefinitionMap(meta) {
34394
34396
  const definitionMap = new DefinitionMap();
34395
34397
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
34396
- definitionMap.set('version', literal('20.1.4'));
34398
+ definitionMap.set('version', literal('20.1.6'));
34397
34399
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34398
34400
  definitionMap.set('type', meta.type.value);
34399
34401
  definitionMap.set('providers', meta.providers);
@@ -34426,7 +34428,7 @@ function createNgModuleDefinitionMap(meta) {
34426
34428
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
34427
34429
  }
34428
34430
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
34429
- definitionMap.set('version', literal('20.1.4'));
34431
+ definitionMap.set('version', literal('20.1.6'));
34430
34432
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34431
34433
  definitionMap.set('type', meta.type.value);
34432
34434
  // We only generate the keys in the metadata if the arrays contain values.
@@ -34477,7 +34479,7 @@ function compileDeclarePipeFromMetadata(meta) {
34477
34479
  function createPipeDefinitionMap(meta) {
34478
34480
  const definitionMap = new DefinitionMap();
34479
34481
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
34480
- definitionMap.set('version', literal('20.1.4'));
34482
+ definitionMap.set('version', literal('20.1.6'));
34481
34483
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34482
34484
  // e.g. `type: MyPipe`
34483
34485
  definitionMap.set('type', meta.type.value);
@@ -34633,7 +34635,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
34633
34635
  * @description
34634
34636
  * Entry point for all public APIs of the compiler package.
34635
34637
  */
34636
- const VERSION = new Version('20.1.4');
34638
+ const VERSION = new Version('20.1.6');
34637
34639
 
34638
34640
  //////////////////////////////////////
34639
34641
  // THIS FILE HAS GLOBAL SIDE EFFECT //