@angular/router 17.0.0-next.1 → 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.1
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.1", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
113
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.1", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] }); }
114
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.1", 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.1", 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.1", ngImport: i0, type: RootFixtureService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
151
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.1", 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.1", 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.1", ngImport: i0, type: RootCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
159
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.0-next.1", 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.1", 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.1
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.1
2
+ * @license Angular v17.0.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -2748,11 +2748,9 @@ export declare class Router {
2748
2748
  * The most common case is a `%` sign
2749
2749
  * that's not encoded and is not part of a percent encoded sequence.
2750
2750
  *
2751
- * @deprecated URI parsing errors should be handled in the `UrlSerializer`.
2752
- *
2753
2751
  * @see {@link RouterModule}
2754
2752
  */
2755
- malformedUriErrorHandler: (error: URIError, urlSerializer: UrlSerializer, url: string) => UrlTree;
2753
+ private malformedUriErrorHandler;
2756
2754
  /**
2757
2755
  * True if at least one navigation event has occurred,
2758
2756
  * false otherwise.
@@ -2774,13 +2772,6 @@ export declare class Router {
2774
2772
  * `{provide: RouteReuseStrategy, useClass: MyStrategy}`.
2775
2773
  */
2776
2774
  routeReuseStrategy: RouteReuseStrategy;
2777
- /**
2778
- * A strategy for setting the title based on the `routerState`.
2779
- *
2780
- * @deprecated Configure using `providers` instead:
2781
- * `{provide: TitleStrategy, useClass: MyStrategy}`.
2782
- */
2783
- titleStrategy?: TitleStrategy;
2784
2775
  /**
2785
2776
  * How to handle a navigation request to the current URL.
2786
2777
  *
@@ -2791,34 +2782,7 @@ export declare class Router {
2791
2782
  * @see {@link RouterModule}
2792
2783
  */
2793
2784
  onSameUrlNavigation: OnSameUrlNavigation;
2794
- /**
2795
- * How to merge parameters, data, resolved data, and title from parent to child
2796
- * routes. One of:
2797
- *
2798
- * - `'emptyOnly'` : Inherit parent parameters, data, and resolved data
2799
- * for path-less or component-less routes.
2800
- * - `'always'` : Inherit parent parameters, data, and resolved data
2801
- * for all child routes.
2802
- *
2803
- * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.
2804
- * @see {@link withRouterConfig}
2805
- * @see {@link provideRouter}
2806
- * @see {@link RouterModule}
2807
- */
2808
- paramsInheritanceStrategy: 'emptyOnly' | 'always';
2809
- /**
2810
- * Determines when the router updates the browser URL.
2811
- * By default (`"deferred"`), updates the browser URL after navigation has finished.
2812
- * Set to `'eager'` to update the browser URL at the beginning of navigation.
2813
- * You can choose to update early so that, if navigation fails,
2814
- * you can show an error message with the URL that failed.
2815
- *
2816
- * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.
2817
- * @see {@link withRouterConfig}
2818
- * @see {@link provideRouter}
2819
- * @see {@link RouterModule}
2820
- */
2821
- urlUpdateStrategy: 'deferred' | 'eager';
2785
+ private urlUpdateStrategy;
2822
2786
  /**
2823
2787
  * Configures how the Router attempts to restore state when a navigation is cancelled.
2824
2788
  *
@@ -2840,12 +2804,11 @@ export declare class Router {
2840
2804
  *
2841
2805
  * The default value is `replace`.
2842
2806
  *
2843
- * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.
2844
2807
  * @see {@link withRouterConfig}
2845
2808
  * @see {@link provideRouter}
2846
2809
  * @see {@link RouterModule}
2847
2810
  */
2848
- canceledNavigationResolution: 'replace' | 'computed';
2811
+ private canceledNavigationResolution;
2849
2812
  config: Routes;
2850
2813
  private readonly navigationTransitions;
2851
2814
  private readonly urlSerializer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/router",
3
- "version": "17.0.0-next.1",
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.1",
28
- "@angular/common": "17.0.0-next.1",
29
- "@angular/platform-browser": "17.0.0-next.1",
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.1
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.1
2
+ * @license Angular v17.0.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */