@angular/common 15.1.0-next.2 → 15.1.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.
- package/esm2020/http/src/client.mjs +5 -5
- package/esm2020/http/src/interceptor.mjs +3 -3
- package/esm2020/http/src/jsonp.mjs +6 -6
- package/esm2020/http/src/module.mjs +12 -12
- package/esm2020/http/src/xhr.mjs +3 -3
- package/esm2020/http/src/xsrf.mjs +6 -6
- package/esm2020/http/testing/src/backend.mjs +3 -3
- package/esm2020/http/testing/src/module.mjs +4 -4
- package/esm2020/src/common_module.mjs +4 -4
- package/esm2020/src/directives/ng_class.mjs +3 -3
- package/esm2020/src/directives/ng_component_outlet.mjs +3 -3
- package/esm2020/src/directives/ng_for_of.mjs +3 -3
- package/esm2020/src/directives/ng_if.mjs +3 -3
- package/esm2020/src/directives/ng_optimized_image/lcp_image_observer.mjs +3 -3
- package/esm2020/src/directives/ng_optimized_image/ng_optimized_image.mjs +3 -3
- package/esm2020/src/directives/ng_optimized_image/preconnect_link_checker.mjs +3 -3
- package/esm2020/src/directives/ng_optimized_image/preload-link-creator.mjs +3 -3
- package/esm2020/src/directives/ng_plural.mjs +6 -6
- package/esm2020/src/directives/ng_style.mjs +3 -3
- package/esm2020/src/directives/ng_switch.mjs +9 -9
- package/esm2020/src/directives/ng_template_outlet.mjs +3 -3
- package/esm2020/src/i18n/localization.mjs +6 -6
- package/esm2020/src/location/hash_location_strategy.mjs +3 -3
- package/esm2020/src/location/index.mjs +2 -2
- package/esm2020/src/location/location.mjs +17 -5
- package/esm2020/src/location/location_strategy.mjs +6 -6
- package/esm2020/src/location/platform_location.mjs +20 -23
- package/esm2020/src/pipes/async_pipe.mjs +3 -3
- package/esm2020/src/pipes/case_conversion_pipes.mjs +9 -9
- package/esm2020/src/pipes/date_pipe.mjs +3 -3
- package/esm2020/src/pipes/i18n_plural_pipe.mjs +3 -3
- package/esm2020/src/pipes/i18n_select_pipe.mjs +3 -3
- package/esm2020/src/pipes/json_pipe.mjs +3 -3
- package/esm2020/src/pipes/keyvalue_pipe.mjs +3 -3
- package/esm2020/src/pipes/number_pipe.mjs +9 -9
- package/esm2020/src/pipes/slice_pipe.mjs +3 -3
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/location_mock.mjs +3 -3
- package/esm2020/testing/src/mock_location_strategy.mjs +3 -3
- package/esm2020/testing/src/mock_platform_location.mjs +3 -3
- package/esm2020/upgrade/src/location_upgrade_module.mjs +4 -4
- package/fesm2015/common.mjs +141 -132
- package/fesm2015/common.mjs.map +1 -1
- package/fesm2015/http/testing.mjs +8 -8
- package/fesm2015/http.mjs +35 -35
- package/fesm2015/http.mjs.map +1 -1
- package/fesm2015/testing.mjs +10 -10
- package/fesm2015/upgrade.mjs +5 -5
- package/fesm2020/common.mjs +141 -132
- package/fesm2020/common.mjs.map +1 -1
- package/fesm2020/http/testing.mjs +8 -8
- package/fesm2020/http.mjs +35 -35
- package/fesm2020/http.mjs.map +1 -1
- package/fesm2020/testing.mjs +10 -10
- package/fesm2020/upgrade.mjs +5 -5
- package/http/index.d.ts +2 -2
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +36 -32
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
package/fesm2020/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.1.0-next.
|
|
2
|
+
* @license Angular v15.1.0-next.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -210,9 +210,9 @@ class SpyLocation {
|
|
|
210
210
|
this._historyIndex = this._history.length - 1;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
SpyLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
214
|
-
SpyLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
215
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
213
|
+
SpyLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: SpyLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
214
|
+
SpyLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: SpyLocation });
|
|
215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: SpyLocation, decorators: [{
|
|
216
216
|
type: Injectable
|
|
217
217
|
}] });
|
|
218
218
|
class LocationState {
|
|
@@ -299,9 +299,9 @@ class MockLocationStrategy extends LocationStrategy {
|
|
|
299
299
|
return this.stateChanges[(this.stateChanges.length || 1) - 1];
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
MockLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
303
|
-
MockLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
304
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
302
|
+
MockLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: MockLocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
303
|
+
MockLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: MockLocationStrategy });
|
|
304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: MockLocationStrategy, decorators: [{
|
|
305
305
|
type: Injectable
|
|
306
306
|
}], ctorParameters: function () { return []; } });
|
|
307
307
|
class _MockPopStateEvent {
|
|
@@ -498,9 +498,9 @@ class MockPlatformLocation {
|
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
MockPlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
502
|
-
MockPlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
503
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
501
|
+
MockPlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: MockPlatformLocation, deps: [{ token: MOCK_PLATFORM_LOCATION_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
502
|
+
MockPlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: MockPlatformLocation });
|
|
503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: MockPlatformLocation, decorators: [{
|
|
504
504
|
type: Injectable
|
|
505
505
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
506
506
|
type: Inject,
|
package/fesm2020/upgrade.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.1.0-next.
|
|
2
|
+
* @license Angular v15.1.0-next.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -881,10 +881,10 @@ class LocationUpgradeModule {
|
|
|
881
881
|
};
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
|
-
LocationUpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
885
|
-
LocationUpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-next.
|
|
886
|
-
LocationUpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
887
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
884
|
+
LocationUpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: LocationUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
885
|
+
LocationUpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-next.3", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
|
|
886
|
+
LocationUpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
|
|
887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: LocationUpgradeModule, decorators: [{
|
|
888
888
|
type: NgModule,
|
|
889
889
|
args: [{ imports: [CommonModule] }]
|
|
890
890
|
}] });
|
package/http/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.1.0-next.
|
|
2
|
+
* @license Angular v15.1.0-next.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -49,7 +49,7 @@ export declare abstract class HttpBackend implements HttpHandler {
|
|
|
49
49
|
|
|
50
50
|
*
|
|
51
51
|
* @usageNotes
|
|
52
|
-
* Sample HTTP requests for the [Tour of Heroes](/tutorial/toh-pt0) application.
|
|
52
|
+
* Sample HTTP requests for the [Tour of Heroes](/tutorial/tour-of-heroes/toh-pt0) application.
|
|
53
53
|
*
|
|
54
54
|
* ### HTTP Request Example
|
|
55
55
|
*
|
package/http/testing/index.d.ts
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.1.0-next.
|
|
2
|
+
* @license Angular v15.1.0-next.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -103,6 +103,41 @@ export declare class AsyncPipe implements OnDestroy, PipeTransform {
|
|
|
103
103
|
static ɵpipe: i0.ɵɵPipeDeclaration<AsyncPipe, "async", true>;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
/**
|
|
107
|
+
* `PlatformLocation` encapsulates all of the direct calls to platform APIs.
|
|
108
|
+
* This class should not be used directly by an application developer. Instead, use
|
|
109
|
+
* {@link Location}.
|
|
110
|
+
*
|
|
111
|
+
* @publicApi
|
|
112
|
+
*/
|
|
113
|
+
declare class BrowserPlatformLocation extends PlatformLocation {
|
|
114
|
+
private _doc;
|
|
115
|
+
private _location;
|
|
116
|
+
private _history;
|
|
117
|
+
constructor(_doc: any);
|
|
118
|
+
getBaseHrefFromDOM(): string;
|
|
119
|
+
onPopState(fn: LocationChangeListener): VoidFunction;
|
|
120
|
+
onHashChange(fn: LocationChangeListener): VoidFunction;
|
|
121
|
+
get href(): string;
|
|
122
|
+
get protocol(): string;
|
|
123
|
+
get hostname(): string;
|
|
124
|
+
get port(): string;
|
|
125
|
+
get pathname(): string;
|
|
126
|
+
get search(): string;
|
|
127
|
+
get hash(): string;
|
|
128
|
+
set pathname(newPath: string);
|
|
129
|
+
pushState(state: any, title: string, url: string): void;
|
|
130
|
+
replaceState(state: any, title: string, url: string): void;
|
|
131
|
+
forward(): void;
|
|
132
|
+
back(): void;
|
|
133
|
+
historyGo(relativePosition?: number): void;
|
|
134
|
+
getState(): unknown;
|
|
135
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrowserPlatformLocation, never>;
|
|
136
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BrowserPlatformLocation>;
|
|
137
|
+
}
|
|
138
|
+
export { BrowserPlatformLocation }
|
|
139
|
+
export { BrowserPlatformLocation as ɵBrowserPlatformLocation }
|
|
140
|
+
|
|
106
141
|
/**
|
|
107
142
|
* Exports all the basic Angular directives and pipes,
|
|
108
143
|
* such as `NgIf`, `NgForOf`, `DecimalPipe`, and so on.
|
|
@@ -3161,37 +3196,6 @@ export declare abstract class XhrFactory {
|
|
|
3161
3196
|
abstract build(): XMLHttpRequest;
|
|
3162
3197
|
}
|
|
3163
3198
|
|
|
3164
|
-
/**
|
|
3165
|
-
* `PlatformLocation` encapsulates all of the direct calls to platform APIs.
|
|
3166
|
-
* This class should not be used directly by an application developer. Instead, use
|
|
3167
|
-
* {@link Location}.
|
|
3168
|
-
*/
|
|
3169
|
-
export declare class ɵBrowserPlatformLocation extends PlatformLocation {
|
|
3170
|
-
private _doc;
|
|
3171
|
-
readonly location: Location;
|
|
3172
|
-
private _history;
|
|
3173
|
-
constructor(_doc: any);
|
|
3174
|
-
getBaseHrefFromDOM(): string;
|
|
3175
|
-
onPopState(fn: LocationChangeListener): VoidFunction;
|
|
3176
|
-
onHashChange(fn: LocationChangeListener): VoidFunction;
|
|
3177
|
-
get href(): string;
|
|
3178
|
-
get protocol(): string;
|
|
3179
|
-
get hostname(): string;
|
|
3180
|
-
get port(): string;
|
|
3181
|
-
get pathname(): string;
|
|
3182
|
-
get search(): string;
|
|
3183
|
-
get hash(): string;
|
|
3184
|
-
set pathname(newPath: string);
|
|
3185
|
-
pushState(state: any, title: string, url: string): void;
|
|
3186
|
-
replaceState(state: any, title: string, url: string): void;
|
|
3187
|
-
forward(): void;
|
|
3188
|
-
back(): void;
|
|
3189
|
-
historyGo(relativePosition?: number): void;
|
|
3190
|
-
getState(): unknown;
|
|
3191
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ɵBrowserPlatformLocation, never>;
|
|
3192
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ɵBrowserPlatformLocation>;
|
|
3193
|
-
}
|
|
3194
|
-
|
|
3195
3199
|
/**
|
|
3196
3200
|
* Provides DOM operations in an environment-agnostic way.
|
|
3197
3201
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "15.1.0-next.
|
|
3
|
+
"version": "15.1.0-next.3",
|
|
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": "15.1.0-next.
|
|
66
|
+
"@angular/core": "15.1.0-next.3",
|
|
67
67
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
68
68
|
},
|
|
69
69
|
"repository": {
|
package/testing/index.d.ts
CHANGED
package/upgrade/index.d.ts
CHANGED