@angular/router 19.1.1 → 19.1.2
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/fesm2022/router.mjs +88 -89
- package/fesm2022/router.mjs.map +1 -1
- package/fesm2022/testing.mjs +11 -11
- package/fesm2022/upgrade.mjs +1 -1
- package/index.d.ts +10 -10
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.1.
|
|
2
|
+
* @license Angular v19.1.2
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -59,16 +59,16 @@ class RouterTestingModule {
|
|
|
59
59
|
],
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
63
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.
|
|
64
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.
|
|
62
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
63
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.2", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
|
|
64
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: RouterTestingModule, providers: [
|
|
65
65
|
ɵROUTER_PROVIDERS,
|
|
66
66
|
provideLocationMocks(),
|
|
67
67
|
withPreloading(NoPreloading).ɵproviders,
|
|
68
68
|
{ provide: ROUTES, multi: true, useValue: [] },
|
|
69
69
|
], imports: [RouterModule] });
|
|
70
70
|
}
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: RouterTestingModule, decorators: [{
|
|
72
72
|
type: NgModule,
|
|
73
73
|
args: [{
|
|
74
74
|
exports: [RouterModule],
|
|
@@ -99,20 +99,20 @@ class RootFixtureService {
|
|
|
99
99
|
this.fixture.detectChanges();
|
|
100
100
|
return this.fixture;
|
|
101
101
|
}
|
|
102
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
103
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.
|
|
102
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: RootFixtureService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
103
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: RootFixtureService, providedIn: 'root' });
|
|
104
104
|
}
|
|
105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: RootFixtureService, decorators: [{
|
|
106
106
|
type: Injectable,
|
|
107
107
|
args: [{ providedIn: 'root' }]
|
|
108
108
|
}] });
|
|
109
109
|
class RootCmp {
|
|
110
110
|
outlet;
|
|
111
111
|
routerOutletData = signal(undefined);
|
|
112
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
113
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.
|
|
112
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: RootCmp, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
113
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.2", type: RootCmp, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "outlet", first: true, predicate: RouterOutlet, descendants: true }], ngImport: i0, template: '<router-outlet [routerOutletData]="routerOutletData()"></router-outlet>', isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
|
|
114
114
|
}
|
|
115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImport: i0, type: RootCmp, decorators: [{
|
|
116
116
|
type: Component,
|
|
117
117
|
args: [{
|
|
118
118
|
template: '<router-outlet [routerOutletData]="routerOutletData()"></router-outlet>',
|
package/fesm2022/upgrade.mjs
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.1.
|
|
2
|
+
* @license Angular v19.1.2
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -902,7 +902,7 @@ export declare class DefaultUrlSerializer implements UrlSerializer {
|
|
|
902
902
|
|
|
903
903
|
/**
|
|
904
904
|
* The `InjectionToken` and `@Injectable` classes for guards and resolvers are deprecated in favor
|
|
905
|
-
* of plain JavaScript functions instead
|
|
905
|
+
* of plain JavaScript functions instead. Dependency injection can still be achieved using the
|
|
906
906
|
* [`inject`](api/core/inject) function from `@angular/core` and an injectable class can be used as
|
|
907
907
|
* a functional guard using [`inject`](api/core/inject): `canActivate: [() =>
|
|
908
908
|
* inject(myGuard).canActivate()]`.
|
|
@@ -1924,19 +1924,19 @@ export declare class NoPreloading implements PreloadingStrategy {
|
|
|
1924
1924
|
/**
|
|
1925
1925
|
* How to handle a navigation request to the current URL. One of:
|
|
1926
1926
|
*
|
|
1927
|
-
* - `'ignore'` :
|
|
1927
|
+
* - `'ignore'` : The router ignores the request if it is the same as the current state.
|
|
1928
1928
|
* - `'reload'` : The router processes the URL even if it is not different from the current state.
|
|
1929
|
-
* One example of when you might want this option is if a `canMatch` guard depends on
|
|
1929
|
+
* One example of when you might want to use this option is if a `canMatch` guard depends on the
|
|
1930
1930
|
* application state and initially rejects navigation to a route. After fixing the state, you want
|
|
1931
|
-
* to re-navigate to the same URL so the route with the `canMatch` guard can activate.
|
|
1931
|
+
* to re-navigate to the same URL so that the route with the `canMatch` guard can activate.
|
|
1932
1932
|
*
|
|
1933
|
-
* Note that this only configures whether the Route reprocesses the URL and triggers related
|
|
1934
|
-
*
|
|
1933
|
+
* Note that this only configures whether or not the Route reprocesses the URL and triggers related
|
|
1934
|
+
* actions and events like redirects, guards, and resolvers. By default, the router re-uses a
|
|
1935
1935
|
* component instance when it re-navigates to the same component type without visiting a different
|
|
1936
1936
|
* component first. This behavior is configured by the `RouteReuseStrategy`. In order to reload
|
|
1937
1937
|
* routed components on same url navigation, you need to set `onSameUrlNavigation` to `'reload'`
|
|
1938
1938
|
* _and_ provide a `RouteReuseStrategy` which returns `false` for `shouldReuseRoute`. Additionally,
|
|
1939
|
-
* resolvers and most guards for routes do not run unless the path or path params changed
|
|
1939
|
+
* resolvers and most guards for routes do not run unless the path or path params have changed
|
|
1940
1940
|
* (configured by `runGuardsAndResolvers`).
|
|
1941
1941
|
*
|
|
1942
1942
|
* @publicApi
|
|
@@ -3780,7 +3780,7 @@ export declare class RouterLinkActive implements OnChanges, OnDestroy, AfterCont
|
|
|
3780
3780
|
* @publicApi
|
|
3781
3781
|
*/
|
|
3782
3782
|
export declare class RouterModule {
|
|
3783
|
-
constructor(
|
|
3783
|
+
constructor();
|
|
3784
3784
|
/**
|
|
3785
3785
|
* Creates and configures a module with all the router providers and directives.
|
|
3786
3786
|
* Optionally sets up an application listener to perform an initial navigation.
|
|
@@ -3817,7 +3817,7 @@ export declare class RouterModule {
|
|
|
3817
3817
|
*
|
|
3818
3818
|
*/
|
|
3819
3819
|
static forChild(routes: Routes): ModuleWithProviders<RouterModule>;
|
|
3820
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RouterModule,
|
|
3820
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouterModule, never>;
|
|
3821
3821
|
static ɵmod: i0.ɵɵNgModuleDeclaration<RouterModule, never, [typeof i1.RouterOutlet, typeof i2.RouterLink, typeof i3.RouterLinkActive, typeof i4.ɵEmptyOutletComponent], [typeof i1.RouterOutlet, typeof i2.RouterLink, typeof i3.RouterLinkActive, typeof i4.ɵEmptyOutletComponent]>;
|
|
3822
3822
|
static ɵinj: i0.ɵɵInjectorDeclaration<RouterModule>;
|
|
3823
3823
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/router",
|
|
3
|
-
"version": "19.1.
|
|
3
|
+
"version": "19.1.2",
|
|
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": "19.1.
|
|
28
|
-
"@angular/common": "19.1.
|
|
29
|
-
"@angular/platform-browser": "19.1.
|
|
27
|
+
"@angular/core": "19.1.2",
|
|
28
|
+
"@angular/common": "19.1.2",
|
|
29
|
+
"@angular/platform-browser": "19.1.2",
|
|
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