@angular/common 20.1.0 → 20.2.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/common_module.d.d.ts +1 -1
- package/fesm2022/common.mjs +14 -14
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/common_module.mjs +86 -86
- package/fesm2022/http/testing.mjs +8 -8
- package/fesm2022/http.mjs +1 -1
- package/fesm2022/location.mjs +16 -16
- package/fesm2022/module.mjs +70 -37
- package/fesm2022/module.mjs.map +1 -1
- package/fesm2022/platform_navigation.mjs +4 -4
- package/fesm2022/testing.mjs +13 -13
- package/fesm2022/upgrade.mjs +5 -5
- package/fesm2022/xhr.mjs +1 -1
- package/http/index.d.ts +243 -1
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +1 -1
- package/module.d.d.ts +26 -1
- package/package.json +2 -2
- package/platform_location.d.d.ts +1 -1
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
- package/xhr.d.d.ts +1 -1
package/http/testing/index.d.ts
CHANGED
package/index.d.ts
CHANGED
package/module.d.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.
|
|
2
|
+
* @license Angular v20.2.0-next.0
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -403,6 +403,17 @@ declare class HttpRequest<T> {
|
|
|
403
403
|
* This can affect whether the request follows redirects automatically, or if it fails when a redirect occurs.
|
|
404
404
|
*/
|
|
405
405
|
readonly redirect: RequestRedirect;
|
|
406
|
+
/**
|
|
407
|
+
* The referrer of the request, which can be used to indicate the origin of the request.
|
|
408
|
+
* This is useful for security and analytics purposes.
|
|
409
|
+
* Value is a same-origin URL, "about:client", or the empty string, to set request's referrer.
|
|
410
|
+
*/
|
|
411
|
+
readonly referrer: string;
|
|
412
|
+
/**
|
|
413
|
+
* The integrity metadata of the request, which can be used to ensure the request is made with the expected content.
|
|
414
|
+
* A cryptographic hash of the resource to be fetched by request
|
|
415
|
+
*/
|
|
416
|
+
readonly integrity: string;
|
|
406
417
|
/**
|
|
407
418
|
* The expected response type of the server.
|
|
408
419
|
*
|
|
@@ -452,6 +463,8 @@ declare class HttpRequest<T> {
|
|
|
452
463
|
cache?: RequestCache;
|
|
453
464
|
mode?: RequestMode;
|
|
454
465
|
redirect?: RequestRedirect;
|
|
466
|
+
referrer?: string;
|
|
467
|
+
integrity?: string;
|
|
455
468
|
/**
|
|
456
469
|
* This property accepts either a boolean to enable/disable transferring cache for eligible
|
|
457
470
|
* requests performed using `HttpClient`, or an object, which allows to configure cache
|
|
@@ -479,6 +492,8 @@ declare class HttpRequest<T> {
|
|
|
479
492
|
timeout?: number;
|
|
480
493
|
mode?: RequestMode;
|
|
481
494
|
redirect?: RequestRedirect;
|
|
495
|
+
referrer?: string;
|
|
496
|
+
integrity?: string;
|
|
482
497
|
});
|
|
483
498
|
constructor(method: 'POST', url: string, body: T | null, init?: {
|
|
484
499
|
headers?: HttpHeaders;
|
|
@@ -493,6 +508,8 @@ declare class HttpRequest<T> {
|
|
|
493
508
|
cache?: RequestCache;
|
|
494
509
|
mode?: RequestMode;
|
|
495
510
|
redirect?: RequestRedirect;
|
|
511
|
+
referrer?: string;
|
|
512
|
+
integrity?: string;
|
|
496
513
|
/**
|
|
497
514
|
* This property accepts either a boolean to enable/disable transferring cache for eligible
|
|
498
515
|
* requests performed using `HttpClient`, or an object, which allows to configure cache
|
|
@@ -520,6 +537,8 @@ declare class HttpRequest<T> {
|
|
|
520
537
|
timeout?: number;
|
|
521
538
|
mode?: RequestMode;
|
|
522
539
|
redirect?: RequestRedirect;
|
|
540
|
+
referrer?: string;
|
|
541
|
+
integrity?: string;
|
|
523
542
|
});
|
|
524
543
|
constructor(method: string, url: string, body: T | null, init?: {
|
|
525
544
|
headers?: HttpHeaders;
|
|
@@ -534,6 +553,8 @@ declare class HttpRequest<T> {
|
|
|
534
553
|
cache?: RequestCache;
|
|
535
554
|
mode?: RequestMode;
|
|
536
555
|
redirect?: RequestRedirect;
|
|
556
|
+
referrer?: string;
|
|
557
|
+
integrity?: string;
|
|
537
558
|
/**
|
|
538
559
|
* This property accepts either a boolean to enable/disable transferring cache for eligible
|
|
539
560
|
* requests performed using `HttpClient`, or an object, which allows to configure cache
|
|
@@ -573,6 +594,8 @@ declare class HttpRequest<T> {
|
|
|
573
594
|
cache?: RequestCache;
|
|
574
595
|
mode?: RequestMode;
|
|
575
596
|
redirect?: RequestRedirect;
|
|
597
|
+
referrer?: string;
|
|
598
|
+
integrity?: string;
|
|
576
599
|
transferCache?: {
|
|
577
600
|
includeHeaders?: string[];
|
|
578
601
|
} | boolean;
|
|
@@ -598,6 +621,8 @@ declare class HttpRequest<T> {
|
|
|
598
621
|
cache?: RequestCache;
|
|
599
622
|
mode?: RequestMode;
|
|
600
623
|
redirect?: RequestRedirect;
|
|
624
|
+
referrer?: string;
|
|
625
|
+
integrity?: string;
|
|
601
626
|
withCredentials?: boolean;
|
|
602
627
|
credentials?: RequestCredentials;
|
|
603
628
|
transferCache?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.2.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": "20.
|
|
47
|
+
"@angular/core": "20.2.0-next.0",
|
|
48
48
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
49
49
|
},
|
|
50
50
|
"repository": {
|
package/platform_location.d.d.ts
CHANGED
package/testing/index.d.ts
CHANGED
package/upgrade/index.d.ts
CHANGED
package/xhr.d.d.ts
CHANGED