@angular/router 15.0.0-next.6 → 15.0.0-rc.1
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/src/components/empty_outlet.mjs +3 -3
- package/esm2020/src/directives/router_link.mjs +3 -3
- package/esm2020/src/directives/router_link_active.mjs +3 -3
- package/esm2020/src/directives/router_outlet.mjs +3 -3
- package/esm2020/src/page_title_strategy.mjs +6 -6
- package/esm2020/src/provide_router.mjs +4 -10
- package/esm2020/src/route_reuse_strategy.mjs +2 -2
- package/esm2020/src/router.mjs +3 -3
- package/esm2020/src/router_config.mjs +1 -1
- package/esm2020/src/router_config_loader.mjs +3 -3
- package/esm2020/src/router_module.mjs +8 -7
- package/esm2020/src/router_outlet_context.mjs +3 -3
- package/esm2020/src/router_preloader.mjs +9 -9
- package/esm2020/src/router_scroller.mjs +18 -8
- package/esm2020/src/url_tree.mjs +3 -3
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/router_testing_module.mjs +4 -4
- package/fesm2015/router.mjs +66 -61
- package/fesm2015/router.mjs.map +1 -1
- package/fesm2015/testing.mjs +5 -5
- package/fesm2015/upgrade.mjs +1 -1
- package/fesm2020/router.mjs +66 -61
- package/fesm2020/router.mjs.map +1 -1
- package/fesm2020/testing.mjs +5 -5
- package/fesm2020/upgrade.mjs +1 -1
- package/index.d.ts +2 -20
- package/package.json +4 -4
- 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.0.0-
|
|
2
|
+
* @license Angular v15.0.0-rc.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -101,9 +101,9 @@ class RouterTestingModule {
|
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0-
|
|
105
|
-
RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0-
|
|
106
|
-
RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0-
|
|
104
|
+
RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0-rc.1", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
105
|
+
RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0-rc.1", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
|
|
106
|
+
RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0-rc.1", ngImport: i0, type: RouterTestingModule, providers: [
|
|
107
107
|
ɵROUTER_PROVIDERS,
|
|
108
108
|
EXTRA_ROUTER_TESTING_PROVIDERS,
|
|
109
109
|
provideLocationMocks(),
|
|
@@ -126,7 +126,7 @@ RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
|
|
|
126
126
|
ɵwithPreloading(NoPreloading).ɵproviders,
|
|
127
127
|
provideRoutes([]),
|
|
128
128
|
], imports: [RouterModule] });
|
|
129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0-
|
|
129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0-rc.1", ngImport: i0, type: RouterTestingModule, decorators: [{
|
|
130
130
|
type: NgModule,
|
|
131
131
|
args: [{
|
|
132
132
|
exports: [RouterModule],
|
package/fesm2020/upgrade.mjs
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.0.0-
|
|
2
|
+
* @license Angular v15.0.0-rc.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -213,7 +213,7 @@ export declare class ActivationStart {
|
|
|
213
213
|
*
|
|
214
214
|
* This base route reuse strategy only reuses routes when the matched router configs are
|
|
215
215
|
* identical. This prevents components from being destroyed and recreated
|
|
216
|
-
* when just the
|
|
216
|
+
* when just the route parameters, query parameters or fragment change
|
|
217
217
|
* (that is, the existing component is _reused_).
|
|
218
218
|
*
|
|
219
219
|
* This strategy does not store any routes for later reuse.
|
|
@@ -833,7 +833,6 @@ export declare type Data = {
|
|
|
833
833
|
* @see `provideRouter`
|
|
834
834
|
*
|
|
835
835
|
* @publicApi
|
|
836
|
-
* @developerPreview
|
|
837
836
|
*/
|
|
838
837
|
export declare type DebugTracingFeature = RouterFeature<RouterFeatureKind.DebugTracingFeature>;
|
|
839
838
|
|
|
@@ -931,7 +930,6 @@ export declare type DetachedRouteHandle = {};
|
|
|
931
930
|
* @see `provideRouter`
|
|
932
931
|
*
|
|
933
932
|
* @publicApi
|
|
934
|
-
* @developerPreview
|
|
935
933
|
*/
|
|
936
934
|
export declare type DisabledInitialNavigationFeature = RouterFeature<RouterFeatureKind.DisabledInitialNavigationFeature>;
|
|
937
935
|
|
|
@@ -943,7 +941,6 @@ export declare type DisabledInitialNavigationFeature = RouterFeature<RouterFeatu
|
|
|
943
941
|
* @see `provideRouter`
|
|
944
942
|
*
|
|
945
943
|
* @publicApi
|
|
946
|
-
* @developerPreview
|
|
947
944
|
*/
|
|
948
945
|
export declare type EnabledBlockingInitialNavigationFeature = RouterFeature<RouterFeatureKind.EnabledBlockingInitialNavigationFeature>;
|
|
949
946
|
|
|
@@ -1195,7 +1192,6 @@ export declare type InitialNavigation = 'disabled' | 'enabledBlocking' | 'enable
|
|
|
1195
1192
|
* @see `provideRouter`
|
|
1196
1193
|
*
|
|
1197
1194
|
* @publicApi
|
|
1198
|
-
* @developerPreview
|
|
1199
1195
|
*/
|
|
1200
1196
|
export declare type InitialNavigationFeature = EnabledBlockingInitialNavigationFeature | DisabledInitialNavigationFeature;
|
|
1201
1197
|
|
|
@@ -1206,7 +1202,6 @@ export declare type InitialNavigationFeature = EnabledBlockingInitialNavigationF
|
|
|
1206
1202
|
* @see `provideRouter`
|
|
1207
1203
|
*
|
|
1208
1204
|
* @publicApi
|
|
1209
|
-
* @developerPreview
|
|
1210
1205
|
*/
|
|
1211
1206
|
export declare type InMemoryScrollingFeature = RouterFeature<RouterFeatureKind.InMemoryScrollingFeature>;
|
|
1212
1207
|
|
|
@@ -1215,7 +1210,6 @@ export declare type InMemoryScrollingFeature = RouterFeature<RouterFeatureKind.I
|
|
|
1215
1210
|
* function.
|
|
1216
1211
|
*
|
|
1217
1212
|
* @publicApi
|
|
1218
|
-
* @developerPreview
|
|
1219
1213
|
*/
|
|
1220
1214
|
export declare interface InMemoryScrollingOptions {
|
|
1221
1215
|
/**
|
|
@@ -1801,7 +1795,6 @@ export declare class PreloadAllModules implements PreloadingStrategy {
|
|
|
1801
1795
|
* @see `provideRouter`
|
|
1802
1796
|
*
|
|
1803
1797
|
* @publicApi
|
|
1804
|
-
* @developerPreview
|
|
1805
1798
|
*/
|
|
1806
1799
|
export declare type PreloadingFeature = RouterFeature<RouterFeatureKind.PreloadingFeature>;
|
|
1807
1800
|
|
|
@@ -1855,7 +1848,6 @@ export declare const PRIMARY_OUTLET = "primary";
|
|
|
1855
1848
|
* @see `RouterFeatures`
|
|
1856
1849
|
*
|
|
1857
1850
|
* @publicApi
|
|
1858
|
-
* @developerPreview
|
|
1859
1851
|
* @param routes A set of `Route`s to use for the application routing table.
|
|
1860
1852
|
* @param features Optional features to configure additional router behaviors.
|
|
1861
1853
|
* @returns A set of providers to setup a Router.
|
|
@@ -2884,7 +2876,6 @@ declare class RouterConfigLoader {
|
|
|
2884
2876
|
* Extra configuration options that can be used with the `withRouterConfig` function.
|
|
2885
2877
|
*
|
|
2886
2878
|
* @publicApi
|
|
2887
|
-
* @developerPreview
|
|
2888
2879
|
*/
|
|
2889
2880
|
export declare interface RouterConfigOptions {
|
|
2890
2881
|
/**
|
|
@@ -2949,7 +2940,6 @@ export declare interface RouterConfigOptions {
|
|
|
2949
2940
|
* @see `provideRouter`
|
|
2950
2941
|
*
|
|
2951
2942
|
* @publicApi
|
|
2952
|
-
* @developerPreview
|
|
2953
2943
|
*/
|
|
2954
2944
|
export declare type RouterConfigurationFeature = RouterFeature<RouterFeatureKind.RouterConfigurationFeature>;
|
|
2955
2945
|
|
|
@@ -3017,7 +3007,6 @@ export declare class RouterEvent {
|
|
|
3017
3007
|
* Helper type to represent a Router feature.
|
|
3018
3008
|
*
|
|
3019
3009
|
* @publicApi
|
|
3020
|
-
* @developerPreview
|
|
3021
3010
|
*/
|
|
3022
3011
|
export declare interface RouterFeature<FeatureKind extends RouterFeatureKind> {
|
|
3023
3012
|
ɵkind: FeatureKind;
|
|
@@ -3045,7 +3034,6 @@ declare const enum RouterFeatureKind {
|
|
|
3045
3034
|
* @see `provideRouter`
|
|
3046
3035
|
*
|
|
3047
3036
|
* @publicApi
|
|
3048
|
-
* @developerPreview
|
|
3049
3037
|
*/
|
|
3050
3038
|
export declare type RouterFeatures = PreloadingFeature | DebugTracingFeature | InitialNavigationFeature | InMemoryScrollingFeature | RouterConfigurationFeature;
|
|
3051
3039
|
|
|
@@ -4233,7 +4221,6 @@ export declare const VERSION: Version;
|
|
|
4233
4221
|
* @returns A set of providers for use with `provideRouter`.
|
|
4234
4222
|
*
|
|
4235
4223
|
* @publicApi
|
|
4236
|
-
* @developerPreview
|
|
4237
4224
|
*/
|
|
4238
4225
|
export declare function withDebugTracing(): DebugTracingFeature;
|
|
4239
4226
|
|
|
@@ -4262,7 +4249,6 @@ export declare function withDebugTracing(): DebugTracingFeature;
|
|
|
4262
4249
|
* @returns A set of providers for use with `provideRouter`.
|
|
4263
4250
|
*
|
|
4264
4251
|
* @publicApi
|
|
4265
|
-
* @developerPreview
|
|
4266
4252
|
*/
|
|
4267
4253
|
export declare function withDisabledInitialNavigation(): DisabledInitialNavigationFeature;
|
|
4268
4254
|
|
|
@@ -4289,7 +4275,6 @@ export declare function withDisabledInitialNavigation(): DisabledInitialNavigati
|
|
|
4289
4275
|
* @see `provideRouter`
|
|
4290
4276
|
*
|
|
4291
4277
|
* @publicApi
|
|
4292
|
-
* @developerPreview
|
|
4293
4278
|
* @returns A set of providers for use with `provideRouter`.
|
|
4294
4279
|
*/
|
|
4295
4280
|
export declare function withEnabledBlockingInitialNavigation(): EnabledBlockingInitialNavigationFeature;
|
|
@@ -4315,7 +4300,6 @@ export declare function withEnabledBlockingInitialNavigation(): EnabledBlockingI
|
|
|
4315
4300
|
* @see `ViewportScroller`
|
|
4316
4301
|
*
|
|
4317
4302
|
* @publicApi
|
|
4318
|
-
* @developerPreview
|
|
4319
4303
|
* @param options Set of configuration parameters to customize scrolling behavior, see
|
|
4320
4304
|
* `InMemoryScrollingOptions` for additional information.
|
|
4321
4305
|
* @returns A set of providers for use with `provideRouter`.
|
|
@@ -4347,7 +4331,6 @@ export declare function withInMemoryScrolling(options?: InMemoryScrollingOptions
|
|
|
4347
4331
|
* @returns A set of providers for use with `provideRouter`.
|
|
4348
4332
|
*
|
|
4349
4333
|
* @publicApi
|
|
4350
|
-
* @developerPreview
|
|
4351
4334
|
*/
|
|
4352
4335
|
declare function withPreloading(preloadingStrategy: Type<PreloadingStrategy>): PreloadingFeature;
|
|
4353
4336
|
export { withPreloading }
|
|
@@ -4379,7 +4362,6 @@ export { withPreloading as ɵwithPreloading }
|
|
|
4379
4362
|
* @returns A set of providers for use with `provideRouter`.
|
|
4380
4363
|
*
|
|
4381
4364
|
* @publicApi
|
|
4382
|
-
* @developerPreview
|
|
4383
4365
|
*/
|
|
4384
4366
|
export declare function withRouterConfig(options: RouterConfigOptions): RouterConfigurationFeature;
|
|
4385
4367
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/router",
|
|
3
|
-
"version": "15.0.0-
|
|
3
|
+
"version": "15.0.0-rc.1",
|
|
4
4
|
"description": "Angular - the routing library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"tslib": "^2.3.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@angular/core": "15.0.0-
|
|
28
|
-
"@angular/common": "15.0.0-
|
|
29
|
-
"@angular/platform-browser": "15.0.0-
|
|
27
|
+
"@angular/core": "15.0.0-rc.1",
|
|
28
|
+
"@angular/common": "15.0.0-rc.1",
|
|
29
|
+
"@angular/platform-browser": "15.0.0-rc.1",
|
|
30
30
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
31
31
|
},
|
|
32
32
|
"ng-update": {
|
package/testing/index.d.ts
CHANGED
package/upgrade/index.d.ts
CHANGED