@angular/common 17.0.0-next.7 → 17.0.0-rc.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/esm2022/http/public_api.mjs +1 -1
- package/esm2022/http/src/client.mjs +6 -4
- package/esm2022/http/src/errors.mjs +1 -1
- package/esm2022/http/src/fetch.mjs +4 -5
- package/esm2022/http/src/interceptor.mjs +27 -5
- package/esm2022/http/src/jsonp.mjs +6 -6
- package/esm2022/http/src/module.mjs +12 -12
- package/esm2022/http/src/provider.mjs +14 -2
- package/esm2022/http/src/request.mjs +3 -1
- package/esm2022/http/src/transfer_cache.mjs +73 -18
- package/esm2022/http/src/xhr.mjs +3 -3
- package/esm2022/http/src/xsrf.mjs +6 -6
- package/esm2022/http/testing/src/backend.mjs +3 -3
- package/esm2022/http/testing/src/module.mjs +4 -4
- package/esm2022/src/common_module.mjs +4 -4
- package/esm2022/src/directives/ng_class.mjs +3 -3
- package/esm2022/src/directives/ng_component_outlet.mjs +3 -3
- package/esm2022/src/directives/ng_for_of.mjs +3 -3
- package/esm2022/src/directives/ng_if.mjs +3 -3
- package/esm2022/src/directives/ng_optimized_image/index.mjs +3 -2
- package/esm2022/src/directives/ng_optimized_image/lcp_image_observer.mjs +3 -3
- package/esm2022/src/directives/ng_optimized_image/ng_optimized_image.mjs +6 -16
- package/esm2022/src/directives/ng_optimized_image/preconnect_link_checker.mjs +3 -3
- package/esm2022/src/directives/ng_optimized_image/preload-link-creator.mjs +3 -3
- package/esm2022/src/directives/ng_plural.mjs +6 -6
- package/esm2022/src/directives/ng_style.mjs +3 -3
- package/esm2022/src/directives/ng_switch.mjs +21 -12
- package/esm2022/src/directives/ng_switch_equality.mjs +13 -0
- package/esm2022/src/directives/ng_template_outlet.mjs +3 -3
- package/esm2022/src/errors.mjs +1 -1
- package/esm2022/src/i18n/localization.mjs +6 -6
- package/esm2022/src/location/hash_location_strategy.mjs +3 -3
- package/esm2022/src/location/location.mjs +3 -3
- package/esm2022/src/location/location_strategy.mjs +6 -6
- package/esm2022/src/location/platform_location.mjs +6 -6
- package/esm2022/src/pipes/async_pipe.mjs +3 -3
- package/esm2022/src/pipes/case_conversion_pipes.mjs +9 -9
- package/esm2022/src/pipes/date_pipe.mjs +3 -3
- package/esm2022/src/pipes/date_pipe_config.mjs +1 -1
- package/esm2022/src/pipes/i18n_plural_pipe.mjs +3 -3
- package/esm2022/src/pipes/i18n_select_pipe.mjs +3 -3
- package/esm2022/src/pipes/json_pipe.mjs +3 -3
- package/esm2022/src/pipes/keyvalue_pipe.mjs +3 -3
- package/esm2022/src/pipes/number_pipe.mjs +9 -9
- package/esm2022/src/pipes/slice_pipe.mjs +3 -3
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/location_mock.mjs +3 -3
- package/esm2022/testing/src/mock_location_strategy.mjs +3 -3
- package/esm2022/testing/src/mock_platform_location.mjs +3 -3
- package/esm2022/upgrade/src/location_upgrade_module.mjs +4 -4
- package/fesm2022/common.mjs +134 -131
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +8 -8
- package/fesm2022/http.mjs +147 -57
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/testing.mjs +10 -10
- package/fesm2022/upgrade.mjs +5 -5
- package/http/index.d.ts +271 -6
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +7 -22
- package/package.json +3 -2
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
package/http/testing/index.d.ts
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.0-
|
|
2
|
+
* @license Angular v17.0.0-rc.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -9,6 +9,8 @@ import { ChangeDetectorRef } from '@angular/core';
|
|
|
9
9
|
import { DoCheck } from '@angular/core';
|
|
10
10
|
import { ElementRef } from '@angular/core';
|
|
11
11
|
import * as i0 from '@angular/core';
|
|
12
|
+
import { ɵIMAGE_CONFIG as IMAGE_CONFIG } from '@angular/core';
|
|
13
|
+
import { ɵImageConfig as ImageConfig } from '@angular/core';
|
|
12
14
|
import { InjectionToken } from '@angular/core';
|
|
13
15
|
import { Injector } from '@angular/core';
|
|
14
16
|
import { IterableDiffers } from '@angular/core';
|
|
@@ -498,8 +500,8 @@ export declare class DatePipe implements PipeTransform {
|
|
|
498
500
|
* @publicApi
|
|
499
501
|
*/
|
|
500
502
|
export declare interface DatePipeConfig {
|
|
501
|
-
dateFormat
|
|
502
|
-
timezone
|
|
503
|
+
dateFormat?: string;
|
|
504
|
+
timezone?: string;
|
|
503
505
|
}
|
|
504
506
|
|
|
505
507
|
/**
|
|
@@ -1264,13 +1266,7 @@ declare namespace i9 {
|
|
|
1264
1266
|
}
|
|
1265
1267
|
}
|
|
1266
1268
|
|
|
1267
|
-
|
|
1268
|
-
* Injection token that configures the image optimized image functionality.
|
|
1269
|
-
*
|
|
1270
|
-
* @see {@link NgOptimizedImage}
|
|
1271
|
-
* @publicApi
|
|
1272
|
-
*/
|
|
1273
|
-
export declare const IMAGE_CONFIG: InjectionToken<ImageConfig>;
|
|
1269
|
+
export { IMAGE_CONFIG }
|
|
1274
1270
|
|
|
1275
1271
|
/**
|
|
1276
1272
|
* Injection token that configures the image loader function.
|
|
@@ -1281,18 +1277,7 @@ export declare const IMAGE_CONFIG: InjectionToken<ImageConfig>;
|
|
|
1281
1277
|
*/
|
|
1282
1278
|
export declare const IMAGE_LOADER: InjectionToken<ImageLoader>;
|
|
1283
1279
|
|
|
1284
|
-
|
|
1285
|
-
* A configuration object for the NgOptimizedImage directive. Contains:
|
|
1286
|
-
* - breakpoints: An array of integer breakpoints used to generate
|
|
1287
|
-
* srcsets for responsive images.
|
|
1288
|
-
*
|
|
1289
|
-
* Learn more about the responsive image configuration in [the NgOptimizedImage
|
|
1290
|
-
* guide](guide/image-directive).
|
|
1291
|
-
* @publicApi
|
|
1292
|
-
*/
|
|
1293
|
-
export declare type ImageConfig = {
|
|
1294
|
-
breakpoints?: number[];
|
|
1295
|
-
};
|
|
1280
|
+
export { ImageConfig }
|
|
1296
1281
|
|
|
1297
1282
|
/**
|
|
1298
1283
|
* Represents an image loader function. Image loader functions are used by the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "17.0.0-
|
|
3
|
+
"version": "17.0.0-rc.0",
|
|
4
4
|
"description": "Angular - commonly needed directives and services",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"default": "./locales/global/*.js"
|
|
17
17
|
},
|
|
18
18
|
"./locales/*": {
|
|
19
|
+
"types": "./locales/*.d.ts",
|
|
19
20
|
"default": "./locales/*.mjs"
|
|
20
21
|
},
|
|
21
22
|
"./package.json": {
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
}
|
|
54
55
|
},
|
|
55
56
|
"peerDependencies": {
|
|
56
|
-
"@angular/core": "17.0.0-
|
|
57
|
+
"@angular/core": "17.0.0-rc.0",
|
|
57
58
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
58
59
|
},
|
|
59
60
|
"repository": {
|
package/testing/index.d.ts
CHANGED
package/upgrade/index.d.ts
CHANGED