@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.
- package/LICENSE +1 -1
- package/fesm2022/_attribute-chunk.mjs +2 -2
- package/fesm2022/_debug_node-chunk.mjs +127 -95
- package/fesm2022/_debug_node-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk.mjs +4 -4
- package/fesm2022/_effect-chunk.mjs.map +1 -1
- package/fesm2022/_linked_signal-chunk.mjs +3 -3
- package/fesm2022/_linked_signal-chunk.mjs.map +1 -1
- package/fesm2022/_not_found-chunk.mjs +2 -2
- package/fesm2022/_resource-chunk.mjs +2 -2
- package/fesm2022/_untracked-chunk.mjs +11 -4
- package/fesm2022/_untracked-chunk.mjs.map +1 -1
- package/fesm2022/_weak_ref-chunk.mjs +2 -2
- package/fesm2022/core.mjs +606 -547
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives-di.mjs +2 -2
- package/fesm2022/primitives-event-dispatch.mjs +2 -2
- package/fesm2022/primitives-signals.mjs +2 -2
- package/fesm2022/rxjs-interop.mjs +2 -2
- package/fesm2022/testing.mjs +9 -7
- package/fesm2022/testing.mjs.map +1 -1
- package/package.json +2 -2
- package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +5 -5
- package/schematics/bundles/application-config-core.cjs +6 -6
- package/schematics/bundles/{apply_import_manager-1Zs_gpB6.cjs → apply_import_manager-CxA_YYgB.cjs} +3 -3
- package/schematics/bundles/bootstrap-options-migration.cjs +8 -8
- package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
- package/schematics/bundles/common-to-standalone-migration.cjs +9 -9
- package/schematics/bundles/{compiler_host-DBwYMlTo.cjs → compiler_host-CY14HvaP.cjs} +2 -2
- package/schematics/bundles/control-flow-migration.cjs +5 -5
- package/schematics/bundles/{imports-DP72APSx.cjs → imports-CVmcbVA9.cjs} +2 -2
- package/schematics/bundles/{index-B7I9sIUx.cjs → index-BtLcQH8g.cjs} +6 -5
- package/schematics/bundles/inject-migration.cjs +8 -8
- package/schematics/bundles/{leading_space-D9nQ8UQC.cjs → leading_space-BTPRV0wu.cjs} +2 -2
- package/schematics/bundles/{migrate_ts_type_references-UGIUl7En.cjs → migrate_ts_type_references-CV7qdt5t.cjs} +5 -5
- package/schematics/bundles/{ng_component_template-Dsuq1Lw7.cjs → ng_component_template-BOuKAnQd.cjs} +4 -4
- package/schematics/bundles/{ng_decorators-DSFlWYQY.cjs → ng_decorators-DYy6II6x.cjs} +3 -3
- package/schematics/bundles/ngclass-to-class-migration.cjs +10 -10
- package/schematics/bundles/ngstyle-to-style-migration.cjs +10 -10
- package/schematics/bundles/{nodes-B16H9JUd.cjs → nodes-ZSQ7WZRB.cjs} +2 -2
- package/schematics/bundles/output-migration.cjs +6 -6
- package/schematics/bundles/{parse_html-8VLCL37B.cjs → parse_html-C8eKA9px.cjs} +2 -2
- package/schematics/bundles/{project_paths-DvD50ouC.cjs → project_paths-D2V-Uh2L.cjs} +3 -3
- package/schematics/bundles/{project_tsconfig_paths-CDVxT6Ov.cjs → project_tsconfig_paths-DkkMibv-.cjs} +2 -2
- package/schematics/bundles/{property_name-BBwFuqMe.cjs → property_name-BCpALNpZ.cjs} +2 -2
- package/schematics/bundles/route-lazy-loading.cjs +5 -5
- package/schematics/bundles/router-current-navigation.cjs +6 -6
- package/schematics/bundles/router-last-successful-navigation.cjs +6 -6
- package/schematics/bundles/router-testing-module-migration.cjs +5 -5
- package/schematics/bundles/self-closing-tags-migration.cjs +9 -9
- package/schematics/bundles/signal-input-migration.cjs +8 -8
- package/schematics/bundles/signal-queries-migration.cjs +8 -8
- package/schematics/bundles/signals.cjs +8 -8
- package/schematics/bundles/standalone-migration.cjs +8 -8
- package/schematics/bundles/{symbol-BObKoqes.cjs → symbol-DZeHSR-V.cjs} +2 -2
- package/types/_api-chunk.d.ts +2 -2
- package/types/_chrome_dev_tools_performance-chunk.d.ts +2 -2
- package/types/_discovery-chunk.d.ts +8 -6
- package/types/_effect-chunk.d.ts +2 -2
- package/types/_event_dispatcher-chunk.d.ts +2 -2
- package/types/_formatter-chunk.d.ts +2 -2
- package/types/_weak_ref-chunk.d.ts +2 -2
- package/types/core.d.ts +66 -27
- package/types/primitives-di.d.ts +2 -2
- package/types/primitives-event-dispatch.d.ts +2 -2
- package/types/primitives-signals.d.ts +2 -2
- package/types/rxjs-interop.d.ts +2 -2
- package/types/testing.d.ts +9 -9
package/fesm2022/testing.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.1.0-
|
|
3
|
-
* (c) 2010-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
1963
|
+
this.propsectiveTraversalDestinations = [];
|
|
1962
1964
|
disposedNHEs.push(...this.entriesArr.splice(this.currentEntryIndex));
|
|
1963
1965
|
} else if (navigationType === 'replace') {
|
|
1964
1966
|
disposedNHEs.push(oldCurrentNHE);
|