@angular/core 18.2.4 → 18.2.5

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.
package/fesm2022/core.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.2.4
2
+ * @license Angular v18.2.5
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -5338,6 +5338,9 @@ function isTNodeShape(value) {
5338
5338
  typeof value.insertBeforeIndex === 'number' ||
5339
5339
  Array.isArray(value.insertBeforeIndex)));
5340
5340
  }
5341
+ function isLetDeclaration(tNode) {
5342
+ return !!(tNode.type & 128 /* TNodeType.LetDeclaration */);
5343
+ }
5341
5344
  /**
5342
5345
  * Returns `true` if the `TNode` has a directive which has `@Input()` for `class` binding.
5343
5346
  *
@@ -16946,7 +16949,7 @@ function createRootComponent(componentView, rootComponentDef, rootDirectives, ho
16946
16949
  function setRootNodeAttributes(hostRenderer, componentDef, hostRNode, rootSelectorOrNode) {
16947
16950
  if (rootSelectorOrNode) {
16948
16951
  // The placeholder will be replaced with the actual version at build time.
16949
- setUpAttributes(hostRenderer, hostRNode, ['ng-version', '18.2.4']);
16952
+ setUpAttributes(hostRenderer, hostRNode, ['ng-version', '18.2.5']);
16950
16953
  }
16951
16954
  else {
16952
16955
  // If host element is created as a part of this function call (i.e. `rootSelectorOrNode`
@@ -31036,7 +31039,7 @@ class Version {
31036
31039
  /**
31037
31040
  * @publicApi
31038
31041
  */
31039
- const VERSION = new Version('18.2.4');
31042
+ const VERSION = new Version('18.2.5');
31040
31043
 
31041
31044
  /*
31042
31045
  * This file exists to support compilation of @angular/core in Ivy mode.
@@ -37542,8 +37545,10 @@ function serializeLView(lView, context) {
37542
37545
  ngh[CONTAINERS] ??= {};
37543
37546
  ngh[CONTAINERS][noOffsetIndex] = serializeLContainer(lView[i], context);
37544
37547
  }
37545
- else if (Array.isArray(lView[i])) {
37548
+ else if (Array.isArray(lView[i]) && !isLetDeclaration(tNode)) {
37546
37549
  // This is a component, annotate the host node with an `ngh` attribute.
37550
+ // Note: Let declarations that return an array are also storing an array in the LView,
37551
+ // we need to exclude them.
37547
37552
  const targetNode = unwrapRNode(lView[i][HOST]);
37548
37553
  if (!targetNode.hasAttribute(SKIP_HYDRATION_ATTR_NAME)) {
37549
37554
  annotateHostElementForHydration(targetNode, lView[i], context);