@angular/common 15.0.0-rc.1 → 15.0.0-rc.3
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/public_api.mjs +2 -2
- package/esm2020/http/src/client.mjs +3 -3
- package/esm2020/http/src/interceptor.mjs +4 -4
- package/esm2020/http/src/jsonp.mjs +6 -6
- package/esm2020/http/src/module.mjs +16 -16
- package/esm2020/http/src/provider.mjs +77 -2
- 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_module.mjs +4 -4
- 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 +3 -3
- package/esm2020/src/directives/ng_if.mjs +3 -3
- package/esm2020/src/directives/ng_optimized_image/lcp_image_observer.mjs +3 -3
- package/esm2020/src/directives/ng_optimized_image/ng_optimized_image.mjs +27 -8
- package/esm2020/src/directives/ng_optimized_image/preconnect_link_checker.mjs +3 -3
- package/esm2020/src/directives/ng_optimized_image/preload-link-creator.mjs +3 -3
- 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 +3 -3
- package/esm2020/upgrade/src/location_upgrade_module.mjs +4 -4
- package/fesm2015/common.mjs +137 -118
- package/fesm2015/common.mjs.map +1 -1
- package/fesm2015/http/testing.mjs +8 -8
- package/fesm2015/http.mjs +113 -38
- package/fesm2015/http.mjs.map +1 -1
- package/fesm2015/testing.mjs +10 -10
- package/fesm2015/upgrade.mjs +5 -5
- package/fesm2020/common.mjs +137 -118
- package/fesm2020/common.mjs.map +1 -1
- package/fesm2020/http/testing.mjs +8 -8
- package/fesm2020/http.mjs +113 -38
- package/fesm2020/http.mjs.map +1 -1
- package/fesm2020/testing.mjs +10 -10
- package/fesm2020/upgrade.mjs +5 -5
- package/http/index.d.ts +87 -3
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +1 -1
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
package/fesm2020/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.0.0-rc.
|
|
2
|
+
* @license Angular v15.0.0-rc.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -210,9 +210,9 @@ class SpyLocation {
|
|
|
210
210
|
this._historyIndex = this._history.length - 1;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
SpyLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0-rc.
|
|
214
|
-
SpyLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0-rc.
|
|
215
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0-rc.
|
|
213
|
+
SpyLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0-rc.3", ngImport: i0, type: SpyLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
214
|
+
SpyLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0-rc.3", ngImport: i0, type: SpyLocation });
|
|
215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0-rc.3", ngImport: i0, type: SpyLocation, decorators: [{
|
|
216
216
|
type: Injectable
|
|
217
217
|
}] });
|
|
218
218
|
class LocationState {
|
|
@@ -299,9 +299,9 @@ class MockLocationStrategy extends LocationStrategy {
|
|
|
299
299
|
return this.stateChanges[(this.stateChanges.length || 1) - 1];
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
MockLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0-rc.
|
|
303
|
-
MockLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0-rc.
|
|
304
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0-rc.
|
|
302
|
+
MockLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0-rc.3", ngImport: i0, type: MockLocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
303
|
+
MockLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0-rc.3", ngImport: i0, type: MockLocationStrategy });
|
|
304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0-rc.3", ngImport: i0, type: MockLocationStrategy, decorators: [{
|
|
305
305
|
type: Injectable
|
|
306
306
|
}], ctorParameters: function () { return []; } });
|
|
307
307
|
class _MockPopStateEvent {
|
|
@@ -487,9 +487,9 @@ class MockPlatformLocation {
|
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
MockPlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0-rc.
|
|
491
|
-
MockPlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0-rc.
|
|
492
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0-rc.
|
|
490
|
+
MockPlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0-rc.3", ngImport: i0, type: MockPlatformLocation, deps: [{ token: MOCK_PLATFORM_LOCATION_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
491
|
+
MockPlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0-rc.3", ngImport: i0, type: MockPlatformLocation });
|
|
492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0-rc.3", ngImport: i0, type: MockPlatformLocation, decorators: [{
|
|
493
493
|
type: Injectable
|
|
494
494
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
495
495
|
type: Inject,
|
package/fesm2020/upgrade.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.0.0-rc.
|
|
2
|
+
* @license Angular v15.0.0-rc.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -881,10 +881,10 @@ class LocationUpgradeModule {
|
|
|
881
881
|
};
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
|
-
LocationUpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0-rc.
|
|
885
|
-
LocationUpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0-rc.
|
|
886
|
-
LocationUpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0-rc.
|
|
887
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0-rc.
|
|
884
|
+
LocationUpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0-rc.3", ngImport: i0, type: LocationUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
885
|
+
LocationUpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0-rc.3", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
|
|
886
|
+
LocationUpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0-rc.3", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
|
|
887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0-rc.3", ngImport: i0, type: LocationUpgradeModule, decorators: [{
|
|
888
888
|
type: NgModule,
|
|
889
889
|
args: [{ imports: [CommonModule] }]
|
|
890
890
|
}] });
|
package/http/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.0.0-rc.
|
|
2
|
+
* @license Angular v15.0.0-rc.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -3188,11 +3188,21 @@ export declare enum HttpEventType {
|
|
|
3188
3188
|
User = 5
|
|
3189
3189
|
}
|
|
3190
3190
|
|
|
3191
|
+
/**
|
|
3192
|
+
* A feature for use when configuring `provideHttpClient`.
|
|
3193
|
+
*
|
|
3194
|
+
* @publicApi
|
|
3195
|
+
*/
|
|
3191
3196
|
export declare interface HttpFeature<KindT extends HttpFeatureKind> {
|
|
3192
3197
|
ɵkind: KindT;
|
|
3193
3198
|
ɵproviders: Provider[];
|
|
3194
3199
|
}
|
|
3195
3200
|
|
|
3201
|
+
/**
|
|
3202
|
+
* Identifies a particular kind of `HttpFeature`.
|
|
3203
|
+
*
|
|
3204
|
+
* @publicApi
|
|
3205
|
+
*/
|
|
3196
3206
|
export declare enum HttpFeatureKind {
|
|
3197
3207
|
Interceptors = 0,
|
|
3198
3208
|
LegacyInterceptors = 1,
|
|
@@ -3232,6 +3242,10 @@ export declare abstract class HttpHandler {
|
|
|
3232
3242
|
* This function should only be called within the scope of the request that's currently being
|
|
3233
3243
|
* intercepted. Once that request is complete, this downstream handler function should not be
|
|
3234
3244
|
* called.
|
|
3245
|
+
*
|
|
3246
|
+
* @publicApi
|
|
3247
|
+
*
|
|
3248
|
+
* @see [HTTP Guide](guide/http#intercepting-requests-and-responses)
|
|
3235
3249
|
*/
|
|
3236
3250
|
export declare type HttpHandlerFn = (req: HttpRequest<unknown>) => Observable<HttpEvent<unknown>>;
|
|
3237
3251
|
|
|
@@ -4030,21 +4044,91 @@ export declare class JsonpInterceptor {
|
|
|
4030
4044
|
static ɵprov: i0.ɵɵInjectableDeclaration<JsonpInterceptor>;
|
|
4031
4045
|
}
|
|
4032
4046
|
|
|
4047
|
+
/**
|
|
4048
|
+
* Configures Angular's `HttpClient` service to be available for injection.
|
|
4049
|
+
*
|
|
4050
|
+
* By default, `HttpClient` will be configured for injection with its default options for XSRF
|
|
4051
|
+
* protection of outgoing requests. Additional configuration options can be provided by passing
|
|
4052
|
+
* feature functions to `provideHttpClient`. For example, HTTP interceptors can be added using the
|
|
4053
|
+
* `withInterceptors(...)` feature.
|
|
4054
|
+
*
|
|
4055
|
+
* @see withInterceptors
|
|
4056
|
+
* @see withInterceptorsFromDi
|
|
4057
|
+
* @see withXsrfConfiguration
|
|
4058
|
+
* @see withNoXsrfProtection
|
|
4059
|
+
* @see withJsonpSupport
|
|
4060
|
+
* @see withRequestsMadeViaParent
|
|
4061
|
+
*/
|
|
4033
4062
|
export declare function provideHttpClient(...features: HttpFeature<HttpFeatureKind>[]): EnvironmentProviders;
|
|
4034
4063
|
|
|
4064
|
+
/**
|
|
4065
|
+
* Adds one or more functional-style HTTP interceptors to the configuration of the `HttpClient`
|
|
4066
|
+
* instance.
|
|
4067
|
+
*
|
|
4068
|
+
* @see HttpInterceptorFn
|
|
4069
|
+
* @see provideHttpClient
|
|
4070
|
+
* @publicApi
|
|
4071
|
+
*/
|
|
4035
4072
|
export declare function withInterceptors(interceptorFns: HttpInterceptorFn[]): HttpFeature<HttpFeatureKind.Interceptors>;
|
|
4036
4073
|
|
|
4037
|
-
|
|
4074
|
+
/**
|
|
4075
|
+
* Includes class-based interceptors configured using a multi-provider in the current injector into
|
|
4076
|
+
* the configured `HttpClient` instance.
|
|
4077
|
+
*
|
|
4078
|
+
* Prefer `withInterceptors` and functional interceptors instead, as support for DI-provided
|
|
4079
|
+
* interceptors may be phased out in a later release.
|
|
4080
|
+
*
|
|
4081
|
+
* @see HttpInterceptor
|
|
4082
|
+
* @see HTTP_INTERCEPTORS
|
|
4083
|
+
* @see provideHttpClient
|
|
4084
|
+
*/
|
|
4085
|
+
export declare function withInterceptorsFromDi(): HttpFeature<HttpFeatureKind.LegacyInterceptors>;
|
|
4038
4086
|
|
|
4039
|
-
|
|
4087
|
+
/**
|
|
4088
|
+
* Add JSONP support to the configuration of the current `HttpClient` instance.
|
|
4089
|
+
*
|
|
4090
|
+
* @see provideHttpClient
|
|
4091
|
+
*/
|
|
4092
|
+
export declare function withJsonpSupport(): HttpFeature<HttpFeatureKind.JsonpSupport>;
|
|
4040
4093
|
|
|
4094
|
+
/**
|
|
4095
|
+
* Disables XSRF protection in the configuration of the current `HttpClient` instance.
|
|
4096
|
+
*
|
|
4097
|
+
* This feature is incompatible with the `withXsrfConfiguration` feature.
|
|
4098
|
+
*
|
|
4099
|
+
* @see provideHttpClient
|
|
4100
|
+
*/
|
|
4041
4101
|
export declare function withNoXsrfProtection(): HttpFeature<HttpFeatureKind.NoXsrfProtection>;
|
|
4042
4102
|
|
|
4043
4103
|
/**
|
|
4104
|
+
* Configures the current `HttpClient` instance to make requests via the parent injector's
|
|
4105
|
+
* `HttpClient` instead of directly.
|
|
4106
|
+
*
|
|
4107
|
+
* By default, `provideHttpClient` configures `HttpClient` in its injector to be an independent
|
|
4108
|
+
* instance. For example, even if `HttpClient` is configured in the parent injector with
|
|
4109
|
+
* one or more interceptors, they will not intercept requests made via this instance.
|
|
4110
|
+
*
|
|
4111
|
+
* With this option enabled, once the request has passed through the current injector's
|
|
4112
|
+
* interceptors, it will be delegated to the parent injector's `HttpClient` chain instead of
|
|
4113
|
+
* dispatched directly, and interceptors in the parent configuration will be applied to the request.
|
|
4114
|
+
*
|
|
4115
|
+
* If there are several `HttpClient` instances in the injector hierarchy, it's possible for
|
|
4116
|
+
* `withRequestsMadeViaParent` to be used at multiple levels, which will cause the request to
|
|
4117
|
+
* "bubble up" until either reaching the root level or an `HttpClient` which was not configured with
|
|
4118
|
+
* this option.
|
|
4119
|
+
*
|
|
4120
|
+
* @see provideHttpClient
|
|
4044
4121
|
* @developerPreview
|
|
4045
4122
|
*/
|
|
4046
4123
|
export declare function withRequestsMadeViaParent(): HttpFeature<HttpFeatureKind.RequestsMadeViaParent>;
|
|
4047
4124
|
|
|
4125
|
+
/**
|
|
4126
|
+
* Customizes the XSRF protection for the configuration of the current `HttpClient` instance.
|
|
4127
|
+
*
|
|
4128
|
+
* This feature is incompatible with the `withNoXsrfProtection` feature.
|
|
4129
|
+
*
|
|
4130
|
+
* @see provideHttpClient
|
|
4131
|
+
*/
|
|
4048
4132
|
export declare function withXsrfConfiguration({ cookieName, headerName }: {
|
|
4049
4133
|
cookieName?: string;
|
|
4050
4134
|
headerName?: string;
|
package/http/testing/index.d.ts
CHANGED
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "15.0.0-rc.
|
|
3
|
+
"version": "15.0.0-rc.3",
|
|
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-rc.
|
|
66
|
+
"@angular/core": "15.0.0-rc.3",
|
|
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