@angular/core 20.3.6 → 20.3.9

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.
Files changed (70) hide show
  1. package/api.d.d.ts +1 -1
  2. package/chrome_dev_tools_performance.d.d.ts +9 -1
  3. package/discovery.d.d.ts +1 -1
  4. package/effect.d.d.ts +1 -1
  5. package/event_dispatcher.d.d.ts +1 -1
  6. package/fesm2022/attribute.mjs +1 -1
  7. package/fesm2022/attribute.mjs.map +1 -1
  8. package/fesm2022/core.mjs +1 -1
  9. package/fesm2022/core.mjs.map +1 -1
  10. package/fesm2022/debug_node.mjs +17 -7
  11. package/fesm2022/debug_node.mjs.map +1 -1
  12. package/fesm2022/effect.mjs +1 -1
  13. package/fesm2022/effect.mjs.map +1 -1
  14. package/fesm2022/not_found.mjs +1 -1
  15. package/fesm2022/not_found.mjs.map +1 -1
  16. package/fesm2022/primitives/di.mjs +1 -1
  17. package/fesm2022/primitives/di.mjs.map +1 -1
  18. package/fesm2022/primitives/event-dispatch.mjs +1 -1
  19. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  20. package/fesm2022/primitives/signals.mjs +1 -1
  21. package/fesm2022/primitives/signals.mjs.map +1 -1
  22. package/fesm2022/resource.mjs +1 -1
  23. package/fesm2022/resource.mjs.map +1 -1
  24. package/fesm2022/root_effect_scheduler.mjs +4 -2
  25. package/fesm2022/root_effect_scheduler.mjs.map +1 -1
  26. package/fesm2022/rxjs-interop.mjs +1 -1
  27. package/fesm2022/rxjs-interop.mjs.map +1 -1
  28. package/fesm2022/signal.mjs +1 -1
  29. package/fesm2022/signal.mjs.map +1 -1
  30. package/fesm2022/testing.mjs +1 -1
  31. package/fesm2022/testing.mjs.map +1 -1
  32. package/fesm2022/weak_ref.mjs +1 -1
  33. package/fesm2022/weak_ref.mjs.map +1 -1
  34. package/formatter.d.d.ts +1 -1
  35. package/index.d.ts +1 -1
  36. package/package.json +2 -2
  37. package/primitives/di/index.d.ts +1 -1
  38. package/primitives/event-dispatch/index.d.ts +1 -1
  39. package/primitives/signals/index.d.ts +1 -1
  40. package/rxjs-interop/index.d.ts +1 -1
  41. package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +5 -5
  42. package/schematics/bundles/{apply_import_manager-_3Mx7H7A.cjs → apply_import_manager-uyMcu5_H.cjs} +3 -3
  43. package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
  44. package/schematics/bundles/{compiler_host-DXiKJabk.cjs → compiler_host-BUlxIpWP.cjs} +2 -2
  45. package/schematics/bundles/control-flow-migration.cjs +4 -4
  46. package/schematics/bundles/document-core.cjs +5 -5
  47. package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
  48. package/schematics/bundles/{index-BDeOF3Gn.cjs → index-Cqmu1RX0.cjs} +110 -64
  49. package/schematics/bundles/{index-C8BhVtUr.cjs → index-D_ZnW9ls.cjs} +4 -4
  50. package/schematics/bundles/inject-flags.cjs +5 -5
  51. package/schematics/bundles/inject-migration.cjs +3 -3
  52. package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
  53. package/schematics/bundles/{migrate_ts_type_references-BlSjvHVC.cjs → migrate_ts_type_references-BhSLr3ZT.cjs} +5 -5
  54. package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
  55. package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
  56. package/schematics/bundles/output-migration.cjs +6 -6
  57. package/schematics/bundles/{project_paths-C8LDPZ5A.cjs → project_paths-C69HW-da.cjs} +3 -3
  58. package/schematics/bundles/{project_tsconfig_paths-tTmeFlcz.cjs → project_tsconfig_paths-C1bhMy6X.cjs} +4 -4
  59. package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
  60. package/schematics/bundles/route-lazy-loading.cjs +3 -3
  61. package/schematics/bundles/router-current-navigation.cjs +4 -4
  62. package/schematics/bundles/self-closing-tags-migration.cjs +4 -4
  63. package/schematics/bundles/signal-input-migration.cjs +7 -7
  64. package/schematics/bundles/signal-queries-migration.cjs +7 -7
  65. package/schematics/bundles/signals.cjs +7 -7
  66. package/schematics/bundles/standalone-migration.cjs +4 -4
  67. package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
  68. package/schematics/bundles/test-bed-get.cjs +4 -4
  69. package/testing/index.d.ts +1 -1
  70. package/weak_ref.d.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.3.6
2
+ * @license Angular v20.3.9
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -11770,6 +11770,8 @@ function icuContainerIteratorNext(state) {
11770
11770
  }
11771
11771
  else {
11772
11772
  if (state.stack.length === 0) {
11773
+ // Clear the lView reference when iteration completes to allow garbage collection
11774
+ state.lView = undefined;
11773
11775
  return null;
11774
11776
  }
11775
11777
  else {
@@ -14630,7 +14632,7 @@ class ComponentFactory extends ComponentFactory$1 {
14630
14632
  }
14631
14633
  function createRootTView(rootSelectorOrNode, componentDef, componentBindings, directives) {
14632
14634
  const tAttributes = rootSelectorOrNode
14633
- ? ['ng-version', '20.3.6']
14635
+ ? ['ng-version', '20.3.9']
14634
14636
  : // Extract attributes and classes from the first selector only to match VE behavior.
14635
14637
  extractAttrsAndClassesFromSelector(componentDef.selectors[0]);
14636
14638
  let creationBindings = null;
@@ -20810,7 +20812,7 @@ function scheduleDelayedTrigger(scheduleFn) {
20810
20812
  *
20811
20813
  * @param scheduleFn A function that does the scheduling.
20812
20814
  */
20813
- function scheduleDelayedPrefetching(scheduleFn, trigger) {
20815
+ function scheduleDelayedPrefetching(scheduleFn) {
20814
20816
  if (typeof ngServerMode !== 'undefined' && ngServerMode)
20815
20817
  return;
20816
20818
  const lView = getLView();
@@ -22240,8 +22242,11 @@ function ɵɵanimateEnter(value) {
22240
22242
  cancelLeavingNodes(tNode, lView);
22241
22243
  addAnimationToLView(getLViewEnterAnimations(lView), tNode, () => runEnterAnimation(lView, tNode, value));
22242
22244
  initializeAnimationQueueScheduler(lView[INJECTOR]);
22243
- // TODO(thePunderWoman): it's unclear why we need to queue animations here, but without this,
22244
- // animating through host bindings fails
22245
+ // We have to queue here due to the animation instruction being invoked after the element
22246
+ // instruction. The DOM node has to exist before we can queue an animation. Any node that
22247
+ // is not inside of control flow needs to get queued here. For nodes inside of control
22248
+ // flow, those are queued in node_manipulation.ts and are deduped by a Set in the animation
22249
+ // queue.
22245
22250
  queueEnterAnimations(lView[INJECTOR], getLViewEnterAnimations(lView));
22246
22251
  return ɵɵanimateEnter; // For chaining
22247
22252
  }
@@ -22340,8 +22345,11 @@ function ɵɵanimateEnterListener(value) {
22340
22345
  cancelLeavingNodes(tNode, lView);
22341
22346
  addAnimationToLView(getLViewEnterAnimations(lView), tNode, () => runEnterAnimationFunction(lView, tNode, value));
22342
22347
  initializeAnimationQueueScheduler(lView[INJECTOR]);
22343
- // TODO(thePunderWoman): it's unclear why we need to queue animations here, but without this,
22344
- // animating through host bindings fails
22348
+ // We have to queue here due to the animation instruction being invoked after the element
22349
+ // instruction. The DOM node has to exist before we can queue an animation. Any node that
22350
+ // is not inside of control flow needs to get queued here. For nodes inside of control
22351
+ // flow, those are queued in node_manipulation.ts and are deduped by a Set in the animation
22352
+ // queue.
22345
22353
  queueEnterAnimations(lView[INJECTOR], getLViewEnterAnimations(lView));
22346
22354
  return ɵɵanimateEnterListener;
22347
22355
  }
@@ -22375,6 +22383,7 @@ function ɵɵanimateLeave(value) {
22375
22383
  return ɵɵanimateLeave;
22376
22384
  }
22377
22385
  const tNode = getCurrentTNode();
22386
+ cancelLeavingNodes(tNode, lView);
22378
22387
  addAnimationToLView(getLViewLeaveAnimations(lView), tNode, () => runLeaveAnimations(lView, tNode, value));
22379
22388
  initializeAnimationQueueScheduler(lView[INJECTOR]);
22380
22389
  return ɵɵanimateLeave; // For chaining
@@ -22472,6 +22481,7 @@ function ɵɵanimateLeaveListener(value) {
22472
22481
  // So we don't have an early return here.
22473
22482
  const lView = getLView();
22474
22483
  const tNode = getCurrentTNode();
22484
+ cancelLeavingNodes(tNode, lView);
22475
22485
  allLeavingAnimations.add(lView);
22476
22486
  addAnimationToLView(getLViewLeaveAnimations(lView), tNode, () => runLeaveAnimationFunction(lView, tNode, value));
22477
22487
  initializeAnimationQueueScheduler(lView[INJECTOR]);