@angular/common 20.2.0 → 21.0.0-next.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0
2
+ * @license Angular v21.0.0-next.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0
2
+ * @license Angular v21.0.0-next.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0
2
+ * @license Angular v21.0.0-next.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/fesm2022/xhr.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0
2
+ * @license Angular v21.0.0-next.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/http/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0
2
+ * @license Angular v21.0.0-next.0
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 { InjectionToken, EnvironmentInjector, Provider, EnvironmentProviders, Injector, ValueEqualityFn, WritableResource, ResourceRef, Signal } from '@angular/core';
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
- * Transforms an `HttpRequest` into a stream of `HttpEvent`s, one of which will likely be a
16
- * `HttpResponse`.
15
+ * A final `HttpHandler` which will dispatch the request via browser HTTP APIs to a backend.
17
16
  *
18
- * `HttpHandler` is injectable. When injected, the handler instance dispatches requests to the
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
- * In an `HttpInterceptor`, the `HttpHandler` parameter is the next interceptor in the chain.
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
- * A final `HttpHandler` which will dispatch the request via browser HTTP APIs to a backend.
41
+ * Transforms an `HttpRequest` into a stream of `HttpEvent`s, one of which will likely be a
42
+ * `HttpResponse`.
31
43
  *
32
- * Interceptors sit between the `HttpClient` interface and the `HttpBackend`.
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
- * When injected, `HttpBackend` dispatches requests directly to the backend, without going
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 HttpBackend implements HttpHandler {
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, HttpInterceptorHandler as ɵHttpInterceptorHandler, REQUESTS_CONTRIBUTE_TO_STABILITY as ɵREQUESTS_CONTRIBUTE_TO_STABILITY, withHttpTransferCache as ɵwithHttpTransferCache };
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 };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0
2
+ * @license Angular v21.0.0-next.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0
2
+ * @license Angular v21.0.0-next.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/module.d.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0
2
+ * @license Angular v21.0.0-next.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/common",
3
- "version": "20.2.0",
3
+ "version": "21.0.0-next.0",
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": "20.2.0",
47
+ "@angular/core": "21.0.0-next.0",
48
48
  "rxjs": "^6.5.3 || ^7.4.0"
49
49
  },
50
50
  "repository": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0
2
+ * @license Angular v21.0.0-next.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0
2
+ * @license Angular v21.0.0-next.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0
2
+ * @license Angular v21.0.0-next.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/xhr.d.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0
2
+ * @license Angular v21.0.0-next.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */