@angular/router 14.1.0 → 14.1.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.
Files changed (34) hide show
  1. package/esm2020/src/apply_redirects.mjs +4 -3
  2. package/esm2020/src/components/empty_outlet.mjs +3 -3
  3. package/esm2020/src/directives/router_link.mjs +6 -6
  4. package/esm2020/src/directives/router_link_active.mjs +3 -3
  5. package/esm2020/src/directives/router_outlet.mjs +3 -3
  6. package/esm2020/src/index.mjs +3 -2
  7. package/esm2020/src/operators/resolve_data.mjs +4 -3
  8. package/esm2020/src/page_title_strategy.mjs +6 -6
  9. package/esm2020/src/patchable_relative_link_resolution.mjs +12 -0
  10. package/esm2020/src/private_export.mjs +3 -2
  11. package/esm2020/src/recognize.mjs +4 -3
  12. package/esm2020/src/router.mjs +64 -9
  13. package/esm2020/src/router_config.mjs +19 -0
  14. package/esm2020/src/router_config_loader.mjs +6 -5
  15. package/esm2020/src/router_module.mjs +23 -79
  16. package/esm2020/src/router_outlet_context.mjs +9 -1
  17. package/esm2020/src/router_preloader.mjs +19 -11
  18. package/esm2020/src/router_scroller.mjs +3 -3
  19. package/esm2020/src/url_tree.mjs +9 -2
  20. package/esm2020/src/utils/type_guards.mjs +5 -1
  21. package/esm2020/src/version.mjs +1 -1
  22. package/esm2020/testing/src/router_testing_module.mjs +4 -4
  23. package/fesm2015/router.mjs +285 -224
  24. package/fesm2015/router.mjs.map +1 -1
  25. package/fesm2015/testing.mjs +5 -5
  26. package/fesm2015/upgrade.mjs +1 -1
  27. package/fesm2020/router.mjs +275 -222
  28. package/fesm2020/router.mjs.map +1 -1
  29. package/fesm2020/testing.mjs +5 -5
  30. package/fesm2020/upgrade.mjs +1 -1
  31. package/index.d.ts +8 -7
  32. package/package.json +4 -4
  33. package/testing/index.d.ts +1 -1
  34. package/upgrade/index.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.0
2
+ * @license Angular v14.1.3
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.0", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
105
- RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
106
- RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: RouterTestingModule, providers: [
104
+ RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
105
+ RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
106
+ RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", 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.0", ngImport: i0, type: RouterTestingModule, decorators: [{
130
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: RouterTestingModule, decorators: [{
131
131
  type: NgModule,
132
132
  args: [{
133
133
  exports: [RouterModule],
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.0
2
+ * @license Angular v14.1.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.0
2
+ * @license Angular v14.1.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -741,6 +741,8 @@ export declare class ChildrenOutletContexts {
741
741
  onOutletReAttached(contexts: Map<string, OutletContext>): void;
742
742
  getOrCreateContext(childName: string): OutletContext;
743
743
  getContext(childName: string): OutletContext | null;
744
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChildrenOutletContexts, never>;
745
+ static ɵprov: i0.ɵɵInjectableDeclaration<ChildrenOutletContexts>;
744
746
  }
745
747
 
746
748
  /**
@@ -1234,9 +1236,6 @@ declare namespace i4 {
1234
1236
  * more control over when the router starts its initial navigation due to some complex
1235
1237
  * initialization logic.
1236
1238
  *
1237
- * The following values have been [deprecated](guide/releases#deprecation-practices) since v11,
1238
- * and should not be used for new applications.
1239
- *
1240
1239
  * @see `forRoot()`
1241
1240
  *
1242
1241
  * @publicApi
@@ -1797,7 +1796,7 @@ export declare const PRIMARY_OUTLET = "primary";
1797
1796
  *
1798
1797
  * @publicApi
1799
1798
  */
1800
- export declare function provideRoutes(routes: Routes): any;
1799
+ export declare function provideRoutes(routes: Routes): Provider[];
1801
1800
 
1802
1801
  /**
1803
1802
  *
@@ -3295,7 +3294,7 @@ export declare class RouterLinkWithHref implements OnChanges, OnDestroy {
3295
3294
  * @publicApi
3296
3295
  */
3297
3296
  export declare class RouterModule {
3298
- constructor(guard: any, router: Router);
3297
+ constructor(guard: any);
3299
3298
  /**
3300
3299
  * Creates and configures a module with all the router providers and directives.
3301
3300
  * Optionally sets up an application listener to perform an initial navigation.
@@ -3332,7 +3331,7 @@ export declare class RouterModule {
3332
3331
  *
3333
3332
  */
3334
3333
  static forChild(routes: Routes): ModuleWithProviders<RouterModule>;
3335
- static ɵfac: i0.ɵɵFactoryDeclaration<RouterModule, [{ optional: true; }, { optional: true; }]>;
3334
+ static ɵfac: i0.ɵɵFactoryDeclaration<RouterModule, [{ optional: true; }]>;
3336
3335
  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
3336
  static ɵinj: i0.ɵɵInjectorDeclaration<RouterModule>;
3338
3337
  }
@@ -4023,6 +4022,8 @@ export declare abstract class UrlSerializer {
4023
4022
  abstract parse(url: string): UrlTree;
4024
4023
  /** Converts a `UrlTree` into a url */
4025
4024
  abstract serialize(tree: UrlTree): string;
4025
+ static ɵfac: i0.ɵɵFactoryDeclaration<UrlSerializer, never>;
4026
+ static ɵprov: i0.ɵɵInjectableDeclaration<UrlSerializer>;
4026
4027
  }
4027
4028
 
4028
4029
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/router",
3
- "version": "14.1.0",
3
+ "version": "14.1.3",
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.0",
28
- "@angular/common": "14.1.0",
29
- "@angular/platform-browser": "14.1.0",
27
+ "@angular/core": "14.1.3",
28
+ "@angular/common": "14.1.3",
29
+ "@angular/platform-browser": "14.1.3",
30
30
  "rxjs": "^6.5.3 || ^7.4.0"
31
31
  },
32
32
  "ng-update": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.0
2
+ * @license Angular v14.1.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.0
2
+ * @license Angular v14.1.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */