@angular/core 19.2.0 → 19.2.1
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 +52 -69
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/di.mjs +45 -0
- package/fesm2022/primitives/di.mjs.map +1 -0
- 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 +280 -119
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +27 -30
- package/package.json +5 -1
- package/primitives/di/index.d.ts +99 -0
- package/primitives/event-dispatch/index.d.ts +2 -2
- package/primitives/signals/index.d.ts +2 -2
- package/rxjs-interop/index.d.ts +2 -2
- package/schematics/bundles/{apply_import_manager-a4e62ded.js → apply_import_manager-b8d6885d.js} +4 -4
- package/schematics/bundles/{checker-2eecc677.js → checker-89987c98.js} +11 -15
- package/schematics/bundles/cleanup-unused-imports.js +8 -8
- package/schematics/bundles/{compiler_host-f313eac9.js → compiler_host-2398e4ca.js} +3 -3
- package/schematics/bundles/control-flow-migration.js +4 -4
- package/schematics/bundles/explicit-standalone-flag.js +6 -6
- package/schematics/bundles/{imports-31a38653.js → imports-047fbbc8.js} +2 -2
- package/schematics/bundles/{index-3891dd55.js → index-10911843.js} +5 -5
- package/schematics/bundles/{index-afc3f749.js → index-e0b2e4a7.js} +5 -5
- package/schematics/bundles/inject-migration.js +8 -8
- package/schematics/bundles/{leading_space-6e7a8ec6.js → leading_space-f8944434.js} +2 -2
- package/schematics/bundles/{migrate_ts_type_references-1abf1f5f.js → migrate_ts_type_references-52508cd4.js} +7 -7
- package/schematics/bundles/{ng_decorators-6878e227.js → ng_decorators-b0d8b324.js} +3 -3
- package/schematics/bundles/{nodes-ffdce442.js → nodes-7758dbf6.js} +2 -2
- package/schematics/bundles/output-migration.js +8 -8
- package/schematics/bundles/pending-tasks.js +6 -6
- package/schematics/bundles/{program-24da9092.js → program-0e1d4f10.js} +13 -13
- package/schematics/bundles/{project_paths-64bc3947.js → project_paths-c48796dd.js} +4 -4
- package/schematics/bundles/{project_tsconfig_paths-6c9cde78.js → project_tsconfig_paths-b558633b.js} +2 -2
- package/schematics/bundles/{property_name-42030525.js → property_name-ac18447e.js} +2 -2
- package/schematics/bundles/provide-initializer.js +6 -6
- package/schematics/bundles/route-lazy-loading.js +6 -6
- package/schematics/bundles/self-closing-tags-migration.js +44 -28
- package/schematics/bundles/signal-input-migration.js +10 -10
- package/schematics/bundles/signal-queries-migration.js +10 -10
- package/schematics/bundles/signals.js +10 -10
- package/schematics/bundles/standalone-migration.js +10 -10
- package/testing/index.d.ts +25 -14
package/testing/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.2.
|
|
3
|
-
* (c) 2010-
|
|
2
|
+
* @license Angular v19.2.1
|
|
3
|
+
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -195,6 +195,7 @@ export declare function fakeAsync(fn: Function, options?: {
|
|
|
195
195
|
* Fake equivalent of `NavigationHistoryEntry`.
|
|
196
196
|
*/
|
|
197
197
|
declare class FakeNavigationHistoryEntry implements NavigationHistoryEntry {
|
|
198
|
+
private eventTarget;
|
|
198
199
|
readonly url: string | null;
|
|
199
200
|
readonly sameDocument: boolean;
|
|
200
201
|
readonly id: string;
|
|
@@ -203,7 +204,7 @@ declare class FakeNavigationHistoryEntry implements NavigationHistoryEntry {
|
|
|
203
204
|
private readonly state;
|
|
204
205
|
private readonly historyState;
|
|
205
206
|
ondispose: ((this: NavigationHistoryEntry, ev: Event) => any) | null;
|
|
206
|
-
constructor(url: string | null, { id, key, index, sameDocument, state, historyState, }: {
|
|
207
|
+
constructor(eventTarget: EventTarget, url: string | null, { id, key, index, sameDocument, state, historyState, }: {
|
|
207
208
|
id: string;
|
|
208
209
|
key: string;
|
|
209
210
|
index: number;
|
|
@@ -216,6 +217,8 @@ declare class FakeNavigationHistoryEntry implements NavigationHistoryEntry {
|
|
|
216
217
|
addEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: AddEventListenerOptions | boolean): void;
|
|
217
218
|
removeEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: EventListenerOptions | boolean): void;
|
|
218
219
|
dispatchEvent(event: Event): boolean;
|
|
220
|
+
/** internal */
|
|
221
|
+
dispose(): void;
|
|
219
222
|
}
|
|
220
223
|
|
|
221
224
|
/**
|
|
@@ -740,10 +743,6 @@ export declare class ɵFakeNavigation implements Navigation {
|
|
|
740
743
|
* The current active entry index into `entriesArr`.
|
|
741
744
|
*/
|
|
742
745
|
private currentEntryIndex;
|
|
743
|
-
/**
|
|
744
|
-
* The current navigate event.
|
|
745
|
-
*/
|
|
746
|
-
private navigateEvent;
|
|
747
746
|
/**
|
|
748
747
|
* A Map of pending traversals, so that traversals to the same entry can be
|
|
749
748
|
* re-used.
|
|
@@ -766,8 +765,6 @@ export declare class ɵFakeNavigation implements Navigation {
|
|
|
766
765
|
private synchronousTraversals;
|
|
767
766
|
/** Whether to allow a call to setInitialEntryForTesting. */
|
|
768
767
|
private canSetInitialEntry;
|
|
769
|
-
/** `EventTarget` to dispatch events. */
|
|
770
|
-
private eventTarget;
|
|
771
768
|
/** The next unique id for created entries. Replace recreates this id. */
|
|
772
769
|
private nextId;
|
|
773
770
|
/** The next unique key for created entries. Replace inherits this id. */
|
|
@@ -830,12 +827,25 @@ export declare class ɵFakeNavigation implements Navigation {
|
|
|
830
827
|
isDisposed(): boolean;
|
|
831
828
|
/** Implementation for all navigations and traversals. */
|
|
832
829
|
private userAgentNavigate;
|
|
833
|
-
/**
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
830
|
+
/**
|
|
831
|
+
* Implementation for a push or replace navigation.
|
|
832
|
+
* https://whatpr.org/html/10919/browsing-the-web.html#url-and-history-update-steps
|
|
833
|
+
* https://whatpr.org/html/10919/nav-history-apis.html#update-the-navigation-api-entries-for-a-same-document-navigation
|
|
834
|
+
*/
|
|
835
|
+
private urlAndHistoryUpdateSteps;
|
|
836
|
+
/**
|
|
837
|
+
* Implementation for a traverse navigation.
|
|
838
|
+
*
|
|
839
|
+
* https://whatpr.org/html/10919/browsing-the-web.html#apply-the-traverse-history-step
|
|
840
|
+
* ...
|
|
841
|
+
* > Let updateDocument be an algorithm step which performs update document for history step application given targetEntry's document, targetEntry, changingNavigableContinuation's update-only, scriptHistoryLength, scriptHistoryIndex, navigationType, entriesForNavigationAPI, and previousEntry.
|
|
842
|
+
* > If targetEntry's document is equal to displayedDocument, then perform updateDocument.
|
|
843
|
+
* https://whatpr.org/html/10919/browsing-the-web.html#update-document-for-history-step-application
|
|
844
|
+
* which then goes to https://whatpr.org/html/10919/nav-history-apis.html#update-the-navigation-api-entries-for-a-same-document-navigation
|
|
845
|
+
*/
|
|
838
846
|
private userAgentTraverse;
|
|
847
|
+
/** https://whatpr.org/html/10919/nav-history-apis.html#update-the-navigation-api-entries-for-a-same-document-navigation */
|
|
848
|
+
private updateNavigationEntriesForSameDocumentNavigation;
|
|
839
849
|
/** Utility method for finding entries with the given `key`. */
|
|
840
850
|
private findEntry;
|
|
841
851
|
set onnavigate(_handler: ((this: Navigation, ev: NavigateEvent) => any) | null);
|
|
@@ -848,6 +858,7 @@ export declare class ɵFakeNavigation implements Navigation {
|
|
|
848
858
|
get onnavigatesuccess(): ((this: Navigation, ev: Event) => any) | null;
|
|
849
859
|
set onnavigateerror(_handler: ((this: Navigation, ev: ErrorEvent) => any) | null);
|
|
850
860
|
get onnavigateerror(): ((this: Navigation, ev: ErrorEvent) => any) | null;
|
|
861
|
+
private _transition;
|
|
851
862
|
get transition(): NavigationTransition | null;
|
|
852
863
|
updateCurrentEntry(_options: NavigationUpdateCurrentEntryOptions): void;
|
|
853
864
|
reload(_options?: NavigationReloadOptions): NavigationResult;
|