@angular/common 20.1.0-next.2 → 20.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 (35) hide show
  1. package/{common_module.d-Cpp8wYHt.d.ts → common_module.d.d.ts} +17 -13
  2. package/fesm2022/common.mjs +31 -20
  3. package/fesm2022/common.mjs.map +1 -1
  4. package/fesm2022/{common_module-D4mHDfs1.mjs → common_module.mjs} +105 -97
  5. package/fesm2022/common_module.mjs.map +1 -0
  6. package/fesm2022/http/testing.mjs +10 -13
  7. package/fesm2022/http/testing.mjs.map +1 -1
  8. package/fesm2022/http.mjs +29 -17
  9. package/fesm2022/http.mjs.map +1 -1
  10. package/fesm2022/{location-BIEtBxGx.mjs → location.mjs} +17 -17
  11. package/fesm2022/location.mjs.map +1 -0
  12. package/fesm2022/{module-CBsxN_3E.mjs → module.mjs} +215 -51
  13. package/fesm2022/module.mjs.map +1 -0
  14. package/fesm2022/{platform_navigation-B45Jeakb.mjs → platform_navigation.mjs} +5 -5
  15. package/fesm2022/platform_navigation.mjs.map +1 -0
  16. package/fesm2022/testing.mjs +15 -15
  17. package/fesm2022/testing.mjs.map +1 -1
  18. package/fesm2022/upgrade.mjs +7 -7
  19. package/fesm2022/upgrade.mjs.map +1 -1
  20. package/fesm2022/{xhr-CEmSPUGj.mjs → xhr.mjs} +2 -2
  21. package/fesm2022/xhr.mjs.map +1 -0
  22. package/http/index.d.ts +641 -5
  23. package/http/testing/index.d.ts +2 -2
  24. package/index.d.ts +6 -6
  25. package/{module.d-yNBsZ8gb.d.ts → module.d.d.ts} +71 -1
  26. package/package.json +2 -2
  27. package/{platform_location.d-Lbv6Ueec.d.ts → platform_location.d.d.ts} +1 -1
  28. package/testing/index.d.ts +2 -2
  29. package/upgrade/index.d.ts +3 -3
  30. package/{xhr.d-D_1kTQR5.d.ts → xhr.d.d.ts} +1 -1
  31. package/fesm2022/common_module-D4mHDfs1.mjs.map +0 -1
  32. package/fesm2022/location-BIEtBxGx.mjs.map +0 -1
  33. package/fesm2022/module-CBsxN_3E.mjs.map +0 -1
  34. package/fesm2022/platform_navigation-B45Jeakb.mjs.map +0 -1
  35. package/fesm2022/xhr-CEmSPUGj.mjs.map +0 -1
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.2
2
+ * @license Angular v20.1.0-rc.0
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-yNBsZ8gb.js';
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
2
+ * @license Angular v20.1.0-rc.0
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-Cpp8wYHt.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-Cpp8wYHt.js';
12
- import { PlatformLocation, LocationChangeListener } from './platform_location.d-Lbv6Ueec.js';
13
- export { BrowserPlatformLocation, LOCATION_INITIALIZED, LocationChangeEvent } from './platform_location.d-Lbv6Ueec.js';
14
- export { XhrFactory } from './xhr.d-D_1kTQR5.js';
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
2
+ * @license Angular v20.1.0-rc.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -375,10 +375,34 @@ declare class HttpRequest<T> {
375
375
  * Whether this request should be sent with outgoing credentials (cookies).
376
376
  */
377
377
  readonly withCredentials: boolean;
378
+ /**
379
+ * The credentials mode of the request, which determines how cookies and HTTP authentication are handled.
380
+ * This can affect whether cookies are sent with the request, and how authentication is handled.
381
+ */
382
+ readonly credentials: RequestCredentials;
378
383
  /**
379
384
  * 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
385
  */
381
386
  readonly keepalive: boolean;
387
+ /**
388
+ * Controls how the request will interact with the browser's HTTP cache.
389
+ * This affects whether a response is retrieved from the cache, how it is stored, or if it bypasses the cache altogether.
390
+ */
391
+ readonly cache: RequestCache;
392
+ /**
393
+ * 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.
394
+ */
395
+ readonly priority: RequestPriority;
396
+ /**
397
+ * The mode of the request, which determines how the request will interact with the browser's security model.
398
+ * This can affect things like CORS (Cross-Origin Resource Sharing) and same-origin policies.
399
+ */
400
+ readonly mode: RequestMode;
401
+ /**
402
+ * The redirect mode of the request, which determines how redirects are handled.
403
+ * This can affect whether the request follows redirects automatically, or if it fails when a redirect occurs.
404
+ */
405
+ readonly redirect: RequestRedirect;
382
406
  /**
383
407
  * The expected response type of the server.
384
408
  *
@@ -411,6 +435,10 @@ declare class HttpRequest<T> {
411
435
  readonly transferCache?: {
412
436
  includeHeaders?: string[];
413
437
  } | boolean;
438
+ /**
439
+ * The timeout for the backend HTTP request in ms.
440
+ */
441
+ readonly timeout?: number;
414
442
  constructor(method: 'GET' | 'HEAD', url: string, init?: {
415
443
  headers?: HttpHeaders;
416
444
  context?: HttpContext;
@@ -418,7 +446,12 @@ declare class HttpRequest<T> {
418
446
  params?: HttpParams;
419
447
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
420
448
  withCredentials?: boolean;
449
+ credentials?: RequestCredentials;
421
450
  keepalive?: boolean;
451
+ priority?: RequestPriority;
452
+ cache?: RequestCache;
453
+ mode?: RequestMode;
454
+ redirect?: RequestRedirect;
422
455
  /**
423
456
  * This property accepts either a boolean to enable/disable transferring cache for eligible
424
457
  * requests performed using `HttpClient`, or an object, which allows to configure cache
@@ -430,6 +463,7 @@ declare class HttpRequest<T> {
430
463
  transferCache?: {
431
464
  includeHeaders?: string[];
432
465
  } | boolean;
466
+ timeout?: number;
433
467
  });
434
468
  constructor(method: 'DELETE' | 'JSONP' | 'OPTIONS', url: string, init?: {
435
469
  headers?: HttpHeaders;
@@ -438,7 +472,13 @@ declare class HttpRequest<T> {
438
472
  params?: HttpParams;
439
473
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
440
474
  withCredentials?: boolean;
475
+ credentials?: RequestCredentials;
441
476
  keepalive?: boolean;
477
+ priority?: RequestPriority;
478
+ cache?: RequestCache;
479
+ timeout?: number;
480
+ mode?: RequestMode;
481
+ redirect?: RequestRedirect;
442
482
  });
443
483
  constructor(method: 'POST', url: string, body: T | null, init?: {
444
484
  headers?: HttpHeaders;
@@ -447,7 +487,12 @@ declare class HttpRequest<T> {
447
487
  params?: HttpParams;
448
488
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
449
489
  withCredentials?: boolean;
490
+ credentials?: RequestCredentials;
450
491
  keepalive?: boolean;
492
+ priority?: RequestPriority;
493
+ cache?: RequestCache;
494
+ mode?: RequestMode;
495
+ redirect?: RequestRedirect;
451
496
  /**
452
497
  * This property accepts either a boolean to enable/disable transferring cache for eligible
453
498
  * requests performed using `HttpClient`, or an object, which allows to configure cache
@@ -459,6 +504,7 @@ declare class HttpRequest<T> {
459
504
  transferCache?: {
460
505
  includeHeaders?: string[];
461
506
  } | boolean;
507
+ timeout?: number;
462
508
  });
463
509
  constructor(method: 'PUT' | 'PATCH', url: string, body: T | null, init?: {
464
510
  headers?: HttpHeaders;
@@ -467,7 +513,13 @@ declare class HttpRequest<T> {
467
513
  params?: HttpParams;
468
514
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
469
515
  withCredentials?: boolean;
516
+ credentials?: RequestCredentials;
470
517
  keepalive?: boolean;
518
+ priority?: RequestPriority;
519
+ cache?: RequestCache;
520
+ timeout?: number;
521
+ mode?: RequestMode;
522
+ redirect?: RequestRedirect;
471
523
  });
472
524
  constructor(method: string, url: string, body: T | null, init?: {
473
525
  headers?: HttpHeaders;
@@ -476,7 +528,12 @@ declare class HttpRequest<T> {
476
528
  params?: HttpParams;
477
529
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
478
530
  withCredentials?: boolean;
531
+ credentials?: RequestCredentials;
479
532
  keepalive?: boolean;
533
+ priority?: RequestPriority;
534
+ cache?: RequestCache;
535
+ mode?: RequestMode;
536
+ redirect?: RequestRedirect;
480
537
  /**
481
538
  * This property accepts either a boolean to enable/disable transferring cache for eligible
482
539
  * requests performed using `HttpClient`, or an object, which allows to configure cache
@@ -488,6 +545,7 @@ declare class HttpRequest<T> {
488
545
  transferCache?: {
489
546
  includeHeaders?: string[];
490
547
  } | boolean;
548
+ timeout?: number;
491
549
  });
492
550
  /**
493
551
  * Transform the free-form body into a serialized format suitable for
@@ -509,10 +567,16 @@ declare class HttpRequest<T> {
509
567
  params?: HttpParams;
510
568
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
511
569
  withCredentials?: boolean;
570
+ credentials?: RequestCredentials;
512
571
  keepalive?: boolean;
572
+ priority?: RequestPriority;
573
+ cache?: RequestCache;
574
+ mode?: RequestMode;
575
+ redirect?: RequestRedirect;
513
576
  transferCache?: {
514
577
  includeHeaders?: string[];
515
578
  } | boolean;
579
+ timeout?: number;
516
580
  body?: T | null;
517
581
  method?: string;
518
582
  url?: string;
@@ -530,10 +594,16 @@ declare class HttpRequest<T> {
530
594
  params?: HttpParams;
531
595
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
532
596
  keepalive?: boolean;
597
+ priority?: RequestPriority;
598
+ cache?: RequestCache;
599
+ mode?: RequestMode;
600
+ redirect?: RequestRedirect;
533
601
  withCredentials?: boolean;
602
+ credentials?: RequestCredentials;
534
603
  transferCache?: {
535
604
  includeHeaders?: string[];
536
605
  } | boolean;
606
+ timeout?: number;
537
607
  body?: V | null;
538
608
  method?: string;
539
609
  url?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/common",
3
- "version": "20.1.0-next.2",
3
+ "version": "20.1.0-rc.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": "20.1.0-next.2",
47
+ "@angular/core": "20.1.0-rc.0",
48
48
  "rxjs": "^6.5.3 || ^7.4.0"
49
49
  },
50
50
  "repository": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.2
2
+ * @license Angular v20.1.0-rc.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.2
2
+ * @license Angular v20.1.0-rc.0
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-Lbv6Ueec.js';
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.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.2
2
+ * @license Angular v20.1.0-rc.0
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-Cpp8wYHt.js';
8
- import { PlatformLocation } from '../platform_location.d-Lbv6Ueec.js';
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';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.2
2
+ * @license Angular v20.1.0-rc.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */