@angular/common 18.0.0-next.1 → 18.0.0-next.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.
Files changed (63) hide show
  1. package/esm2022/http/src/client.mjs +3 -3
  2. package/esm2022/http/src/fetch.mjs +3 -3
  3. package/esm2022/http/src/interceptor.mjs +3 -3
  4. package/esm2022/http/src/jsonp.mjs +6 -6
  5. package/esm2022/http/src/module.mjs +17 -17
  6. package/esm2022/http/src/request.mjs +10 -6
  7. package/esm2022/http/src/transfer_cache.mjs +17 -12
  8. package/esm2022/http/src/xhr.mjs +3 -3
  9. package/esm2022/http/src/xsrf.mjs +6 -6
  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 +3 -3
  14. package/esm2022/src/directives/ng_component_outlet.mjs +3 -3
  15. package/esm2022/src/directives/ng_for_of.mjs +3 -3
  16. package/esm2022/src/directives/ng_if.mjs +3 -3
  17. package/esm2022/src/directives/ng_optimized_image/image_loaders/cloudflare_loader.mjs +6 -1
  18. package/esm2022/src/directives/ng_optimized_image/image_loaders/cloudinary_loader.mjs +5 -2
  19. package/esm2022/src/directives/ng_optimized_image/image_loaders/constants.mjs +12 -0
  20. package/esm2022/src/directives/ng_optimized_image/image_loaders/imagekit_loader.mjs +8 -2
  21. package/esm2022/src/directives/ng_optimized_image/image_loaders/imgix_loader.mjs +6 -1
  22. package/esm2022/src/directives/ng_optimized_image/image_loaders/netlify_loader.mjs +8 -1
  23. package/esm2022/src/directives/ng_optimized_image/lcp_image_observer.mjs +3 -3
  24. package/esm2022/src/directives/ng_optimized_image/ng_optimized_image.mjs +4 -4
  25. package/esm2022/src/directives/ng_optimized_image/preconnect_link_checker.mjs +3 -3
  26. package/esm2022/src/directives/ng_optimized_image/preload-link-creator.mjs +3 -3
  27. package/esm2022/src/directives/ng_plural.mjs +6 -6
  28. package/esm2022/src/directives/ng_style.mjs +3 -3
  29. package/esm2022/src/directives/ng_switch.mjs +9 -9
  30. package/esm2022/src/directives/ng_template_outlet.mjs +3 -3
  31. package/esm2022/src/i18n/localization.mjs +6 -6
  32. package/esm2022/src/location/hash_location_strategy.mjs +3 -3
  33. package/esm2022/src/location/location.mjs +3 -3
  34. package/esm2022/src/location/location_strategy.mjs +8 -8
  35. package/esm2022/src/location/platform_location.mjs +6 -6
  36. package/esm2022/src/navigation/platform_navigation.mjs +3 -3
  37. package/esm2022/src/pipes/async_pipe.mjs +3 -3
  38. package/esm2022/src/pipes/case_conversion_pipes.mjs +9 -9
  39. package/esm2022/src/pipes/date_pipe.mjs +3 -3
  40. package/esm2022/src/pipes/i18n_plural_pipe.mjs +3 -3
  41. package/esm2022/src/pipes/i18n_select_pipe.mjs +3 -3
  42. package/esm2022/src/pipes/json_pipe.mjs +3 -3
  43. package/esm2022/src/pipes/keyvalue_pipe.mjs +3 -3
  44. package/esm2022/src/pipes/number_pipe.mjs +9 -9
  45. package/esm2022/src/pipes/slice_pipe.mjs +3 -3
  46. package/esm2022/src/version.mjs +1 -1
  47. package/esm2022/testing/src/location_mock.mjs +3 -3
  48. package/esm2022/testing/src/mock_location_strategy.mjs +3 -3
  49. package/esm2022/testing/src/mock_platform_location.mjs +6 -6
  50. package/esm2022/upgrade/src/location_upgrade_module.mjs +4 -4
  51. package/fesm2022/common.mjs +147 -120
  52. package/fesm2022/common.mjs.map +1 -1
  53. package/fesm2022/http/testing.mjs +8 -8
  54. package/fesm2022/http.mjs +66 -57
  55. package/fesm2022/http.mjs.map +1 -1
  56. package/fesm2022/testing.mjs +16 -16
  57. package/fesm2022/upgrade.mjs +5 -5
  58. package/http/index.d.ts +10 -4
  59. package/http/testing/index.d.ts +1 -1
  60. package/index.d.ts +3 -4
  61. package/package.json +2 -2
  62. package/testing/index.d.ts +1 -1
  63. package/upgrade/index.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.0.0-next.1
2
+ * @license Angular v18.0.0-next.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -14,10 +14,10 @@ import { Subject } from 'rxjs';
14
14
  * implementations.
15
15
  */
16
16
  class PlatformNavigation {
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: PlatformNavigation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
18
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: PlatformNavigation, providedIn: 'platform', useFactory: () => window.navigation }); }
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: PlatformNavigation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
18
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: PlatformNavigation, providedIn: 'platform', useFactory: () => window.navigation }); }
19
19
  }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: PlatformNavigation, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: PlatformNavigation, decorators: [{
21
21
  type: Injectable,
22
22
  args: [{ providedIn: 'platform', useFactory: () => window.navigation }]
23
23
  }] });
@@ -888,10 +888,10 @@ class MockPlatformLocation {
888
888
  });
889
889
  }
890
890
  }
891
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: MockPlatformLocation, deps: [{ token: MOCK_PLATFORM_LOCATION_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
892
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: MockPlatformLocation }); }
891
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: MockPlatformLocation, deps: [{ token: MOCK_PLATFORM_LOCATION_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
892
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: MockPlatformLocation }); }
893
893
  }
894
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: MockPlatformLocation, decorators: [{
894
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: MockPlatformLocation, decorators: [{
895
895
  type: Injectable
896
896
  }], ctorParameters: () => [{ type: undefined, decorators: [{
897
897
  type: Inject,
@@ -962,10 +962,10 @@ class FakeNavigationPlatformLocation {
962
962
  getState() {
963
963
  return this._platformNavigation.currentEntry.getHistoryState();
964
964
  }
965
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: FakeNavigationPlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
966
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: FakeNavigationPlatformLocation }); }
965
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: FakeNavigationPlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
966
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: FakeNavigationPlatformLocation }); }
967
967
  }
968
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: FakeNavigationPlatformLocation, decorators: [{
968
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: FakeNavigationPlatformLocation, decorators: [{
969
969
  type: Injectable
970
970
  }], ctorParameters: () => [] });
971
971
 
@@ -1137,10 +1137,10 @@ class SpyLocation {
1137
1137
  this._history.push(new LocationState(path, query, state));
1138
1138
  this._historyIndex = this._history.length - 1;
1139
1139
  }
1140
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: SpyLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1141
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: SpyLocation }); }
1140
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: SpyLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1141
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: SpyLocation }); }
1142
1142
  }
1143
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: SpyLocation, decorators: [{
1143
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: SpyLocation, decorators: [{
1144
1144
  type: Injectable
1145
1145
  }] });
1146
1146
  class LocationState {
@@ -1219,10 +1219,10 @@ class MockLocationStrategy extends LocationStrategy {
1219
1219
  getState() {
1220
1220
  return this.stateChanges[(this.stateChanges.length || 1) - 1];
1221
1221
  }
1222
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: MockLocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1223
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: MockLocationStrategy }); }
1222
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: MockLocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1223
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: MockLocationStrategy }); }
1224
1224
  }
1225
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: MockLocationStrategy, decorators: [{
1225
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: MockLocationStrategy, decorators: [{
1226
1226
  type: Injectable
1227
1227
  }], ctorParameters: () => [] });
1228
1228
  class _MockPopStateEvent {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.0.0-next.1
2
+ * @license Angular v18.0.0-next.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -841,11 +841,11 @@ class LocationUpgradeModule {
841
841
  ],
842
842
  };
843
843
  }
844
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: LocationUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
845
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.1", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] }); }
846
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] }); }
844
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: LocationUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
845
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.3", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] }); }
846
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] }); }
847
847
  }
848
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: LocationUpgradeModule, decorators: [{
848
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: LocationUpgradeModule, decorators: [{
849
849
  type: NgModule,
850
850
  args: [{ imports: [CommonModule] }]
851
851
  }] });
package/http/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.0.0-next.1
2
+ * @license Angular v18.0.0-next.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -3158,7 +3158,7 @@ export declare class HttpClient {
3158
3158
  }
3159
3159
 
3160
3160
  /**
3161
- * Configures the [dependency injector](guide/glossary#injector) for `HttpClient`
3161
+ * Configures the dependency injector for `HttpClient`
3162
3162
  * with supporting services for JSONP.
3163
3163
  * Without this module, Jsonp requests reach the backend
3164
3164
  * with method JSONP, where they are rejected.
@@ -3172,11 +3172,11 @@ export declare class HttpClientJsonpModule {
3172
3172
  }
3173
3173
 
3174
3174
  /**
3175
- * Configures the [dependency injector](guide/glossary#injector) for `HttpClient`
3175
+ * Configures the dependency injector for `HttpClient`
3176
3176
  * with supporting services for XSRF. Automatically imported by `HttpClientModule`.
3177
3177
  *
3178
3178
  * You can add interceptors to the chain behind `HttpClient` by binding them to the
3179
- * multiprovider for built-in [DI token](guide/glossary#di-token) `HTTP_INTERCEPTORS`.
3179
+ * multiprovider for built-in DI token `HTTP_INTERCEPTORS`.
3180
3180
  *
3181
3181
  * @publicApi
3182
3182
  */
@@ -3981,6 +3981,9 @@ export declare class HttpRequest<T> {
3981
3981
  params?: HttpParams;
3982
3982
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
3983
3983
  withCredentials?: boolean;
3984
+ transferCache?: {
3985
+ includeHeaders?: string[];
3986
+ } | boolean;
3984
3987
  body?: T | null;
3985
3988
  method?: string;
3986
3989
  url?: string;
@@ -3998,6 +4001,9 @@ export declare class HttpRequest<T> {
3998
4001
  params?: HttpParams;
3999
4002
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
4000
4003
  withCredentials?: boolean;
4004
+ transferCache?: {
4005
+ includeHeaders?: string[];
4006
+ } | boolean;
4001
4007
  body?: V | null;
4002
4008
  method?: string;
4003
4009
  url?: string;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.0.0-next.1
2
+ * @license Angular v18.0.0-next.3
3
3
  * (c) 2010-2022 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 v18.0.0-next.1
2
+ * @license Angular v18.0.0-next.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -34,7 +34,7 @@ import { Version } from '@angular/core';
34
34
  import { ViewContainerRef } from '@angular/core';
35
35
 
36
36
  /**
37
- * A predefined [DI token](guide/glossary#di-token) for the base href
37
+ * A predefined DI token for the base href
38
38
  * to be used with the `PathLocationStrategy`.
39
39
  * The base href is the URL prefix that should be preserved when generating
40
40
  * and recognizing URLs.
@@ -2387,8 +2387,7 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
2387
2387
  width: number | undefined;
2388
2388
  /**
2389
2389
  * For responsive images: the intrinsic height of the image in pixels.
2390
- * For fixed size images: the desired rendered height of the image in pixels.* The intrinsic
2391
- * height of the image in pixels.
2390
+ * For fixed size images: the desired rendered height of the image in pixels.
2392
2391
  */
2393
2392
  height: number | undefined;
2394
2393
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/common",
3
- "version": "18.0.0-next.1",
3
+ "version": "18.0.0-next.3",
4
4
  "description": "Angular - commonly needed directives and services",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -54,7 +54,7 @@
54
54
  }
55
55
  },
56
56
  "peerDependencies": {
57
- "@angular/core": "18.0.0-next.1",
57
+ "@angular/core": "18.0.0-next.3",
58
58
  "rxjs": "^6.5.3 || ^7.4.0"
59
59
  },
60
60
  "repository": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.0.0-next.1
2
+ * @license Angular v18.0.0-next.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.0.0-next.1
2
+ * @license Angular v18.0.0-next.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */