@angular/core 18.2.3 → 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/esm2022/src/hydration/annotate.mjs +5 -3
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/render3/interfaces/node.mjs +4 -1
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/application_error_handler.mjs +3 -3
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +9 -4
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +4 -4
- package/index.d.ts +1 -1
- package/package.json +1 -1
- package/primitives/event-dispatch/index.d.ts +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/after-render-phase/bundle.js +279 -279
- package/schematics/migrations/http-providers/bundle.js +282 -282
- package/schematics/migrations/invalid-two-way-bindings/bundle.js +173 -173
- package/schematics/ng-generate/control-flow-migration/bundle.js +282 -282
- package/schematics/ng-generate/inject-migration/bundle.js +285 -285
- package/schematics/ng-generate/route-lazy-loading/bundle.js +281 -281
- package/schematics/ng-generate/standalone-migration/bundle.js +808 -739
- package/testing/index.d.ts +1 -1
package/fesm2022/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v18.2.
|
|
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.
|
|
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.
|
|
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);
|