@angular/core 21.1.0-next.4 → 21.1.0-rc.0

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 (68) hide show
  1. package/LICENSE +1 -1
  2. package/fesm2022/_attribute-chunk.mjs +2 -2
  3. package/fesm2022/_debug_node-chunk.mjs +127 -95
  4. package/fesm2022/_debug_node-chunk.mjs.map +1 -1
  5. package/fesm2022/_effect-chunk.mjs +4 -4
  6. package/fesm2022/_effect-chunk.mjs.map +1 -1
  7. package/fesm2022/_linked_signal-chunk.mjs +3 -3
  8. package/fesm2022/_linked_signal-chunk.mjs.map +1 -1
  9. package/fesm2022/_not_found-chunk.mjs +2 -2
  10. package/fesm2022/_resource-chunk.mjs +2 -2
  11. package/fesm2022/_untracked-chunk.mjs +11 -4
  12. package/fesm2022/_untracked-chunk.mjs.map +1 -1
  13. package/fesm2022/_weak_ref-chunk.mjs +2 -2
  14. package/fesm2022/core.mjs +606 -547
  15. package/fesm2022/core.mjs.map +1 -1
  16. package/fesm2022/primitives-di.mjs +2 -2
  17. package/fesm2022/primitives-event-dispatch.mjs +2 -2
  18. package/fesm2022/primitives-signals.mjs +2 -2
  19. package/fesm2022/rxjs-interop.mjs +2 -2
  20. package/fesm2022/testing.mjs +9 -7
  21. package/fesm2022/testing.mjs.map +1 -1
  22. package/package.json +2 -2
  23. package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +5 -5
  24. package/schematics/bundles/application-config-core.cjs +6 -6
  25. package/schematics/bundles/{apply_import_manager-1Zs_gpB6.cjs → apply_import_manager-CxA_YYgB.cjs} +3 -3
  26. package/schematics/bundles/bootstrap-options-migration.cjs +8 -8
  27. package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
  28. package/schematics/bundles/common-to-standalone-migration.cjs +9 -9
  29. package/schematics/bundles/{compiler_host-DBwYMlTo.cjs → compiler_host-CY14HvaP.cjs} +2 -2
  30. package/schematics/bundles/control-flow-migration.cjs +5 -5
  31. package/schematics/bundles/{imports-DP72APSx.cjs → imports-CVmcbVA9.cjs} +2 -2
  32. package/schematics/bundles/{index-B7I9sIUx.cjs → index-BtLcQH8g.cjs} +6 -5
  33. package/schematics/bundles/inject-migration.cjs +8 -8
  34. package/schematics/bundles/{leading_space-D9nQ8UQC.cjs → leading_space-BTPRV0wu.cjs} +2 -2
  35. package/schematics/bundles/{migrate_ts_type_references-UGIUl7En.cjs → migrate_ts_type_references-CV7qdt5t.cjs} +5 -5
  36. package/schematics/bundles/{ng_component_template-Dsuq1Lw7.cjs → ng_component_template-BOuKAnQd.cjs} +4 -4
  37. package/schematics/bundles/{ng_decorators-DSFlWYQY.cjs → ng_decorators-DYy6II6x.cjs} +3 -3
  38. package/schematics/bundles/ngclass-to-class-migration.cjs +10 -10
  39. package/schematics/bundles/ngstyle-to-style-migration.cjs +10 -10
  40. package/schematics/bundles/{nodes-B16H9JUd.cjs → nodes-ZSQ7WZRB.cjs} +2 -2
  41. package/schematics/bundles/output-migration.cjs +6 -6
  42. package/schematics/bundles/{parse_html-8VLCL37B.cjs → parse_html-C8eKA9px.cjs} +2 -2
  43. package/schematics/bundles/{project_paths-DvD50ouC.cjs → project_paths-D2V-Uh2L.cjs} +3 -3
  44. package/schematics/bundles/{project_tsconfig_paths-CDVxT6Ov.cjs → project_tsconfig_paths-DkkMibv-.cjs} +2 -2
  45. package/schematics/bundles/{property_name-BBwFuqMe.cjs → property_name-BCpALNpZ.cjs} +2 -2
  46. package/schematics/bundles/route-lazy-loading.cjs +5 -5
  47. package/schematics/bundles/router-current-navigation.cjs +6 -6
  48. package/schematics/bundles/router-last-successful-navigation.cjs +6 -6
  49. package/schematics/bundles/router-testing-module-migration.cjs +5 -5
  50. package/schematics/bundles/self-closing-tags-migration.cjs +9 -9
  51. package/schematics/bundles/signal-input-migration.cjs +8 -8
  52. package/schematics/bundles/signal-queries-migration.cjs +8 -8
  53. package/schematics/bundles/signals.cjs +8 -8
  54. package/schematics/bundles/standalone-migration.cjs +8 -8
  55. package/schematics/bundles/{symbol-BObKoqes.cjs → symbol-DZeHSR-V.cjs} +2 -2
  56. package/types/_api-chunk.d.ts +2 -2
  57. package/types/_chrome_dev_tools_performance-chunk.d.ts +2 -2
  58. package/types/_discovery-chunk.d.ts +8 -6
  59. package/types/_effect-chunk.d.ts +2 -2
  60. package/types/_event_dispatcher-chunk.d.ts +2 -2
  61. package/types/_formatter-chunk.d.ts +2 -2
  62. package/types/_weak_ref-chunk.d.ts +2 -2
  63. package/types/core.d.ts +66 -27
  64. package/types/primitives-di.d.ts +2 -2
  65. package/types/primitives-event-dispatch.d.ts +2 -2
  66. package/types/primitives-signals.d.ts +2 -2
  67. package/types/rxjs-interop.d.ts +2 -2
  68. package/types/testing.d.ts +9 -9
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v21.1.0-next.4
3
- * (c) 2010-2025 Google LLC. https://angular.dev/
2
+ * @license Angular v21.1.0-rc.0
3
+ * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v21.1.0-next.4
3
- * (c) 2010-2025 Google LLC. https://angular.dev/
2
+ * @license Angular v21.1.0-rc.0
3
+ * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v21.1.0-next.4
3
- * (c) 2010-2025 Google LLC. https://angular.dev/
2
+ * @license Angular v21.1.0-rc.0
3
+ * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v21.1.0-next.4
3
- * (c) 2010-2025 Google LLC. https://angular.dev/
2
+ * @license Angular v21.1.0-rc.0
3
+ * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v21.1.0-next.4
3
- * (c) 2010-2025 Google LLC. https://angular.dev/
2
+ * @license Angular v21.1.0-rc.0
3
+ * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -1623,7 +1623,7 @@ class FakeNavigation {
1623
1623
  navigateEvent = null;
1624
1624
  traversalQueue = new Map();
1625
1625
  nextTraversal = Promise.resolve();
1626
- prospectiveEntryIndex = 0;
1626
+ propsectiveTraversalDestinations = [];
1627
1627
  synchronousTraversals = false;
1628
1628
  canSetInitialEntry = true;
1629
1629
  eventTarget;
@@ -1784,7 +1784,7 @@ class FakeNavigation {
1784
1784
  index: entry.index,
1785
1785
  sameDocument: entry.sameDocument
1786
1786
  });
1787
- this.prospectiveEntryIndex = entry.index;
1787
+ this.propsectiveTraversalDestinations.push(entry.index);
1788
1788
  const result = new InternalNavigationResult(this);
1789
1789
  this.traversalQueue.set(entry.key, result);
1790
1790
  this.runTraversal(() => {
@@ -1837,11 +1837,11 @@ class FakeNavigation {
1837
1837
  return this.traverseTo(entry.key, options);
1838
1838
  }
1839
1839
  go(direction) {
1840
- const targetIndex = this.prospectiveEntryIndex + direction;
1840
+ const targetIndex = (this.propsectiveTraversalDestinations[this.propsectiveTraversalDestinations.length - 1] ?? this.currentEntryIndex) + direction;
1841
1841
  if (targetIndex >= this.entriesArr.length || targetIndex < 0) {
1842
1842
  return;
1843
1843
  }
1844
- this.prospectiveEntryIndex = targetIndex;
1844
+ this.propsectiveTraversalDestinations.push(targetIndex);
1845
1845
  this.runTraversal(() => {
1846
1846
  if (targetIndex >= this.entriesArr.length || targetIndex < 0) {
1847
1847
  return;
@@ -1874,6 +1874,7 @@ class FakeNavigation {
1874
1874
  runTraversal(traversal) {
1875
1875
  if (this.synchronousTraversals) {
1876
1876
  traversal();
1877
+ this.propsectiveTraversalDestinations.shift();
1877
1878
  return;
1878
1879
  }
1879
1880
  this.nextTraversal = this.nextTraversal.then(() => {
@@ -1881,6 +1882,7 @@ class FakeNavigation {
1881
1882
  setTimeout(() => {
1882
1883
  resolve();
1883
1884
  traversal();
1885
+ this.propsectiveTraversalDestinations.shift();
1884
1886
  });
1885
1887
  });
1886
1888
  });
@@ -1958,7 +1960,7 @@ class FakeNavigation {
1958
1960
  }
1959
1961
  } else if (navigationType === 'push') {
1960
1962
  this.currentEntryIndex++;
1961
- this.prospectiveEntryIndex = this.currentEntryIndex;
1963
+ this.propsectiveTraversalDestinations = [];
1962
1964
  disposedNHEs.push(...this.entriesArr.splice(this.currentEntryIndex));
1963
1965
  } else if (navigationType === 'replace') {
1964
1966
  disposedNHEs.push(oldCurrentNHE);