@angular/common 21.0.0-next.6 → 21.0.0-next.7
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/_module-chunk.mjs +67 -47
- package/fesm2022/_module-chunk.mjs.map +1 -1
- package/fesm2022/_platform_navigation-chunk.mjs +5 -5
- package/fesm2022/_xhr-chunk.mjs +2 -2
- package/fesm2022/common.mjs +15 -15
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http-testing.mjs +9 -9
- package/fesm2022/http.mjs +2 -2
- package/fesm2022/testing.mjs +14 -14
- package/fesm2022/upgrade.mjs +6 -6
- 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 +2 -2
- package/types/http-testing.d.ts +2 -2
- package/types/http.d.ts +123 -2
- package/types/testing.d.ts +2 -2
- package/types/upgrade.d.ts +2 -2
|
@@ -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.7
|
|
3
|
+
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -314,10 +314,10 @@ class HttpClientTestingBackend {
|
|
|
314
314
|
return `Match by function: ${matcher.name}`;
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
318
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
317
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientTestingBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
318
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientTestingBackend });
|
|
319
319
|
}
|
|
320
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
320
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientTestingBackend, decorators: [{
|
|
321
321
|
type: Injectable
|
|
322
322
|
}] });
|
|
323
323
|
function describeRequest(testRequest) {
|
|
@@ -345,11 +345,11 @@ function provideHttpClientTesting() {
|
|
|
345
345
|
* @deprecated Add `provideHttpClientTesting()` to your providers instead.
|
|
346
346
|
*/
|
|
347
347
|
class HttpClientTestingModule {
|
|
348
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
349
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.
|
|
350
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
348
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
349
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientTestingModule, imports: [HttpClientModule] });
|
|
350
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientTestingModule, providers: [provideHttpClientTesting()], imports: [HttpClientModule] });
|
|
351
351
|
}
|
|
352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientTestingModule, decorators: [{
|
|
353
353
|
type: NgModule,
|
|
354
354
|
args: [{
|
|
355
355
|
imports: [HttpClientModule],
|
package/fesm2022/http.mjs
CHANGED
package/fesm2022/testing.mjs
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.7
|
|
3
|
+
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -219,10 +219,10 @@ class MockPlatformLocation {
|
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
223
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
222
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: MockPlatformLocation, deps: [{ token: MOCK_PLATFORM_LOCATION_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
223
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: MockPlatformLocation });
|
|
224
224
|
}
|
|
225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: MockPlatformLocation, decorators: [{
|
|
226
226
|
type: Injectable
|
|
227
227
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
228
228
|
type: Inject,
|
|
@@ -294,10 +294,10 @@ class FakeNavigationPlatformLocation {
|
|
|
294
294
|
getState() {
|
|
295
295
|
return this._platformNavigation.currentEntry.getHistoryState();
|
|
296
296
|
}
|
|
297
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
298
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
297
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: FakeNavigationPlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
298
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: FakeNavigationPlatformLocation });
|
|
299
299
|
}
|
|
300
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: FakeNavigationPlatformLocation, decorators: [{
|
|
301
301
|
type: Injectable
|
|
302
302
|
}], ctorParameters: () => [] });
|
|
303
303
|
|
|
@@ -479,10 +479,10 @@ class SpyLocation {
|
|
|
479
479
|
this._history.push(new LocationState(path, query, state));
|
|
480
480
|
this._historyIndex = this._history.length - 1;
|
|
481
481
|
}
|
|
482
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
483
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
482
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: SpyLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
483
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: SpyLocation });
|
|
484
484
|
}
|
|
485
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: SpyLocation, decorators: [{
|
|
486
486
|
type: Injectable
|
|
487
487
|
}] });
|
|
488
488
|
class LocationState {
|
|
@@ -564,10 +564,10 @@ class MockLocationStrategy extends LocationStrategy {
|
|
|
564
564
|
getState() {
|
|
565
565
|
return this.stateChanges[(this.stateChanges.length || 1) - 1];
|
|
566
566
|
}
|
|
567
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
568
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
567
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: MockLocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
568
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: MockLocationStrategy });
|
|
569
569
|
}
|
|
570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: MockLocationStrategy, decorators: [{
|
|
571
571
|
type: Injectable
|
|
572
572
|
}], ctorParameters: () => [] });
|
|
573
573
|
class _MockPopStateEvent {
|
package/fesm2022/upgrade.mjs
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.7
|
|
3
|
+
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -861,11 +861,11 @@ class LocationUpgradeModule {
|
|
|
861
861
|
],
|
|
862
862
|
};
|
|
863
863
|
}
|
|
864
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
865
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.
|
|
866
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
864
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: LocationUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
865
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.7", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
|
|
866
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
|
|
867
867
|
}
|
|
868
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: LocationUpgradeModule, decorators: [{
|
|
869
869
|
type: NgModule,
|
|
870
870
|
args: [{ imports: [CommonModule] }]
|
|
871
871
|
}] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "21.0.0-next.
|
|
3
|
+
"version": "21.0.0-next.7",
|
|
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": "21.0.0-next.
|
|
47
|
+
"@angular/core": "21.0.0-next.7",
|
|
48
48
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
49
49
|
},
|
|
50
50
|
"repository": {
|
|
@@ -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.7
|
|
3
|
+
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -1942,6 +1942,7 @@ declare class KeyValuePipe implements PipeTransform {
|
|
|
1942
1942
|
transform<K, V>(input: ReadonlyMap<K, V> | null | undefined, compareFn?: ((a: KeyValue<K, V>, b: KeyValue<K, V>) => number) | null): Array<KeyValue<K, V>> | null;
|
|
1943
1943
|
transform<K extends number, V>(input: Record<K, V> | null | undefined, compareFn?: ((a: KeyValue<string, V>, b: KeyValue<string, V>) => number) | null): Array<KeyValue<string, V>> | null;
|
|
1944
1944
|
transform<K extends string, V>(input: Record<K, V> | ReadonlyMap<K, V> | null | undefined, compareFn?: ((a: KeyValue<K, V>, b: KeyValue<K, V>) => number) | null): Array<KeyValue<K, V>> | null;
|
|
1945
|
+
transform<T>(input: T, compareFn?: T extends object ? (a: T[keyof T], b: T[keyof T]) => number : never): T extends object ? Array<KeyValue<keyof T, T[keyof T]>> : null;
|
|
1945
1946
|
static ɵfac: i0.ɵɵFactoryDeclaration<KeyValuePipe, never>;
|
|
1946
1947
|
static ɵpipe: i0.ɵɵPipeDeclaration<KeyValuePipe, "keyvalue", true>;
|
|
1947
1948
|
}
|
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.7
|
|
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
package/types/http-testing.d.ts
CHANGED