@angular/common 19.2.0-rc.0 → 20.0.0-next.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/fesm2022/common.mjs +142 -118
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +8 -8
- package/fesm2022/http.mjs +41 -42
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/testing.mjs +19 -711
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +5 -5
- package/http/index.d.ts +246 -731
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +25 -146
- package/package.json +2 -2
- package/testing/index.d.ts +4 -1
- package/upgrade/index.d.ts +1 -1
package/http/testing/index.d.ts
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular
|
|
2
|
+
* @license Angular v20.0.0-next.0
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -32,6 +32,16 @@ import { TrackByFunction } from '@angular/core';
|
|
|
32
32
|
import { Type } from '@angular/core';
|
|
33
33
|
import { Version } from '@angular/core';
|
|
34
34
|
import { ViewContainerRef } from '@angular/core';
|
|
35
|
+
import { ɵNavigateEvent } from '@angular/core';
|
|
36
|
+
import { ɵNavigation } from '@angular/core';
|
|
37
|
+
import { ɵNavigationCurrentEntryChangeEvent } from '@angular/core';
|
|
38
|
+
import { ɵNavigationHistoryEntry } from '@angular/core';
|
|
39
|
+
import { ɵNavigationNavigateOptions } from '@angular/core';
|
|
40
|
+
import { ɵNavigationOptions } from '@angular/core';
|
|
41
|
+
import { ɵNavigationReloadOptions } from '@angular/core';
|
|
42
|
+
import { ɵNavigationResult } from '@angular/core';
|
|
43
|
+
import { ɵNavigationTransition } from '@angular/core';
|
|
44
|
+
import { ɵNavigationUpdateCurrentEntryOptions } from '@angular/core';
|
|
35
45
|
|
|
36
46
|
/**
|
|
37
47
|
* A predefined DI token for the base href
|
|
@@ -1678,137 +1688,6 @@ export declare class LowerCasePipe implements PipeTransform {
|
|
|
1678
1688
|
static ɵpipe: i0.ɵɵPipeDeclaration<LowerCasePipe, "lowercase", true>;
|
|
1679
1689
|
}
|
|
1680
1690
|
|
|
1681
|
-
declare class NavigateEvent extends Event {
|
|
1682
|
-
constructor(type: string, eventInit?: NavigateEventInit);
|
|
1683
|
-
readonly navigationType: NavigationTypeString;
|
|
1684
|
-
readonly canIntercept: boolean;
|
|
1685
|
-
readonly userInitiated: boolean;
|
|
1686
|
-
readonly hashChange: boolean;
|
|
1687
|
-
readonly destination: NavigationDestination;
|
|
1688
|
-
readonly signal: AbortSignal;
|
|
1689
|
-
readonly formData: FormData | null;
|
|
1690
|
-
readonly downloadRequest: string | null;
|
|
1691
|
-
readonly info?: unknown;
|
|
1692
|
-
intercept(options?: NavigationInterceptOptions): void;
|
|
1693
|
-
scroll(): void;
|
|
1694
|
-
}
|
|
1695
|
-
|
|
1696
|
-
declare interface NavigateEventInit extends EventInit {
|
|
1697
|
-
navigationType?: NavigationTypeString;
|
|
1698
|
-
canIntercept?: boolean;
|
|
1699
|
-
userInitiated?: boolean;
|
|
1700
|
-
hashChange?: boolean;
|
|
1701
|
-
destination: NavigationDestination;
|
|
1702
|
-
signal: AbortSignal;
|
|
1703
|
-
formData?: FormData | null;
|
|
1704
|
-
downloadRequest?: string | null;
|
|
1705
|
-
info?: unknown;
|
|
1706
|
-
}
|
|
1707
|
-
|
|
1708
|
-
declare class Navigation extends EventTarget {
|
|
1709
|
-
entries(): NavigationHistoryEntry[];
|
|
1710
|
-
readonly currentEntry: NavigationHistoryEntry | null;
|
|
1711
|
-
updateCurrentEntry(options: NavigationUpdateCurrentEntryOptions): void;
|
|
1712
|
-
readonly transition: NavigationTransition | null;
|
|
1713
|
-
readonly canGoBack: boolean;
|
|
1714
|
-
readonly canGoForward: boolean;
|
|
1715
|
-
navigate(url: string, options?: NavigationNavigateOptions): NavigationResult;
|
|
1716
|
-
reload(options?: NavigationReloadOptions): NavigationResult;
|
|
1717
|
-
traverseTo(key: string, options?: NavigationOptions): NavigationResult;
|
|
1718
|
-
back(options?: NavigationOptions): NavigationResult;
|
|
1719
|
-
forward(options?: NavigationOptions): NavigationResult;
|
|
1720
|
-
onnavigate: ((this: Navigation, ev: NavigateEvent) => any) | null;
|
|
1721
|
-
onnavigatesuccess: ((this: Navigation, ev: Event) => any) | null;
|
|
1722
|
-
onnavigateerror: ((this: Navigation, ev: ErrorEvent) => any) | null;
|
|
1723
|
-
oncurrententrychange: ((this: Navigation, ev: NavigationCurrentEntryChangeEvent) => any) | null;
|
|
1724
|
-
addEventListener<K extends keyof NavigationEventMap>(type: K, listener: (this: Navigation, ev: NavigationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1725
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1726
|
-
removeEventListener<K extends keyof NavigationEventMap>(type: K, listener: (this: Navigation, ev: NavigationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1727
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1728
|
-
}
|
|
1729
|
-
|
|
1730
|
-
declare class NavigationCurrentEntryChangeEvent extends Event {
|
|
1731
|
-
constructor(type: string, eventInit?: NavigationCurrentEntryChangeEventInit);
|
|
1732
|
-
readonly navigationType: NavigationTypeString | null;
|
|
1733
|
-
readonly from: NavigationHistoryEntry;
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
declare interface NavigationCurrentEntryChangeEventInit extends EventInit {
|
|
1737
|
-
navigationType?: NavigationTypeString | null;
|
|
1738
|
-
from: NavigationHistoryEntry;
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
|
-
declare class NavigationDestination {
|
|
1742
|
-
readonly url: string;
|
|
1743
|
-
readonly key: string | null;
|
|
1744
|
-
readonly id: string | null;
|
|
1745
|
-
readonly index: number;
|
|
1746
|
-
readonly sameDocument: boolean;
|
|
1747
|
-
getState(): unknown;
|
|
1748
|
-
}
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
declare interface NavigationEventMap {
|
|
1752
|
-
navigate: NavigateEvent;
|
|
1753
|
-
navigatesuccess: Event;
|
|
1754
|
-
navigateerror: ErrorEvent;
|
|
1755
|
-
currententrychange: NavigationCurrentEntryChangeEvent;
|
|
1756
|
-
}
|
|
1757
|
-
|
|
1758
|
-
declare class NavigationHistoryEntry extends EventTarget {
|
|
1759
|
-
readonly key: string;
|
|
1760
|
-
readonly id: string;
|
|
1761
|
-
readonly url: string | null;
|
|
1762
|
-
readonly index: number;
|
|
1763
|
-
readonly sameDocument: boolean;
|
|
1764
|
-
getState(): unknown;
|
|
1765
|
-
ondispose: ((this: NavigationHistoryEntry, ev: Event) => any) | null;
|
|
1766
|
-
addEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1767
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1768
|
-
removeEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1769
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1772
|
-
declare interface NavigationHistoryEntryEventMap {
|
|
1773
|
-
dispose: Event;
|
|
1774
|
-
}
|
|
1775
|
-
|
|
1776
|
-
declare interface NavigationInterceptOptions {
|
|
1777
|
-
handler?: () => Promise<void>;
|
|
1778
|
-
focusReset?: 'after-transition' | 'manual';
|
|
1779
|
-
scroll?: 'after-transition' | 'manual';
|
|
1780
|
-
}
|
|
1781
|
-
|
|
1782
|
-
declare interface NavigationNavigateOptions extends NavigationOptions {
|
|
1783
|
-
state?: unknown;
|
|
1784
|
-
history?: 'auto' | 'push' | 'replace';
|
|
1785
|
-
}
|
|
1786
|
-
|
|
1787
|
-
declare interface NavigationOptions {
|
|
1788
|
-
info?: unknown;
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
declare interface NavigationReloadOptions extends NavigationOptions {
|
|
1792
|
-
state?: unknown;
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
|
-
declare interface NavigationResult {
|
|
1796
|
-
committed: Promise<NavigationHistoryEntry>;
|
|
1797
|
-
finished: Promise<NavigationHistoryEntry>;
|
|
1798
|
-
}
|
|
1799
|
-
|
|
1800
|
-
declare class NavigationTransition {
|
|
1801
|
-
readonly navigationType: NavigationTypeString;
|
|
1802
|
-
readonly from: NavigationHistoryEntry;
|
|
1803
|
-
readonly finished: Promise<void>;
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
|
-
declare type NavigationTypeString = 'reload' | 'push' | 'replace' | 'traverse';
|
|
1807
|
-
|
|
1808
|
-
declare interface NavigationUpdateCurrentEntryOptions {
|
|
1809
|
-
state: unknown;
|
|
1810
|
-
}
|
|
1811
|
-
|
|
1812
1691
|
/**
|
|
1813
1692
|
* @ngModule CommonModule
|
|
1814
1693
|
*
|
|
@@ -3585,22 +3464,22 @@ export declare const ɵPLATFORM_SERVER_ID = "server";
|
|
|
3585
3464
|
* This class wraps the platform Navigation API which allows server-specific and test
|
|
3586
3465
|
* implementations.
|
|
3587
3466
|
*/
|
|
3588
|
-
export declare abstract class ɵPlatformNavigation implements
|
|
3589
|
-
abstract entries():
|
|
3590
|
-
abstract currentEntry:
|
|
3591
|
-
abstract updateCurrentEntry(options:
|
|
3592
|
-
abstract transition:
|
|
3467
|
+
export declare abstract class ɵPlatformNavigation implements ɵNavigation {
|
|
3468
|
+
abstract entries(): ɵNavigationHistoryEntry[];
|
|
3469
|
+
abstract currentEntry: ɵNavigationHistoryEntry | null;
|
|
3470
|
+
abstract updateCurrentEntry(options: ɵNavigationUpdateCurrentEntryOptions): void;
|
|
3471
|
+
abstract transition: ɵNavigationTransition | null;
|
|
3593
3472
|
abstract canGoBack: boolean;
|
|
3594
3473
|
abstract canGoForward: boolean;
|
|
3595
|
-
abstract navigate(url: string, options?:
|
|
3596
|
-
abstract reload(options?:
|
|
3597
|
-
abstract traverseTo(key: string, options?:
|
|
3598
|
-
abstract back(options?:
|
|
3599
|
-
abstract forward(options?:
|
|
3600
|
-
abstract onnavigate: ((this:
|
|
3601
|
-
abstract onnavigatesuccess: ((this:
|
|
3602
|
-
abstract onnavigateerror: ((this:
|
|
3603
|
-
abstract oncurrententrychange: ((this:
|
|
3474
|
+
abstract navigate(url: string, options?: ɵNavigationNavigateOptions | undefined): ɵNavigationResult;
|
|
3475
|
+
abstract reload(options?: ɵNavigationReloadOptions | undefined): ɵNavigationResult;
|
|
3476
|
+
abstract traverseTo(key: string, options?: ɵNavigationOptions | undefined): ɵNavigationResult;
|
|
3477
|
+
abstract back(options?: ɵNavigationOptions | undefined): ɵNavigationResult;
|
|
3478
|
+
abstract forward(options?: ɵNavigationOptions | undefined): ɵNavigationResult;
|
|
3479
|
+
abstract onnavigate: ((this: ɵNavigation, ev: ɵNavigateEvent) => any) | null;
|
|
3480
|
+
abstract onnavigatesuccess: ((this: ɵNavigation, ev: Event) => any) | null;
|
|
3481
|
+
abstract onnavigateerror: ((this: ɵNavigation, ev: ErrorEvent) => any) | null;
|
|
3482
|
+
abstract oncurrententrychange: ((this: ɵNavigation, ev: ɵNavigationCurrentEntryChangeEvent) => any) | null;
|
|
3604
3483
|
abstract addEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
3605
3484
|
abstract removeEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
3606
3485
|
abstract dispatchEvent(event: Event): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.0.0-next.0",
|
|
4
4
|
"description": "Angular - commonly needed directives and services",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@angular/core": "
|
|
47
|
+
"@angular/core": "20.0.0-next.0",
|
|
48
48
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
49
49
|
},
|
|
50
50
|
"repository": {
|
package/testing/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular
|
|
2
|
+
* @license Angular v20.0.0-next.0
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -13,6 +13,7 @@ import { LocationStrategy } from '@angular/common';
|
|
|
13
13
|
import { PlatformLocation } from '@angular/common';
|
|
14
14
|
import { Provider } from '@angular/core';
|
|
15
15
|
import { SubscriptionLike } from 'rxjs';
|
|
16
|
+
import { ɵFakeNavigation } from '@angular/core/testing';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* Provider for mock platform location config
|
|
@@ -144,6 +145,8 @@ export declare class SpyLocation implements Location_2 {
|
|
|
144
145
|
static ɵprov: i0.ɵɵInjectableDeclaration<SpyLocation>;
|
|
145
146
|
}
|
|
146
147
|
|
|
148
|
+
export { ɵFakeNavigation }
|
|
149
|
+
|
|
147
150
|
/**
|
|
148
151
|
* Return a provider for the `FakeNavigation` in place of the real Navigation API.
|
|
149
152
|
*/
|
package/upgrade/index.d.ts
CHANGED