@angular/common 15.0.0-rc.4 → 15.1.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.
Files changed (60) hide show
  1. package/esm2020/http/src/client.mjs +3 -3
  2. package/esm2020/http/src/interceptor.mjs +3 -3
  3. package/esm2020/http/src/jsonp.mjs +6 -6
  4. package/esm2020/http/src/module.mjs +12 -12
  5. package/esm2020/http/src/xhr.mjs +3 -3
  6. package/esm2020/http/src/xsrf.mjs +6 -6
  7. package/esm2020/http/testing/src/backend.mjs +3 -3
  8. package/esm2020/http/testing/src/module.mjs +4 -4
  9. package/esm2020/src/common_module.mjs +4 -4
  10. package/esm2020/src/directives/ng_class.mjs +3 -3
  11. package/esm2020/src/directives/ng_component_outlet.mjs +3 -3
  12. package/esm2020/src/directives/ng_for_of.mjs +3 -3
  13. package/esm2020/src/directives/ng_if.mjs +3 -3
  14. package/esm2020/src/directives/ng_optimized_image/lcp_image_observer.mjs +3 -3
  15. package/esm2020/src/directives/ng_optimized_image/ng_optimized_image.mjs +3 -3
  16. package/esm2020/src/directives/ng_optimized_image/preconnect_link_checker.mjs +3 -3
  17. package/esm2020/src/directives/ng_optimized_image/preload-link-creator.mjs +3 -3
  18. package/esm2020/src/directives/ng_plural.mjs +6 -6
  19. package/esm2020/src/directives/ng_style.mjs +3 -3
  20. package/esm2020/src/directives/ng_switch.mjs +9 -9
  21. package/esm2020/src/directives/ng_template_outlet.mjs +3 -3
  22. package/esm2020/src/i18n/localization.mjs +6 -6
  23. package/esm2020/src/location/hash_location_strategy.mjs +3 -3
  24. package/esm2020/src/location/location.mjs +3 -3
  25. package/esm2020/src/location/location_strategy.mjs +6 -6
  26. package/esm2020/src/location/platform_location.mjs +6 -6
  27. package/esm2020/src/pipes/async_pipe.mjs +3 -3
  28. package/esm2020/src/pipes/case_conversion_pipes.mjs +9 -9
  29. package/esm2020/src/pipes/date_pipe.mjs +3 -3
  30. package/esm2020/src/pipes/i18n_plural_pipe.mjs +3 -3
  31. package/esm2020/src/pipes/i18n_select_pipe.mjs +3 -3
  32. package/esm2020/src/pipes/json_pipe.mjs +3 -3
  33. package/esm2020/src/pipes/keyvalue_pipe.mjs +3 -3
  34. package/esm2020/src/pipes/number_pipe.mjs +9 -9
  35. package/esm2020/src/pipes/slice_pipe.mjs +3 -3
  36. package/esm2020/src/version.mjs +1 -1
  37. package/esm2020/testing/src/location_mock.mjs +5 -5
  38. package/esm2020/testing/src/mock_location_strategy.mjs +3 -3
  39. package/esm2020/testing/src/mock_platform_location.mjs +23 -15
  40. package/esm2020/upgrade/src/location_upgrade_module.mjs +4 -4
  41. package/fesm2015/common.mjs +114 -114
  42. package/fesm2015/common.mjs.map +1 -1
  43. package/fesm2015/http/testing.mjs +8 -8
  44. package/fesm2015/http.mjs +34 -34
  45. package/fesm2015/testing.mjs +30 -22
  46. package/fesm2015/testing.mjs.map +1 -1
  47. package/fesm2015/upgrade.mjs +5 -5
  48. package/fesm2020/common.mjs +114 -114
  49. package/fesm2020/common.mjs.map +1 -1
  50. package/fesm2020/http/testing.mjs +8 -8
  51. package/fesm2020/http.mjs +34 -34
  52. package/fesm2020/testing.mjs +30 -22
  53. package/fesm2020/testing.mjs.map +1 -1
  54. package/fesm2020/upgrade.mjs +5 -5
  55. package/http/index.d.ts +1 -1
  56. package/http/testing/index.d.ts +1 -1
  57. package/index.d.ts +1 -1
  58. package/package.json +2 -2
  59. package/testing/index.d.ts +13 -2
  60. package/upgrade/index.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.0.0-rc.4
2
+ * @license Angular v15.1.0-next.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -56,6 +56,7 @@ export declare class MockLocationStrategy extends LocationStrategy {
56
56
  export declare class MockPlatformLocation implements PlatformLocation {
57
57
  private baseHref;
58
58
  private hashUpdate;
59
+ private popStateSubject;
59
60
  private urlChangeIndex;
60
61
  private urlChanges;
61
62
  constructor(config?: MockPlatformLocationConfig);
@@ -78,7 +79,17 @@ export declare class MockPlatformLocation implements PlatformLocation {
78
79
  back(): void;
79
80
  historyGo(relativePosition?: number): void;
80
81
  getState(): unknown;
81
- private scheduleHashUpdate;
82
+ /**
83
+ * Browsers are inconsistent in when they fire events and perform the state updates
84
+ * The most easiest thing to do in our mock is synchronous and that happens to match
85
+ * Firefox and Chrome, at least somewhat closely
86
+ *
87
+ * https://github.com/WICG/navigation-api#watching-for-navigations
88
+ * https://docs.google.com/document/d/1Pdve-DJ1JCGilj9Yqf5HxRJyBKSel5owgOvUJqTauwU/edit#heading=h.3ye4v71wsz94
89
+ * popstate is always sent before hashchange:
90
+ * https://developer.mozilla.org/en-US/docs/Web/API/Window/popstate_event#when_popstate_is_sent
91
+ */
92
+ private emitEvents;
82
93
  static ɵfac: i0.ɵɵFactoryDeclaration<MockPlatformLocation, [{ optional: true; }]>;
83
94
  static ɵprov: i0.ɵɵInjectableDeclaration<MockPlatformLocation>;
84
95
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.0.0-rc.4
2
+ * @license Angular v15.1.0-next.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */