@angular/common 20.1.0-next.2 → 20.1.0-next.3
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/{common_module.d-Cpp8wYHt.d.ts → common_module.d.d.ts} +11 -11
- package/fesm2022/common.mjs +31 -20
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/{common_module-D4mHDfs1.mjs → common_module.mjs} +97 -97
- package/fesm2022/common_module.mjs.map +1 -0
- package/fesm2022/http/testing.mjs +10 -10
- package/fesm2022/http/testing.mjs.map +1 -1
- package/fesm2022/http.mjs +23 -17
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/{location-BIEtBxGx.mjs → location.mjs} +17 -17
- package/fesm2022/location.mjs.map +1 -0
- package/fesm2022/{module-CBsxN_3E.mjs → module.mjs} +70 -39
- package/fesm2022/module.mjs.map +1 -0
- package/fesm2022/{platform_navigation-B45Jeakb.mjs → platform_navigation.mjs} +5 -5
- package/fesm2022/platform_navigation.mjs.map +1 -0
- package/fesm2022/testing.mjs +15 -15
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +7 -7
- package/fesm2022/upgrade.mjs.map +1 -1
- package/fesm2022/{xhr-CEmSPUGj.mjs → xhr.mjs} +2 -2
- package/fesm2022/xhr.mjs.map +1 -0
- package/http/index.d.ts +250 -5
- package/http/testing/index.d.ts +2 -2
- package/index.d.ts +6 -6
- package/{module.d-yNBsZ8gb.d.ts → module.d.d.ts} +24 -1
- package/package.json +2 -2
- package/{platform_location.d-Lbv6Ueec.d.ts → platform_location.d.d.ts} +1 -1
- package/testing/index.d.ts +2 -2
- package/upgrade/index.d.ts +3 -3
- package/{xhr.d-D_1kTQR5.d.ts → xhr.d.d.ts} +1 -1
- package/fesm2022/common_module-D4mHDfs1.mjs.map +0 -1
- package/fesm2022/location-BIEtBxGx.mjs.map +0 -1
- package/fesm2022/module-CBsxN_3E.mjs.map +0 -1
- package/fesm2022/platform_navigation-B45Jeakb.mjs.map +0 -1
- package/fesm2022/xhr-CEmSPUGj.mjs.map +0 -1
package/http/testing/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0-next.
|
|
2
|
+
* @license Angular v20.1.0-next.3
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { HttpRequest, HttpEvent, HttpHeaders, HttpClientModule } from '../../module.d
|
|
7
|
+
import { HttpRequest, HttpEvent, HttpHeaders, HttpClientModule } from '../../module.d.js';
|
|
8
8
|
import { Observer } from 'rxjs';
|
|
9
9
|
import * as i0 from '@angular/core';
|
|
10
10
|
import { Provider } from '@angular/core';
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0-next.
|
|
2
|
+
* @license Angular v20.1.0-next.3
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
8
|
import { ɵNavigation as _Navigation, ɵNavigationHistoryEntry as _NavigationHistoryEntry, ɵNavigationUpdateCurrentEntryOptions as _NavigationUpdateCurrentEntryOptions, ɵNavigationTransition as _NavigationTransition, ɵNavigationNavigateOptions as _NavigationNavigateOptions, ɵNavigationResult as _NavigationResult, ɵNavigationReloadOptions as _NavigationReloadOptions, ɵNavigationOptions as _NavigationOptions, ɵNavigateEvent as _NavigateEvent, ɵNavigationCurrentEntryChangeEvent as _NavigationCurrentEntryChangeEvent, OnDestroy, Version, Provider, InjectionToken, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
9
9
|
export { DOCUMENT, ɵIMAGE_CONFIG as IMAGE_CONFIG, ɵImageConfig as ImageConfig } from '@angular/core';
|
|
10
|
-
import { LocationStrategy } from './common_module.d
|
|
11
|
-
export { APP_BASE_HREF, AsyncPipe, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe, DatePipeConfig, DecimalPipe, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValue, KeyValuePipe, Location, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf as NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, PathLocationStrategy, PercentPipe, PopStateEvent, SlicePipe, TitleCasePipe, UpperCasePipe } from './common_module.d
|
|
12
|
-
import { PlatformLocation, LocationChangeListener } from './platform_location.d
|
|
13
|
-
export { BrowserPlatformLocation, LOCATION_INITIALIZED, LocationChangeEvent } from './platform_location.d
|
|
14
|
-
export { XhrFactory } from './xhr.d
|
|
10
|
+
import { LocationStrategy } from './common_module.d.js';
|
|
11
|
+
export { APP_BASE_HREF, AsyncPipe, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe, DatePipeConfig, DecimalPipe, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValue, KeyValuePipe, Location, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf as NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, PathLocationStrategy, PercentPipe, PopStateEvent, SlicePipe, TitleCasePipe, UpperCasePipe } from './common_module.d.js';
|
|
12
|
+
import { PlatformLocation, LocationChangeListener } from './platform_location.d.js';
|
|
13
|
+
export { BrowserPlatformLocation, LOCATION_INITIALIZED, LocationChangeEvent } from './platform_location.d.js';
|
|
14
|
+
export { XhrFactory } from './xhr.d.js';
|
|
15
15
|
import 'rxjs';
|
|
16
16
|
|
|
17
17
|
declare function getDOM(): DomAdapter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0-next.
|
|
2
|
+
* @license Angular v20.1.0-next.3
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -379,6 +379,15 @@ declare class HttpRequest<T> {
|
|
|
379
379
|
* When using the fetch implementation and set to `true`, the browser will not abort the associated request if the page that initiated it is unloaded before the request is complete.
|
|
380
380
|
*/
|
|
381
381
|
readonly keepalive: boolean;
|
|
382
|
+
/**
|
|
383
|
+
* Controls how the request will interact with the browser's HTTP cache.
|
|
384
|
+
* This affects whether a response is retrieved from the cache, how it is stored, or if it bypasses the cache altogether.
|
|
385
|
+
*/
|
|
386
|
+
readonly cache: RequestCache;
|
|
387
|
+
/**
|
|
388
|
+
* Indicates the relative priority of the request. This may be used by the browser to decide the order in which requests are dispatched and resources fetched.
|
|
389
|
+
*/
|
|
390
|
+
readonly priority: RequestPriority;
|
|
382
391
|
/**
|
|
383
392
|
* The expected response type of the server.
|
|
384
393
|
*
|
|
@@ -419,6 +428,8 @@ declare class HttpRequest<T> {
|
|
|
419
428
|
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
420
429
|
withCredentials?: boolean;
|
|
421
430
|
keepalive?: boolean;
|
|
431
|
+
priority?: RequestPriority;
|
|
432
|
+
cache?: RequestCache;
|
|
422
433
|
/**
|
|
423
434
|
* This property accepts either a boolean to enable/disable transferring cache for eligible
|
|
424
435
|
* requests performed using `HttpClient`, or an object, which allows to configure cache
|
|
@@ -439,6 +450,8 @@ declare class HttpRequest<T> {
|
|
|
439
450
|
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
440
451
|
withCredentials?: boolean;
|
|
441
452
|
keepalive?: boolean;
|
|
453
|
+
priority?: RequestPriority;
|
|
454
|
+
cache?: RequestCache;
|
|
442
455
|
});
|
|
443
456
|
constructor(method: 'POST', url: string, body: T | null, init?: {
|
|
444
457
|
headers?: HttpHeaders;
|
|
@@ -448,6 +461,8 @@ declare class HttpRequest<T> {
|
|
|
448
461
|
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
449
462
|
withCredentials?: boolean;
|
|
450
463
|
keepalive?: boolean;
|
|
464
|
+
priority?: RequestPriority;
|
|
465
|
+
cache?: RequestCache;
|
|
451
466
|
/**
|
|
452
467
|
* This property accepts either a boolean to enable/disable transferring cache for eligible
|
|
453
468
|
* requests performed using `HttpClient`, or an object, which allows to configure cache
|
|
@@ -468,6 +483,8 @@ declare class HttpRequest<T> {
|
|
|
468
483
|
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
469
484
|
withCredentials?: boolean;
|
|
470
485
|
keepalive?: boolean;
|
|
486
|
+
priority?: RequestPriority;
|
|
487
|
+
cache?: RequestCache;
|
|
471
488
|
});
|
|
472
489
|
constructor(method: string, url: string, body: T | null, init?: {
|
|
473
490
|
headers?: HttpHeaders;
|
|
@@ -477,6 +494,8 @@ declare class HttpRequest<T> {
|
|
|
477
494
|
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
478
495
|
withCredentials?: boolean;
|
|
479
496
|
keepalive?: boolean;
|
|
497
|
+
priority?: RequestPriority;
|
|
498
|
+
cache?: RequestCache;
|
|
480
499
|
/**
|
|
481
500
|
* This property accepts either a boolean to enable/disable transferring cache for eligible
|
|
482
501
|
* requests performed using `HttpClient`, or an object, which allows to configure cache
|
|
@@ -510,6 +529,8 @@ declare class HttpRequest<T> {
|
|
|
510
529
|
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
511
530
|
withCredentials?: boolean;
|
|
512
531
|
keepalive?: boolean;
|
|
532
|
+
priority?: RequestPriority;
|
|
533
|
+
cache?: RequestCache;
|
|
513
534
|
transferCache?: {
|
|
514
535
|
includeHeaders?: string[];
|
|
515
536
|
} | boolean;
|
|
@@ -530,6 +551,8 @@ declare class HttpRequest<T> {
|
|
|
530
551
|
params?: HttpParams;
|
|
531
552
|
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
532
553
|
keepalive?: boolean;
|
|
554
|
+
priority?: RequestPriority;
|
|
555
|
+
cache?: RequestCache;
|
|
533
556
|
withCredentials?: boolean;
|
|
534
557
|
transferCache?: {
|
|
535
558
|
includeHeaders?: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "20.1.0-next.
|
|
3
|
+
"version": "20.1.0-next.3",
|
|
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": "20.1.0-next.
|
|
47
|
+
"@angular/core": "20.1.0-next.3",
|
|
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 v20.1.0-next.
|
|
2
|
+
* @license Angular v20.1.0-next.3
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -9,7 +9,7 @@ import { Provider, InjectionToken } from '@angular/core';
|
|
|
9
9
|
export { ɵFakeNavigation } from '@angular/core/testing';
|
|
10
10
|
import { Location, LocationStrategy } from '@angular/common';
|
|
11
11
|
import { SubscriptionLike } from 'rxjs';
|
|
12
|
-
import { PlatformLocation, LocationChangeListener } from '../platform_location.d
|
|
12
|
+
import { PlatformLocation, LocationChangeListener } from '../platform_location.d.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Return a provider for the `FakeNavigation` in place of the real Navigation API.
|
package/upgrade/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0-next.
|
|
2
|
+
* @license Angular v20.1.0-next.3
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { Location, LocationStrategy, CommonModule } from '../common_module.d
|
|
8
|
-
import { PlatformLocation } from '../platform_location.d
|
|
7
|
+
import { Location, LocationStrategy, CommonModule } from '../common_module.d.js';
|
|
8
|
+
import { PlatformLocation } from '../platform_location.d.js';
|
|
9
9
|
import { UpgradeModule } from '@angular/upgrade/static';
|
|
10
10
|
import * as i0 from '@angular/core';
|
|
11
11
|
import { InjectionToken, ModuleWithProviders } from '@angular/core';
|