@angular/router 17.0.0-next.0 → 17.0.0-next.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.0.0-next.0
2
+ * @license Angular v17.0.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -109,16 +109,16 @@ class RouterTestingModule {
109
109
  ]
110
110
  };
111
111
  }
112
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.0", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
113
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.0", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] }); }
114
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.0", ngImport: i0, type: RouterTestingModule, providers: [
112
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
113
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] }); }
114
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterTestingModule, providers: [
115
115
  ɵROUTER_PROVIDERS,
116
116
  provideLocationMocks(),
117
117
  withPreloading(NoPreloading).ɵproviders,
118
118
  { provide: ROUTES, multi: true, useValue: [] },
119
119
  ], imports: [RouterModule] }); }
120
120
  }
121
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.0", ngImport: i0, type: RouterTestingModule, decorators: [{
121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterTestingModule, decorators: [{
122
122
  type: NgModule,
123
123
  args: [{
124
124
  exports: [RouterModule],
@@ -147,18 +147,18 @@ class RootFixtureService {
147
147
  this.fixture.detectChanges();
148
148
  return this.fixture;
149
149
  }
150
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.0", ngImport: i0, type: RootFixtureService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
151
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.0", ngImport: i0, type: RootFixtureService, providedIn: 'root' }); }
150
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RootFixtureService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
151
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RootFixtureService, providedIn: 'root' }); }
152
152
  }
153
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.0", ngImport: i0, type: RootFixtureService, decorators: [{
153
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RootFixtureService, decorators: [{
154
154
  type: Injectable,
155
155
  args: [{ providedIn: 'root' }]
156
156
  }] });
157
157
  class RootCmp {
158
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.0", ngImport: i0, type: RootCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
159
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.0-next.0", type: RootCmp, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "outlet", first: true, predicate: RouterOutlet, descendants: true }], ngImport: i0, template: '<router-outlet></router-outlet>', isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] }); }
158
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RootCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
159
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.0-next.2", type: RootCmp, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "outlet", first: true, predicate: RouterOutlet, descendants: true }], ngImport: i0, template: '<router-outlet></router-outlet>', isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] }); }
160
160
  }
161
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.0", ngImport: i0, type: RootCmp, decorators: [{
161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RootCmp, decorators: [{
162
162
  type: Component,
163
163
  args: [{
164
164
  standalone: true,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.0.0-next.0
2
+ * @license Angular v17.0.0-next.2
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 v17.0.0-next.0
2
+ * @license Angular v17.0.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1251,7 +1251,7 @@ declare const INPUT_BINDER: InjectionToken<RoutedComponentInputBinder>;
1251
1251
  * for the current router state.
1252
1252
  *
1253
1253
  * @publicApi
1254
- * @see Router.isActive
1254
+ * @see {@link Router#isActive}
1255
1255
  */
1256
1256
  export declare interface IsActiveMatchOptions {
1257
1257
  /**
@@ -2718,6 +2718,12 @@ export declare class Router {
2718
2718
  private get browserPageId();
2719
2719
  private console;
2720
2720
  private isNgZoneEnabled;
2721
+ /**
2722
+ * The private `Subject` type for the public events exposed in the getter. This is used internally
2723
+ * to push events to. The separate field allows us to expose separate types in the public API
2724
+ * (i.e., an Observable rather than the Subject).
2725
+ */
2726
+ private _events;
2721
2727
  /**
2722
2728
  * An event stream for routing events.
2723
2729
  */
@@ -2742,11 +2748,9 @@ export declare class Router {
2742
2748
  * The most common case is a `%` sign
2743
2749
  * that's not encoded and is not part of a percent encoded sequence.
2744
2750
  *
2745
- * @deprecated URI parsing errors should be handled in the `UrlSerializer`.
2746
- *
2747
2751
  * @see {@link RouterModule}
2748
2752
  */
2749
- malformedUriErrorHandler: (error: URIError, urlSerializer: UrlSerializer, url: string) => UrlTree;
2753
+ private malformedUriErrorHandler;
2750
2754
  /**
2751
2755
  * True if at least one navigation event has occurred,
2752
2756
  * false otherwise.
@@ -2768,13 +2772,6 @@ export declare class Router {
2768
2772
  * `{provide: RouteReuseStrategy, useClass: MyStrategy}`.
2769
2773
  */
2770
2774
  routeReuseStrategy: RouteReuseStrategy;
2771
- /**
2772
- * A strategy for setting the title based on the `routerState`.
2773
- *
2774
- * @deprecated Configure using `providers` instead:
2775
- * `{provide: TitleStrategy, useClass: MyStrategy}`.
2776
- */
2777
- titleStrategy?: TitleStrategy;
2778
2775
  /**
2779
2776
  * How to handle a navigation request to the current URL.
2780
2777
  *
@@ -2785,34 +2782,7 @@ export declare class Router {
2785
2782
  * @see {@link RouterModule}
2786
2783
  */
2787
2784
  onSameUrlNavigation: OnSameUrlNavigation;
2788
- /**
2789
- * How to merge parameters, data, resolved data, and title from parent to child
2790
- * routes. One of:
2791
- *
2792
- * - `'emptyOnly'` : Inherit parent parameters, data, and resolved data
2793
- * for path-less or component-less routes.
2794
- * - `'always'` : Inherit parent parameters, data, and resolved data
2795
- * for all child routes.
2796
- *
2797
- * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.
2798
- * @see {@link withRouterConfig}
2799
- * @see {@link provideRouter}
2800
- * @see {@link RouterModule}
2801
- */
2802
- paramsInheritanceStrategy: 'emptyOnly' | 'always';
2803
- /**
2804
- * Determines when the router updates the browser URL.
2805
- * By default (`"deferred"`), updates the browser URL after navigation has finished.
2806
- * Set to `'eager'` to update the browser URL at the beginning of navigation.
2807
- * You can choose to update early so that, if navigation fails,
2808
- * you can show an error message with the URL that failed.
2809
- *
2810
- * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.
2811
- * @see {@link withRouterConfig}
2812
- * @see {@link provideRouter}
2813
- * @see {@link RouterModule}
2814
- */
2815
- urlUpdateStrategy: 'deferred' | 'eager';
2785
+ private urlUpdateStrategy;
2816
2786
  /**
2817
2787
  * Configures how the Router attempts to restore state when a navigation is cancelled.
2818
2788
  *
@@ -2834,12 +2804,11 @@ export declare class Router {
2834
2804
  *
2835
2805
  * The default value is `replace`.
2836
2806
  *
2837
- * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.
2838
2807
  * @see {@link withRouterConfig}
2839
2808
  * @see {@link provideRouter}
2840
2809
  * @see {@link RouterModule}
2841
2810
  */
2842
- canceledNavigationResolution: 'replace' | 'computed';
2811
+ private canceledNavigationResolution;
2843
2812
  config: Routes;
2844
2813
  private readonly navigationTransitions;
2845
2814
  private readonly urlSerializer;
@@ -2852,6 +2821,8 @@ export declare class Router {
2852
2821
  */
2853
2822
  readonly componentInputBindingEnabled: boolean;
2854
2823
  constructor();
2824
+ private eventsSubscription;
2825
+ private subscribeToNavigationEvents;
2855
2826
  /**
2856
2827
  * Sets up the location change listener and performs the initial navigation.
2857
2828
  */
@@ -3541,7 +3512,7 @@ export declare class RouterLinkActive implements OnChanges, OnDestroy, AfterCont
3541
3512
  *
3542
3513
  * These options are passed to the `Router.isActive()` function.
3543
3514
  *
3544
- * @see Router.isActive
3515
+ * @see {@link Router#isActive}
3545
3516
  */
3546
3517
  routerLinkActiveOptions: {
3547
3518
  exact: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/router",
3
- "version": "17.0.0-next.0",
3
+ "version": "17.0.0-next.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": "17.0.0-next.0",
28
- "@angular/common": "17.0.0-next.0",
29
- "@angular/platform-browser": "17.0.0-next.0",
27
+ "@angular/core": "17.0.0-next.2",
28
+ "@angular/common": "17.0.0-next.2",
29
+ "@angular/platform-browser": "17.0.0-next.2",
30
30
  "rxjs": "^6.5.3 || ^7.4.0"
31
31
  },
32
32
  "ng-update": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.0.0-next.0
2
+ * @license Angular v17.0.0-next.2
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 v17.0.0-next.0
2
+ * @license Angular v17.0.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */