@angular/common 17.0.0-next.5 → 17.0.0-next.7

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.
Files changed (56) hide show
  1. package/esm2022/http/src/client.mjs +4 -4
  2. package/esm2022/http/src/fetch.mjs +3 -3
  3. package/esm2022/http/src/interceptor.mjs +14 -5
  4. package/esm2022/http/src/jsonp.mjs +9 -9
  5. package/esm2022/http/src/module.mjs +12 -12
  6. package/esm2022/http/src/provider.mjs +3 -2
  7. package/esm2022/http/src/transfer_cache.mjs +4 -4
  8. package/esm2022/http/src/xhr.mjs +4 -4
  9. package/esm2022/http/src/xsrf.mjs +9 -9
  10. package/esm2022/http/testing/src/backend.mjs +3 -3
  11. package/esm2022/http/testing/src/module.mjs +4 -4
  12. package/esm2022/src/common_module.mjs +4 -4
  13. package/esm2022/src/directives/ng_class.mjs +5 -5
  14. package/esm2022/src/directives/ng_component_outlet.mjs +5 -5
  15. package/esm2022/src/directives/ng_for_of.mjs +5 -5
  16. package/esm2022/src/directives/ng_if.mjs +5 -5
  17. package/esm2022/src/directives/ng_optimized_image/lcp_image_observer.mjs +8 -8
  18. package/esm2022/src/directives/ng_optimized_image/ng_optimized_image.mjs +3 -3
  19. package/esm2022/src/directives/ng_optimized_image/preconnect_link_checker.mjs +4 -4
  20. package/esm2022/src/directives/ng_optimized_image/preload-link-creator.mjs +3 -3
  21. package/esm2022/src/directives/ng_plural.mjs +10 -10
  22. package/esm2022/src/directives/ng_style.mjs +5 -5
  23. package/esm2022/src/directives/ng_switch.mjs +14 -14
  24. package/esm2022/src/directives/ng_template_outlet.mjs +44 -16
  25. package/esm2022/src/i18n/localization.mjs +8 -8
  26. package/esm2022/src/location/hash_location_strategy.mjs +5 -5
  27. package/esm2022/src/location/location.mjs +4 -4
  28. package/esm2022/src/location/location_strategy.mjs +8 -8
  29. package/esm2022/src/location/platform_location.mjs +7 -7
  30. package/esm2022/src/pipes/async_pipe.mjs +4 -4
  31. package/esm2022/src/pipes/case_conversion_pipes.mjs +9 -9
  32. package/esm2022/src/pipes/date_pipe.mjs +5 -5
  33. package/esm2022/src/pipes/i18n_plural_pipe.mjs +4 -4
  34. package/esm2022/src/pipes/i18n_select_pipe.mjs +3 -3
  35. package/esm2022/src/pipes/json_pipe.mjs +3 -3
  36. package/esm2022/src/pipes/keyvalue_pipe.mjs +4 -4
  37. package/esm2022/src/pipes/number_pipe.mjs +15 -15
  38. package/esm2022/src/pipes/slice_pipe.mjs +3 -3
  39. package/esm2022/src/version.mjs +1 -1
  40. package/esm2022/testing/src/location_mock.mjs +3 -3
  41. package/esm2022/testing/src/mock_location_strategy.mjs +4 -4
  42. package/esm2022/testing/src/mock_platform_location.mjs +5 -5
  43. package/esm2022/upgrade/src/location_upgrade_module.mjs +4 -4
  44. package/fesm2022/common.mjs +190 -162
  45. package/fesm2022/common.mjs.map +1 -1
  46. package/fesm2022/http/testing.mjs +8 -8
  47. package/fesm2022/http.mjs +59 -49
  48. package/fesm2022/http.mjs.map +1 -1
  49. package/fesm2022/testing.mjs +13 -13
  50. package/fesm2022/upgrade.mjs +5 -5
  51. package/http/index.d.ts +1 -1
  52. package/http/testing/index.d.ts +1 -1
  53. package/index.d.ts +13 -2
  54. package/package.json +2 -2
  55. package/testing/index.d.ts +1 -1
  56. package/upgrade/index.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.0.0-next.5
2
+ * @license Angular v17.0.0-next.7
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -308,10 +308,10 @@ class HttpClientTestingBackend {
308
308
  return `Match by function: ${matcher.name}`;
309
309
  }
310
310
  }
311
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientTestingBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
312
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientTestingBackend }); }
311
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientTestingBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
312
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientTestingBackend }); }
313
313
  }
314
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientTestingBackend, decorators: [{
314
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientTestingBackend, decorators: [{
315
315
  type: Injectable
316
316
  }] });
317
317
  function describeRequest(testRequest) {
@@ -336,13 +336,13 @@ function provideHttpClientTesting() {
336
336
  * @publicApi
337
337
  */
338
338
  class HttpClientTestingModule {
339
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
340
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientTestingModule, imports: [HttpClientModule] }); }
341
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientTestingModule, providers: [
339
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
340
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientTestingModule, imports: [HttpClientModule] }); }
341
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientTestingModule, providers: [
342
342
  provideHttpClientTesting(),
343
343
  ], imports: [HttpClientModule] }); }
344
344
  }
345
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientTestingModule, decorators: [{
345
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientTestingModule, decorators: [{
346
346
  type: NgModule,
347
347
  args: [{
348
348
  imports: [
package/fesm2022/http.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Angular v17.0.0-next.5
2
+ * @license Angular v17.0.0-next.7
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import * as i0 from '@angular/core';
8
- import { Injectable, inject, NgZone, InjectionToken, ɵInitialRenderPendingTasks, Inject, ɵRuntimeError, PLATFORM_ID, makeEnvironmentProviders, NgModule, TransferState, makeStateKey, ɵENABLED_SSR_FEATURES, APP_BOOTSTRAP_LISTENER, ApplicationRef } from '@angular/core';
8
+ import { Injectable, inject, NgZone, InjectionToken, ɵInitialRenderPendingTasks, Inject, ɵRuntimeError, PLATFORM_ID, makeEnvironmentProviders, NgModule, TransferState, makeStateKey, ɵENABLED_SSR_FEATURES, APP_BOOTSTRAP_LISTENER, ApplicationRef, ɵwhenStable } from '@angular/core';
9
9
  import { of, Observable, from } from 'rxjs';
10
- import { concatMap, filter, map, finalize, switchMap, tap, first } from 'rxjs/operators';
10
+ import { concatMap, filter, map, finalize, switchMap, tap } from 'rxjs/operators';
11
11
  import * as i1 from '@angular/common';
12
12
  import { DOCUMENT, ɵparseCookieValue } from '@angular/common';
13
13
 
@@ -1373,12 +1373,12 @@ class HttpClient {
1373
1373
  put(url, body, options = {}) {
1374
1374
  return this.request('PUT', url, addBody(options, body));
1375
1375
  }
1376
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable }); }
1377
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClient }); }
1376
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable }); }
1377
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClient }); }
1378
1378
  }
1379
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClient, decorators: [{
1379
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClient, decorators: [{
1380
1380
  type: Injectable
1381
- }], ctorParameters: function () { return [{ type: HttpHandler }]; } });
1381
+ }], ctorParameters: () => [{ type: HttpHandler }] });
1382
1382
 
1383
1383
  const XSSI_PREFIX$1 = /^\)\]\}',?\n/;
1384
1384
  const REQUEST_URL_HEADER = `X-Request-URL`;
@@ -1581,10 +1581,10 @@ class FetchBackend {
1581
1581
  }
1582
1582
  return chunksAll;
1583
1583
  }
1584
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: FetchBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1585
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: FetchBackend }); }
1584
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: FetchBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1585
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: FetchBackend }); }
1586
1586
  }
1587
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: FetchBackend, decorators: [{
1587
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: FetchBackend, decorators: [{
1588
1588
  type: Injectable
1589
1589
  }] });
1590
1590
  /**
@@ -1639,6 +1639,10 @@ const HTTP_INTERCEPTOR_FNS = new InjectionToken(ngDevMode ? 'HTTP_INTERCEPTOR_FN
1639
1639
  * A multi-provided token of `HttpInterceptorFn`s that are only set in root.
1640
1640
  */
1641
1641
  const HTTP_ROOT_INTERCEPTOR_FNS = new InjectionToken(ngDevMode ? 'HTTP_ROOT_INTERCEPTOR_FNS' : '');
1642
+ /**
1643
+ * A provider to set a global primary http backend. If set, it will override the default one
1644
+ */
1645
+ const PRIMARY_HTTP_BACKEND = new InjectionToken(ngDevMode ? 'PRIMARY_HTTP_BACKEND' : '');
1642
1646
  /**
1643
1647
  * Creates an `HttpInterceptorFn` which lazily initializes an interceptor chain from the legacy
1644
1648
  * class-based interceptors and runs the request through it.
@@ -1666,6 +1670,11 @@ class HttpInterceptorHandler extends HttpHandler {
1666
1670
  this.injector = injector;
1667
1671
  this.chain = null;
1668
1672
  this.pendingTasks = inject(ɵInitialRenderPendingTasks);
1673
+ // Check if there is a preferred HTTP backend configured and use it if that's the case.
1674
+ // This is needed to enable `FetchBackend` globally for all HttpClient's when `withFetch`
1675
+ // is used.
1676
+ const primaryHttpBackend = inject(PRIMARY_HTTP_BACKEND, { optional: true });
1677
+ this.backend = primaryHttpBackend ?? backend;
1669
1678
  }
1670
1679
  handle(initialRequest) {
1671
1680
  if (this.chain === null) {
@@ -1683,12 +1692,12 @@ class HttpInterceptorHandler extends HttpHandler {
1683
1692
  return this.chain(initialRequest, downstreamRequest => this.backend.handle(downstreamRequest))
1684
1693
  .pipe(finalize(() => this.pendingTasks.remove(taskId)));
1685
1694
  }
1686
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpInterceptorHandler, deps: [{ token: HttpBackend }, { token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable }); }
1687
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpInterceptorHandler }); }
1695
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpInterceptorHandler, deps: [{ token: HttpBackend }, { token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable }); }
1696
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpInterceptorHandler }); }
1688
1697
  }
1689
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpInterceptorHandler, decorators: [{
1698
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpInterceptorHandler, decorators: [{
1690
1699
  type: Injectable
1691
- }], ctorParameters: function () { return [{ type: HttpBackend }, { type: i0.EnvironmentInjector }]; } });
1700
+ }], ctorParameters: () => [{ type: HttpBackend }, { type: i0.EnvironmentInjector }] });
1692
1701
 
1693
1702
  // Every request made through JSONP needs a callback name that's unique across the
1694
1703
  // whole page. Each request is assigned an id and the callback name is constructed
@@ -1888,15 +1897,15 @@ class JsonpClientBackend {
1888
1897
  }
1889
1898
  foreignDocument.adoptNode(script);
1890
1899
  }
1891
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: JsonpClientBackend, deps: [{ token: JsonpCallbackContext }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1892
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: JsonpClientBackend }); }
1900
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: JsonpClientBackend, deps: [{ token: JsonpCallbackContext }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1901
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: JsonpClientBackend }); }
1893
1902
  }
1894
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: JsonpClientBackend, decorators: [{
1903
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: JsonpClientBackend, decorators: [{
1895
1904
  type: Injectable
1896
- }], ctorParameters: function () { return [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{
1905
+ }], ctorParameters: () => [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{
1897
1906
  type: Inject,
1898
1907
  args: [DOCUMENT]
1899
- }] }]; } });
1908
+ }] }] });
1900
1909
  /**
1901
1910
  * Identifies requests with the method JSONP and shifts them to the `JsonpClientBackend`.
1902
1911
  */
@@ -1929,12 +1938,12 @@ class JsonpInterceptor {
1929
1938
  intercept(initialRequest, next) {
1930
1939
  return this.injector.runInContext(() => jsonpInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));
1931
1940
  }
1932
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: JsonpInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable }); }
1933
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: JsonpInterceptor }); }
1941
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: JsonpInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable }); }
1942
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: JsonpInterceptor }); }
1934
1943
  }
1935
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: JsonpInterceptor, decorators: [{
1944
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: JsonpInterceptor, decorators: [{
1936
1945
  type: Injectable
1937
- }], ctorParameters: function () { return [{ type: i0.EnvironmentInjector }]; } });
1946
+ }], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });
1938
1947
 
1939
1948
  const XSSI_PREFIX = /^\)\]\}',?\n/;
1940
1949
  /**
@@ -2211,12 +2220,12 @@ class HttpXhrBackend {
2211
2220
  });
2212
2221
  }));
2213
2222
  }
2214
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpXhrBackend, deps: [{ token: i1.XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
2215
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpXhrBackend }); }
2223
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpXhrBackend, deps: [{ token: i1.XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
2224
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpXhrBackend }); }
2216
2225
  }
2217
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpXhrBackend, decorators: [{
2226
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpXhrBackend, decorators: [{
2218
2227
  type: Injectable
2219
- }], ctorParameters: function () { return [{ type: i1.XhrFactory }]; } });
2228
+ }], ctorParameters: () => [{ type: i1.XhrFactory }] });
2220
2229
 
2221
2230
  const XSRF_ENABLED = new InjectionToken('XSRF_ENABLED');
2222
2231
  const XSRF_DEFAULT_COOKIE_NAME = 'XSRF-TOKEN';
@@ -2263,12 +2272,12 @@ class HttpXsrfCookieExtractor {
2263
2272
  }
2264
2273
  return this.lastToken;
2265
2274
  }
2266
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable }); }
2267
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpXsrfCookieExtractor }); }
2275
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable }); }
2276
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpXsrfCookieExtractor }); }
2268
2277
  }
2269
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{
2278
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{
2270
2279
  type: Injectable
2271
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2280
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
2272
2281
  type: Inject,
2273
2282
  args: [DOCUMENT]
2274
2283
  }] }, { type: undefined, decorators: [{
@@ -2277,7 +2286,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5",
2277
2286
  }] }, { type: undefined, decorators: [{
2278
2287
  type: Inject,
2279
2288
  args: [XSRF_COOKIE_NAME]
2280
- }] }]; } });
2289
+ }] }] });
2281
2290
  function xsrfInterceptorFn(req, next) {
2282
2291
  const lcUrl = req.url.toLowerCase();
2283
2292
  // Skip both non-mutating requests and absolute URLs.
@@ -2306,12 +2315,12 @@ class HttpXsrfInterceptor {
2306
2315
  intercept(initialRequest, next) {
2307
2316
  return this.injector.runInContext(() => xsrfInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));
2308
2317
  }
2309
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable }); }
2310
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpXsrfInterceptor }); }
2318
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable }); }
2319
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpXsrfInterceptor }); }
2311
2320
  }
2312
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{
2321
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{
2313
2322
  type: Injectable
2314
- }], ctorParameters: function () { return [{ type: i0.EnvironmentInjector }]; } });
2323
+ }], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });
2315
2324
 
2316
2325
  /**
2317
2326
  * Identifies a particular kind of `HttpFeature`.
@@ -2525,6 +2534,7 @@ function withFetch() {
2525
2534
  return makeHttpFeature(HttpFeatureKind.Fetch, [
2526
2535
  FetchBackend,
2527
2536
  { provide: HttpBackend, useExisting: FetchBackend },
2537
+ { provide: PRIMARY_HTTP_BACKEND, useExisting: FetchBackend },
2528
2538
  ]);
2529
2539
  }
2530
2540
 
@@ -2566,9 +2576,9 @@ class HttpClientXsrfModule {
2566
2576
  providers: withXsrfConfiguration(options).ɵproviders,
2567
2577
  };
2568
2578
  }
2569
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2570
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientXsrfModule }); }
2571
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientXsrfModule, providers: [
2579
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2580
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientXsrfModule }); }
2581
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientXsrfModule, providers: [
2572
2582
  HttpXsrfInterceptor,
2573
2583
  { provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
2574
2584
  { provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
@@ -2579,7 +2589,7 @@ class HttpClientXsrfModule {
2579
2589
  { provide: XSRF_ENABLED, useValue: true },
2580
2590
  ] }); }
2581
2591
  }
2582
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientXsrfModule, decorators: [{
2592
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientXsrfModule, decorators: [{
2583
2593
  type: NgModule,
2584
2594
  args: [{
2585
2595
  providers: [
@@ -2604,13 +2614,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5",
2604
2614
  * @publicApi
2605
2615
  */
2606
2616
  class HttpClientModule {
2607
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2608
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientModule }); }
2609
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientModule, providers: [
2617
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2618
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientModule }); }
2619
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientModule, providers: [
2610
2620
  provideHttpClient(withInterceptorsFromDi()),
2611
2621
  ] }); }
2612
2622
  }
2613
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientModule, decorators: [{
2623
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientModule, decorators: [{
2614
2624
  type: NgModule,
2615
2625
  args: [{
2616
2626
  /**
@@ -2631,13 +2641,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5",
2631
2641
  * @publicApi
2632
2642
  */
2633
2643
  class HttpClientJsonpModule {
2634
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2635
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientJsonpModule }); }
2636
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientJsonpModule, providers: [
2644
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2645
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientJsonpModule }); }
2646
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientJsonpModule, providers: [
2637
2647
  withJsonpSupport().ɵproviders,
2638
2648
  ] }); }
2639
2649
  }
2640
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: HttpClientJsonpModule, decorators: [{
2650
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.7", ngImport: i0, type: HttpClientJsonpModule, decorators: [{
2641
2651
  type: NgModule,
2642
2652
  args: [{
2643
2653
  providers: [
@@ -2763,7 +2773,7 @@ function withHttpTransferCache() {
2763
2773
  const appRef = inject(ApplicationRef);
2764
2774
  const cacheState = inject(CACHE_STATE);
2765
2775
  return () => {
2766
- appRef.isStable.pipe(first((isStable) => isStable)).toPromise().then(() => {
2776
+ ɵwhenStable(appRef).then(() => {
2767
2777
  cacheState.isCacheActive = false;
2768
2778
  });
2769
2779
  };