@angular/common 20.1.0-next.3 → 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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.3
2
+ * @license Angular v20.1.0-rc.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.3
2
+ * @license Angular v20.1.0-rc.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/module.d.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.3
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,6 +375,11 @@ 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
  */
@@ -388,6 +393,16 @@ declare class HttpRequest<T> {
388
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.
389
394
  */
390
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;
391
406
  /**
392
407
  * The expected response type of the server.
393
408
  *
@@ -420,6 +435,10 @@ declare class HttpRequest<T> {
420
435
  readonly transferCache?: {
421
436
  includeHeaders?: string[];
422
437
  } | boolean;
438
+ /**
439
+ * The timeout for the backend HTTP request in ms.
440
+ */
441
+ readonly timeout?: number;
423
442
  constructor(method: 'GET' | 'HEAD', url: string, init?: {
424
443
  headers?: HttpHeaders;
425
444
  context?: HttpContext;
@@ -427,9 +446,12 @@ declare class HttpRequest<T> {
427
446
  params?: HttpParams;
428
447
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
429
448
  withCredentials?: boolean;
449
+ credentials?: RequestCredentials;
430
450
  keepalive?: boolean;
431
451
  priority?: RequestPriority;
432
452
  cache?: RequestCache;
453
+ mode?: RequestMode;
454
+ redirect?: RequestRedirect;
433
455
  /**
434
456
  * This property accepts either a boolean to enable/disable transferring cache for eligible
435
457
  * requests performed using `HttpClient`, or an object, which allows to configure cache
@@ -441,6 +463,7 @@ declare class HttpRequest<T> {
441
463
  transferCache?: {
442
464
  includeHeaders?: string[];
443
465
  } | boolean;
466
+ timeout?: number;
444
467
  });
445
468
  constructor(method: 'DELETE' | 'JSONP' | 'OPTIONS', url: string, init?: {
446
469
  headers?: HttpHeaders;
@@ -449,9 +472,13 @@ declare class HttpRequest<T> {
449
472
  params?: HttpParams;
450
473
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
451
474
  withCredentials?: boolean;
475
+ credentials?: RequestCredentials;
452
476
  keepalive?: boolean;
453
477
  priority?: RequestPriority;
454
478
  cache?: RequestCache;
479
+ timeout?: number;
480
+ mode?: RequestMode;
481
+ redirect?: RequestRedirect;
455
482
  });
456
483
  constructor(method: 'POST', url: string, body: T | null, init?: {
457
484
  headers?: HttpHeaders;
@@ -460,9 +487,12 @@ declare class HttpRequest<T> {
460
487
  params?: HttpParams;
461
488
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
462
489
  withCredentials?: boolean;
490
+ credentials?: RequestCredentials;
463
491
  keepalive?: boolean;
464
492
  priority?: RequestPriority;
465
493
  cache?: RequestCache;
494
+ mode?: RequestMode;
495
+ redirect?: RequestRedirect;
466
496
  /**
467
497
  * This property accepts either a boolean to enable/disable transferring cache for eligible
468
498
  * requests performed using `HttpClient`, or an object, which allows to configure cache
@@ -474,6 +504,7 @@ declare class HttpRequest<T> {
474
504
  transferCache?: {
475
505
  includeHeaders?: string[];
476
506
  } | boolean;
507
+ timeout?: number;
477
508
  });
478
509
  constructor(method: 'PUT' | 'PATCH', url: string, body: T | null, init?: {
479
510
  headers?: HttpHeaders;
@@ -482,9 +513,13 @@ declare class HttpRequest<T> {
482
513
  params?: HttpParams;
483
514
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
484
515
  withCredentials?: boolean;
516
+ credentials?: RequestCredentials;
485
517
  keepalive?: boolean;
486
518
  priority?: RequestPriority;
487
519
  cache?: RequestCache;
520
+ timeout?: number;
521
+ mode?: RequestMode;
522
+ redirect?: RequestRedirect;
488
523
  });
489
524
  constructor(method: string, url: string, body: T | null, init?: {
490
525
  headers?: HttpHeaders;
@@ -493,9 +528,12 @@ declare class HttpRequest<T> {
493
528
  params?: HttpParams;
494
529
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
495
530
  withCredentials?: boolean;
531
+ credentials?: RequestCredentials;
496
532
  keepalive?: boolean;
497
533
  priority?: RequestPriority;
498
534
  cache?: RequestCache;
535
+ mode?: RequestMode;
536
+ redirect?: RequestRedirect;
499
537
  /**
500
538
  * This property accepts either a boolean to enable/disable transferring cache for eligible
501
539
  * requests performed using `HttpClient`, or an object, which allows to configure cache
@@ -507,6 +545,7 @@ declare class HttpRequest<T> {
507
545
  transferCache?: {
508
546
  includeHeaders?: string[];
509
547
  } | boolean;
548
+ timeout?: number;
510
549
  });
511
550
  /**
512
551
  * Transform the free-form body into a serialized format suitable for
@@ -528,12 +567,16 @@ declare class HttpRequest<T> {
528
567
  params?: HttpParams;
529
568
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
530
569
  withCredentials?: boolean;
570
+ credentials?: RequestCredentials;
531
571
  keepalive?: boolean;
532
572
  priority?: RequestPriority;
533
573
  cache?: RequestCache;
574
+ mode?: RequestMode;
575
+ redirect?: RequestRedirect;
534
576
  transferCache?: {
535
577
  includeHeaders?: string[];
536
578
  } | boolean;
579
+ timeout?: number;
537
580
  body?: T | null;
538
581
  method?: string;
539
582
  url?: string;
@@ -553,10 +596,14 @@ declare class HttpRequest<T> {
553
596
  keepalive?: boolean;
554
597
  priority?: RequestPriority;
555
598
  cache?: RequestCache;
599
+ mode?: RequestMode;
600
+ redirect?: RequestRedirect;
556
601
  withCredentials?: boolean;
602
+ credentials?: RequestCredentials;
557
603
  transferCache?: {
558
604
  includeHeaders?: string[];
559
605
  } | boolean;
606
+ timeout?: number;
560
607
  body?: V | null;
561
608
  method?: string;
562
609
  url?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/common",
3
- "version": "20.1.0-next.3",
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.3",
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.3
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.3
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.3
2
+ * @license Angular v20.1.0-rc.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/xhr.d.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.3
2
+ * @license Angular v20.1.0-rc.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */