@angular/common 16.2.0-next.0 → 16.2.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 (58) hide show
  1. package/esm2022/http/src/client.mjs +5 -5
  2. package/esm2022/http/src/fetch.mjs +3 -3
  3. package/esm2022/http/src/interceptor.mjs +4 -4
  4. package/esm2022/http/src/jsonp.mjs +6 -6
  5. package/esm2022/http/src/module.mjs +12 -12
  6. package/esm2022/http/src/xhr.mjs +3 -3
  7. package/esm2022/http/src/xsrf.mjs +6 -6
  8. package/esm2022/http/testing/src/backend.mjs +3 -3
  9. package/esm2022/http/testing/src/module.mjs +4 -4
  10. package/esm2022/http/testing/src/provider.mjs +1 -1
  11. package/esm2022/src/common_module.mjs +4 -4
  12. package/esm2022/src/directives/ng_class.mjs +3 -3
  13. package/esm2022/src/directives/ng_component_outlet.mjs +3 -3
  14. package/esm2022/src/directives/ng_for_of.mjs +3 -3
  15. package/esm2022/src/directives/ng_if.mjs +3 -3
  16. package/esm2022/src/directives/ng_optimized_image/lcp_image_observer.mjs +37 -12
  17. package/esm2022/src/directives/ng_optimized_image/ng_optimized_image.mjs +43 -31
  18. package/esm2022/src/directives/ng_optimized_image/preconnect_link_checker.mjs +3 -3
  19. package/esm2022/src/directives/ng_optimized_image/preload-link-creator.mjs +3 -3
  20. package/esm2022/src/directives/ng_plural.mjs +6 -6
  21. package/esm2022/src/directives/ng_style.mjs +3 -3
  22. package/esm2022/src/directives/ng_switch.mjs +9 -9
  23. package/esm2022/src/directives/ng_template_outlet.mjs +3 -3
  24. package/esm2022/src/errors.mjs +1 -1
  25. package/esm2022/src/i18n/localization.mjs +6 -6
  26. package/esm2022/src/location/hash_location_strategy.mjs +3 -3
  27. package/esm2022/src/location/location.mjs +3 -3
  28. package/esm2022/src/location/location_strategy.mjs +6 -6
  29. package/esm2022/src/location/platform_location.mjs +6 -6
  30. package/esm2022/src/pipes/async_pipe.mjs +3 -3
  31. package/esm2022/src/pipes/case_conversion_pipes.mjs +9 -9
  32. package/esm2022/src/pipes/date_pipe.mjs +3 -3
  33. package/esm2022/src/pipes/i18n_plural_pipe.mjs +3 -3
  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 +3 -3
  37. package/esm2022/src/pipes/number_pipe.mjs +9 -9
  38. package/esm2022/src/pipes/slice_pipe.mjs +3 -3
  39. package/esm2022/src/version.mjs +1 -1
  40. package/esm2022/src/viewport_scroller.mjs +3 -34
  41. package/esm2022/testing/src/location_mock.mjs +3 -3
  42. package/esm2022/testing/src/mock_location_strategy.mjs +3 -3
  43. package/esm2022/testing/src/mock_platform_location.mjs +3 -3
  44. package/esm2022/upgrade/src/location_upgrade_module.mjs +4 -4
  45. package/fesm2022/common.mjs +188 -182
  46. package/fesm2022/common.mjs.map +1 -1
  47. package/fesm2022/http/testing.mjs +8 -8
  48. package/fesm2022/http/testing.mjs.map +1 -1
  49. package/fesm2022/http.mjs +38 -38
  50. package/fesm2022/http.mjs.map +1 -1
  51. package/fesm2022/testing.mjs +10 -10
  52. package/fesm2022/upgrade.mjs +5 -5
  53. package/http/index.d.ts +4 -4
  54. package/http/testing/index.d.ts +1 -1
  55. package/index.d.ts +2 -5
  56. package/package.json +2 -2
  57. package/testing/index.d.ts +1 -1
  58. package/upgrade/index.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.2.0-next.0
2
+ * @license Angular v16.2.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -203,10 +203,10 @@ class SpyLocation {
203
203
  this._history.push(new LocationState(path, query, state));
204
204
  this._historyIndex = this._history.length - 1;
205
205
  }
206
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.0", ngImport: i0, type: SpyLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
207
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.0", ngImport: i0, type: SpyLocation }); }
206
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.2", ngImport: i0, type: SpyLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
207
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.2", ngImport: i0, type: SpyLocation }); }
208
208
  }
209
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.0", ngImport: i0, type: SpyLocation, decorators: [{
209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.2", ngImport: i0, type: SpyLocation, decorators: [{
210
210
  type: Injectable
211
211
  }] });
212
212
  class LocationState {
@@ -285,10 +285,10 @@ class MockLocationStrategy extends LocationStrategy {
285
285
  getState() {
286
286
  return this.stateChanges[(this.stateChanges.length || 1) - 1];
287
287
  }
288
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.0", ngImport: i0, type: MockLocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
289
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.0", ngImport: i0, type: MockLocationStrategy }); }
288
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.2", ngImport: i0, type: MockLocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
289
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.2", ngImport: i0, type: MockLocationStrategy }); }
290
290
  }
291
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.0", ngImport: i0, type: MockLocationStrategy, decorators: [{
291
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.2", ngImport: i0, type: MockLocationStrategy, decorators: [{
292
292
  type: Injectable
293
293
  }], ctorParameters: function () { return []; } });
294
294
  class _MockPopStateEvent {
@@ -484,10 +484,10 @@ class MockPlatformLocation {
484
484
  this.hashUpdate.next({ type: 'hashchange', state: null, oldUrl, newUrl: this.url });
485
485
  }
486
486
  }
487
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.0", ngImport: i0, type: MockPlatformLocation, deps: [{ token: MOCK_PLATFORM_LOCATION_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
488
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.0", ngImport: i0, type: MockPlatformLocation }); }
487
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.2", ngImport: i0, type: MockPlatformLocation, deps: [{ token: MOCK_PLATFORM_LOCATION_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
488
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0-next.2", ngImport: i0, type: MockPlatformLocation }); }
489
489
  }
490
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.0", ngImport: i0, type: MockPlatformLocation, decorators: [{
490
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.2", ngImport: i0, type: MockPlatformLocation, decorators: [{
491
491
  type: Injectable
492
492
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
493
493
  type: Inject,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.2.0-next.0
2
+ * @license Angular v16.2.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -847,11 +847,11 @@ class LocationUpgradeModule {
847
847
  ],
848
848
  };
849
849
  }
850
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.0", ngImport: i0, type: LocationUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
851
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.0-next.0", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] }); }
852
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.0-next.0", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] }); }
850
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0-next.2", ngImport: i0, type: LocationUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
851
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.0-next.2", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] }); }
852
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.0-next.2", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] }); }
853
853
  }
854
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0-next.0", ngImport: i0, type: LocationUpgradeModule, decorators: [{
854
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.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.2.0-next.0
2
+ * @license Angular v16.2.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -109,7 +109,7 @@ export declare abstract class HttpBackend implements HttpHandler {
109
109
  * }
110
110
  * ```
111
111
  *
112
- * @see [HTTP Guide](guide/http)
112
+ * @see [HTTP Guide](guide/understanding-communicating-with-http)
113
113
  * @see [HTTP Request](api/common/http/HttpRequest)
114
114
  *
115
115
  * @publicApi
@@ -3271,7 +3271,7 @@ export declare abstract class HttpHandler {
3271
3271
  *
3272
3272
  * @publicApi
3273
3273
  *
3274
- * @see [HTTP Guide](guide/http#intercepting-requests-and-responses)
3274
+ * @see [HTTP Guide](guide/http-intercept-requests-and-responses)
3275
3275
  */
3276
3276
  export declare type HttpHandlerFn = (req: HttpRequest<unknown>) => Observable<HttpEvent<unknown>>;
3277
3277
 
@@ -3423,7 +3423,7 @@ export declare class HttpHeaders {
3423
3423
  *
3424
3424
  * @publicApi
3425
3425
  *
3426
- * @see [HTTP Guide](guide/http#intercepting-requests-and-responses)
3426
+ * @see [HTTP Guide](guide/http-intercept-requests-and-responses)
3427
3427
  *
3428
3428
  * @usageNotes
3429
3429
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.2.0-next.0
2
+ * @license Angular v16.2.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.2.0-next.0
2
+ * @license Angular v16.2.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1170,7 +1170,6 @@ declare namespace i9 {
1170
1170
  *
1171
1171
  * @see {@link NgOptimizedImage}
1172
1172
  * @publicApi
1173
- * @developerPreview
1174
1173
  */
1175
1174
  export declare const IMAGE_CONFIG: InjectionToken<ImageConfig>;
1176
1175
 
@@ -1191,7 +1190,6 @@ export declare const IMAGE_LOADER: InjectionToken<ImageLoader>;
1191
1190
  * Learn more about the responsive image configuration in [the NgOptimizedImage
1192
1191
  * guide](guide/image-directive).
1193
1192
  * @publicApi
1194
- * @developerPreview
1195
1193
  */
1196
1194
  export declare type ImageConfig = {
1197
1195
  breakpoints?: number[];
@@ -2264,8 +2262,6 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
2264
2262
  /**
2265
2263
  * Sets the image to "fill mode", which eliminates the height/width requirement and adds
2266
2264
  * styles such that the image fills its containing element.
2267
- *
2268
- * @developerPreview
2269
2265
  */
2270
2266
  fill: boolean;
2271
2267
  /** @nodoc */
@@ -2280,6 +2276,7 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
2280
2276
  private getRewrittenSrcset;
2281
2277
  private getAutomaticSrcset;
2282
2278
  private getResponsiveSrcset;
2279
+ private updateSrcAndSrcset;
2283
2280
  private getFixedSrcset;
2284
2281
  private shouldGenerateAutomaticSrcset;
2285
2282
  /** @nodoc */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/common",
3
- "version": "16.2.0-next.0",
3
+ "version": "16.2.0-next.2",
4
4
  "description": "Angular - commonly needed directives and services",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -53,7 +53,7 @@
53
53
  }
54
54
  },
55
55
  "peerDependencies": {
56
- "@angular/core": "16.2.0-next.0",
56
+ "@angular/core": "16.2.0-next.2",
57
57
  "rxjs": "^6.5.3 || ^7.4.0"
58
58
  },
59
59
  "repository": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.2.0-next.0
2
+ * @license Angular v16.2.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.2.0-next.0
2
+ * @license Angular v16.2.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */