@angular/common 14.0.0-next.14 → 14.0.0-next.15

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 (67) 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 +20 -22
  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 +6 -8
  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_plural.mjs +6 -6
  15. package/esm2020/src/directives/ng_style.mjs +3 -3
  16. package/esm2020/src/directives/ng_switch.mjs +9 -9
  17. package/esm2020/src/directives/ng_template_outlet.mjs +3 -3
  18. package/esm2020/src/i18n/localization.mjs +6 -6
  19. package/esm2020/src/location/hash_location_strategy.mjs +7 -4
  20. package/esm2020/src/location/location.mjs +18 -21
  21. package/esm2020/src/location/location_strategy.mjs +11 -8
  22. package/esm2020/src/location/platform_location.mjs +6 -6
  23. package/esm2020/src/pipes/async_pipe.mjs +3 -3
  24. package/esm2020/src/pipes/case_conversion_pipes.mjs +9 -9
  25. package/esm2020/src/pipes/date_pipe.mjs +3 -3
  26. package/esm2020/src/pipes/i18n_plural_pipe.mjs +3 -3
  27. package/esm2020/src/pipes/i18n_select_pipe.mjs +3 -3
  28. package/esm2020/src/pipes/json_pipe.mjs +3 -3
  29. package/esm2020/src/pipes/keyvalue_pipe.mjs +3 -3
  30. package/esm2020/src/pipes/number_pipe.mjs +9 -9
  31. package/esm2020/src/pipes/slice_pipe.mjs +3 -3
  32. package/esm2020/src/version.mjs +1 -1
  33. package/esm2020/testing/src/location_mock.mjs +5 -7
  34. package/esm2020/testing/src/mock_location_strategy.mjs +3 -3
  35. package/esm2020/testing/src/mock_platform_location.mjs +3 -3
  36. package/esm2020/upgrade/src/location_upgrade_module.mjs +5 -5
  37. package/fesm2015/common.mjs +123 -118
  38. package/fesm2015/common.mjs.map +1 -1
  39. package/fesm2015/http/testing.mjs +9 -11
  40. package/fesm2015/http/testing.mjs.map +1 -1
  41. package/fesm2015/http.mjs +41 -43
  42. package/fesm2015/http.mjs.map +1 -1
  43. package/fesm2015/testing.mjs +11 -13
  44. package/fesm2015/testing.mjs.map +1 -1
  45. package/fesm2015/upgrade.mjs +5 -5
  46. package/fesm2015/upgrade.mjs.map +1 -1
  47. package/fesm2020/common.mjs +123 -118
  48. package/fesm2020/common.mjs.map +1 -1
  49. package/fesm2020/http/testing.mjs +9 -11
  50. package/fesm2020/http/testing.mjs.map +1 -1
  51. package/fesm2020/http.mjs +41 -43
  52. package/fesm2020/http.mjs.map +1 -1
  53. package/fesm2020/testing.mjs +11 -13
  54. package/fesm2020/testing.mjs.map +1 -1
  55. package/fesm2020/upgrade.mjs +5 -5
  56. package/fesm2020/upgrade.mjs.map +1 -1
  57. package/http/{http.d.ts → index.d.ts} +4007 -4006
  58. package/http/testing/{testing.d.ts → index.d.ts} +177 -176
  59. package/{common.d.ts → index.d.ts} +2870 -2866
  60. package/package.json +8 -8
  61. package/testing/{testing.d.ts → index.d.ts} +121 -120
  62. package/upgrade/{upgrade.d.ts → index.d.ts} +445 -444
  63. package/http/package.json +0 -10
  64. package/http/testing/package.json +0 -9
  65. package/locales/package.json +0 -4
  66. package/testing/package.json +0 -9
  67. package/upgrade/package.json +0 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/common",
3
- "version": "14.0.0-next.14",
3
+ "version": "14.0.0-next.15",
4
4
  "description": "Angular - commonly needed directives and services",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -22,7 +22,7 @@
22
22
  "default": "./package.json"
23
23
  },
24
24
  ".": {
25
- "types": "./common.d.ts",
25
+ "types": "./index.d.ts",
26
26
  "esm2020": "./esm2020/common.mjs",
27
27
  "es2020": "./fesm2020/common.mjs",
28
28
  "es2015": "./fesm2015/common.mjs",
@@ -30,7 +30,7 @@
30
30
  "default": "./fesm2020/common.mjs"
31
31
  },
32
32
  "./http": {
33
- "types": "./http/http.d.ts",
33
+ "types": "./http/index.d.ts",
34
34
  "esm2020": "./esm2020/http/http.mjs",
35
35
  "es2020": "./fesm2020/http.mjs",
36
36
  "es2015": "./fesm2015/http.mjs",
@@ -38,7 +38,7 @@
38
38
  "default": "./fesm2020/http.mjs"
39
39
  },
40
40
  "./http/testing": {
41
- "types": "./http/testing/testing.d.ts",
41
+ "types": "./http/testing/index.d.ts",
42
42
  "esm2020": "./esm2020/http/testing/testing.mjs",
43
43
  "es2020": "./fesm2020/http/testing.mjs",
44
44
  "es2015": "./fesm2015/http/testing.mjs",
@@ -46,7 +46,7 @@
46
46
  "default": "./fesm2020/http/testing.mjs"
47
47
  },
48
48
  "./testing": {
49
- "types": "./testing/testing.d.ts",
49
+ "types": "./testing/index.d.ts",
50
50
  "esm2020": "./esm2020/testing/testing.mjs",
51
51
  "es2020": "./fesm2020/testing.mjs",
52
52
  "es2015": "./fesm2015/testing.mjs",
@@ -54,7 +54,7 @@
54
54
  "default": "./fesm2020/testing.mjs"
55
55
  },
56
56
  "./upgrade": {
57
- "types": "./upgrade/upgrade.d.ts",
57
+ "types": "./upgrade/index.d.ts",
58
58
  "esm2020": "./esm2020/upgrade/upgrade.mjs",
59
59
  "es2020": "./fesm2020/upgrade.mjs",
60
60
  "es2015": "./fesm2015/upgrade.mjs",
@@ -63,7 +63,7 @@
63
63
  }
64
64
  },
65
65
  "peerDependencies": {
66
- "@angular/core": "14.0.0-next.14",
66
+ "@angular/core": "14.0.0-next.15",
67
67
  "rxjs": "^6.5.3 || ^7.4.0"
68
68
  },
69
69
  "repository": {
@@ -98,7 +98,7 @@
98
98
  "fesm2020": "./fesm2020/common.mjs",
99
99
  "fesm2015": "./fesm2015/common.mjs",
100
100
  "esm2020": "./esm2020/common.mjs",
101
- "typings": "./common.d.ts",
101
+ "typings": "./index.d.ts",
102
102
  "module": "./fesm2015/common.mjs",
103
103
  "es2020": "./fesm2020/common.mjs",
104
104
  "type": "module"
@@ -1,125 +1,126 @@
1
1
  /**
2
- * @license Angular v14.0.0-next.14
2
+ * @license Angular v14.0.0-next.15
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
- import * as i0 from '@angular/core';
8
- import { InjectionToken } from '@angular/core';
9
- import { Location as Location_2 } from '@angular/common';
10
- import { LocationChangeListener } from '@angular/common';
11
- import { LocationStrategy } from '@angular/common';
12
- import { PlatformLocation } from '@angular/common';
13
- import { SubscriptionLike } from 'rxjs';
14
-
15
- /**
16
- * Provider for mock platform location config
17
- *
18
- * @publicApi
19
- */
20
- export declare const MOCK_PLATFORM_LOCATION_CONFIG: InjectionToken<MockPlatformLocationConfig>;
21
-
22
- /**
23
- * A mock implementation of {@link LocationStrategy} that allows tests to fire simulated
24
- * location events.
25
- *
26
- * @publicApi
27
- */
28
- export declare class MockLocationStrategy extends LocationStrategy {
29
- internalBaseHref: string;
30
- internalPath: string;
31
- internalTitle: string;
32
- urlChanges: string[];
33
- private stateChanges;
34
- constructor();
35
- simulatePopState(url: string): void;
36
- path(includeHash?: boolean): string;
37
- prepareExternalUrl(internal: string): string;
38
- pushState(ctx: any, title: string, path: string, query: string): void;
39
- replaceState(ctx: any, title: string, path: string, query: string): void;
40
- onPopState(fn: (value: any) => void): void;
41
- getBaseHref(): string;
42
- back(): void;
43
- forward(): void;
44
- getState(): unknown;
45
- static ɵfac: i0.ɵɵFactoryDeclaration<MockLocationStrategy, never>;
46
- static ɵprov: i0.ɵɵInjectableDeclaration<MockLocationStrategy>;
47
- }
48
-
49
- /**
50
- * Mock implementation of URL state.
51
- *
52
- * @publicApi
53
- */
54
- export declare class MockPlatformLocation implements PlatformLocation {
55
- private baseHref;
56
- private hashUpdate;
57
- private urlChangeIndex;
58
- private urlChanges;
59
- constructor(config?: MockPlatformLocationConfig);
60
- get hostname(): string;
61
- get protocol(): string;
62
- get port(): string;
63
- get pathname(): string;
64
- get search(): string;
65
- get hash(): string;
66
- get state(): unknown;
67
- getBaseHrefFromDOM(): string;
68
- onPopState(fn: LocationChangeListener): VoidFunction;
69
- onHashChange(fn: LocationChangeListener): VoidFunction;
70
- get href(): string;
71
- get url(): string;
72
- private parseChanges;
73
- replaceState(state: any, title: string, newUrl: string): void;
74
- pushState(state: any, title: string, newUrl: string): void;
75
- forward(): void;
76
- back(): void;
77
- historyGo(relativePosition?: number): void;
78
- getState(): unknown;
79
- private scheduleHashUpdate;
80
- static ɵfac: i0.ɵɵFactoryDeclaration<MockPlatformLocation, [{ optional: true; }]>;
81
- static ɵprov: i0.ɵɵInjectableDeclaration<MockPlatformLocation>;
82
- }
83
-
84
- /**
85
- * Mock platform location config
86
- *
87
- * @publicApi
88
- */
89
- export declare interface MockPlatformLocationConfig {
90
- startUrl?: string;
91
- appBaseHref?: string;
92
- }
93
-
94
- /**
95
- * A spy for {@link Location} that allows tests to fire simulated location events.
96
- *
97
- * @publicApi
98
- */
99
- export declare class SpyLocation implements Location_2 {
100
- urlChanges: string[];
101
- private _history;
102
- private _historyIndex;
103
- ngOnDestroy(): void;
104
- setInitialPath(url: string): void;
105
- setBaseHref(url: string): void;
106
- path(): string;
107
- getState(): unknown;
108
- isCurrentPathEqualTo(path: string, query?: string): boolean;
109
- simulateUrlPop(pathname: string): void;
110
- simulateHashChange(pathname: string): void;
111
- prepareExternalUrl(url: string): string;
112
- go(path: string, query?: string, state?: any): void;
113
- replaceState(path: string, query?: string, state?: any): void;
114
- forward(): void;
115
- back(): void;
116
- historyGo(relativePosition?: number): void;
117
- onUrlChange(fn: (url: string, state: unknown) => void): VoidFunction;
118
- subscribe(onNext: (value: any) => void, onThrow?: ((error: any) => void) | null, onReturn?: (() => void) | null): SubscriptionLike;
119
- normalize(url: string): string;
120
- private pushHistory;
121
- static ɵfac: i0.ɵɵFactoryDeclaration<SpyLocation, never>;
122
- static ɵprov: i0.ɵɵInjectableDeclaration<SpyLocation>;
123
- }
124
-
125
- export { }
7
+
8
+ import * as i0 from '@angular/core';
9
+ import { InjectionToken } from '@angular/core';
10
+ import { Location as Location_2 } from '@angular/common';
11
+ import { LocationChangeListener } from '@angular/common';
12
+ import { LocationStrategy } from '@angular/common';
13
+ import { PlatformLocation } from '@angular/common';
14
+ import { SubscriptionLike } from 'rxjs';
15
+
16
+ /**
17
+ * Provider for mock platform location config
18
+ *
19
+ * @publicApi
20
+ */
21
+ export declare const MOCK_PLATFORM_LOCATION_CONFIG: InjectionToken<MockPlatformLocationConfig>;
22
+
23
+ /**
24
+ * A mock implementation of {@link LocationStrategy} that allows tests to fire simulated
25
+ * location events.
26
+ *
27
+ * @publicApi
28
+ */
29
+ export declare class MockLocationStrategy extends LocationStrategy {
30
+ internalBaseHref: string;
31
+ internalPath: string;
32
+ internalTitle: string;
33
+ urlChanges: string[];
34
+ private stateChanges;
35
+ constructor();
36
+ simulatePopState(url: string): void;
37
+ path(includeHash?: boolean): string;
38
+ prepareExternalUrl(internal: string): string;
39
+ pushState(ctx: any, title: string, path: string, query: string): void;
40
+ replaceState(ctx: any, title: string, path: string, query: string): void;
41
+ onPopState(fn: (value: any) => void): void;
42
+ getBaseHref(): string;
43
+ back(): void;
44
+ forward(): void;
45
+ getState(): unknown;
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<MockLocationStrategy, never>;
47
+ static ɵprov: i0.ɵɵInjectableDeclaration<MockLocationStrategy>;
48
+ }
49
+
50
+ /**
51
+ * Mock implementation of URL state.
52
+ *
53
+ * @publicApi
54
+ */
55
+ export declare class MockPlatformLocation implements PlatformLocation {
56
+ private baseHref;
57
+ private hashUpdate;
58
+ private urlChangeIndex;
59
+ private urlChanges;
60
+ constructor(config?: MockPlatformLocationConfig);
61
+ get hostname(): string;
62
+ get protocol(): string;
63
+ get port(): string;
64
+ get pathname(): string;
65
+ get search(): string;
66
+ get hash(): string;
67
+ get state(): unknown;
68
+ getBaseHrefFromDOM(): string;
69
+ onPopState(fn: LocationChangeListener): VoidFunction;
70
+ onHashChange(fn: LocationChangeListener): VoidFunction;
71
+ get href(): string;
72
+ get url(): string;
73
+ private parseChanges;
74
+ replaceState(state: any, title: string, newUrl: string): void;
75
+ pushState(state: any, title: string, newUrl: string): void;
76
+ forward(): void;
77
+ back(): void;
78
+ historyGo(relativePosition?: number): void;
79
+ getState(): unknown;
80
+ private scheduleHashUpdate;
81
+ static ɵfac: i0.ɵɵFactoryDeclaration<MockPlatformLocation, [{ optional: true; }]>;
82
+ static ɵprov: i0.ɵɵInjectableDeclaration<MockPlatformLocation>;
83
+ }
84
+
85
+ /**
86
+ * Mock platform location config
87
+ *
88
+ * @publicApi
89
+ */
90
+ export declare interface MockPlatformLocationConfig {
91
+ startUrl?: string;
92
+ appBaseHref?: string;
93
+ }
94
+
95
+ /**
96
+ * A spy for {@link Location} that allows tests to fire simulated location events.
97
+ *
98
+ * @publicApi
99
+ */
100
+ export declare class SpyLocation implements Location_2 {
101
+ urlChanges: string[];
102
+ private _history;
103
+ private _historyIndex;
104
+ ngOnDestroy(): void;
105
+ setInitialPath(url: string): void;
106
+ setBaseHref(url: string): void;
107
+ path(): string;
108
+ getState(): unknown;
109
+ isCurrentPathEqualTo(path: string, query?: string): boolean;
110
+ simulateUrlPop(pathname: string): void;
111
+ simulateHashChange(pathname: string): void;
112
+ prepareExternalUrl(url: string): string;
113
+ go(path: string, query?: string, state?: any): void;
114
+ replaceState(path: string, query?: string, state?: any): void;
115
+ forward(): void;
116
+ back(): void;
117
+ historyGo(relativePosition?: number): void;
118
+ onUrlChange(fn: (url: string, state: unknown) => void): VoidFunction;
119
+ subscribe(onNext: (value: any) => void, onThrow?: ((error: any) => void) | null, onReturn?: (() => void) | null): SubscriptionLike;
120
+ normalize(url: string): string;
121
+ private pushHistory;
122
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpyLocation, never>;
123
+ static ɵprov: i0.ɵɵInjectableDeclaration<SpyLocation>;
124
+ }
125
+
126
+ export { }