@angular/router 18.2.0-next.3 → 18.2.0-rc.0

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 v18.2.0-next.3
2
+ * @license Angular v18.2.0-rc.0
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 { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0-next.3", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
63
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0-next.3", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] }); }
64
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0-next.3", ngImport: i0, type: RouterTestingModule, providers: [
62
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0-rc.0", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
63
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0-rc.0", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] }); }
64
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0-rc.0", 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: "18.2.0-next.3", ngImport: i0, type: RouterTestingModule, decorators: [{
71
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0-rc.0", ngImport: i0, type: RouterTestingModule, decorators: [{
72
72
  type: NgModule,
73
73
  args: [{
74
74
  exports: [RouterModule],
@@ -97,18 +97,18 @@ class RootFixtureService {
97
97
  this.fixture.detectChanges();
98
98
  return this.fixture;
99
99
  }
100
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0-next.3", ngImport: i0, type: RootFixtureService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
101
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0-next.3", ngImport: i0, type: RootFixtureService, providedIn: 'root' }); }
100
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0-rc.0", ngImport: i0, type: RootFixtureService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
101
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0-rc.0", ngImport: i0, type: RootFixtureService, providedIn: 'root' }); }
102
102
  }
103
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0-next.3", ngImport: i0, type: RootFixtureService, decorators: [{
103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0-rc.0", ngImport: i0, type: RootFixtureService, decorators: [{
104
104
  type: Injectable,
105
105
  args: [{ providedIn: 'root' }]
106
106
  }] });
107
107
  class RootCmp {
108
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0-next.3", ngImport: i0, type: RootCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
109
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0-next.3", 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"] }] }); }
108
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0-rc.0", ngImport: i0, type: RootCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
109
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0-rc.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"] }] }); }
110
110
  }
111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0-next.3", ngImport: i0, type: RootCmp, decorators: [{
111
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0-rc.0", ngImport: i0, type: RootCmp, decorators: [{
112
112
  type: Component,
113
113
  args: [{
114
114
  standalone: true,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.2.0-next.3
2
+ * @license Angular v18.2.0-rc.0
3
3
  * (c) 2010-2024 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 v18.2.0-next.3
2
+ * @license Angular v18.2.0-rc.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1036,8 +1036,9 @@ export declare interface ExtraOptions extends InMemoryScrollingOptions, RouterCo
1036
1036
  * One of `enabled`, `enabledBlocking`, `enabledNonBlocking` or `disabled`.
1037
1037
  * When set to `enabled` or `enabledBlocking`, the initial navigation starts before the root
1038
1038
  * component is created. The bootstrap is blocked until the initial navigation is complete. This
1039
- * value is required for [server-side rendering](guide/ssr) to work. When set to
1040
- * `enabledNonBlocking`, the initial navigation starts after the root component has been created.
1039
+ * value should be set in case you use [server-side rendering](guide/ssr), but do not enable
1040
+ * [hydration](guide/hydration) for your application. When set to `enabledNonBlocking`,
1041
+ * the initial navigation starts after the root component has been created.
1041
1042
  * The bootstrap is not blocked on the completion of the initial navigation. When set to
1042
1043
  * `disabled`, the initial navigation is not performed. The location listener is set up before the
1043
1044
  * root component gets created. Use if there is a reason to have more control over when the router
@@ -1186,8 +1187,9 @@ declare namespace i4 {
1186
1187
  * root component has been created. The bootstrap is not blocked on the completion of the initial
1187
1188
  * navigation.
1188
1189
  * * 'enabledBlocking' - The initial navigation starts before the root component is created.
1189
- * The bootstrap is blocked until the initial navigation is complete. This value is required
1190
- * for [server-side rendering](guide/ssr) to work.
1190
+ * The bootstrap is blocked until the initial navigation is complete. This value should be set in
1191
+ * case you use [server-side rendering](guide/ssr), but do not enable [hydration](guide/hydration)
1192
+ * for your application.
1191
1193
  * * 'disabled' - The initial navigation is not performed. The location listener is set up before
1192
1194
  * the root component gets created. Use if there is a reason to have
1193
1195
  * more control over when the router starts its initial navigation due to some complex
@@ -2119,13 +2121,14 @@ export declare function provideRoutes(routes: Routes): Provider[];
2119
2121
  * One of:
2120
2122
  * - `"merge"` : Merge new parameters with current parameters.
2121
2123
  * - `"preserve"` : Preserve current parameters.
2122
- * - `""` : Replace current parameters with new parameters. This is the default behavior.
2124
+ * - `"replace"` : Replace current parameters with new parameters. This is the default behavior.
2125
+ * - `""` : For legacy reasons, the same as `'replace'`.
2123
2126
  *
2124
2127
  * @see {@link UrlCreationOptions#queryParamsHandling}
2125
2128
  * @see {@link RouterLink}
2126
2129
  * @publicApi
2127
2130
  */
2128
- export declare type QueryParamsHandling = 'merge' | 'preserve' | '';
2131
+ export declare type QueryParamsHandling = 'merge' | 'preserve' | 'replace' | '';
2129
2132
 
2130
2133
  /**
2131
2134
  * Can be returned by a `Router` guard to instruct the `Router` to redirect rather than continue
@@ -3246,6 +3249,19 @@ export declare interface RouterConfigOptions {
3246
3249
  * showing an error message with the URL that failed.
3247
3250
  */
3248
3251
  urlUpdateStrategy?: 'deferred' | 'eager';
3252
+ /**
3253
+ * The default strategy to use for handling query params in `Router.createUrlTree` when one is not provided.
3254
+ *
3255
+ * The `createUrlTree` method is used internally by `Router.navigate` and `RouterLink`.
3256
+ * Note that `QueryParamsHandling` does not apply to `Router.navigateByUrl`.
3257
+ *
3258
+ * When neither the default nor the queryParamsHandling option is specified in the call to `createUrlTree`,
3259
+ * the current parameters will be replaced by new parameters.
3260
+ *
3261
+ * @see {@link Router#createUrlTree}
3262
+ * @see {@link QueryParamsHandling}
3263
+ */
3264
+ defaultQueryParamsHandling?: QueryParamsHandling;
3249
3265
  /**
3250
3266
  * When `true`, the `Promise` will instead resolve with `false`, as it does with other failed
3251
3267
  * navigations (for example, when guards are rejected).
@@ -4705,8 +4721,9 @@ export declare function withDisabledInitialNavigation(): DisabledInitialNavigati
4705
4721
  /**
4706
4722
  * Configures initial navigation to start before the root component is created.
4707
4723
  *
4708
- * The bootstrap is blocked until the initial navigation is complete. This value is required for
4709
- * [server-side rendering](guide/ssr) to work.
4724
+ * The bootstrap is blocked until the initial navigation is complete. This should be set in case
4725
+ * you use [server-side rendering](guide/ssr), but do not enable [hydration](guide/hydration) for
4726
+ * your application.
4710
4727
  *
4711
4728
  * @usageNotes
4712
4729
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/router",
3
- "version": "18.2.0-next.3",
3
+ "version": "18.2.0-rc.0",
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": "18.2.0-next.3",
28
- "@angular/common": "18.2.0-next.3",
29
- "@angular/platform-browser": "18.2.0-next.3",
27
+ "@angular/core": "18.2.0-rc.0",
28
+ "@angular/common": "18.2.0-rc.0",
29
+ "@angular/platform-browser": "18.2.0-rc.0",
30
30
  "rxjs": "^6.5.3 || ^7.4.0"
31
31
  },
32
32
  "ng-update": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.2.0-next.3
2
+ * @license Angular v18.2.0-rc.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.2.0-next.3
2
+ * @license Angular v18.2.0-rc.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */