@angular/common 15.0.0-next.0 → 15.0.0-next.2
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/esm2020/http/src/client.mjs +4 -4
- package/esm2020/http/src/interceptor.mjs +3 -3
- package/esm2020/http/src/jsonp.mjs +6 -6
- package/esm2020/http/src/module.mjs +15 -15
- package/esm2020/http/src/xhr.mjs +3 -3
- package/esm2020/http/src/xsrf.mjs +6 -6
- package/esm2020/http/testing/src/backend.mjs +3 -3
- package/esm2020/http/testing/src/module.mjs +4 -4
- package/esm2020/src/common.mjs +2 -2
- package/esm2020/src/common_module.mjs +4 -4
- package/esm2020/src/directives/index.mjs +3 -3
- package/esm2020/src/directives/ng_class.mjs +3 -3
- package/esm2020/src/directives/ng_component_outlet.mjs +3 -3
- package/esm2020/src/directives/ng_for_of.mjs +8 -4
- package/esm2020/src/directives/ng_if.mjs +3 -3
- package/esm2020/src/directives/ng_optimized_image/error_helper.mjs +4 -4
- package/esm2020/src/directives/ng_optimized_image/image_loaders/image_loader.mjs +4 -4
- package/esm2020/src/directives/ng_optimized_image/lcp_image_observer.mjs +11 -11
- package/esm2020/src/directives/ng_optimized_image/ng_optimized_image.mjs +88 -67
- package/esm2020/src/directives/ng_optimized_image/preconnect_link_checker.mjs +11 -10
- package/esm2020/src/directives/ng_plural.mjs +6 -6
- package/esm2020/src/directives/ng_style.mjs +3 -3
- package/esm2020/src/directives/ng_switch.mjs +9 -9
- package/esm2020/src/directives/ng_template_outlet.mjs +3 -3
- package/esm2020/src/i18n/localization.mjs +6 -6
- package/esm2020/src/location/hash_location_strategy.mjs +3 -3
- package/esm2020/src/location/location.mjs +3 -3
- package/esm2020/src/location/location_strategy.mjs +6 -6
- package/esm2020/src/location/platform_location.mjs +6 -6
- package/esm2020/src/pipes/async_pipe.mjs +3 -3
- package/esm2020/src/pipes/case_conversion_pipes.mjs +9 -9
- package/esm2020/src/pipes/date_pipe.mjs +3 -3
- package/esm2020/src/pipes/i18n_plural_pipe.mjs +3 -3
- package/esm2020/src/pipes/i18n_select_pipe.mjs +3 -3
- package/esm2020/src/pipes/json_pipe.mjs +3 -3
- package/esm2020/src/pipes/keyvalue_pipe.mjs +3 -3
- package/esm2020/src/pipes/number_pipe.mjs +9 -9
- package/esm2020/src/pipes/slice_pipe.mjs +3 -3
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/location_mock.mjs +3 -3
- package/esm2020/testing/src/mock_location_strategy.mjs +3 -3
- package/esm2020/testing/src/mock_platform_location.mjs +5 -5
- package/esm2020/upgrade/src/location_upgrade_module.mjs +4 -4
- package/fesm2015/common.mjs +216 -194
- package/fesm2015/common.mjs.map +1 -1
- package/fesm2015/http/testing.mjs +8 -8
- package/fesm2015/http.mjs +37 -37
- package/fesm2015/http.mjs.map +1 -1
- package/fesm2015/testing.mjs +11 -11
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/upgrade.mjs +5 -5
- package/fesm2020/common.mjs +216 -194
- package/fesm2020/common.mjs.map +1 -1
- package/fesm2020/http/testing.mjs +8 -8
- package/fesm2020/http.mjs +37 -37
- package/fesm2020/http.mjs.map +1 -1
- package/fesm2020/testing.mjs +11 -11
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/upgrade.mjs +5 -5
- package/http/index.d.ts +72 -69
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +27 -13
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
package/http/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.0.0-next.
|
|
2
|
+
* @license Angular v15.0.0-next.2
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -247,8 +247,8 @@ export declare class HttpClient {
|
|
|
247
247
|
withCredentials?: boolean;
|
|
248
248
|
}): Observable<HttpEvent<string>>;
|
|
249
249
|
/**
|
|
250
|
-
* Constructs a request which interprets the body as a
|
|
251
|
-
* stream.
|
|
250
|
+
* Constructs a request which interprets the body as a JavaScript object and returns the full
|
|
251
|
+
* event stream.
|
|
252
252
|
*
|
|
253
253
|
* @param method The HTTP method.
|
|
254
254
|
* @param url The endpoint URL.
|
|
@@ -272,8 +272,8 @@ export declare class HttpClient {
|
|
|
272
272
|
withCredentials?: boolean;
|
|
273
273
|
}): Observable<HttpEvent<any>>;
|
|
274
274
|
/**
|
|
275
|
-
* Constructs a request which interprets the body as a
|
|
276
|
-
* stream.
|
|
275
|
+
* Constructs a request which interprets the body as a JavaScript object and returns the full
|
|
276
|
+
* event stream.
|
|
277
277
|
*
|
|
278
278
|
* @param method The HTTP method.
|
|
279
279
|
* @param url The endpoint URL.
|
|
@@ -368,7 +368,7 @@ export declare class HttpClient {
|
|
|
368
368
|
withCredentials?: boolean;
|
|
369
369
|
}): Observable<HttpResponse<string>>;
|
|
370
370
|
/**
|
|
371
|
-
* Constructs a request which interprets the body as a
|
|
371
|
+
* Constructs a request which interprets the body as a JavaScript object and returns the full
|
|
372
372
|
* `HttpResponse`.
|
|
373
373
|
*
|
|
374
374
|
* @param method The HTTP method.
|
|
@@ -393,7 +393,7 @@ export declare class HttpClient {
|
|
|
393
393
|
withCredentials?: boolean;
|
|
394
394
|
}): Observable<HttpResponse<Object>>;
|
|
395
395
|
/**
|
|
396
|
-
* Constructs a request which interprets the body as a
|
|
396
|
+
* Constructs a request which interprets the body as a JavaScript object and returns
|
|
397
397
|
* the full `HttpResponse` with the response body in the requested type.
|
|
398
398
|
*
|
|
399
399
|
* @param method The HTTP method.
|
|
@@ -417,8 +417,8 @@ export declare class HttpClient {
|
|
|
417
417
|
withCredentials?: boolean;
|
|
418
418
|
}): Observable<HttpResponse<R>>;
|
|
419
419
|
/**
|
|
420
|
-
* Constructs a request which interprets the body as a
|
|
421
|
-
* `HttpResponse` as a
|
|
420
|
+
* Constructs a request which interprets the body as a JavaScript object and returns the full
|
|
421
|
+
* `HttpResponse` as a JavaScript object.
|
|
422
422
|
*
|
|
423
423
|
* @param method The HTTP method.
|
|
424
424
|
* @param url The endpoint URL.
|
|
@@ -441,7 +441,7 @@ export declare class HttpClient {
|
|
|
441
441
|
withCredentials?: boolean;
|
|
442
442
|
}): Observable<Object>;
|
|
443
443
|
/**
|
|
444
|
-
* Constructs a request which interprets the body as a
|
|
444
|
+
* Constructs a request which interprets the body as a JavaScript object
|
|
445
445
|
* with the response body of the requested type.
|
|
446
446
|
*
|
|
447
447
|
* @param method The HTTP method.
|
|
@@ -629,7 +629,7 @@ export declare class HttpClient {
|
|
|
629
629
|
body?: any | null;
|
|
630
630
|
}): Observable<HttpEvent<string>>;
|
|
631
631
|
/**
|
|
632
|
-
* Constructs a `DELETE` request that interprets the body as
|
|
632
|
+
* Constructs a `DELETE` request that interprets the body as JSON
|
|
633
633
|
* and returns the full event stream.
|
|
634
634
|
*
|
|
635
635
|
* @param url The endpoint URL.
|
|
@@ -653,7 +653,7 @@ export declare class HttpClient {
|
|
|
653
653
|
body?: any | null;
|
|
654
654
|
}): Observable<HttpEvent<Object>>;
|
|
655
655
|
/**
|
|
656
|
-
* Constructs a `DELETE`request that interprets the body as
|
|
656
|
+
* Constructs a `DELETE`request that interprets the body as JSON
|
|
657
657
|
* and returns the full event stream.
|
|
658
658
|
*
|
|
659
659
|
* @param url The endpoint URL.
|
|
@@ -746,7 +746,7 @@ export declare class HttpClient {
|
|
|
746
746
|
body?: any | null;
|
|
747
747
|
}): Observable<HttpResponse<string>>;
|
|
748
748
|
/**
|
|
749
|
-
* Constructs a `DELETE` request the interprets the body as a
|
|
749
|
+
* Constructs a `DELETE` request the interprets the body as a JavaScript object and returns
|
|
750
750
|
* the full `HttpResponse`.
|
|
751
751
|
*
|
|
752
752
|
* @param url The endpoint URL.
|
|
@@ -770,7 +770,7 @@ export declare class HttpClient {
|
|
|
770
770
|
body?: any | null;
|
|
771
771
|
}): Observable<HttpResponse<Object>>;
|
|
772
772
|
/**
|
|
773
|
-
* Constructs a `DELETE` request that interprets the body as
|
|
773
|
+
* Constructs a `DELETE` request that interprets the body as JSON
|
|
774
774
|
* and returns the full `HttpResponse`.
|
|
775
775
|
*
|
|
776
776
|
* @param url The endpoint URL.
|
|
@@ -793,8 +793,8 @@ export declare class HttpClient {
|
|
|
793
793
|
body?: any | null;
|
|
794
794
|
}): Observable<HttpResponse<T>>;
|
|
795
795
|
/**
|
|
796
|
-
* Constructs a `DELETE` request that interprets the body as
|
|
797
|
-
* returns the response body as
|
|
796
|
+
* Constructs a `DELETE` request that interprets the body as JSON and
|
|
797
|
+
* returns the response body as an object parsed from JSON.
|
|
798
798
|
*
|
|
799
799
|
* @param url The endpoint URL.
|
|
800
800
|
* @param options The HTTP options to send with the request.
|
|
@@ -816,7 +816,7 @@ export declare class HttpClient {
|
|
|
816
816
|
body?: any | null;
|
|
817
817
|
}): Observable<Object>;
|
|
818
818
|
/**
|
|
819
|
-
* Constructs a DELETE request that interprets the body as
|
|
819
|
+
* Constructs a DELETE request that interprets the body as JSON and returns
|
|
820
820
|
* the response in a given type.
|
|
821
821
|
*
|
|
822
822
|
* @param url The endpoint URL.
|
|
@@ -972,7 +972,7 @@ export declare class HttpClient {
|
|
|
972
972
|
withCredentials?: boolean;
|
|
973
973
|
}): Observable<HttpEvent<string>>;
|
|
974
974
|
/**
|
|
975
|
-
* Constructs a `GET` request that interprets the body as
|
|
975
|
+
* Constructs a `GET` request that interprets the body as JSON
|
|
976
976
|
* and returns the full event stream.
|
|
977
977
|
*
|
|
978
978
|
* @param url The endpoint URL.
|
|
@@ -994,8 +994,8 @@ export declare class HttpClient {
|
|
|
994
994
|
withCredentials?: boolean;
|
|
995
995
|
}): Observable<HttpEvent<Object>>;
|
|
996
996
|
/**
|
|
997
|
-
* Constructs a `GET` request that interprets the body as
|
|
998
|
-
* stream.
|
|
997
|
+
* Constructs a `GET` request that interprets the body as JSON and returns the full
|
|
998
|
+
* event stream.
|
|
999
999
|
*
|
|
1000
1000
|
* @param url The endpoint URL.
|
|
1001
1001
|
* @param options The HTTP options to send with the request.
|
|
@@ -1085,7 +1085,7 @@ export declare class HttpClient {
|
|
|
1085
1085
|
withCredentials?: boolean;
|
|
1086
1086
|
}): Observable<HttpResponse<string>>;
|
|
1087
1087
|
/**
|
|
1088
|
-
* Constructs a `GET` request that interprets the body as
|
|
1088
|
+
* Constructs a `GET` request that interprets the body as JSON and
|
|
1089
1089
|
* returns the full `HttpResponse`.
|
|
1090
1090
|
*
|
|
1091
1091
|
* @param url The endpoint URL.
|
|
@@ -1108,7 +1108,7 @@ export declare class HttpClient {
|
|
|
1108
1108
|
withCredentials?: boolean;
|
|
1109
1109
|
}): Observable<HttpResponse<Object>>;
|
|
1110
1110
|
/**
|
|
1111
|
-
* Constructs a `GET` request that interprets the body as
|
|
1111
|
+
* Constructs a `GET` request that interprets the body as JSON and
|
|
1112
1112
|
* returns the full `HttpResponse`.
|
|
1113
1113
|
*
|
|
1114
1114
|
* @param url The endpoint URL.
|
|
@@ -1131,14 +1131,14 @@ export declare class HttpClient {
|
|
|
1131
1131
|
withCredentials?: boolean;
|
|
1132
1132
|
}): Observable<HttpResponse<T>>;
|
|
1133
1133
|
/**
|
|
1134
|
-
* Constructs a `GET` request that interprets the body as
|
|
1135
|
-
* returns the response body as
|
|
1134
|
+
* Constructs a `GET` request that interprets the body as JSON and
|
|
1135
|
+
* returns the response body as an object parsed from JSON.
|
|
1136
1136
|
*
|
|
1137
1137
|
* @param url The endpoint URL.
|
|
1138
1138
|
* @param options The HTTP options to send with the request.
|
|
1139
1139
|
*
|
|
1140
1140
|
*
|
|
1141
|
-
* @return An `Observable` of the response body as a
|
|
1141
|
+
* @return An `Observable` of the response body as a JavaScript object.
|
|
1142
1142
|
*/
|
|
1143
1143
|
get(url: string, options?: {
|
|
1144
1144
|
headers?: HttpHeaders | {
|
|
@@ -1154,7 +1154,7 @@ export declare class HttpClient {
|
|
|
1154
1154
|
withCredentials?: boolean;
|
|
1155
1155
|
}): Observable<Object>;
|
|
1156
1156
|
/**
|
|
1157
|
-
* Constructs a `GET` request that interprets the body as
|
|
1157
|
+
* Constructs a `GET` request that interprets the body as JSON and returns
|
|
1158
1158
|
* the response body in a given type.
|
|
1159
1159
|
*
|
|
1160
1160
|
* @param url The endpoint URL.
|
|
@@ -1311,7 +1311,7 @@ export declare class HttpClient {
|
|
|
1311
1311
|
withCredentials?: boolean;
|
|
1312
1312
|
}): Observable<HttpEvent<string>>;
|
|
1313
1313
|
/**
|
|
1314
|
-
* Constructs a `HEAD` request that interprets the body as
|
|
1314
|
+
* Constructs a `HEAD` request that interprets the body as JSON
|
|
1315
1315
|
* and returns the full HTTP event stream.
|
|
1316
1316
|
*
|
|
1317
1317
|
* @param url The endpoint URL.
|
|
@@ -1334,7 +1334,7 @@ export declare class HttpClient {
|
|
|
1334
1334
|
withCredentials?: boolean;
|
|
1335
1335
|
}): Observable<HttpEvent<Object>>;
|
|
1336
1336
|
/**
|
|
1337
|
-
* Constructs a `HEAD` request that interprets the body as
|
|
1337
|
+
* Constructs a `HEAD` request that interprets the body as JSON and
|
|
1338
1338
|
* returns the full event stream.
|
|
1339
1339
|
*
|
|
1340
1340
|
* @return An `Observable` of all the `HttpEvent`s for the request,
|
|
@@ -1426,7 +1426,7 @@ export declare class HttpClient {
|
|
|
1426
1426
|
withCredentials?: boolean;
|
|
1427
1427
|
}): Observable<HttpResponse<string>>;
|
|
1428
1428
|
/**
|
|
1429
|
-
* Constructs a `HEAD` request that interprets the body as
|
|
1429
|
+
* Constructs a `HEAD` request that interprets the body as JSON and
|
|
1430
1430
|
* returns the full `HttpResponse`.
|
|
1431
1431
|
*
|
|
1432
1432
|
* @param url The endpoint URL.
|
|
@@ -1449,7 +1449,7 @@ export declare class HttpClient {
|
|
|
1449
1449
|
withCredentials?: boolean;
|
|
1450
1450
|
}): Observable<HttpResponse<Object>>;
|
|
1451
1451
|
/**
|
|
1452
|
-
* Constructs a `HEAD` request that interprets the body as
|
|
1452
|
+
* Constructs a `HEAD` request that interprets the body as JSON
|
|
1453
1453
|
* and returns the full `HttpResponse`.
|
|
1454
1454
|
*
|
|
1455
1455
|
* @param url The endpoint URL.
|
|
@@ -1472,13 +1472,14 @@ export declare class HttpClient {
|
|
|
1472
1472
|
withCredentials?: boolean;
|
|
1473
1473
|
}): Observable<HttpResponse<T>>;
|
|
1474
1474
|
/**
|
|
1475
|
-
|
|
1476
|
-
*
|
|
1475
|
+
|
|
1476
|
+
* Constructs a `HEAD` request that interprets the body as JSON and
|
|
1477
|
+
* returns the response body as an object parsed from JSON.
|
|
1477
1478
|
*
|
|
1478
1479
|
* @param url The endpoint URL.
|
|
1479
1480
|
* @param options The HTTP options to send with the request.
|
|
1480
1481
|
*
|
|
1481
|
-
* @return An `Observable` of the response, with the response body as
|
|
1482
|
+
* @return An `Observable` of the response, with the response body as an object parsed from JSON.
|
|
1482
1483
|
*/
|
|
1483
1484
|
head(url: string, options?: {
|
|
1484
1485
|
headers?: HttpHeaders | {
|
|
@@ -1494,7 +1495,7 @@ export declare class HttpClient {
|
|
|
1494
1495
|
withCredentials?: boolean;
|
|
1495
1496
|
}): Observable<Object>;
|
|
1496
1497
|
/**
|
|
1497
|
-
* Constructs a `HEAD` request that interprets the body as
|
|
1498
|
+
* Constructs a `HEAD` request that interprets the body as JSON and returns
|
|
1498
1499
|
* the response in a given type.
|
|
1499
1500
|
*
|
|
1500
1501
|
* @param url The endpoint URL.
|
|
@@ -1674,7 +1675,7 @@ export declare class HttpClient {
|
|
|
1674
1675
|
withCredentials?: boolean;
|
|
1675
1676
|
}): Observable<HttpEvent<string>>;
|
|
1676
1677
|
/**
|
|
1677
|
-
* Constructs an `OPTIONS` request that interprets the body as
|
|
1678
|
+
* Constructs an `OPTIONS` request that interprets the body as JSON
|
|
1678
1679
|
* and returns the full event stream.
|
|
1679
1680
|
*
|
|
1680
1681
|
* @param url The endpoint URL.
|
|
@@ -1697,7 +1698,7 @@ export declare class HttpClient {
|
|
|
1697
1698
|
withCredentials?: boolean;
|
|
1698
1699
|
}): Observable<HttpEvent<Object>>;
|
|
1699
1700
|
/**
|
|
1700
|
-
* Constructs an `OPTIONS` request that interprets the body as
|
|
1701
|
+
* Constructs an `OPTIONS` request that interprets the body as JSON and
|
|
1701
1702
|
* returns the full event stream.
|
|
1702
1703
|
*
|
|
1703
1704
|
* @param url The endpoint URL.
|
|
@@ -1789,7 +1790,7 @@ export declare class HttpClient {
|
|
|
1789
1790
|
withCredentials?: boolean;
|
|
1790
1791
|
}): Observable<HttpResponse<string>>;
|
|
1791
1792
|
/**
|
|
1792
|
-
* Constructs an `OPTIONS` request that interprets the body as
|
|
1793
|
+
* Constructs an `OPTIONS` request that interprets the body as JSON
|
|
1793
1794
|
* and returns the full `HttpResponse`.
|
|
1794
1795
|
*
|
|
1795
1796
|
* @param url The endpoint URL.
|
|
@@ -1812,7 +1813,7 @@ export declare class HttpClient {
|
|
|
1812
1813
|
withCredentials?: boolean;
|
|
1813
1814
|
}): Observable<HttpResponse<Object>>;
|
|
1814
1815
|
/**
|
|
1815
|
-
* Constructs an `OPTIONS` request that interprets the body as
|
|
1816
|
+
* Constructs an `OPTIONS` request that interprets the body as JSON and
|
|
1816
1817
|
* returns the full `HttpResponse`.
|
|
1817
1818
|
*
|
|
1818
1819
|
* @param url The endpoint URL.
|
|
@@ -1835,13 +1836,14 @@ export declare class HttpClient {
|
|
|
1835
1836
|
withCredentials?: boolean;
|
|
1836
1837
|
}): Observable<HttpResponse<T>>;
|
|
1837
1838
|
/**
|
|
1838
|
-
|
|
1839
|
-
*
|
|
1839
|
+
|
|
1840
|
+
* Constructs an `OPTIONS` request that interprets the body as JSON and returns the
|
|
1841
|
+
* response body as an object parsed from JSON.
|
|
1840
1842
|
*
|
|
1841
1843
|
* @param url The endpoint URL.
|
|
1842
1844
|
* @param options HTTP options.
|
|
1843
1845
|
*
|
|
1844
|
-
* @return An `Observable` of the response, with the response body as
|
|
1846
|
+
* @return An `Observable` of the response, with the response body as an object parsed from JSON.
|
|
1845
1847
|
*/
|
|
1846
1848
|
options(url: string, options?: {
|
|
1847
1849
|
headers?: HttpHeaders | {
|
|
@@ -1857,7 +1859,7 @@ export declare class HttpClient {
|
|
|
1857
1859
|
withCredentials?: boolean;
|
|
1858
1860
|
}): Observable<Object>;
|
|
1859
1861
|
/**
|
|
1860
|
-
* Constructs an `OPTIONS` request that interprets the body as
|
|
1862
|
+
* Constructs an `OPTIONS` request that interprets the body as JSON and returns the
|
|
1861
1863
|
* response in a given type.
|
|
1862
1864
|
*
|
|
1863
1865
|
* @param url The endpoint URL.
|
|
@@ -2020,7 +2022,7 @@ export declare class HttpClient {
|
|
|
2020
2022
|
withCredentials?: boolean;
|
|
2021
2023
|
}): Observable<HttpEvent<string>>;
|
|
2022
2024
|
/**
|
|
2023
|
-
* Constructs a `PATCH` request that interprets the body as
|
|
2025
|
+
* Constructs a `PATCH` request that interprets the body as JSON
|
|
2024
2026
|
* and returns the full event stream.
|
|
2025
2027
|
*
|
|
2026
2028
|
* @param url The endpoint URL.
|
|
@@ -2044,7 +2046,7 @@ export declare class HttpClient {
|
|
|
2044
2046
|
withCredentials?: boolean;
|
|
2045
2047
|
}): Observable<HttpEvent<Object>>;
|
|
2046
2048
|
/**
|
|
2047
|
-
* Constructs a `PATCH` request that interprets the body as
|
|
2049
|
+
* Constructs a `PATCH` request that interprets the body as JSON
|
|
2048
2050
|
* and returns the full event stream.
|
|
2049
2051
|
*
|
|
2050
2052
|
* @param url The endpoint URL.
|
|
@@ -2140,7 +2142,7 @@ export declare class HttpClient {
|
|
|
2140
2142
|
withCredentials?: boolean;
|
|
2141
2143
|
}): Observable<HttpResponse<string>>;
|
|
2142
2144
|
/**
|
|
2143
|
-
* Constructs a `PATCH` request that interprets the body as
|
|
2145
|
+
* Constructs a `PATCH` request that interprets the body as JSON
|
|
2144
2146
|
* and returns the full `HttpResponse`.
|
|
2145
2147
|
*
|
|
2146
2148
|
* @param url The endpoint URL.
|
|
@@ -2164,7 +2166,7 @@ export declare class HttpClient {
|
|
|
2164
2166
|
withCredentials?: boolean;
|
|
2165
2167
|
}): Observable<HttpResponse<Object>>;
|
|
2166
2168
|
/**
|
|
2167
|
-
* Constructs a `PATCH` request that interprets the body as
|
|
2169
|
+
* Constructs a `PATCH` request that interprets the body as JSON
|
|
2168
2170
|
* and returns the full `HttpResponse`.
|
|
2169
2171
|
*
|
|
2170
2172
|
* @param url The endpoint URL.
|
|
@@ -2188,14 +2190,15 @@ export declare class HttpClient {
|
|
|
2188
2190
|
withCredentials?: boolean;
|
|
2189
2191
|
}): Observable<HttpResponse<T>>;
|
|
2190
2192
|
/**
|
|
2191
|
-
|
|
2192
|
-
*
|
|
2193
|
+
|
|
2194
|
+
* Constructs a `PATCH` request that interprets the body as JSON and
|
|
2195
|
+
* returns the response body as an object parsed from JSON.
|
|
2193
2196
|
*
|
|
2194
2197
|
* @param url The endpoint URL.
|
|
2195
2198
|
* @param body The resources to edit.
|
|
2196
2199
|
* @param options HTTP options.
|
|
2197
2200
|
*
|
|
2198
|
-
* @return An `Observable` of the response, with the response body as
|
|
2201
|
+
* @return An `Observable` of the response, with the response body as an object parsed from JSON.
|
|
2199
2202
|
*/
|
|
2200
2203
|
patch(url: string, body: any | null, options?: {
|
|
2201
2204
|
headers?: HttpHeaders | {
|
|
@@ -2211,7 +2214,7 @@ export declare class HttpClient {
|
|
|
2211
2214
|
withCredentials?: boolean;
|
|
2212
2215
|
}): Observable<Object>;
|
|
2213
2216
|
/**
|
|
2214
|
-
* Constructs a `PATCH` request that interprets the body as
|
|
2217
|
+
* Constructs a `PATCH` request that interprets the body as JSON
|
|
2215
2218
|
* and returns the response in a given type.
|
|
2216
2219
|
*
|
|
2217
2220
|
* @param url The endpoint URL.
|
|
@@ -2375,8 +2378,8 @@ export declare class HttpClient {
|
|
|
2375
2378
|
withCredentials?: boolean;
|
|
2376
2379
|
}): Observable<HttpEvent<string>>;
|
|
2377
2380
|
/**
|
|
2378
|
-
* Constructs a POST request that interprets the body as
|
|
2379
|
-
* stream.
|
|
2381
|
+
* Constructs a POST request that interprets the body as JSON and returns the full
|
|
2382
|
+
* event stream.
|
|
2380
2383
|
*
|
|
2381
2384
|
* @param url The endpoint URL.
|
|
2382
2385
|
* @param body The content to replace with.
|
|
@@ -2399,8 +2402,8 @@ export declare class HttpClient {
|
|
|
2399
2402
|
withCredentials?: boolean;
|
|
2400
2403
|
}): Observable<HttpEvent<Object>>;
|
|
2401
2404
|
/**
|
|
2402
|
-
* Constructs a POST request that interprets the body as
|
|
2403
|
-
* stream.
|
|
2405
|
+
* Constructs a POST request that interprets the body as JSON and returns the full
|
|
2406
|
+
* event stream.
|
|
2404
2407
|
*
|
|
2405
2408
|
* @param url The endpoint URL.
|
|
2406
2409
|
* @param body The content to replace with.
|
|
@@ -2495,7 +2498,7 @@ export declare class HttpClient {
|
|
|
2495
2498
|
withCredentials?: boolean;
|
|
2496
2499
|
}): Observable<HttpResponse<string>>;
|
|
2497
2500
|
/**
|
|
2498
|
-
* Constructs a `POST` request that interprets the body as
|
|
2501
|
+
* Constructs a `POST` request that interprets the body as JSON
|
|
2499
2502
|
* and returns the full `HttpResponse`.
|
|
2500
2503
|
*
|
|
2501
2504
|
* @param url The endpoint URL.
|
|
@@ -2519,8 +2522,8 @@ export declare class HttpClient {
|
|
|
2519
2522
|
withCredentials?: boolean;
|
|
2520
2523
|
}): Observable<HttpResponse<Object>>;
|
|
2521
2524
|
/**
|
|
2522
|
-
* Constructs a `POST` request that interprets the body as
|
|
2523
|
-
* `HttpResponse`.
|
|
2525
|
+
* Constructs a `POST` request that interprets the body as JSON and returns the
|
|
2526
|
+
* full `HttpResponse`.
|
|
2524
2527
|
*
|
|
2525
2528
|
*
|
|
2526
2529
|
* @param url The endpoint URL.
|
|
@@ -2544,14 +2547,14 @@ export declare class HttpClient {
|
|
|
2544
2547
|
withCredentials?: boolean;
|
|
2545
2548
|
}): Observable<HttpResponse<T>>;
|
|
2546
2549
|
/**
|
|
2547
|
-
* Constructs a `POST` request that interprets the body as
|
|
2548
|
-
*
|
|
2550
|
+
* Constructs a `POST` request that interprets the body as JSON
|
|
2551
|
+
* and returns the response body as an object parsed from JSON.
|
|
2549
2552
|
*
|
|
2550
2553
|
* @param url The endpoint URL.
|
|
2551
2554
|
* @param body The content to replace with.
|
|
2552
2555
|
* @param options HTTP options
|
|
2553
2556
|
*
|
|
2554
|
-
* @return An `Observable` of the response, with the response body as
|
|
2557
|
+
* @return An `Observable` of the response, with the response body as an object parsed from JSON.
|
|
2555
2558
|
*/
|
|
2556
2559
|
post(url: string, body: any | null, options?: {
|
|
2557
2560
|
headers?: HttpHeaders | {
|
|
@@ -2567,7 +2570,7 @@ export declare class HttpClient {
|
|
|
2567
2570
|
withCredentials?: boolean;
|
|
2568
2571
|
}): Observable<Object>;
|
|
2569
2572
|
/**
|
|
2570
|
-
* Constructs a `POST` request that interprets the body as
|
|
2573
|
+
* Constructs a `POST` request that interprets the body as JSON
|
|
2571
2574
|
* and returns an observable of the response.
|
|
2572
2575
|
*
|
|
2573
2576
|
* @param url The endpoint URL.
|
|
@@ -2732,8 +2735,8 @@ export declare class HttpClient {
|
|
|
2732
2735
|
withCredentials?: boolean;
|
|
2733
2736
|
}): Observable<HttpEvent<string>>;
|
|
2734
2737
|
/**
|
|
2735
|
-
* Constructs a `PUT` request that interprets the body as
|
|
2736
|
-
* stream.
|
|
2738
|
+
* Constructs a `PUT` request that interprets the body as JSON and returns the full
|
|
2739
|
+
* event stream.
|
|
2737
2740
|
*
|
|
2738
2741
|
* @param url The endpoint URL.
|
|
2739
2742
|
* @param body The resources to add/update.
|
|
@@ -2756,7 +2759,7 @@ export declare class HttpClient {
|
|
|
2756
2759
|
withCredentials?: boolean;
|
|
2757
2760
|
}): Observable<HttpEvent<Object>>;
|
|
2758
2761
|
/**
|
|
2759
|
-
* Constructs a `PUT` request that interprets the body as
|
|
2762
|
+
* Constructs a `PUT` request that interprets the body as JSON and returns the
|
|
2760
2763
|
* full event stream.
|
|
2761
2764
|
*
|
|
2762
2765
|
* @param url The endpoint URL.
|
|
@@ -2852,8 +2855,8 @@ export declare class HttpClient {
|
|
|
2852
2855
|
withCredentials?: boolean;
|
|
2853
2856
|
}): Observable<HttpResponse<string>>;
|
|
2854
2857
|
/**
|
|
2855
|
-
* Constructs a `PUT` request that interprets the body as
|
|
2856
|
-
* response.
|
|
2858
|
+
* Constructs a `PUT` request that interprets the body as JSON and returns the full
|
|
2859
|
+
* HTTP response.
|
|
2857
2860
|
*
|
|
2858
2861
|
* @param url The endpoint URL.
|
|
2859
2862
|
* @param body The resources to add/update.
|
|
@@ -2900,14 +2903,14 @@ export declare class HttpClient {
|
|
|
2900
2903
|
withCredentials?: boolean;
|
|
2901
2904
|
}): Observable<HttpResponse<T>>;
|
|
2902
2905
|
/**
|
|
2903
|
-
* Constructs a `PUT` request that interprets the body as
|
|
2904
|
-
* and returns an observable of
|
|
2906
|
+
* Constructs a `PUT` request that interprets the body as JSON
|
|
2907
|
+
* and returns an observable of JavaScript object.
|
|
2905
2908
|
*
|
|
2906
2909
|
* @param url The endpoint URL.
|
|
2907
2910
|
* @param body The resources to add/update.
|
|
2908
2911
|
* @param options HTTP options
|
|
2909
2912
|
*
|
|
2910
|
-
* @return An `Observable` of the response as a
|
|
2913
|
+
* @return An `Observable` of the response as a JavaScript object.
|
|
2911
2914
|
*/
|
|
2912
2915
|
put(url: string, body: any | null, options?: {
|
|
2913
2916
|
headers?: HttpHeaders | {
|
package/http/testing/index.d.ts
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.0.0-next.
|
|
2
|
+
* @license Angular v15.0.0-next.2
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1049,7 +1049,8 @@ declare namespace i2 {
|
|
|
1049
1049
|
declare namespace i3 {
|
|
1050
1050
|
export {
|
|
1051
1051
|
NgForOfContext,
|
|
1052
|
-
NgForOf
|
|
1052
|
+
NgForOf,
|
|
1053
|
+
NgForOf as NgFor
|
|
1053
1054
|
}
|
|
1054
1055
|
}
|
|
1055
1056
|
|
|
@@ -1723,7 +1724,7 @@ export declare class NgComponentOutlet implements OnChanges, OnDestroy {
|
|
|
1723
1724
|
* @ngModule CommonModule
|
|
1724
1725
|
* @publicApi
|
|
1725
1726
|
*/
|
|
1726
|
-
|
|
1727
|
+
declare class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> implements DoCheck {
|
|
1727
1728
|
private _viewContainer;
|
|
1728
1729
|
private _template;
|
|
1729
1730
|
private _differs;
|
|
@@ -1778,6 +1779,8 @@ export declare class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> impleme
|
|
|
1778
1779
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgForOf<any, any>, never>;
|
|
1779
1780
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgForOf<any, any>, "[ngFor][ngForOf]", never, { "ngForOf": "ngForOf"; "ngForTrackBy": "ngForTrackBy"; "ngForTemplate": "ngForTemplate"; }, {}, never, never, true, never>;
|
|
1780
1781
|
}
|
|
1782
|
+
export { NgForOf as NgFor }
|
|
1783
|
+
export { NgForOf }
|
|
1781
1784
|
|
|
1782
1785
|
/**
|
|
1783
1786
|
* @publicApi
|
|
@@ -2026,8 +2029,8 @@ export declare abstract class NgLocalization {
|
|
|
2026
2029
|
* Follow the steps below to enable and use the directive:
|
|
2027
2030
|
* 1. Import it into the necessary NgModule or a standalone Component.
|
|
2028
2031
|
* 2. Optionally provide an `ImageLoader` if you use an image hosting service.
|
|
2029
|
-
* 3. Update the necessary `<img>` tags in templates and replace `src` attributes with `
|
|
2030
|
-
* Using a `
|
|
2032
|
+
* 3. Update the necessary `<img>` tags in templates and replace `src` attributes with `ngSrc`.
|
|
2033
|
+
* Using a `ngSrc` allows the directive to control when the `src` gets set, which triggers an image
|
|
2031
2034
|
* download.
|
|
2032
2035
|
*
|
|
2033
2036
|
* Step 1: import the `NgOptimizedImage` directive.
|
|
@@ -2053,7 +2056,7 @@ export declare abstract class NgLocalization {
|
|
|
2053
2056
|
*
|
|
2054
2057
|
* To use the **default loader**: no additional code changes are necessary. The URL returned by the
|
|
2055
2058
|
* generic loader will always match the value of "src". In other words, this loader applies no
|
|
2056
|
-
* transformations to the resource URL and the value of the `
|
|
2059
|
+
* transformations to the resource URL and the value of the `ngSrc` attribute will be used as is.
|
|
2057
2060
|
*
|
|
2058
2061
|
* To use an existing loader for a **third-party image service**: add the provider factory for your
|
|
2059
2062
|
* chosen service to the `providers` array. In the example below, the Imgix loader is used:
|
|
@@ -2093,10 +2096,10 @@ export declare abstract class NgLocalization {
|
|
|
2093
2096
|
* ],
|
|
2094
2097
|
* ```
|
|
2095
2098
|
*
|
|
2096
|
-
* Step 3: update `<img>` tags in templates to use `
|
|
2099
|
+
* Step 3: update `<img>` tags in templates to use `ngSrc` instead of `src`.
|
|
2097
2100
|
*
|
|
2098
2101
|
* ```
|
|
2099
|
-
* <img
|
|
2102
|
+
* <img ngSrc="logo.png" width="200" height="100">
|
|
2100
2103
|
* ```
|
|
2101
2104
|
*
|
|
2102
2105
|
* @publicApi
|
|
@@ -2115,24 +2118,35 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
|
|
|
2115
2118
|
* instance that might be already destroyed).
|
|
2116
2119
|
*/
|
|
2117
2120
|
private _renderedSrc;
|
|
2121
|
+
/**
|
|
2122
|
+
* Previously, the `rawSrc` attribute was used to activate the directive.
|
|
2123
|
+
* The attribute was renamed to `ngSrc` and this input just produces an error,
|
|
2124
|
+
* suggesting to switch to `ngSrc` instead.
|
|
2125
|
+
*
|
|
2126
|
+
* This error should be removed in v15.
|
|
2127
|
+
*
|
|
2128
|
+
* @nodoc
|
|
2129
|
+
* @deprecated Use `ngSrc` instead.
|
|
2130
|
+
*/
|
|
2131
|
+
set rawSrc(value: string);
|
|
2118
2132
|
/**
|
|
2119
2133
|
* Name of the source image.
|
|
2120
2134
|
* Image name will be processed by the image loader and the final URL will be applied as the `src`
|
|
2121
2135
|
* property of the image.
|
|
2122
2136
|
*/
|
|
2123
|
-
|
|
2137
|
+
ngSrc: string;
|
|
2124
2138
|
/**
|
|
2125
2139
|
* A comma separated list of width or density descriptors.
|
|
2126
|
-
* The image name will be taken from `
|
|
2140
|
+
* The image name will be taken from `ngSrc` and combined with the list of width or density
|
|
2127
2141
|
* descriptors to generate the final `srcset` property of the image.
|
|
2128
2142
|
*
|
|
2129
2143
|
* Example:
|
|
2130
2144
|
* ```
|
|
2131
|
-
* <img
|
|
2145
|
+
* <img ngSrc="hello.jpg" ngSrcset="100w, 200w" /> =>
|
|
2132
2146
|
* <img src="path/hello.jpg" srcset="path/hello.jpg?w=100 100w, path/hello.jpg?w=200 200w" />
|
|
2133
2147
|
* ```
|
|
2134
2148
|
*/
|
|
2135
|
-
|
|
2149
|
+
ngSrcset: string;
|
|
2136
2150
|
/**
|
|
2137
2151
|
* The intrinsic width of the image in pixels.
|
|
2138
2152
|
*/
|
|
@@ -2168,7 +2182,7 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
|
|
|
2168
2182
|
ngOnDestroy(): void;
|
|
2169
2183
|
private setHostAttribute;
|
|
2170
2184
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgOptimizedImage, never>;
|
|
2171
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgOptimizedImage, "img[rawSrc]", never, { "rawSrc": "rawSrc"; "
|
|
2185
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgOptimizedImage, "img[ngSrc],img[rawSrc]", never, { "rawSrc": "rawSrc"; "ngSrc": "ngSrc"; "ngSrcset": "ngSrcset"; "width": "width"; "height": "height"; "loading": "loading"; "priority": "priority"; "src": "src"; "srcset": "srcset"; }, {}, never, never, true, never>;
|
|
2172
2186
|
}
|
|
2173
2187
|
|
|
2174
2188
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "15.0.0-next.
|
|
3
|
+
"version": "15.0.0-next.2",
|
|
4
4
|
"description": "Angular - commonly needed directives and services",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@angular/core": "15.0.0-next.
|
|
66
|
+
"@angular/core": "15.0.0-next.2",
|
|
67
67
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
68
68
|
},
|
|
69
69
|
"repository": {
|
package/testing/index.d.ts
CHANGED
package/upgrade/index.d.ts
CHANGED