@angular/common 16.0.0-next.1 → 16.0.0-next.2

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 (62) hide show
  1. package/esm2020/http/public_api.mjs +3 -15
  2. package/esm2020/http/src/client.mjs +3 -3
  3. package/esm2020/http/src/interceptor.mjs +3 -3
  4. package/esm2020/http/src/jsonp.mjs +6 -6
  5. package/esm2020/http/src/module.mjs +12 -12
  6. package/esm2020/http/src/xhr.mjs +3 -3
  7. package/esm2020/http/src/xsrf.mjs +6 -6
  8. package/esm2020/http/testing/src/backend.mjs +3 -3
  9. package/esm2020/http/testing/src/module.mjs +4 -4
  10. package/esm2020/src/common_module.mjs +4 -4
  11. package/esm2020/src/directives/ng_class.mjs +3 -3
  12. package/esm2020/src/directives/ng_component_outlet.mjs +3 -3
  13. package/esm2020/src/directives/ng_for_of.mjs +3 -3
  14. package/esm2020/src/directives/ng_if.mjs +3 -3
  15. package/esm2020/src/directives/ng_optimized_image/lcp_image_observer.mjs +3 -3
  16. package/esm2020/src/directives/ng_optimized_image/ng_optimized_image.mjs +3 -3
  17. package/esm2020/src/directives/ng_optimized_image/preconnect_link_checker.mjs +3 -3
  18. package/esm2020/src/directives/ng_optimized_image/preload-link-creator.mjs +3 -3
  19. package/esm2020/src/directives/ng_plural.mjs +6 -6
  20. package/esm2020/src/directives/ng_style.mjs +3 -3
  21. package/esm2020/src/directives/ng_switch.mjs +9 -9
  22. package/esm2020/src/directives/ng_template_outlet.mjs +3 -3
  23. package/esm2020/src/i18n/localization.mjs +6 -6
  24. package/esm2020/src/location/hash_location_strategy.mjs +3 -3
  25. package/esm2020/src/location/location.mjs +3 -3
  26. package/esm2020/src/location/location_strategy.mjs +6 -6
  27. package/esm2020/src/location/platform_location.mjs +6 -6
  28. package/esm2020/src/pipes/async_pipe.mjs +3 -3
  29. package/esm2020/src/pipes/case_conversion_pipes.mjs +9 -9
  30. package/esm2020/src/pipes/date_pipe.mjs +3 -3
  31. package/esm2020/src/pipes/i18n_plural_pipe.mjs +3 -3
  32. package/esm2020/src/pipes/i18n_select_pipe.mjs +3 -3
  33. package/esm2020/src/pipes/json_pipe.mjs +3 -3
  34. package/esm2020/src/pipes/keyvalue_pipe.mjs +3 -3
  35. package/esm2020/src/pipes/number_pipe.mjs +9 -9
  36. package/esm2020/src/pipes/slice_pipe.mjs +3 -3
  37. package/esm2020/src/private_export.mjs +1 -2
  38. package/esm2020/src/version.mjs +1 -1
  39. package/esm2020/testing/src/location_mock.mjs +3 -3
  40. package/esm2020/testing/src/mock_location_strategy.mjs +3 -3
  41. package/esm2020/testing/src/mock_platform_location.mjs +3 -3
  42. package/esm2020/upgrade/src/location_upgrade_module.mjs +4 -4
  43. package/fesm2015/common.mjs +172 -172
  44. package/fesm2015/common.mjs.map +1 -1
  45. package/fesm2015/http/testing.mjs +8 -8
  46. package/fesm2015/http.mjs +37 -47
  47. package/fesm2015/http.mjs.map +1 -1
  48. package/fesm2015/testing.mjs +10 -10
  49. package/fesm2015/upgrade.mjs +5 -5
  50. package/fesm2020/common.mjs +115 -115
  51. package/fesm2020/common.mjs.map +1 -1
  52. package/fesm2020/http/testing.mjs +8 -8
  53. package/fesm2020/http.mjs +37 -47
  54. package/fesm2020/http.mjs.map +1 -1
  55. package/fesm2020/testing.mjs +10 -10
  56. package/fesm2020/upgrade.mjs +5 -5
  57. package/http/index.d.ts +3 -23
  58. package/http/testing/index.d.ts +1 -1
  59. package/index.d.ts +2 -4
  60. package/package.json +2 -2
  61. package/testing/index.d.ts +1 -1
  62. package/upgrade/index.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.1
2
+ * @license Angular v16.0.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -203,9 +203,9 @@ class SpyLocation {
203
203
  this._historyIndex = this._history.length - 1;
204
204
  }
205
205
  }
206
- SpyLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: SpyLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
207
- SpyLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: SpyLocation });
208
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: SpyLocation, decorators: [{
206
+ SpyLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: SpyLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
207
+ SpyLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: SpyLocation });
208
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: SpyLocation, decorators: [{
209
209
  type: Injectable
210
210
  }] });
211
211
  class LocationState {
@@ -285,9 +285,9 @@ class MockLocationStrategy extends LocationStrategy {
285
285
  return this.stateChanges[(this.stateChanges.length || 1) - 1];
286
286
  }
287
287
  }
288
- MockLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: MockLocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
289
- MockLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: MockLocationStrategy });
290
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: MockLocationStrategy, decorators: [{
288
+ MockLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MockLocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
289
+ MockLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MockLocationStrategy });
290
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MockLocationStrategy, decorators: [{
291
291
  type: Injectable
292
292
  }], ctorParameters: function () { return []; } });
293
293
  class _MockPopStateEvent {
@@ -484,9 +484,9 @@ class MockPlatformLocation {
484
484
  }
485
485
  }
486
486
  }
487
- MockPlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: MockPlatformLocation, deps: [{ token: MOCK_PLATFORM_LOCATION_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
488
- MockPlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: MockPlatformLocation });
489
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: MockPlatformLocation, decorators: [{
487
+ MockPlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MockPlatformLocation, deps: [{ token: MOCK_PLATFORM_LOCATION_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
488
+ MockPlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MockPlatformLocation });
489
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: MockPlatformLocation, decorators: [{
490
490
  type: Injectable
491
491
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
492
492
  type: Inject,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.1
2
+ * @license Angular v16.0.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -848,10 +848,10 @@ class LocationUpgradeModule {
848
848
  };
849
849
  }
850
850
  }
851
- LocationUpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: LocationUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
852
- LocationUpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.1", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
853
- LocationUpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
854
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1", ngImport: i0, type: LocationUpgradeModule, decorators: [{
851
+ LocationUpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: LocationUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
852
+ LocationUpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.2", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
853
+ LocationUpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
854
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: LocationUpgradeModule, decorators: [{
855
855
  type: NgModule,
856
856
  args: [{ imports: [CommonModule] }]
857
857
  }] });
package/http/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.1
2
+ * @license Angular v16.0.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -12,7 +12,7 @@ import { InjectionToken } from '@angular/core';
12
12
  import { ModuleWithProviders } from '@angular/core';
13
13
  import { Observable } from 'rxjs';
14
14
  import { Provider } from '@angular/core';
15
- import { XhrFactory as XhrFactory_2 } from '@angular/common';
15
+ import { XhrFactory } from '@angular/common';
16
16
 
17
17
  /**
18
18
  * A multi-provider token that represents the array of registered
@@ -3953,7 +3953,7 @@ export declare interface HttpUserEvent<T> {
3953
3953
  */
3954
3954
  export declare class HttpXhrBackend implements HttpBackend {
3955
3955
  private xhrFactory;
3956
- constructor(xhrFactory: XhrFactory_2);
3956
+ constructor(xhrFactory: XhrFactory);
3957
3957
  /**
3958
3958
  * Processes a request and returns a stream of response events.
3959
3959
  * @param req The request object.
@@ -4134,24 +4134,4 @@ export declare function withXsrfConfiguration({ cookieName, headerName }: {
4134
4134
  headerName?: string;
4135
4135
  }): HttpFeature<HttpFeatureKind.CustomXsrfConfiguration>;
4136
4136
 
4137
- /**
4138
- * A wrapper around the `XMLHttpRequest` constructor.
4139
- *
4140
- * @publicApi
4141
- * @see `XhrFactory`
4142
- * @deprecated
4143
- * `XhrFactory` has moved, please import `XhrFactory` from `@angular/common` instead.
4144
- */
4145
- export declare type XhrFactory = XhrFactory_2;
4146
-
4147
- /**
4148
- * A wrapper around the `XMLHttpRequest` constructor.
4149
- *
4150
- * @publicApi
4151
- * @see `XhrFactory`
4152
- * @deprecated
4153
- * `XhrFactory` has moved, please import `XhrFactory` from `@angular/common` instead.
4154
- */
4155
- export declare const XhrFactory: typeof XhrFactory_2;
4156
-
4157
4137
  export { }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.1
2
+ * @license Angular v16.0.0-next.2
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 v16.0.0-next.1
2
+ * @license Angular v16.0.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -110,7 +110,7 @@ export declare class AsyncPipe implements OnDestroy, PipeTransform {
110
110
  *
111
111
  * @publicApi
112
112
  */
113
- declare class BrowserPlatformLocation extends PlatformLocation {
113
+ export declare class BrowserPlatformLocation extends PlatformLocation {
114
114
  private _doc;
115
115
  private _location;
116
116
  private _history;
@@ -135,8 +135,6 @@ declare class BrowserPlatformLocation extends PlatformLocation {
135
135
  static ɵfac: i0.ɵɵFactoryDeclaration<BrowserPlatformLocation, never>;
136
136
  static ɵprov: i0.ɵɵInjectableDeclaration<BrowserPlatformLocation>;
137
137
  }
138
- export { BrowserPlatformLocation }
139
- export { BrowserPlatformLocation as ɵBrowserPlatformLocation }
140
138
 
141
139
  /**
142
140
  * Exports all the basic Angular directives and pipes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/common",
3
- "version": "16.0.0-next.1",
3
+ "version": "16.0.0-next.2",
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": "16.0.0-next.1",
66
+ "@angular/core": "16.0.0-next.2",
67
67
  "rxjs": "^6.5.3 || ^7.4.0"
68
68
  },
69
69
  "repository": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.1
2
+ * @license Angular v16.0.0-next.2
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 v16.0.0-next.1
2
+ * @license Angular v16.0.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */