@angular/common 20.1.0-rc.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-rc.0
2
+ * @license Angular v20.2.0-next.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-rc.0
2
+ * @license Angular v20.2.0-next.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-rc.0
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.1.0-rc.0",
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.1.0-rc.0",
47
+ "@angular/core": "20.2.0-next.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-rc.0
2
+ * @license Angular v20.2.0-next.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-rc.0
2
+ * @license Angular v20.2.0-next.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-rc.0
2
+ * @license Angular v20.2.0-next.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-rc.0
2
+ * @license Angular v20.2.0-next.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */