@angular/common 21.0.0-next.6 → 21.0.0-next.8
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_module-chunk.mjs +87 -87
- package/fesm2022/_common_module-chunk.mjs.map +1 -1
- package/fesm2022/_location-chunk.mjs +17 -17
- package/fesm2022/_location-chunk.mjs.map +1 -1
- package/fesm2022/_module-chunk.mjs +67 -47
- package/fesm2022/_module-chunk.mjs.map +1 -1
- package/fesm2022/_platform_navigation-chunk.mjs +5 -5
- package/fesm2022/_platform_navigation-chunk.mjs.map +1 -1
- package/fesm2022/_xhr-chunk.mjs +2 -2
- package/fesm2022/_xhr-chunk.mjs.map +1 -1
- package/fesm2022/common.mjs +16 -15
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http-testing.mjs +9 -9
- package/fesm2022/http-testing.mjs.map +1 -1
- package/fesm2022/http.mjs +3 -2
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/testing.mjs +14 -14
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +6 -6
- package/fesm2022/upgrade.mjs.map +1 -1
- package/package.json +2 -2
- package/types/_common_module-chunk.d.ts +3 -2
- package/types/_module-chunk.d.ts +16 -2
- package/types/_platform_location-chunk.d.ts +2 -2
- package/types/_xhr-chunk.d.ts +2 -2
- package/types/common.d.ts +3 -2
- package/types/http-testing.d.ts +2 -2
- package/types/http.d.ts +128 -2
- package/types/testing.d.ts +2 -2
- package/types/upgrade.d.ts +2 -2
package/types/_module-chunk.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
3
|
-
* (c) 2010-2025 Google LLC. https://angular.
|
|
2
|
+
* @license Angular v21.0.0-next.8
|
|
3
|
+
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -414,6 +414,11 @@ declare class HttpRequest<T> {
|
|
|
414
414
|
* A cryptographic hash of the resource to be fetched by request
|
|
415
415
|
*/
|
|
416
416
|
readonly integrity: string;
|
|
417
|
+
/**
|
|
418
|
+
* The referrer policy of the request, which can be used to specify the referrer information to be included with the request.
|
|
419
|
+
* This can affect the amount of referrer information sent with the request, and can be used to enhance privacy and security.
|
|
420
|
+
*/
|
|
421
|
+
readonly referrerPolicy: ReferrerPolicy;
|
|
417
422
|
/**
|
|
418
423
|
* The expected response type of the server.
|
|
419
424
|
*
|
|
@@ -465,6 +470,7 @@ declare class HttpRequest<T> {
|
|
|
465
470
|
redirect?: RequestRedirect;
|
|
466
471
|
referrer?: string;
|
|
467
472
|
integrity?: string;
|
|
473
|
+
referrerPolicy?: ReferrerPolicy;
|
|
468
474
|
/**
|
|
469
475
|
* This property accepts either a boolean to enable/disable transferring cache for eligible
|
|
470
476
|
* requests performed using `HttpClient`, or an object, which allows to configure cache
|
|
@@ -494,6 +500,7 @@ declare class HttpRequest<T> {
|
|
|
494
500
|
redirect?: RequestRedirect;
|
|
495
501
|
referrer?: string;
|
|
496
502
|
integrity?: string;
|
|
503
|
+
referrerPolicy?: ReferrerPolicy;
|
|
497
504
|
});
|
|
498
505
|
constructor(method: 'POST', url: string, body: T | null, init?: {
|
|
499
506
|
headers?: HttpHeaders;
|
|
@@ -510,6 +517,7 @@ declare class HttpRequest<T> {
|
|
|
510
517
|
redirect?: RequestRedirect;
|
|
511
518
|
referrer?: string;
|
|
512
519
|
integrity?: string;
|
|
520
|
+
referrerPolicy?: ReferrerPolicy;
|
|
513
521
|
/**
|
|
514
522
|
* This property accepts either a boolean to enable/disable transferring cache for eligible
|
|
515
523
|
* requests performed using `HttpClient`, or an object, which allows to configure cache
|
|
@@ -539,6 +547,7 @@ declare class HttpRequest<T> {
|
|
|
539
547
|
redirect?: RequestRedirect;
|
|
540
548
|
referrer?: string;
|
|
541
549
|
integrity?: string;
|
|
550
|
+
referrerPolicy?: ReferrerPolicy;
|
|
542
551
|
});
|
|
543
552
|
constructor(method: string, url: string, body: T | null, init?: {
|
|
544
553
|
headers?: HttpHeaders;
|
|
@@ -555,6 +564,7 @@ declare class HttpRequest<T> {
|
|
|
555
564
|
redirect?: RequestRedirect;
|
|
556
565
|
referrer?: string;
|
|
557
566
|
integrity?: string;
|
|
567
|
+
referrerPolicy?: ReferrerPolicy;
|
|
558
568
|
/**
|
|
559
569
|
* This property accepts either a boolean to enable/disable transferring cache for eligible
|
|
560
570
|
* requests performed using `HttpClient`, or an object, which allows to configure cache
|
|
@@ -596,6 +606,7 @@ declare class HttpRequest<T> {
|
|
|
596
606
|
redirect?: RequestRedirect;
|
|
597
607
|
referrer?: string;
|
|
598
608
|
integrity?: string;
|
|
609
|
+
referrerPolicy?: ReferrerPolicy;
|
|
599
610
|
transferCache?: {
|
|
600
611
|
includeHeaders?: string[];
|
|
601
612
|
} | boolean;
|
|
@@ -623,6 +634,7 @@ declare class HttpRequest<T> {
|
|
|
623
634
|
redirect?: RequestRedirect;
|
|
624
635
|
referrer?: string;
|
|
625
636
|
integrity?: string;
|
|
637
|
+
referrerPolicy?: ReferrerPolicy;
|
|
626
638
|
withCredentials?: boolean;
|
|
627
639
|
credentials?: RequestCredentials;
|
|
628
640
|
transferCache?: {
|
|
@@ -765,6 +777,8 @@ declare abstract class HttpResponseBase {
|
|
|
765
777
|
* Textual description of response status code, defaults to OK.
|
|
766
778
|
*
|
|
767
779
|
* Do not depend on this.
|
|
780
|
+
*
|
|
781
|
+
* @deprecated With HTTP/2 and later versions, this will incorrectly remain set to 'OK' even when the status code of a response is not 200.
|
|
768
782
|
*/
|
|
769
783
|
readonly statusText: string;
|
|
770
784
|
/**
|
package/types/_xhr-chunk.d.ts
CHANGED
package/types/common.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
3
|
-
* (c) 2010-2025 Google LLC. https://angular.
|
|
2
|
+
* @license Angular v21.0.0-next.8
|
|
3
|
+
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -1076,6 +1076,7 @@ interface ImagePlaceholderConfig {
|
|
|
1076
1076
|
* ```
|
|
1077
1077
|
*
|
|
1078
1078
|
* @publicApi
|
|
1079
|
+
* @see [Image Optimization Guide](guide/image-optimization)
|
|
1079
1080
|
*/
|
|
1080
1081
|
declare class NgOptimizedImage implements OnInit, OnChanges {
|
|
1081
1082
|
private imageLoader;
|
package/types/http-testing.d.ts
CHANGED