@angular/router 21.2.0-next.3 → 21.2.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 v21.2.0-next.3
2
+ * @license Angular v21.2.0
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -28,7 +28,7 @@ function mapToResolve(provider) {
28
28
  return (...params) => inject(provider).resolve(...params);
29
29
  }
30
30
 
31
- const VERSION = /* @__PURE__ */new Version('21.2.0-next.3');
31
+ const VERSION = /* @__PURE__ */new Version('21.2.0');
32
32
 
33
33
  export { VERSION, mapToCanActivate, mapToCanActivateChild, mapToCanDeactivate, mapToCanMatch, mapToResolve };
34
34
  //# sourceMappingURL=router.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"router.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/router/src/utils/functional_guards.ts","../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/router/src/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {inject, Type} from '@angular/core';\n\nimport {\n CanActivate,\n CanActivateChild,\n CanActivateChildFn,\n CanActivateFn,\n CanDeactivate,\n CanDeactivateFn,\n CanMatch,\n CanMatchFn,\n Resolve,\n ResolveFn,\n} from '../models';\n\n/**\n * Maps an array of injectable classes with canMatch functions to an array of equivalent\n * `CanMatchFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToCanMatch(providers: Array<Type<CanMatch>>): CanMatchFn[] {\n return providers.map(\n (provider) =>\n (...params) =>\n inject(provider).canMatch(...params),\n );\n}\n\n/**\n * Maps an array of injectable classes with canActivate functions to an array of equivalent\n * `CanActivateFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToCanActivate(providers: Array<Type<CanActivate>>): CanActivateFn[] {\n return providers.map(\n (provider) =>\n (...params) =>\n inject(provider).canActivate(...params),\n );\n}\n/**\n * Maps an array of injectable classes with canActivateChild functions to an array of equivalent\n * `CanActivateChildFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToCanActivateChild(\n providers: Array<Type<CanActivateChild>>,\n): CanActivateChildFn[] {\n return providers.map(\n (provider) =>\n (...params) =>\n inject(provider).canActivateChild(...params),\n );\n}\n/**\n * Maps an array of injectable classes with canDeactivate functions to an array of equivalent\n * `CanDeactivateFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToCanDeactivate<T = unknown>(\n providers: Array<Type<CanDeactivate<T>>>,\n): CanDeactivateFn<T>[] {\n return providers.map(\n (provider) =>\n (...params) =>\n inject(provider).canDeactivate(...params),\n );\n}\n/**\n * Maps an injectable class with a resolve function to an equivalent `ResolveFn`\n * for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='Resolve'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToResolve<T>(provider: Type<Resolve<T>>): ResolveFn<T> {\n return (...params) => inject(provider).resolve(...params);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the router package.\n */\n\nimport {Version} from '@angular/core';\n\n/**\n * @publicApi\n */\nexport const VERSION = /* @__PURE__ */ new Version('21.2.0-next.3');\n"],"names":["mapToCanMatch","providers","map","provider","params","inject","canMatch","mapToCanActivate","canActivate","mapToCanActivateChild","canActivateChild","mapToCanDeactivate","canDeactivate","mapToResolve","resolve","VERSION","Version"],"mappings":";;;;;;;;;;;;;;AAgCM,SAAUA,aAAaA,CAACC,SAAgC,EAAA;EAC5D,OAAOA,SAAS,CAACC,GAAG,CACjBC,QAAQ,IACP,CAAC,GAAGC,MAAM,KACRC,MAAM,CAACF,QAAQ,CAAC,CAACG,QAAQ,CAAC,GAAGF,MAAM,CAAC,CACzC;AACH;AAWM,SAAUG,gBAAgBA,CAACN,SAAmC,EAAA;EAClE,OAAOA,SAAS,CAACC,GAAG,CACjBC,QAAQ,IACP,CAAC,GAAGC,MAAM,KACRC,MAAM,CAACF,QAAQ,CAAC,CAACK,WAAW,CAAC,GAAGJ,MAAM,CAAC,CAC5C;AACH;AAUM,SAAUK,qBAAqBA,CACnCR,SAAwC,EAAA;EAExC,OAAOA,SAAS,CAACC,GAAG,CACjBC,QAAQ,IACP,CAAC,GAAGC,MAAM,KACRC,MAAM,CAACF,QAAQ,CAAC,CAACO,gBAAgB,CAAC,GAAGN,MAAM,CAAC,CACjD;AACH;AAUM,SAAUO,kBAAkBA,CAChCV,SAAwC,EAAA;EAExC,OAAOA,SAAS,CAACC,GAAG,CACjBC,QAAQ,IACP,CAAC,GAAGC,MAAM,KACRC,MAAM,CAACF,QAAQ,CAAC,CAACS,aAAa,CAAC,GAAGR,MAAM,CAAC,CAC9C;AACH;AAUM,SAAUS,YAAYA,CAAIV,QAA0B,EAAA;AACxD,EAAA,OAAO,CAAC,GAAGC,MAAM,KAAKC,MAAM,CAACF,QAAQ,CAAC,CAACW,OAAO,CAAC,GAAGV,MAAM,CAAC;AAC3D;;ACpFO,MAAMW,OAAO,kBAAmB,IAAIC,OAAO,CAAC,mBAAmB;;;;"}
1
+ {"version":3,"file":"router.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/router/src/utils/functional_guards.ts","../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/router/src/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {inject, Type} from '@angular/core';\n\nimport {\n CanActivate,\n CanActivateChild,\n CanActivateChildFn,\n CanActivateFn,\n CanDeactivate,\n CanDeactivateFn,\n CanMatch,\n CanMatchFn,\n Resolve,\n ResolveFn,\n} from '../models';\n\n/**\n * Maps an array of injectable classes with canMatch functions to an array of equivalent\n * `CanMatchFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToCanMatch(providers: Array<Type<CanMatch>>): CanMatchFn[] {\n return providers.map(\n (provider) =>\n (...params) =>\n inject(provider).canMatch(...params),\n );\n}\n\n/**\n * Maps an array of injectable classes with canActivate functions to an array of equivalent\n * `CanActivateFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToCanActivate(providers: Array<Type<CanActivate>>): CanActivateFn[] {\n return providers.map(\n (provider) =>\n (...params) =>\n inject(provider).canActivate(...params),\n );\n}\n/**\n * Maps an array of injectable classes with canActivateChild functions to an array of equivalent\n * `CanActivateChildFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToCanActivateChild(\n providers: Array<Type<CanActivateChild>>,\n): CanActivateChildFn[] {\n return providers.map(\n (provider) =>\n (...params) =>\n inject(provider).canActivateChild(...params),\n );\n}\n/**\n * Maps an array of injectable classes with canDeactivate functions to an array of equivalent\n * `CanDeactivateFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToCanDeactivate<T = unknown>(\n providers: Array<Type<CanDeactivate<T>>>,\n): CanDeactivateFn<T>[] {\n return providers.map(\n (provider) =>\n (...params) =>\n inject(provider).canDeactivate(...params),\n );\n}\n/**\n * Maps an injectable class with a resolve function to an equivalent `ResolveFn`\n * for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='Resolve'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToResolve<T>(provider: Type<Resolve<T>>): ResolveFn<T> {\n return (...params) => inject(provider).resolve(...params);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the router package.\n */\n\nimport {Version} from '@angular/core';\n\n/**\n * @publicApi\n */\nexport const VERSION = /* @__PURE__ */ new Version('21.2.0');\n"],"names":["mapToCanMatch","providers","map","provider","params","inject","canMatch","mapToCanActivate","canActivate","mapToCanActivateChild","canActivateChild","mapToCanDeactivate","canDeactivate","mapToResolve","resolve","VERSION","Version"],"mappings":";;;;;;;;;;;;;;AAgCM,SAAUA,aAAaA,CAACC,SAAgC,EAAA;EAC5D,OAAOA,SAAS,CAACC,GAAG,CACjBC,QAAQ,IACP,CAAC,GAAGC,MAAM,KACRC,MAAM,CAACF,QAAQ,CAAC,CAACG,QAAQ,CAAC,GAAGF,MAAM,CAAC,CACzC;AACH;AAWM,SAAUG,gBAAgBA,CAACN,SAAmC,EAAA;EAClE,OAAOA,SAAS,CAACC,GAAG,CACjBC,QAAQ,IACP,CAAC,GAAGC,MAAM,KACRC,MAAM,CAACF,QAAQ,CAAC,CAACK,WAAW,CAAC,GAAGJ,MAAM,CAAC,CAC5C;AACH;AAUM,SAAUK,qBAAqBA,CACnCR,SAAwC,EAAA;EAExC,OAAOA,SAAS,CAACC,GAAG,CACjBC,QAAQ,IACP,CAAC,GAAGC,MAAM,KACRC,MAAM,CAACF,QAAQ,CAAC,CAACO,gBAAgB,CAAC,GAAGN,MAAM,CAAC,CACjD;AACH;AAUM,SAAUO,kBAAkBA,CAChCV,SAAwC,EAAA;EAExC,OAAOA,SAAS,CAACC,GAAG,CACjBC,QAAQ,IACP,CAAC,GAAGC,MAAM,KACRC,MAAM,CAACF,QAAQ,CAAC,CAACS,aAAa,CAAC,GAAGR,MAAM,CAAC,CAC9C;AACH;AAUM,SAAUS,YAAYA,CAAIV,QAA0B,EAAA;AACxD,EAAA,OAAO,CAAC,GAAGC,MAAM,KAAKC,MAAM,CAACF,QAAQ,CAAC,CAACW,OAAO,CAAC,GAAGV,MAAM,CAAC;AAC3D;;ACpFO,MAAMW,OAAO,kBAAmB,IAAIC,OAAO,CAAC,mBAAmB;;;;"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.0-next.3
2
+ * @license Angular v21.2.0
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -33,7 +33,7 @@ class RouterTestingModule {
33
33
  }
34
34
  static ɵfac = i0.ɵɵngDeclareFactory({
35
35
  minVersion: "12.0.0",
36
- version: "21.2.0-next.3",
36
+ version: "21.2.0",
37
37
  ngImport: i0,
38
38
  type: RouterTestingModule,
39
39
  deps: [],
@@ -41,14 +41,14 @@ class RouterTestingModule {
41
41
  });
42
42
  static ɵmod = i0.ɵɵngDeclareNgModule({
43
43
  minVersion: "14.0.0",
44
- version: "21.2.0-next.3",
44
+ version: "21.2.0",
45
45
  ngImport: i0,
46
46
  type: RouterTestingModule,
47
47
  exports: [RouterModule]
48
48
  });
49
49
  static ɵinj = i0.ɵɵngDeclareInjector({
50
50
  minVersion: "12.0.0",
51
- version: "21.2.0-next.3",
51
+ version: "21.2.0",
52
52
  ngImport: i0,
53
53
  type: RouterTestingModule,
54
54
  providers: [ROUTER_PROVIDERS, provideLocationMocks(), withPreloading(NoPreloading).ɵproviders, {
@@ -61,7 +61,7 @@ class RouterTestingModule {
61
61
  }
62
62
  i0.ɵɵngDeclareClassMetadata({
63
63
  minVersion: "12.0.0",
64
- version: "21.2.0-next.3",
64
+ version: "21.2.0",
65
65
  ngImport: i0,
66
66
  type: RouterTestingModule,
67
67
  decorators: [{
@@ -97,7 +97,7 @@ class RootFixtureService {
97
97
  }
98
98
  static ɵfac = i0.ɵɵngDeclareFactory({
99
99
  minVersion: "12.0.0",
100
- version: "21.2.0-next.3",
100
+ version: "21.2.0",
101
101
  ngImport: i0,
102
102
  type: RootFixtureService,
103
103
  deps: [],
@@ -105,7 +105,7 @@ class RootFixtureService {
105
105
  });
106
106
  static ɵprov = i0.ɵɵngDeclareInjectable({
107
107
  minVersion: "12.0.0",
108
- version: "21.2.0-next.3",
108
+ version: "21.2.0",
109
109
  ngImport: i0,
110
110
  type: RootFixtureService,
111
111
  providedIn: 'root'
@@ -113,7 +113,7 @@ class RootFixtureService {
113
113
  }
114
114
  i0.ɵɵngDeclareClassMetadata({
115
115
  minVersion: "12.0.0",
116
- version: "21.2.0-next.3",
116
+ version: "21.2.0",
117
117
  ngImport: i0,
118
118
  type: RootFixtureService,
119
119
  decorators: [{
@@ -130,7 +130,7 @@ class RootCmp {
130
130
  }] : []));
131
131
  static ɵfac = i0.ɵɵngDeclareFactory({
132
132
  minVersion: "12.0.0",
133
- version: "21.2.0-next.3",
133
+ version: "21.2.0",
134
134
  ngImport: i0,
135
135
  type: RootCmp,
136
136
  deps: [],
@@ -138,7 +138,7 @@ class RootCmp {
138
138
  });
139
139
  static ɵcmp = i0.ɵɵngDeclareComponent({
140
140
  minVersion: "14.0.0",
141
- version: "21.2.0-next.3",
141
+ version: "21.2.0",
142
142
  type: RootCmp,
143
143
  isStandalone: true,
144
144
  selector: "ng-component",
@@ -163,7 +163,7 @@ class RootCmp {
163
163
  }
164
164
  i0.ɵɵngDeclareClassMetadata({
165
165
  minVersion: "12.0.0",
166
- version: "21.2.0-next.3",
166
+ version: "21.2.0",
167
167
  ngImport: i0,
168
168
  type: RootCmp,
169
169
  decorators: [{
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.0-next.3
2
+ * @license Angular v21.2.0
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/router",
3
- "version": "21.2.0-next.3",
3
+ "version": "21.2.0",
4
4
  "description": "Angular - the routing library",
5
5
  "keywords": [
6
6
  "angular",
@@ -27,9 +27,9 @@
27
27
  "@types/dom-navigation": "^1.0.5"
28
28
  },
29
29
  "peerDependencies": {
30
- "@angular/core": "21.2.0-next.3",
31
- "@angular/common": "21.2.0-next.3",
32
- "@angular/platform-browser": "21.2.0-next.3",
30
+ "@angular/core": "21.2.0",
31
+ "@angular/common": "21.2.0",
32
+ "@angular/platform-browser": "21.2.0",
33
33
  "rxjs": "^6.5.3 || ^7.4.0"
34
34
  },
35
35
  "ng-update": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.0-next.3
2
+ * @license Angular v21.2.0
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -9,83 +9,6 @@ import { InjectionToken, Signal, EnvironmentInjector, ComponentRef, EventEmitter
9
9
  import { Observable } from 'rxjs';
10
10
  import { LocationStrategy } from '@angular/common';
11
11
 
12
- /**
13
- * The primary routing outlet.
14
- *
15
- * @publicApi
16
- */
17
- declare const PRIMARY_OUTLET = "primary";
18
- /**
19
- * A collection of matrix and query URL parameters.
20
- * @see {@link convertToParamMap}
21
- * @see {@link ParamMap}
22
- *
23
- * @publicApi
24
- */
25
- type Params = {
26
- [key: string]: any;
27
- };
28
- /**
29
- * A map that provides access to the required and optional parameters
30
- * specific to a route.
31
- * The map supports retrieving a single value with `get()`
32
- * or multiple values with `getAll()`.
33
- *
34
- * @see [URLSearchParams](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams)
35
- *
36
- * @publicApi
37
- */
38
- interface ParamMap {
39
- /**
40
- * Reports whether the map contains a given parameter.
41
- * @param name The parameter name.
42
- * @returns True if the map contains the given parameter, false otherwise.
43
- */
44
- has(name: string): boolean;
45
- /**
46
- * Retrieves a single value for a parameter.
47
- * @param name The parameter name.
48
- * @return The parameter's single value,
49
- * or the first value if the parameter has multiple values,
50
- * or `null` when there is no such parameter.
51
- */
52
- get(name: string): string | null;
53
- /**
54
- * Retrieves multiple values for a parameter.
55
- * @param name The parameter name.
56
- * @return An array containing one or more values,
57
- * or an empty array if there is no such parameter.
58
- *
59
- */
60
- getAll(name: string): string[];
61
- /** Names of the parameters in the map. */
62
- readonly keys: string[];
63
- }
64
- /**
65
- * Converts a `Params` instance to a `ParamMap`.
66
- * @param params The instance to convert.
67
- * @returns The new map instance.
68
- *
69
- * @publicApi
70
- */
71
- declare function convertToParamMap(params: Params): ParamMap;
72
- /**
73
- * Matches the route configuration (`route`) against the actual URL (`segments`).
74
- *
75
- * When no matcher is defined on a `Route`, this is the matcher used by the Router by default.
76
- *
77
- * @param segments The remaining unmatched segments in the current navigation
78
- * @param segmentGroup The current segment group being matched
79
- * @param route The `Route` to match against.
80
- *
81
- * @see {@link UrlMatchResult}
82
- * @see {@link Route}
83
- *
84
- * @returns The resulting match information or `null` if the `route` should not match.
85
- * @publicApi
86
- */
87
- declare function defaultUrlMatcher(segments: UrlSegment[], segmentGroup: UrlSegmentGroup, route: Route): UrlMatchResult | null;
88
-
89
12
  /**
90
13
  * Identifies the call or event that triggered a navigation.
91
14
  *
@@ -206,7 +129,7 @@ declare class NavigationStart extends RouterEvent {
206
129
  [k: string]: any;
207
130
  navigationId: number;
208
131
  } | null);
209
- /** @docsNotRequired */
132
+ /** @docs-private */
210
133
  toString(): string;
211
134
  }
212
135
  /**
@@ -229,7 +152,7 @@ declare class NavigationEnd extends RouterEvent {
229
152
  url: string,
230
153
  /** @docsNotRequired */
231
154
  urlAfterRedirects: string);
232
- /** @docsNotRequired */
155
+ /** @docs-private */
233
156
  toString(): string;
234
157
  }
235
158
  /**
@@ -321,7 +244,7 @@ declare class NavigationCancel extends RouterEvent {
321
244
  * used in production.
322
245
  */
323
246
  code?: NavigationCancellationCode | undefined);
324
- /** @docsNotRequired */
247
+ /** @docs-private */
325
248
  toString(): string;
326
249
  }
327
250
  /**
@@ -396,7 +319,7 @@ declare class NavigationError extends RouterEvent {
396
319
  * `RouterStateSnapshot` was created for the navigation.
397
320
  */
398
321
  target?: RouterStateSnapshot | undefined);
399
- /** @docsNotRequired */
322
+ /** @docs-private */
400
323
  toString(): string;
401
324
  }
402
325
  /**
@@ -419,7 +342,7 @@ declare class RoutesRecognized extends RouterEvent {
419
342
  urlAfterRedirects: string,
420
343
  /** @docsNotRequired */
421
344
  state: RouterStateSnapshot);
422
- /** @docsNotRequired */
345
+ /** @docs-private */
423
346
  toString(): string;
424
347
  }
425
348
  /**
@@ -444,6 +367,7 @@ declare class GuardsCheckStart extends RouterEvent {
444
367
  urlAfterRedirects: string,
445
368
  /** @docsNotRequired */
446
369
  state: RouterStateSnapshot);
370
+ /** @docs-private */
447
371
  toString(): string;
448
372
  }
449
373
  /**
@@ -472,6 +396,7 @@ declare class GuardsCheckEnd extends RouterEvent {
472
396
  state: RouterStateSnapshot,
473
397
  /** @docsNotRequired */
474
398
  shouldActivate: boolean);
399
+ /** @docs-private */
475
400
  toString(): string;
476
401
  }
477
402
  /**
@@ -499,6 +424,7 @@ declare class ResolveStart extends RouterEvent {
499
424
  urlAfterRedirects: string,
500
425
  /** @docsNotRequired */
501
426
  state: RouterStateSnapshot);
427
+ /** @docs-private */
502
428
  toString(): string;
503
429
  }
504
430
  /**
@@ -522,6 +448,7 @@ declare class ResolveEnd extends RouterEvent {
522
448
  urlAfterRedirects: string,
523
449
  /** @docsNotRequired */
524
450
  state: RouterStateSnapshot);
451
+ /** @docs-private */
525
452
  toString(): string;
526
453
  }
527
454
  /**
@@ -538,6 +465,7 @@ declare class RouteConfigLoadStart {
538
465
  constructor(
539
466
  /** @docsNotRequired */
540
467
  route: Route);
468
+ /** @docs-private */
541
469
  toString(): string;
542
470
  }
543
471
  /**
@@ -554,6 +482,7 @@ declare class RouteConfigLoadEnd {
554
482
  constructor(
555
483
  /** @docsNotRequired */
556
484
  route: Route);
485
+ /** @docs-private */
557
486
  toString(): string;
558
487
  }
559
488
  /**
@@ -571,6 +500,7 @@ declare class ChildActivationStart {
571
500
  constructor(
572
501
  /** @docsNotRequired */
573
502
  snapshot: ActivatedRouteSnapshot);
503
+ /** @docs-private */
574
504
  toString(): string;
575
505
  }
576
506
  /**
@@ -587,6 +517,7 @@ declare class ChildActivationEnd {
587
517
  constructor(
588
518
  /** @docsNotRequired */
589
519
  snapshot: ActivatedRouteSnapshot);
520
+ /** @docs-private */
590
521
  toString(): string;
591
522
  }
592
523
  /**
@@ -604,6 +535,7 @@ declare class ActivationStart {
604
535
  constructor(
605
536
  /** @docsNotRequired */
606
537
  snapshot: ActivatedRouteSnapshot);
538
+ /** @docs-private */
607
539
  toString(): string;
608
540
  }
609
541
  /**
@@ -621,6 +553,7 @@ declare class ActivationEnd {
621
553
  constructor(
622
554
  /** @docsNotRequired */
623
555
  snapshot: ActivatedRouteSnapshot);
556
+ /** @docs-private */
624
557
  toString(): string;
625
558
  }
626
559
  /**
@@ -647,6 +580,7 @@ declare class Scroll {
647
580
  anchor: string | null,
648
581
  /** @docsNotRequired */
649
582
  scrollBehavior?: "manual" | "after-transition" | undefined);
583
+ /** @docs-private */
650
584
  toString(): string;
651
585
  }
652
586
  /**
@@ -684,6 +618,83 @@ declare class Scroll {
684
618
  */
685
619
  type Event = NavigationStart | NavigationEnd | NavigationCancel | NavigationError | RoutesRecognized | GuardsCheckStart | GuardsCheckEnd | RouteConfigLoadStart | RouteConfigLoadEnd | ChildActivationStart | ChildActivationEnd | ActivationStart | ActivationEnd | Scroll | ResolveStart | ResolveEnd | NavigationSkipped;
686
620
 
621
+ /**
622
+ * The primary routing outlet.
623
+ *
624
+ * @publicApi
625
+ */
626
+ declare const PRIMARY_OUTLET = "primary";
627
+ /**
628
+ * A collection of matrix and query URL parameters.
629
+ * @see {@link convertToParamMap}
630
+ * @see {@link ParamMap}
631
+ *
632
+ * @publicApi
633
+ */
634
+ type Params = {
635
+ [key: string]: any;
636
+ };
637
+ /**
638
+ * A map that provides access to the required and optional parameters
639
+ * specific to a route.
640
+ * The map supports retrieving a single value with `get()`
641
+ * or multiple values with `getAll()`.
642
+ *
643
+ * @see [URLSearchParams](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams)
644
+ *
645
+ * @publicApi
646
+ */
647
+ interface ParamMap {
648
+ /**
649
+ * Reports whether the map contains a given parameter.
650
+ * @param name The parameter name.
651
+ * @returns True if the map contains the given parameter, false otherwise.
652
+ */
653
+ has(name: string): boolean;
654
+ /**
655
+ * Retrieves a single value for a parameter.
656
+ * @param name The parameter name.
657
+ * @return The parameter's single value,
658
+ * or the first value if the parameter has multiple values,
659
+ * or `null` when there is no such parameter.
660
+ */
661
+ get(name: string): string | null;
662
+ /**
663
+ * Retrieves multiple values for a parameter.
664
+ * @param name The parameter name.
665
+ * @return An array containing one or more values,
666
+ * or an empty array if there is no such parameter.
667
+ *
668
+ */
669
+ getAll(name: string): string[];
670
+ /** Names of the parameters in the map. */
671
+ readonly keys: string[];
672
+ }
673
+ /**
674
+ * Converts a `Params` instance to a `ParamMap`.
675
+ * @param params The instance to convert.
676
+ * @returns The new map instance.
677
+ *
678
+ * @publicApi
679
+ */
680
+ declare function convertToParamMap(params: Params): ParamMap;
681
+ /**
682
+ * Matches the route configuration (`route`) against the actual URL (`segments`).
683
+ *
684
+ * When no matcher is defined on a `Route`, this is the matcher used by the Router by default.
685
+ *
686
+ * @param segments The remaining unmatched segments in the current navigation
687
+ * @param segmentGroup The current segment group being matched
688
+ * @param route The `Route` to match against.
689
+ *
690
+ * @see {@link UrlMatchResult}
691
+ * @see {@link Route}
692
+ *
693
+ * @returns The resulting match information or `null` if the `route` should not match.
694
+ * @publicApi
695
+ */
696
+ declare function defaultUrlMatcher(segments: UrlSegment[], segmentGroup: UrlSegmentGroup, route: Route): UrlMatchResult | null;
697
+
687
698
  /**
688
699
  * An `InjectionToken` provided by the `RouterOutlet` and can be set using the `routerOutletData`
689
700
  * input.
@@ -1563,7 +1574,7 @@ declare class UrlTree {
1563
1574
  /** The fragment of the URL */
1564
1575
  fragment?: string | null);
1565
1576
  get queryParamMap(): ParamMap;
1566
- /** @docsNotRequired */
1577
+ /** @docs-private */
1567
1578
  toString(): string;
1568
1579
  }
1569
1580
  /**
@@ -1595,7 +1606,7 @@ declare class UrlSegmentGroup {
1595
1606
  hasChildren(): boolean;
1596
1607
  /** Number of child segments */
1597
1608
  get numberOfChildren(): number;
1598
- /** @docsNotRequired */
1609
+ /** @docs-private */
1599
1610
  toString(): string;
1600
1611
  }
1601
1612
  /**
@@ -1639,7 +1650,7 @@ declare class UrlSegment {
1639
1650
  [name: string]: string;
1640
1651
  });
1641
1652
  get parameterMap(): ParamMap;
1642
- /** @docsNotRequired */
1653
+ /** @docs-private */
1643
1654
  toString(): string;
1644
1655
  }
1645
1656
  /**
package/types/router.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.0-next.3
2
+ * @license Angular v21.2.0
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.0-next.3
2
+ * @license Angular v21.2.0
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.2.0-next.3
2
+ * @license Angular v21.2.0
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */