@angular/router 14.1.0 → 14.1.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 +6 -6
- package/esm2020/src/directives/router_link_active.mjs +3 -3
- package/esm2020/src/directives/router_outlet.mjs +3 -3
- package/esm2020/src/index.mjs +3 -2
- package/esm2020/src/page_title_strategy.mjs +6 -6
- package/esm2020/src/private_export.mjs +3 -2
- package/esm2020/src/router.mjs +62 -9
- package/esm2020/src/router_config.mjs +19 -0
- package/esm2020/src/router_config_loader.mjs +3 -3
- package/esm2020/src/router_module.mjs +21 -78
- package/esm2020/src/router_preloader.mjs +19 -11
- package/esm2020/src/router_scroller.mjs +3 -3
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/router_testing_module.mjs +4 -4
- package/fesm2015/router.mjs +248 -217
- package/fesm2015/router.mjs.map +1 -1
- package/fesm2015/testing.mjs +5 -5
- package/fesm2015/upgrade.mjs +1 -1
- package/fesm2020/router.mjs +238 -215
- package/fesm2020/router.mjs.map +1 -1
- package/fesm2020/testing.mjs +5 -5
- package/fesm2020/upgrade.mjs +1 -1
- package/index.d.ts +4 -7
- 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.1.
|
|
2
|
+
* @license Angular v14.1.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: "14.1.
|
|
105
|
-
RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.
|
|
106
|
-
RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.
|
|
104
|
+
RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
105
|
+
RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.1", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
|
|
106
|
+
RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: RouterTestingModule, providers: [
|
|
107
107
|
ɵROUTER_PROVIDERS,
|
|
108
108
|
EXTRA_ROUTER_TESTING_PROVIDERS,
|
|
109
109
|
{ provide: Location, useClass: SpyLocation },
|
|
@@ -127,7 +127,7 @@ RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
|
|
|
127
127
|
ɵprovidePreloading(NoPreloading),
|
|
128
128
|
provideRoutes([]),
|
|
129
129
|
], imports: [RouterModule] });
|
|
130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: RouterTestingModule, decorators: [{
|
|
131
131
|
type: NgModule,
|
|
132
132
|
args: [{
|
|
133
133
|
exports: [RouterModule],
|
package/fesm2020/upgrade.mjs
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.1.
|
|
2
|
+
* @license Angular v14.1.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1234,9 +1234,6 @@ declare namespace i4 {
|
|
|
1234
1234
|
* more control over when the router starts its initial navigation due to some complex
|
|
1235
1235
|
* initialization logic.
|
|
1236
1236
|
*
|
|
1237
|
-
* The following values have been [deprecated](guide/releases#deprecation-practices) since v11,
|
|
1238
|
-
* and should not be used for new applications.
|
|
1239
|
-
*
|
|
1240
1237
|
* @see `forRoot()`
|
|
1241
1238
|
*
|
|
1242
1239
|
* @publicApi
|
|
@@ -1797,7 +1794,7 @@ export declare const PRIMARY_OUTLET = "primary";
|
|
|
1797
1794
|
*
|
|
1798
1795
|
* @publicApi
|
|
1799
1796
|
*/
|
|
1800
|
-
export declare function provideRoutes(routes: Routes):
|
|
1797
|
+
export declare function provideRoutes(routes: Routes): Provider[];
|
|
1801
1798
|
|
|
1802
1799
|
/**
|
|
1803
1800
|
*
|
|
@@ -3295,7 +3292,7 @@ export declare class RouterLinkWithHref implements OnChanges, OnDestroy {
|
|
|
3295
3292
|
* @publicApi
|
|
3296
3293
|
*/
|
|
3297
3294
|
export declare class RouterModule {
|
|
3298
|
-
constructor(guard: any
|
|
3295
|
+
constructor(guard: any);
|
|
3299
3296
|
/**
|
|
3300
3297
|
* Creates and configures a module with all the router providers and directives.
|
|
3301
3298
|
* Optionally sets up an application listener to perform an initial navigation.
|
|
@@ -3332,7 +3329,7 @@ export declare class RouterModule {
|
|
|
3332
3329
|
*
|
|
3333
3330
|
*/
|
|
3334
3331
|
static forChild(routes: Routes): ModuleWithProviders<RouterModule>;
|
|
3335
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RouterModule, [{ optional: true; }
|
|
3332
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouterModule, [{ optional: true; }]>;
|
|
3336
3333
|
static ɵmod: i0.ɵɵNgModuleDeclaration<RouterModule, [typeof i1.RouterOutlet, typeof i2.RouterLink, typeof i2.RouterLinkWithHref, typeof i3.RouterLinkActive, typeof i4.ɵEmptyOutletComponent], never, [typeof i1.RouterOutlet, typeof i2.RouterLink, typeof i2.RouterLinkWithHref, typeof i3.RouterLinkActive, typeof i4.ɵEmptyOutletComponent]>;
|
|
3337
3334
|
static ɵinj: i0.ɵɵInjectorDeclaration<RouterModule>;
|
|
3338
3335
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/router",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.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": "14.1.
|
|
28
|
-
"@angular/common": "14.1.
|
|
29
|
-
"@angular/platform-browser": "14.1.
|
|
27
|
+
"@angular/core": "14.1.1",
|
|
28
|
+
"@angular/common": "14.1.1",
|
|
29
|
+
"@angular/platform-browser": "14.1.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