@angular/compiler 20.2.0-next.3 → 20.2.0-next.4

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.0-next.3
2
+ * @license Angular v20.2.0-next.4
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -31000,7 +31000,8 @@ class R3TargetBinder {
31000
31000
  // Bind the host element in a separate scope. Note that it only uses the
31001
31001
  // `TemplateBinder` since directives don't apply inside a host context.
31002
31002
  if (target.host) {
31003
- TemplateBinder.applyWithScope(target.host, Scope.apply(target.host), expressions, symbols, nestingLevel, usedPipes, eagerPipes, deferBlocks);
31003
+ directives.set(target.host.node, target.host.directives);
31004
+ TemplateBinder.applyWithScope(target.host.node, Scope.apply(target.host.node), expressions, symbols, nestingLevel, usedPipes, eagerPipes, deferBlocks);
31004
31005
  }
31005
31006
  return new R3BoundTarget(target, directives, eagerDirectives, missingDirectives, bindings, references, expressions, symbols, nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, deferBlocks);
31006
31007
  }
@@ -31793,7 +31794,8 @@ class R3BoundTarget {
31793
31794
  }
31794
31795
  if (target instanceof Template ||
31795
31796
  target.node instanceof Component$1 ||
31796
- target.node instanceof Directive$1) {
31797
+ target.node instanceof Directive$1 ||
31798
+ target.node instanceof HostElement) {
31797
31799
  return null;
31798
31800
  }
31799
31801
  return this.referenceTargetToElement(target.node);
@@ -34269,7 +34271,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
34269
34271
  function compileDeclareClassMetadata(metadata) {
34270
34272
  const definitionMap = new DefinitionMap();
34271
34273
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
34272
- definitionMap.set('version', literal('20.2.0-next.3'));
34274
+ definitionMap.set('version', literal('20.2.0-next.4'));
34273
34275
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34274
34276
  definitionMap.set('type', metadata.type);
34275
34277
  definitionMap.set('decorators', metadata.decorators);
@@ -34287,7 +34289,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
34287
34289
  callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
34288
34290
  callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
34289
34291
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
34290
- definitionMap.set('version', literal('20.2.0-next.3'));
34292
+ definitionMap.set('version', literal('20.2.0-next.4'));
34291
34293
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34292
34294
  definitionMap.set('type', metadata.type);
34293
34295
  definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
@@ -34382,7 +34384,7 @@ function createDirectiveDefinitionMap(meta) {
34382
34384
  const definitionMap = new DefinitionMap();
34383
34385
  const minVersion = getMinimumVersionForPartialOutput(meta);
34384
34386
  definitionMap.set('minVersion', literal(minVersion));
34385
- definitionMap.set('version', literal('20.2.0-next.3'));
34387
+ definitionMap.set('version', literal('20.2.0-next.4'));
34386
34388
  // e.g. `type: MyDirective`
34387
34389
  definitionMap.set('type', meta.type.value);
34388
34390
  if (meta.isStandalone !== undefined) {
@@ -34798,7 +34800,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
34798
34800
  function compileDeclareFactoryFunction(meta) {
34799
34801
  const definitionMap = new DefinitionMap();
34800
34802
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
34801
- definitionMap.set('version', literal('20.2.0-next.3'));
34803
+ definitionMap.set('version', literal('20.2.0-next.4'));
34802
34804
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34803
34805
  definitionMap.set('type', meta.type.value);
34804
34806
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -34833,7 +34835,7 @@ function compileDeclareInjectableFromMetadata(meta) {
34833
34835
  function createInjectableDefinitionMap(meta) {
34834
34836
  const definitionMap = new DefinitionMap();
34835
34837
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
34836
- definitionMap.set('version', literal('20.2.0-next.3'));
34838
+ definitionMap.set('version', literal('20.2.0-next.4'));
34837
34839
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34838
34840
  definitionMap.set('type', meta.type.value);
34839
34841
  // Only generate providedIn property if it has a non-null value
@@ -34884,7 +34886,7 @@ function compileDeclareInjectorFromMetadata(meta) {
34884
34886
  function createInjectorDefinitionMap(meta) {
34885
34887
  const definitionMap = new DefinitionMap();
34886
34888
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
34887
- definitionMap.set('version', literal('20.2.0-next.3'));
34889
+ definitionMap.set('version', literal('20.2.0-next.4'));
34888
34890
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34889
34891
  definitionMap.set('type', meta.type.value);
34890
34892
  definitionMap.set('providers', meta.providers);
@@ -34917,7 +34919,7 @@ function createNgModuleDefinitionMap(meta) {
34917
34919
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
34918
34920
  }
34919
34921
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
34920
- definitionMap.set('version', literal('20.2.0-next.3'));
34922
+ definitionMap.set('version', literal('20.2.0-next.4'));
34921
34923
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34922
34924
  definitionMap.set('type', meta.type.value);
34923
34925
  // We only generate the keys in the metadata if the arrays contain values.
@@ -34968,7 +34970,7 @@ function compileDeclarePipeFromMetadata(meta) {
34968
34970
  function createPipeDefinitionMap(meta) {
34969
34971
  const definitionMap = new DefinitionMap();
34970
34972
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
34971
- definitionMap.set('version', literal('20.2.0-next.3'));
34973
+ definitionMap.set('version', literal('20.2.0-next.4'));
34972
34974
  definitionMap.set('ngImport', importExpr(Identifiers.core));
34973
34975
  // e.g. `type: MyPipe`
34974
34976
  definitionMap.set('type', meta.type.value);
@@ -35124,7 +35126,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
35124
35126
  * @description
35125
35127
  * Entry point for all public APIs of the compiler package.
35126
35128
  */
35127
- const VERSION = new Version('20.2.0-next.3');
35129
+ const VERSION = new Version('20.2.0-next.4');
35128
35130
 
35129
35131
  //////////////////////////////////////
35130
35132
  // THIS FILE HAS GLOBAL SIDE EFFECT //