@angular/router 17.0.0-next.4 → 17.0.0-next.5

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.4
2
+ * @license Angular v17.0.0-next.5
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.4", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
113
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.4", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] }); }
114
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: RouterTestingModule, providers: [
112
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
113
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.5", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] }); }
114
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.5", 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.4", ngImport: i0, type: RouterTestingModule, decorators: [{
121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5", 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.4", ngImport: i0, type: RootFixtureService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
151
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: RootFixtureService, providedIn: 'root' }); }
150
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: RootFixtureService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
151
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.5", ngImport: i0, type: RootFixtureService, providedIn: 'root' }); }
152
152
  }
153
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: RootFixtureService, decorators: [{
153
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5", 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.4", ngImport: i0, type: RootCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
159
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.0-next.4", 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.5", ngImport: i0, type: RootCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
159
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.0-next.5", 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.4", ngImport: i0, type: RootCmp, decorators: [{
161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.5", 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.4
2
+ * @license Angular v17.0.0-next.5
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.4
2
+ * @license Angular v17.0.0-next.5
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1061,19 +1061,6 @@ export declare interface ExtraOptions extends InMemoryScrollingOptions, RouterCo
1061
1061
  * it restores scroll position.
1062
1062
  */
1063
1063
  scrollOffset?: [number, number] | (() => [number, number]);
1064
- /**
1065
- * A custom handler for malformed URI errors. The handler is invoked when `encodedURI` contains
1066
- * invalid character sequences.
1067
- * The default implementation is to redirect to the root URL, dropping
1068
- * any path or parameter information. The function takes three parameters:
1069
- *
1070
- * - `'URIError'` - Error thrown when parsing a bad URL.
1071
- * - `'UrlSerializer'` - UrlSerializer that’s configured with the router.
1072
- * - `'url'` - The malformed URL that caused the URIError
1073
- *
1074
- * @deprecated URI parsing errors should be handled in the `UrlSerializer` instead.
1075
- * */
1076
- malformedUriErrorHandler?: (error: URIError, urlSerializer: UrlSerializer, url: string) => UrlTree;
1077
1064
  }
1078
1065
 
1079
1066
  /**
@@ -2710,7 +2697,6 @@ declare class RoutedComponentInputBinder {
2710
2697
  export declare class Router {
2711
2698
  private get currentUrlTree();
2712
2699
  private get rawUrlTree();
2713
- private get browserUrlTree();
2714
2700
  private disposed;
2715
2701
  private locationSubscription?;
2716
2702
  private isNgZoneEnabled;
@@ -2745,15 +2731,6 @@ export declare class Router {
2745
2731
  * @see {@link withNavigationErrorHandler}
2746
2732
  */
2747
2733
  errorHandler: (error: any) => any;
2748
- /**
2749
- * A handler for errors thrown by `Router.parseUrl(url)`
2750
- * when `url` contains an invalid character.
2751
- * The most common case is a `%` sign
2752
- * that's not encoded and is not part of a percent encoded sequence.
2753
- *
2754
- * @see {@link RouterModule}
2755
- */
2756
- private malformedUriErrorHandler;
2757
2734
  /**
2758
2735
  * True if at least one navigation event has occurred,
2759
2736
  * false otherwise.
@@ -2992,7 +2969,6 @@ declare class RouterConfigLoader {
2992
2969
  private readonly compiler;
2993
2970
  loadComponent(route: Route): Observable<Type<unknown>>;
2994
2971
  loadChildren(parentInjector: Injector, route: Route): Observable<LoadedRouterConfig>;
2995
- private loadModuleFactoryOrRoutes;
2996
2972
  static ɵfac: i0.ɵɵFactoryDeclaration<RouterConfigLoader, never>;
2997
2973
  static ɵprov: i0.ɵɵInjectableDeclaration<RouterConfigLoader>;
2998
2974
  }
@@ -4655,6 +4631,16 @@ export declare class ɵEmptyOutletComponent {
4655
4631
  static ɵcmp: i0.ɵɵComponentDeclaration<ɵEmptyOutletComponent, "ng-component", never, {}, {}, never, never, true, never>;
4656
4632
  }
4657
4633
 
4634
+ /**
4635
+ * Executes a `route.loadChildren` callback and converts the result to an array of child routes and
4636
+ * an injector if that callback returned a module.
4637
+ *
4638
+ * This function is used for the route discovery during prerendering
4639
+ * in @angular-devkit/build-angular. If there are any updates to the contract here, it will require
4640
+ * an update to the extractor.
4641
+ */
4642
+ export declare function ɵloadChildren(route: Route, compiler: Compiler, parentInjector: Injector, onLoadEndListener?: (r: Route) => void): Observable<LoadedRouterConfig>;
4643
+
4658
4644
  export declare type ɵRestoredState = {
4659
4645
  [k: string]: any;
4660
4646
  navigationId: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/router",
3
- "version": "17.0.0-next.4",
3
+ "version": "17.0.0-next.5",
4
4
  "description": "Angular - the routing library",
5
5
  "keywords": [
6
6
  "angular",
@@ -14,7 +14,7 @@
14
14
  "author": "angular",
15
15
  "license": "MIT",
16
16
  "engines": {
17
- "node": "^16.14.0 || >=18.10.0"
17
+ "node": ">=18.13.0"
18
18
  },
19
19
  "bugs": {
20
20
  "url": "https://github.com/angular/angular/issues"
@@ -24,9 +24,9 @@
24
24
  "tslib": "^2.3.0"
25
25
  },
26
26
  "peerDependencies": {
27
- "@angular/core": "17.0.0-next.4",
28
- "@angular/common": "17.0.0-next.4",
29
- "@angular/platform-browser": "17.0.0-next.4",
27
+ "@angular/core": "17.0.0-next.5",
28
+ "@angular/common": "17.0.0-next.5",
29
+ "@angular/platform-browser": "17.0.0-next.5",
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.4
2
+ * @license Angular v17.0.0-next.5
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.4
2
+ * @license Angular v17.0.0-next.5
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */