@angular/router 21.1.2 → 21.1.3

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.1.2
2
+ * @license Angular v21.1.3
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -312,7 +312,7 @@ function mapChildrenIntoArray(segment, fn) {
312
312
  class UrlSerializer {
313
313
  static ɵfac = i0.ɵɵngDeclareFactory({
314
314
  minVersion: "12.0.0",
315
- version: "21.1.2",
315
+ version: "21.1.3",
316
316
  ngImport: i0,
317
317
  type: UrlSerializer,
318
318
  deps: [],
@@ -320,7 +320,7 @@ class UrlSerializer {
320
320
  });
321
321
  static ɵprov = i0.ɵɵngDeclareInjectable({
322
322
  minVersion: "12.0.0",
323
- version: "21.1.2",
323
+ version: "21.1.3",
324
324
  ngImport: i0,
325
325
  type: UrlSerializer,
326
326
  providedIn: 'root',
@@ -329,7 +329,7 @@ class UrlSerializer {
329
329
  }
330
330
  i0.ɵɵngDeclareClassMetadata({
331
331
  minVersion: "12.0.0",
332
- version: "21.1.2",
332
+ version: "21.1.3",
333
333
  ngImport: i0,
334
334
  type: UrlSerializer,
335
335
  decorators: [{
@@ -458,7 +458,10 @@ class UrlParser {
458
458
  parseFragment() {
459
459
  return this.consumeOptional('#') ? decodeURIComponent(this.remaining) : null;
460
460
  }
461
- parseChildren() {
461
+ parseChildren(depth = 0) {
462
+ if (depth > 50) {
463
+ throw new _RuntimeError(4010, (typeof ngDevMode === 'undefined' || ngDevMode) && 'URL is too deep');
464
+ }
462
465
  if (this.remaining === '') {
463
466
  return {};
464
467
  }
@@ -474,11 +477,11 @@ class UrlParser {
474
477
  let children = {};
475
478
  if (this.peekStartsWith('/(')) {
476
479
  this.capture('/');
477
- children = this.parseParens(true);
480
+ children = this.parseParens(true, depth);
478
481
  }
479
482
  let res = {};
480
483
  if (this.peekStartsWith('(')) {
481
- res = this.parseParens(false);
484
+ res = this.parseParens(false, depth);
482
485
  }
483
486
  if (segments.length > 0 || Object.keys(children).length > 0) {
484
487
  res[PRIMARY_OUTLET] = new UrlSegmentGroup(segments, children);
@@ -543,7 +546,7 @@ class UrlParser {
543
546
  params[decodedKey] = decodedVal;
544
547
  }
545
548
  }
546
- parseParens(allowPrimary) {
549
+ parseParens(allowPrimary, depth) {
547
550
  const segments = {};
548
551
  this.capture('(');
549
552
  while (!this.consumeOptional(')') && this.remaining.length > 0) {
@@ -560,7 +563,7 @@ class UrlParser {
560
563
  } else if (allowPrimary) {
561
564
  outletName = PRIMARY_OUTLET;
562
565
  }
563
- const children = this.parseChildren();
566
+ const children = this.parseChildren(depth + 1);
564
567
  segments[outletName ?? PRIMARY_OUTLET] = Object.keys(children).length === 1 && children[PRIMARY_OUTLET] ? children[PRIMARY_OUTLET] : new UrlSegmentGroup([], children);
565
568
  this.consumeOptional('//');
566
569
  }
@@ -1282,7 +1285,7 @@ class ChildrenOutletContexts {
1282
1285
  }
1283
1286
  static ɵfac = i0.ɵɵngDeclareFactory({
1284
1287
  minVersion: "12.0.0",
1285
- version: "21.1.2",
1288
+ version: "21.1.3",
1286
1289
  ngImport: i0,
1287
1290
  type: ChildrenOutletContexts,
1288
1291
  deps: [{
@@ -1292,7 +1295,7 @@ class ChildrenOutletContexts {
1292
1295
  });
1293
1296
  static ɵprov = i0.ɵɵngDeclareInjectable({
1294
1297
  minVersion: "12.0.0",
1295
- version: "21.1.2",
1298
+ version: "21.1.3",
1296
1299
  ngImport: i0,
1297
1300
  type: ChildrenOutletContexts,
1298
1301
  providedIn: 'root'
@@ -1300,7 +1303,7 @@ class ChildrenOutletContexts {
1300
1303
  }
1301
1304
  i0.ɵɵngDeclareClassMetadata({
1302
1305
  minVersion: "12.0.0",
1303
- version: "21.1.2",
1306
+ version: "21.1.3",
1304
1307
  ngImport: i0,
1305
1308
  type: ChildrenOutletContexts,
1306
1309
  decorators: [{
@@ -1757,7 +1760,7 @@ class RouterOutlet {
1757
1760
  }
1758
1761
  static ɵfac = i0.ɵɵngDeclareFactory({
1759
1762
  minVersion: "12.0.0",
1760
- version: "21.1.2",
1763
+ version: "21.1.3",
1761
1764
  ngImport: i0,
1762
1765
  type: RouterOutlet,
1763
1766
  deps: [],
@@ -1765,7 +1768,7 @@ class RouterOutlet {
1765
1768
  });
1766
1769
  static ɵdir = i0.ɵɵngDeclareDirective({
1767
1770
  minVersion: "17.1.0",
1768
- version: "21.1.2",
1771
+ version: "21.1.3",
1769
1772
  type: RouterOutlet,
1770
1773
  isStandalone: true,
1771
1774
  selector: "router-outlet",
@@ -1798,7 +1801,7 @@ class RouterOutlet {
1798
1801
  }
1799
1802
  i0.ɵɵngDeclareClassMetadata({
1800
1803
  minVersion: "12.0.0",
1801
- version: "21.1.2",
1804
+ version: "21.1.3",
1802
1805
  ngImport: i0,
1803
1806
  type: RouterOutlet,
1804
1807
  decorators: [{
@@ -1907,7 +1910,7 @@ class RoutedComponentInputBinder {
1907
1910
  }
1908
1911
  static ɵfac = i0.ɵɵngDeclareFactory({
1909
1912
  minVersion: "12.0.0",
1910
- version: "21.1.2",
1913
+ version: "21.1.3",
1911
1914
  ngImport: i0,
1912
1915
  type: RoutedComponentInputBinder,
1913
1916
  deps: [],
@@ -1915,14 +1918,14 @@ class RoutedComponentInputBinder {
1915
1918
  });
1916
1919
  static ɵprov = i0.ɵɵngDeclareInjectable({
1917
1920
  minVersion: "12.0.0",
1918
- version: "21.1.2",
1921
+ version: "21.1.3",
1919
1922
  ngImport: i0,
1920
1923
  type: RoutedComponentInputBinder
1921
1924
  });
1922
1925
  }
1923
1926
  i0.ɵɵngDeclareClassMetadata({
1924
1927
  minVersion: "12.0.0",
1925
- version: "21.1.2",
1928
+ version: "21.1.3",
1926
1929
  ngImport: i0,
1927
1930
  type: RoutedComponentInputBinder,
1928
1931
  decorators: [{
@@ -1933,7 +1936,7 @@ i0.ɵɵngDeclareClassMetadata({
1933
1936
  class ɵEmptyOutletComponent {
1934
1937
  static ɵfac = i0.ɵɵngDeclareFactory({
1935
1938
  minVersion: "12.0.0",
1936
- version: "21.1.2",
1939
+ version: "21.1.3",
1937
1940
  ngImport: i0,
1938
1941
  type: ɵEmptyOutletComponent,
1939
1942
  deps: [],
@@ -1941,7 +1944,7 @@ class ɵEmptyOutletComponent {
1941
1944
  });
1942
1945
  static ɵcmp = i0.ɵɵngDeclareComponent({
1943
1946
  minVersion: "14.0.0",
1944
- version: "21.1.2",
1947
+ version: "21.1.3",
1945
1948
  type: ɵEmptyOutletComponent,
1946
1949
  isStandalone: true,
1947
1950
  selector: "ng-component",
@@ -1961,7 +1964,7 @@ class ɵEmptyOutletComponent {
1961
1964
  }
1962
1965
  i0.ɵɵngDeclareClassMetadata({
1963
1966
  minVersion: "12.0.0",
1964
- version: "21.1.2",
1967
+ version: "21.1.3",
1965
1968
  ngImport: i0,
1966
1969
  type: ɵEmptyOutletComponent,
1967
1970
  decorators: [{
@@ -3272,7 +3275,7 @@ class TitleStrategy {
3272
3275
  }
3273
3276
  static ɵfac = i0.ɵɵngDeclareFactory({
3274
3277
  minVersion: "12.0.0",
3275
- version: "21.1.2",
3278
+ version: "21.1.3",
3276
3279
  ngImport: i0,
3277
3280
  type: TitleStrategy,
3278
3281
  deps: [],
@@ -3280,7 +3283,7 @@ class TitleStrategy {
3280
3283
  });
3281
3284
  static ɵprov = i0.ɵɵngDeclareInjectable({
3282
3285
  minVersion: "12.0.0",
3283
- version: "21.1.2",
3286
+ version: "21.1.3",
3284
3287
  ngImport: i0,
3285
3288
  type: TitleStrategy,
3286
3289
  providedIn: 'root',
@@ -3289,7 +3292,7 @@ class TitleStrategy {
3289
3292
  }
3290
3293
  i0.ɵɵngDeclareClassMetadata({
3291
3294
  minVersion: "12.0.0",
3292
- version: "21.1.2",
3295
+ version: "21.1.3",
3293
3296
  ngImport: i0,
3294
3297
  type: TitleStrategy,
3295
3298
  decorators: [{
@@ -3314,7 +3317,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3314
3317
  }
3315
3318
  static ɵfac = i0.ɵɵngDeclareFactory({
3316
3319
  minVersion: "12.0.0",
3317
- version: "21.1.2",
3320
+ version: "21.1.3",
3318
3321
  ngImport: i0,
3319
3322
  type: DefaultTitleStrategy,
3320
3323
  deps: [{
@@ -3324,7 +3327,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3324
3327
  });
3325
3328
  static ɵprov = i0.ɵɵngDeclareInjectable({
3326
3329
  minVersion: "12.0.0",
3327
- version: "21.1.2",
3330
+ version: "21.1.3",
3328
3331
  ngImport: i0,
3329
3332
  type: DefaultTitleStrategy,
3330
3333
  providedIn: 'root'
@@ -3332,7 +3335,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3332
3335
  }
3333
3336
  i0.ɵɵngDeclareClassMetadata({
3334
3337
  minVersion: "12.0.0",
3335
- version: "21.1.2",
3338
+ version: "21.1.3",
3336
3339
  ngImport: i0,
3337
3340
  type: DefaultTitleStrategy,
3338
3341
  decorators: [{
@@ -3411,7 +3414,7 @@ class RouterConfigLoader {
3411
3414
  }
3412
3415
  static ɵfac = i0.ɵɵngDeclareFactory({
3413
3416
  minVersion: "12.0.0",
3414
- version: "21.1.2",
3417
+ version: "21.1.3",
3415
3418
  ngImport: i0,
3416
3419
  type: RouterConfigLoader,
3417
3420
  deps: [],
@@ -3419,7 +3422,7 @@ class RouterConfigLoader {
3419
3422
  });
3420
3423
  static ɵprov = i0.ɵɵngDeclareInjectable({
3421
3424
  minVersion: "12.0.0",
3422
- version: "21.1.2",
3425
+ version: "21.1.3",
3423
3426
  ngImport: i0,
3424
3427
  type: RouterConfigLoader,
3425
3428
  providedIn: 'root'
@@ -3427,7 +3430,7 @@ class RouterConfigLoader {
3427
3430
  }
3428
3431
  i0.ɵɵngDeclareClassMetadata({
3429
3432
  minVersion: "12.0.0",
3430
- version: "21.1.2",
3433
+ version: "21.1.3",
3431
3434
  ngImport: i0,
3432
3435
  type: RouterConfigLoader,
3433
3436
  decorators: [{
@@ -3492,7 +3495,7 @@ async function maybeResolveResources(value) {
3492
3495
  class UrlHandlingStrategy {
3493
3496
  static ɵfac = i0.ɵɵngDeclareFactory({
3494
3497
  minVersion: "12.0.0",
3495
- version: "21.1.2",
3498
+ version: "21.1.3",
3496
3499
  ngImport: i0,
3497
3500
  type: UrlHandlingStrategy,
3498
3501
  deps: [],
@@ -3500,7 +3503,7 @@ class UrlHandlingStrategy {
3500
3503
  });
3501
3504
  static ɵprov = i0.ɵɵngDeclareInjectable({
3502
3505
  minVersion: "12.0.0",
3503
- version: "21.1.2",
3506
+ version: "21.1.3",
3504
3507
  ngImport: i0,
3505
3508
  type: UrlHandlingStrategy,
3506
3509
  providedIn: 'root',
@@ -3509,7 +3512,7 @@ class UrlHandlingStrategy {
3509
3512
  }
3510
3513
  i0.ɵɵngDeclareClassMetadata({
3511
3514
  minVersion: "12.0.0",
3512
- version: "21.1.2",
3515
+ version: "21.1.3",
3513
3516
  ngImport: i0,
3514
3517
  type: UrlHandlingStrategy,
3515
3518
  decorators: [{
@@ -3532,7 +3535,7 @@ class DefaultUrlHandlingStrategy {
3532
3535
  }
3533
3536
  static ɵfac = i0.ɵɵngDeclareFactory({
3534
3537
  minVersion: "12.0.0",
3535
- version: "21.1.2",
3538
+ version: "21.1.3",
3536
3539
  ngImport: i0,
3537
3540
  type: DefaultUrlHandlingStrategy,
3538
3541
  deps: [],
@@ -3540,7 +3543,7 @@ class DefaultUrlHandlingStrategy {
3540
3543
  });
3541
3544
  static ɵprov = i0.ɵɵngDeclareInjectable({
3542
3545
  minVersion: "12.0.0",
3543
- version: "21.1.2",
3546
+ version: "21.1.3",
3544
3547
  ngImport: i0,
3545
3548
  type: DefaultUrlHandlingStrategy,
3546
3549
  providedIn: 'root'
@@ -3548,7 +3551,7 @@ class DefaultUrlHandlingStrategy {
3548
3551
  }
3549
3552
  i0.ɵɵngDeclareClassMetadata({
3550
3553
  minVersion: "12.0.0",
3551
- version: "21.1.2",
3554
+ version: "21.1.3",
3552
3555
  ngImport: i0,
3553
3556
  type: DefaultUrlHandlingStrategy,
3554
3557
  decorators: [{
@@ -3941,7 +3944,7 @@ class NavigationTransitions {
3941
3944
  }
3942
3945
  static ɵfac = i0.ɵɵngDeclareFactory({
3943
3946
  minVersion: "12.0.0",
3944
- version: "21.1.2",
3947
+ version: "21.1.3",
3945
3948
  ngImport: i0,
3946
3949
  type: NavigationTransitions,
3947
3950
  deps: [],
@@ -3949,7 +3952,7 @@ class NavigationTransitions {
3949
3952
  });
3950
3953
  static ɵprov = i0.ɵɵngDeclareInjectable({
3951
3954
  minVersion: "12.0.0",
3952
- version: "21.1.2",
3955
+ version: "21.1.3",
3953
3956
  ngImport: i0,
3954
3957
  type: NavigationTransitions,
3955
3958
  providedIn: 'root'
@@ -3957,7 +3960,7 @@ class NavigationTransitions {
3957
3960
  }
3958
3961
  i0.ɵɵngDeclareClassMetadata({
3959
3962
  minVersion: "12.0.0",
3960
- version: "21.1.2",
3963
+ version: "21.1.3",
3961
3964
  ngImport: i0,
3962
3965
  type: NavigationTransitions,
3963
3966
  decorators: [{
@@ -4030,7 +4033,7 @@ function destroyDetachedRouteHandle(handle) {
4030
4033
  class RouteReuseStrategy {
4031
4034
  static ɵfac = i0.ɵɵngDeclareFactory({
4032
4035
  minVersion: "12.0.0",
4033
- version: "21.1.2",
4036
+ version: "21.1.3",
4034
4037
  ngImport: i0,
4035
4038
  type: RouteReuseStrategy,
4036
4039
  deps: [],
@@ -4038,7 +4041,7 @@ class RouteReuseStrategy {
4038
4041
  });
4039
4042
  static ɵprov = i0.ɵɵngDeclareInjectable({
4040
4043
  minVersion: "12.0.0",
4041
- version: "21.1.2",
4044
+ version: "21.1.3",
4042
4045
  ngImport: i0,
4043
4046
  type: RouteReuseStrategy,
4044
4047
  providedIn: 'root',
@@ -4047,7 +4050,7 @@ class RouteReuseStrategy {
4047
4050
  }
4048
4051
  i0.ɵɵngDeclareClassMetadata({
4049
4052
  minVersion: "12.0.0",
4050
- version: "21.1.2",
4053
+ version: "21.1.3",
4051
4054
  ngImport: i0,
4052
4055
  type: RouteReuseStrategy,
4053
4056
  decorators: [{
@@ -4079,7 +4082,7 @@ class BaseRouteReuseStrategy {
4079
4082
  class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4080
4083
  static ɵfac = i0.ɵɵngDeclareFactory({
4081
4084
  minVersion: "12.0.0",
4082
- version: "21.1.2",
4085
+ version: "21.1.3",
4083
4086
  ngImport: i0,
4084
4087
  type: DefaultRouteReuseStrategy,
4085
4088
  deps: null,
@@ -4087,7 +4090,7 @@ class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4087
4090
  });
4088
4091
  static ɵprov = i0.ɵɵngDeclareInjectable({
4089
4092
  minVersion: "12.0.0",
4090
- version: "21.1.2",
4093
+ version: "21.1.3",
4091
4094
  ngImport: i0,
4092
4095
  type: DefaultRouteReuseStrategy,
4093
4096
  providedIn: 'root'
@@ -4095,7 +4098,7 @@ class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4095
4098
  }
4096
4099
  i0.ɵɵngDeclareClassMetadata({
4097
4100
  minVersion: "12.0.0",
4098
- version: "21.1.2",
4101
+ version: "21.1.3",
4099
4102
  ngImport: i0,
4100
4103
  type: DefaultRouteReuseStrategy,
4101
4104
  decorators: [{
@@ -4169,7 +4172,7 @@ class StateManager {
4169
4172
  }
4170
4173
  static ɵfac = i0.ɵɵngDeclareFactory({
4171
4174
  minVersion: "12.0.0",
4172
- version: "21.1.2",
4175
+ version: "21.1.3",
4173
4176
  ngImport: i0,
4174
4177
  type: StateManager,
4175
4178
  deps: [],
@@ -4177,7 +4180,7 @@ class StateManager {
4177
4180
  });
4178
4181
  static ɵprov = i0.ɵɵngDeclareInjectable({
4179
4182
  minVersion: "12.0.0",
4180
- version: "21.1.2",
4183
+ version: "21.1.3",
4181
4184
  ngImport: i0,
4182
4185
  type: StateManager,
4183
4186
  providedIn: 'root',
@@ -4186,7 +4189,7 @@ class StateManager {
4186
4189
  }
4187
4190
  i0.ɵɵngDeclareClassMetadata({
4188
4191
  minVersion: "12.0.0",
4189
- version: "21.1.2",
4192
+ version: "21.1.3",
4190
4193
  ngImport: i0,
4191
4194
  type: StateManager,
4192
4195
  decorators: [{
@@ -4303,7 +4306,7 @@ class HistoryStateManager extends StateManager {
4303
4306
  }
4304
4307
  static ɵfac = i0.ɵɵngDeclareFactory({
4305
4308
  minVersion: "12.0.0",
4306
- version: "21.1.2",
4309
+ version: "21.1.3",
4307
4310
  ngImport: i0,
4308
4311
  type: HistoryStateManager,
4309
4312
  deps: null,
@@ -4311,7 +4314,7 @@ class HistoryStateManager extends StateManager {
4311
4314
  });
4312
4315
  static ɵprov = i0.ɵɵngDeclareInjectable({
4313
4316
  minVersion: "12.0.0",
4314
- version: "21.1.2",
4317
+ version: "21.1.3",
4315
4318
  ngImport: i0,
4316
4319
  type: HistoryStateManager,
4317
4320
  providedIn: 'root'
@@ -4319,7 +4322,7 @@ class HistoryStateManager extends StateManager {
4319
4322
  }
4320
4323
  i0.ɵɵngDeclareClassMetadata({
4321
4324
  minVersion: "12.0.0",
4322
- version: "21.1.2",
4325
+ version: "21.1.3",
4323
4326
  ngImport: i0,
4324
4327
  type: HistoryStateManager,
4325
4328
  decorators: [{
@@ -4628,13 +4631,11 @@ class Router {
4628
4631
  currentSnapshot: this.routerState.snapshot,
4629
4632
  currentRouterState: this.routerState
4630
4633
  });
4631
- return promise.catch(e => {
4632
- return Promise.reject(e);
4633
- });
4634
+ return promise.catch(Promise.reject.bind(Promise));
4634
4635
  }
4635
4636
  static ɵfac = i0.ɵɵngDeclareFactory({
4636
4637
  minVersion: "12.0.0",
4637
- version: "21.1.2",
4638
+ version: "21.1.3",
4638
4639
  ngImport: i0,
4639
4640
  type: Router,
4640
4641
  deps: [],
@@ -4642,7 +4643,7 @@ class Router {
4642
4643
  });
4643
4644
  static ɵprov = i0.ɵɵngDeclareInjectable({
4644
4645
  minVersion: "12.0.0",
4645
- version: "21.1.2",
4646
+ version: "21.1.3",
4646
4647
  ngImport: i0,
4647
4648
  type: Router,
4648
4649
  providedIn: 'root'
@@ -4650,7 +4651,7 @@ class Router {
4650
4651
  }
4651
4652
  i0.ɵɵngDeclareClassMetadata({
4652
4653
  minVersion: "12.0.0",
4653
- version: "21.1.2",
4654
+ version: "21.1.3",
4654
4655
  ngImport: i0,
4655
4656
  type: Router,
4656
4657
  decorators: [{