@angular/common 20.2.3 → 21.0.0-next.1
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/common_module.d.d.ts +3 -7
- package/fesm2022/common.mjs +2 -2
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/common_module.mjs +2 -11
- package/fesm2022/common_module.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +1 -1
- package/fesm2022/http.mjs +2 -2
- package/fesm2022/location.mjs +1 -1
- package/fesm2022/module.mjs +1297 -1309
- package/fesm2022/module.mjs.map +1 -1
- package/fesm2022/platform_navigation.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/fesm2022/upgrade.mjs +1 -1
- package/fesm2022/xhr.mjs +1 -1
- package/http/index.d.ts +32 -26
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +1 -1
- package/module.d.d.ts +2 -2
- package/package.json +2 -2
- package/platform_location.d.d.ts +1 -1
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
- package/xhr.d.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
package/fesm2022/upgrade.mjs
CHANGED
package/fesm2022/xhr.mjs
CHANGED
package/http/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular
|
|
2
|
+
* @license Angular v21.0.0-next.1
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -8,36 +8,51 @@ import { Observable } from 'rxjs';
|
|
|
8
8
|
import { HttpRequest, HttpEvent, HttpHeaders, HttpContext, HttpParams, HttpResponse, HttpProgressEvent } from '../module.d.js';
|
|
9
9
|
export { HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule, HttpContextToken, HttpDownloadProgressEvent, HttpErrorResponse, HttpEventType, HttpHeaderResponse, HttpParameterCodec, HttpParamsOptions, HttpResponseBase, HttpSentEvent, HttpStatusCode, HttpUploadProgressEvent, HttpUrlEncodingCodec, HttpUserEvent } from '../module.d.js';
|
|
10
10
|
import * as i0 from '@angular/core';
|
|
11
|
-
import {
|
|
11
|
+
import { EnvironmentInjector, InjectionToken, Provider, EnvironmentProviders, Injector, ValueEqualityFn, WritableResource, ResourceRef, Signal } from '@angular/core';
|
|
12
12
|
import { XhrFactory } from '../xhr.d.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* `HttpResponse`.
|
|
15
|
+
* A final `HttpHandler` which will dispatch the request via browser HTTP APIs to a backend.
|
|
17
16
|
*
|
|
18
|
-
*
|
|
19
|
-
* first interceptor in the chain, which dispatches to the second, etc, eventually reaching the
|
|
20
|
-
* `HttpBackend`.
|
|
17
|
+
* Interceptors sit between the `HttpClient` interface and the `HttpBackend`.
|
|
21
18
|
*
|
|
22
|
-
*
|
|
19
|
+
* When injected, `HttpBackend` dispatches requests directly to the backend, without going
|
|
20
|
+
* through the interceptor chain.
|
|
23
21
|
*
|
|
24
22
|
* @publicApi
|
|
25
23
|
*/
|
|
26
|
-
declare abstract class HttpHandler {
|
|
24
|
+
declare abstract class HttpBackend implements HttpHandler {
|
|
27
25
|
abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpBackend, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HttpBackend>;
|
|
28
|
+
}
|
|
29
|
+
declare class HttpInterceptorHandler implements HttpHandler {
|
|
30
|
+
private backend;
|
|
31
|
+
private injector;
|
|
32
|
+
private chain;
|
|
33
|
+
private readonly pendingTasks;
|
|
34
|
+
private readonly contributeToStability;
|
|
35
|
+
constructor(backend: HttpBackend, injector: EnvironmentInjector);
|
|
36
|
+
handle(initialRequest: HttpRequest<any>): Observable<HttpEvent<any>>;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpInterceptorHandler, never>;
|
|
38
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HttpInterceptorHandler>;
|
|
28
39
|
}
|
|
29
40
|
/**
|
|
30
|
-
*
|
|
41
|
+
* Transforms an `HttpRequest` into a stream of `HttpEvent`s, one of which will likely be a
|
|
42
|
+
* `HttpResponse`.
|
|
31
43
|
*
|
|
32
|
-
*
|
|
44
|
+
* `HttpHandler` is injectable. When injected, the handler instance dispatches requests to the
|
|
45
|
+
* first interceptor in the chain, which dispatches to the second, etc, eventually reaching the
|
|
46
|
+
* `HttpBackend`.
|
|
33
47
|
*
|
|
34
|
-
*
|
|
35
|
-
* through the interceptor chain.
|
|
48
|
+
* In an `HttpInterceptor`, the `HttpHandler` parameter is the next interceptor in the chain.
|
|
36
49
|
*
|
|
37
50
|
* @publicApi
|
|
38
51
|
*/
|
|
39
|
-
declare abstract class
|
|
52
|
+
declare abstract class HttpHandler {
|
|
40
53
|
abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpHandler, never>;
|
|
55
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HttpHandler>;
|
|
41
56
|
}
|
|
42
57
|
|
|
43
58
|
/**
|
|
@@ -3880,17 +3895,6 @@ declare const HTTP_INTERCEPTORS: InjectionToken<readonly HttpInterceptor[]>;
|
|
|
3880
3895
|
*/
|
|
3881
3896
|
declare const HTTP_ROOT_INTERCEPTOR_FNS: InjectionToken<readonly HttpInterceptorFn[]>;
|
|
3882
3897
|
declare const REQUESTS_CONTRIBUTE_TO_STABILITY: InjectionToken<boolean>;
|
|
3883
|
-
declare class HttpInterceptorHandler extends HttpHandler {
|
|
3884
|
-
private backend;
|
|
3885
|
-
private injector;
|
|
3886
|
-
private chain;
|
|
3887
|
-
private readonly pendingTasks;
|
|
3888
|
-
private readonly contributeToStability;
|
|
3889
|
-
constructor(backend: HttpBackend, injector: EnvironmentInjector);
|
|
3890
|
-
handle(initialRequest: HttpRequest<any>): Observable<HttpEvent<any>>;
|
|
3891
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HttpInterceptorHandler, never>;
|
|
3892
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HttpInterceptorHandler>;
|
|
3893
|
-
}
|
|
3894
3898
|
|
|
3895
3899
|
/**
|
|
3896
3900
|
* DI token/abstract type representing a map of JSONP callbacks.
|
|
@@ -4468,7 +4472,9 @@ declare abstract class HttpXsrfTokenExtractor {
|
|
|
4468
4472
|
* Will be called for every request, so the token may change between requests.
|
|
4469
4473
|
*/
|
|
4470
4474
|
abstract getToken(): string | null;
|
|
4475
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpXsrfTokenExtractor, never>;
|
|
4476
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HttpXsrfTokenExtractor>;
|
|
4471
4477
|
}
|
|
4472
4478
|
|
|
4473
|
-
export { FetchBackend, HTTP_INTERCEPTORS, HTTP_TRANSFER_CACHE_ORIGIN_MAP, HttpBackend, HttpClient, HttpContext, HttpEvent, HttpFeatureKind, HttpHandler, HttpHeaders, HttpParams, HttpProgressEvent, HttpRequest, HttpResponse, HttpXhrBackend, HttpXsrfTokenExtractor, JsonpClientBackend, JsonpInterceptor, httpResource, provideHttpClient, withFetch, withInterceptors, withInterceptorsFromDi, withJsonpSupport, withNoXsrfProtection, withRequestsMadeViaParent, withXsrfConfiguration, HTTP_ROOT_INTERCEPTOR_FNS as ɵHTTP_ROOT_INTERCEPTOR_FNS, HttpInterceptorHandler as ɵHttpInterceptingHandler,
|
|
4479
|
+
export { FetchBackend, HTTP_INTERCEPTORS, HTTP_TRANSFER_CACHE_ORIGIN_MAP, HttpBackend, HttpClient, HttpContext, HttpEvent, HttpFeatureKind, HttpHandler, HttpHeaders, HttpParams, HttpProgressEvent, HttpRequest, HttpResponse, HttpXhrBackend, HttpXsrfTokenExtractor, JsonpClientBackend, JsonpInterceptor, httpResource, provideHttpClient, withFetch, withInterceptors, withInterceptorsFromDi, withJsonpSupport, withNoXsrfProtection, withRequestsMadeViaParent, withXsrfConfiguration, HTTP_ROOT_INTERCEPTOR_FNS as ɵHTTP_ROOT_INTERCEPTOR_FNS, HttpInterceptorHandler as ɵHttpInterceptingHandler, REQUESTS_CONTRIBUTE_TO_STABILITY as ɵREQUESTS_CONTRIBUTE_TO_STABILITY, withHttpTransferCache as ɵwithHttpTransferCache };
|
|
4474
4480
|
export type { HttpFeature, HttpHandlerFn, HttpInterceptor, HttpInterceptorFn, HttpResourceFn, HttpResourceOptions, HttpResourceRef, HttpResourceRequest, HttpTransferCacheOptions };
|
package/http/testing/index.d.ts
CHANGED
package/index.d.ts
CHANGED
package/module.d.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular
|
|
2
|
+
* @license Angular v21.0.0-next.1
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -746,7 +746,7 @@ interface HttpUserEvent<T> {
|
|
|
746
746
|
*
|
|
747
747
|
* @publicApi
|
|
748
748
|
*/
|
|
749
|
-
type HttpEvent<T> = HttpSentEvent | HttpHeaderResponse | HttpResponse<T> |
|
|
749
|
+
type HttpEvent<T> = HttpSentEvent | HttpHeaderResponse | HttpResponse<T> | HttpProgressEvent | HttpUserEvent<T>;
|
|
750
750
|
/**
|
|
751
751
|
* Base class for both `HttpResponse` and `HttpHeaderResponse`.
|
|
752
752
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.0-next.1",
|
|
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": "
|
|
47
|
+
"@angular/core": "21.0.0-next.1",
|
|
48
48
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
49
49
|
},
|
|
50
50
|
"repository": {
|
package/platform_location.d.d.ts
CHANGED
package/testing/index.d.ts
CHANGED
package/upgrade/index.d.ts
CHANGED
package/xhr.d.d.ts
CHANGED