@angular/router 14.0.4 → 14.0.5
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/apply_redirects.mjs +14 -18
- package/esm2020/src/components/empty_outlet.mjs +3 -3
- package/esm2020/src/create_url_tree.mjs +6 -4
- package/esm2020/src/directives/router_link.mjs +6 -6
- package/esm2020/src/directives/router_link_active.mjs +3 -3
- package/esm2020/src/directives/router_outlet.mjs +10 -9
- package/esm2020/src/errors.mjs +2 -0
- package/esm2020/src/models.mjs +1 -1
- package/esm2020/src/operators/check_guards.mjs +12 -35
- package/esm2020/src/page_title_strategy.mjs +3 -3
- package/esm2020/src/recognize.mjs +3 -2
- package/esm2020/src/router.mjs +12 -10
- package/esm2020/src/router_config_loader.mjs +3 -3
- package/esm2020/src/router_module.mjs +51 -12
- package/esm2020/src/router_preloader.mjs +9 -9
- package/esm2020/src/router_scroller.mjs +3 -3
- package/esm2020/src/shared.mjs +3 -2
- package/esm2020/src/url_tree.mjs +6 -4
- package/esm2020/src/utils/config.mjs +17 -17
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/router_testing_module.mjs +4 -4
- package/fesm2015/router.mjs +142 -127
- package/fesm2015/router.mjs.map +1 -1
- package/fesm2015/testing.mjs +5 -5
- package/fesm2015/upgrade.mjs +1 -1
- package/fesm2020/router.mjs +142 -127
- package/fesm2020/router.mjs.map +1 -1
- package/fesm2020/testing.mjs +5 -5
- package/fesm2020/upgrade.mjs +1 -1
- package/index.d.ts +15 -3
- 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 v14.0.
|
|
2
|
+
* @license Angular v14.0.5
|
|
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: "14.0.
|
|
105
|
-
RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.
|
|
106
|
-
RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.
|
|
104
|
+
RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
105
|
+
RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.5", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
|
|
106
|
+
RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: RouterTestingModule, providers: [
|
|
107
107
|
ɵROUTER_PROVIDERS,
|
|
108
108
|
EXTRA_ROUTER_TESTING_PROVIDERS,
|
|
109
109
|
{ provide: Location, useClass: SpyLocation },
|
|
@@ -128,7 +128,7 @@ RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
|
|
|
128
128
|
ɵprovidePreloading(NoPreloading),
|
|
129
129
|
provideRoutes([]),
|
|
130
130
|
], imports: [RouterModule] });
|
|
131
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.
|
|
131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: RouterTestingModule, decorators: [{
|
|
132
132
|
type: NgModule,
|
|
133
133
|
args: [{
|
|
134
134
|
exports: [RouterModule],
|
package/fesm2020/upgrade.mjs
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.
|
|
2
|
+
* @license Angular v14.0.5
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -2125,6 +2125,8 @@ export declare interface Route {
|
|
|
2125
2125
|
* - `always` : Run on every execution.
|
|
2126
2126
|
* By default, guards and resolvers run only when the matrix
|
|
2127
2127
|
* parameters of the route change.
|
|
2128
|
+
*
|
|
2129
|
+
* @see RunGuardsAndResolvers
|
|
2128
2130
|
*/
|
|
2129
2131
|
runGuardsAndResolvers?: RunGuardsAndResolvers;
|
|
2130
2132
|
/**
|
|
@@ -2233,7 +2235,6 @@ export declare class Router {
|
|
|
2233
2235
|
private currentNavigation;
|
|
2234
2236
|
private disposed;
|
|
2235
2237
|
private locationSubscription?;
|
|
2236
|
-
private navigationId;
|
|
2237
2238
|
/**
|
|
2238
2239
|
* The id of the currently active page in the router.
|
|
2239
2240
|
* Updated to the transition's target id on a successful navigation.
|
|
@@ -3440,9 +3441,20 @@ export declare class RoutesRecognized extends RouterEvent {
|
|
|
3440
3441
|
}
|
|
3441
3442
|
|
|
3442
3443
|
/**
|
|
3443
|
-
*
|
|
3444
3444
|
* A policy for when to run guards and resolvers on a route.
|
|
3445
3445
|
*
|
|
3446
|
+
* Guards and/or resolvers will always run when a route is activated or deactivated. When a route is
|
|
3447
|
+
* unchanged, the default behavior is the same as `paramsChange`.
|
|
3448
|
+
*
|
|
3449
|
+
* `paramsChange` : Rerun the guards and resolvers when path or
|
|
3450
|
+
* path param changes. This does not include query parameters. This option is the default.
|
|
3451
|
+
* - `always` : Run on every execution.
|
|
3452
|
+
* - `pathParamsChange` : Rerun guards and resolvers when the path params
|
|
3453
|
+
* change. This does not compare matrix or query parameters.
|
|
3454
|
+
* - `paramsOrQueryParamsChange` : Run when path, matrix, or query parameters change.
|
|
3455
|
+
* - `pathParamsOrQueryParamsChange` : Rerun guards and resolvers when the path params
|
|
3456
|
+
* change or query params have changed. This does not include matrix parameters.
|
|
3457
|
+
*
|
|
3446
3458
|
* @see [Route.runGuardsAndResolvers](api/router/Route#runGuardsAndResolvers)
|
|
3447
3459
|
* @publicApi
|
|
3448
3460
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/router",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.5",
|
|
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": "14.0.
|
|
28
|
-
"@angular/common": "14.0.
|
|
29
|
-
"@angular/platform-browser": "14.0.
|
|
27
|
+
"@angular/core": "14.0.5",
|
|
28
|
+
"@angular/common": "14.0.5",
|
|
29
|
+
"@angular/platform-browser": "14.0.5",
|
|
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