@angular/router 21.0.2 → 21.0.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.0.2
2
+ * @license Angular v21.0.3
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -276,7 +276,7 @@ function mapChildrenIntoArray(segment, fn) {
276
276
  class UrlSerializer {
277
277
  static ɵfac = i0.ɵɵngDeclareFactory({
278
278
  minVersion: "12.0.0",
279
- version: "21.0.2",
279
+ version: "21.0.3",
280
280
  ngImport: i0,
281
281
  type: UrlSerializer,
282
282
  deps: [],
@@ -284,7 +284,7 @@ class UrlSerializer {
284
284
  });
285
285
  static ɵprov = i0.ɵɵngDeclareInjectable({
286
286
  minVersion: "12.0.0",
287
- version: "21.0.2",
287
+ version: "21.0.3",
288
288
  ngImport: i0,
289
289
  type: UrlSerializer,
290
290
  providedIn: 'root',
@@ -293,7 +293,7 @@ class UrlSerializer {
293
293
  }
294
294
  i0.ɵɵngDeclareClassMetadata({
295
295
  minVersion: "12.0.0",
296
- version: "21.0.2",
296
+ version: "21.0.3",
297
297
  ngImport: i0,
298
298
  type: UrlSerializer,
299
299
  decorators: [{
@@ -1361,7 +1361,7 @@ class ChildrenOutletContexts {
1361
1361
  }
1362
1362
  static ɵfac = i0.ɵɵngDeclareFactory({
1363
1363
  minVersion: "12.0.0",
1364
- version: "21.0.2",
1364
+ version: "21.0.3",
1365
1365
  ngImport: i0,
1366
1366
  type: ChildrenOutletContexts,
1367
1367
  deps: [{
@@ -1371,7 +1371,7 @@ class ChildrenOutletContexts {
1371
1371
  });
1372
1372
  static ɵprov = i0.ɵɵngDeclareInjectable({
1373
1373
  minVersion: "12.0.0",
1374
- version: "21.0.2",
1374
+ version: "21.0.3",
1375
1375
  ngImport: i0,
1376
1376
  type: ChildrenOutletContexts,
1377
1377
  providedIn: 'root'
@@ -1379,7 +1379,7 @@ class ChildrenOutletContexts {
1379
1379
  }
1380
1380
  i0.ɵɵngDeclareClassMetadata({
1381
1381
  minVersion: "12.0.0",
1382
- version: "21.0.2",
1382
+ version: "21.0.3",
1383
1383
  ngImport: i0,
1384
1384
  type: ChildrenOutletContexts,
1385
1385
  decorators: [{
@@ -1719,11 +1719,9 @@ class RouterOutlet {
1719
1719
  deactivateEvents = new EventEmitter();
1720
1720
  attachEvents = new EventEmitter();
1721
1721
  detachEvents = new EventEmitter();
1722
- routerOutletData = input(undefined, {
1723
- ...(ngDevMode ? {
1724
- debugName: "routerOutletData"
1725
- } : {})
1726
- });
1722
+ routerOutletData = input(...(ngDevMode ? [undefined, {
1723
+ debugName: "routerOutletData"
1724
+ }] : []));
1727
1725
  parentContexts = inject(ChildrenOutletContexts);
1728
1726
  location = inject(ViewContainerRef);
1729
1727
  changeDetector = inject(ChangeDetectorRef);
@@ -1836,7 +1834,7 @@ class RouterOutlet {
1836
1834
  }
1837
1835
  static ɵfac = i0.ɵɵngDeclareFactory({
1838
1836
  minVersion: "12.0.0",
1839
- version: "21.0.2",
1837
+ version: "21.0.3",
1840
1838
  ngImport: i0,
1841
1839
  type: RouterOutlet,
1842
1840
  deps: [],
@@ -1844,7 +1842,7 @@ class RouterOutlet {
1844
1842
  });
1845
1843
  static ɵdir = i0.ɵɵngDeclareDirective({
1846
1844
  minVersion: "17.1.0",
1847
- version: "21.0.2",
1845
+ version: "21.0.3",
1848
1846
  type: RouterOutlet,
1849
1847
  isStandalone: true,
1850
1848
  selector: "router-outlet",
@@ -1877,7 +1875,7 @@ class RouterOutlet {
1877
1875
  }
1878
1876
  i0.ɵɵngDeclareClassMetadata({
1879
1877
  minVersion: "12.0.0",
1880
- version: "21.0.2",
1878
+ version: "21.0.3",
1881
1879
  ngImport: i0,
1882
1880
  type: RouterOutlet,
1883
1881
  decorators: [{
@@ -1986,7 +1984,7 @@ class RoutedComponentInputBinder {
1986
1984
  }
1987
1985
  static ɵfac = i0.ɵɵngDeclareFactory({
1988
1986
  minVersion: "12.0.0",
1989
- version: "21.0.2",
1987
+ version: "21.0.3",
1990
1988
  ngImport: i0,
1991
1989
  type: RoutedComponentInputBinder,
1992
1990
  deps: [],
@@ -1994,14 +1992,14 @@ class RoutedComponentInputBinder {
1994
1992
  });
1995
1993
  static ɵprov = i0.ɵɵngDeclareInjectable({
1996
1994
  minVersion: "12.0.0",
1997
- version: "21.0.2",
1995
+ version: "21.0.3",
1998
1996
  ngImport: i0,
1999
1997
  type: RoutedComponentInputBinder
2000
1998
  });
2001
1999
  }
2002
2000
  i0.ɵɵngDeclareClassMetadata({
2003
2001
  minVersion: "12.0.0",
2004
- version: "21.0.2",
2002
+ version: "21.0.3",
2005
2003
  ngImport: i0,
2006
2004
  type: RoutedComponentInputBinder,
2007
2005
  decorators: [{
@@ -2012,7 +2010,7 @@ i0.ɵɵngDeclareClassMetadata({
2012
2010
  class ɵEmptyOutletComponent {
2013
2011
  static ɵfac = i0.ɵɵngDeclareFactory({
2014
2012
  minVersion: "12.0.0",
2015
- version: "21.0.2",
2013
+ version: "21.0.3",
2016
2014
  ngImport: i0,
2017
2015
  type: ɵEmptyOutletComponent,
2018
2016
  deps: [],
@@ -2020,7 +2018,7 @@ class ɵEmptyOutletComponent {
2020
2018
  });
2021
2019
  static ɵcmp = i0.ɵɵngDeclareComponent({
2022
2020
  minVersion: "14.0.0",
2023
- version: "21.0.2",
2021
+ version: "21.0.3",
2024
2022
  type: ɵEmptyOutletComponent,
2025
2023
  isStandalone: true,
2026
2024
  selector: "ng-component",
@@ -2040,7 +2038,7 @@ class ɵEmptyOutletComponent {
2040
2038
  }
2041
2039
  i0.ɵɵngDeclareClassMetadata({
2042
2040
  minVersion: "12.0.0",
2043
- version: "21.0.2",
2041
+ version: "21.0.3",
2044
2042
  ngImport: i0,
2045
2043
  type: ɵEmptyOutletComponent,
2046
2044
  decorators: [{
@@ -3672,7 +3670,7 @@ class TitleStrategy {
3672
3670
  }
3673
3671
  static ɵfac = i0.ɵɵngDeclareFactory({
3674
3672
  minVersion: "12.0.0",
3675
- version: "21.0.2",
3673
+ version: "21.0.3",
3676
3674
  ngImport: i0,
3677
3675
  type: TitleStrategy,
3678
3676
  deps: [],
@@ -3680,7 +3678,7 @@ class TitleStrategy {
3680
3678
  });
3681
3679
  static ɵprov = i0.ɵɵngDeclareInjectable({
3682
3680
  minVersion: "12.0.0",
3683
- version: "21.0.2",
3681
+ version: "21.0.3",
3684
3682
  ngImport: i0,
3685
3683
  type: TitleStrategy,
3686
3684
  providedIn: 'root',
@@ -3689,7 +3687,7 @@ class TitleStrategy {
3689
3687
  }
3690
3688
  i0.ɵɵngDeclareClassMetadata({
3691
3689
  minVersion: "12.0.0",
3692
- version: "21.0.2",
3690
+ version: "21.0.3",
3693
3691
  ngImport: i0,
3694
3692
  type: TitleStrategy,
3695
3693
  decorators: [{
@@ -3714,7 +3712,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3714
3712
  }
3715
3713
  static ɵfac = i0.ɵɵngDeclareFactory({
3716
3714
  minVersion: "12.0.0",
3717
- version: "21.0.2",
3715
+ version: "21.0.3",
3718
3716
  ngImport: i0,
3719
3717
  type: DefaultTitleStrategy,
3720
3718
  deps: [{
@@ -3724,7 +3722,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3724
3722
  });
3725
3723
  static ɵprov = i0.ɵɵngDeclareInjectable({
3726
3724
  minVersion: "12.0.0",
3727
- version: "21.0.2",
3725
+ version: "21.0.3",
3728
3726
  ngImport: i0,
3729
3727
  type: DefaultTitleStrategy,
3730
3728
  providedIn: 'root'
@@ -3732,7 +3730,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3732
3730
  }
3733
3731
  i0.ɵɵngDeclareClassMetadata({
3734
3732
  minVersion: "12.0.0",
3735
- version: "21.0.2",
3733
+ version: "21.0.3",
3736
3734
  ngImport: i0,
3737
3735
  type: DefaultTitleStrategy,
3738
3736
  decorators: [{
@@ -3810,7 +3808,7 @@ class RouterConfigLoader {
3810
3808
  }
3811
3809
  static ɵfac = i0.ɵɵngDeclareFactory({
3812
3810
  minVersion: "12.0.0",
3813
- version: "21.0.2",
3811
+ version: "21.0.3",
3814
3812
  ngImport: i0,
3815
3813
  type: RouterConfigLoader,
3816
3814
  deps: [],
@@ -3818,7 +3816,7 @@ class RouterConfigLoader {
3818
3816
  });
3819
3817
  static ɵprov = i0.ɵɵngDeclareInjectable({
3820
3818
  minVersion: "12.0.0",
3821
- version: "21.0.2",
3819
+ version: "21.0.3",
3822
3820
  ngImport: i0,
3823
3821
  type: RouterConfigLoader,
3824
3822
  providedIn: 'root'
@@ -3826,7 +3824,7 @@ class RouterConfigLoader {
3826
3824
  }
3827
3825
  i0.ɵɵngDeclareClassMetadata({
3828
3826
  minVersion: "12.0.0",
3829
- version: "21.0.2",
3827
+ version: "21.0.3",
3830
3828
  ngImport: i0,
3831
3829
  type: RouterConfigLoader,
3832
3830
  decorators: [{
@@ -3888,7 +3886,7 @@ async function maybeResolveResources(value) {
3888
3886
  class UrlHandlingStrategy {
3889
3887
  static ɵfac = i0.ɵɵngDeclareFactory({
3890
3888
  minVersion: "12.0.0",
3891
- version: "21.0.2",
3889
+ version: "21.0.3",
3892
3890
  ngImport: i0,
3893
3891
  type: UrlHandlingStrategy,
3894
3892
  deps: [],
@@ -3896,7 +3894,7 @@ class UrlHandlingStrategy {
3896
3894
  });
3897
3895
  static ɵprov = i0.ɵɵngDeclareInjectable({
3898
3896
  minVersion: "12.0.0",
3899
- version: "21.0.2",
3897
+ version: "21.0.3",
3900
3898
  ngImport: i0,
3901
3899
  type: UrlHandlingStrategy,
3902
3900
  providedIn: 'root',
@@ -3905,7 +3903,7 @@ class UrlHandlingStrategy {
3905
3903
  }
3906
3904
  i0.ɵɵngDeclareClassMetadata({
3907
3905
  minVersion: "12.0.0",
3908
- version: "21.0.2",
3906
+ version: "21.0.3",
3909
3907
  ngImport: i0,
3910
3908
  type: UrlHandlingStrategy,
3911
3909
  decorators: [{
@@ -3928,7 +3926,7 @@ class DefaultUrlHandlingStrategy {
3928
3926
  }
3929
3927
  static ɵfac = i0.ɵɵngDeclareFactory({
3930
3928
  minVersion: "12.0.0",
3931
- version: "21.0.2",
3929
+ version: "21.0.3",
3932
3930
  ngImport: i0,
3933
3931
  type: DefaultUrlHandlingStrategy,
3934
3932
  deps: [],
@@ -3936,7 +3934,7 @@ class DefaultUrlHandlingStrategy {
3936
3934
  });
3937
3935
  static ɵprov = i0.ɵɵngDeclareInjectable({
3938
3936
  minVersion: "12.0.0",
3939
- version: "21.0.2",
3937
+ version: "21.0.3",
3940
3938
  ngImport: i0,
3941
3939
  type: DefaultUrlHandlingStrategy,
3942
3940
  providedIn: 'root'
@@ -3944,7 +3942,7 @@ class DefaultUrlHandlingStrategy {
3944
3942
  }
3945
3943
  i0.ɵɵngDeclareClassMetadata({
3946
3944
  minVersion: "12.0.0",
3947
- version: "21.0.2",
3945
+ version: "21.0.3",
3948
3946
  ngImport: i0,
3949
3947
  type: DefaultUrlHandlingStrategy,
3950
3948
  decorators: [{
@@ -3977,6 +3975,11 @@ function createViewTransition(injector, from, to) {
3977
3975
  console.error(error);
3978
3976
  }
3979
3977
  });
3978
+ transition.finished.catch(error => {
3979
+ if (typeof ngDevMode === 'undefined' || ngDevMode) {
3980
+ console.error(error);
3981
+ }
3982
+ });
3980
3983
  const {
3981
3984
  onViewTransitionCreated
3982
3985
  } = transitionOptions;
@@ -4009,11 +4012,9 @@ class NavigationTransitions {
4009
4012
  equal: () => false
4010
4013
  });
4011
4014
  currentTransition = null;
4012
- lastSuccessfulNavigation = signal(null, {
4013
- ...(ngDevMode ? {
4014
- debugName: "lastSuccessfulNavigation"
4015
- } : {})
4016
- });
4015
+ lastSuccessfulNavigation = signal(null, ...(ngDevMode ? [{
4016
+ debugName: "lastSuccessfulNavigation"
4017
+ }] : []));
4017
4018
  events = new Subject();
4018
4019
  transitionAbortWithErrorSubject = new Subject();
4019
4020
  configLoader = inject(RouterConfigLoader);
@@ -4323,7 +4324,7 @@ class NavigationTransitions {
4323
4324
  }
4324
4325
  static ɵfac = i0.ɵɵngDeclareFactory({
4325
4326
  minVersion: "12.0.0",
4326
- version: "21.0.2",
4327
+ version: "21.0.3",
4327
4328
  ngImport: i0,
4328
4329
  type: NavigationTransitions,
4329
4330
  deps: [],
@@ -4331,7 +4332,7 @@ class NavigationTransitions {
4331
4332
  });
4332
4333
  static ɵprov = i0.ɵɵngDeclareInjectable({
4333
4334
  minVersion: "12.0.0",
4334
- version: "21.0.2",
4335
+ version: "21.0.3",
4335
4336
  ngImport: i0,
4336
4337
  type: NavigationTransitions,
4337
4338
  providedIn: 'root'
@@ -4339,7 +4340,7 @@ class NavigationTransitions {
4339
4340
  }
4340
4341
  i0.ɵɵngDeclareClassMetadata({
4341
4342
  minVersion: "12.0.0",
4342
- version: "21.0.2",
4343
+ version: "21.0.3",
4343
4344
  ngImport: i0,
4344
4345
  type: NavigationTransitions,
4345
4346
  decorators: [{
@@ -4357,7 +4358,7 @@ function isBrowserTriggeredNavigation(source) {
4357
4358
  class RouteReuseStrategy {
4358
4359
  static ɵfac = i0.ɵɵngDeclareFactory({
4359
4360
  minVersion: "12.0.0",
4360
- version: "21.0.2",
4361
+ version: "21.0.3",
4361
4362
  ngImport: i0,
4362
4363
  type: RouteReuseStrategy,
4363
4364
  deps: [],
@@ -4365,7 +4366,7 @@ class RouteReuseStrategy {
4365
4366
  });
4366
4367
  static ɵprov = i0.ɵɵngDeclareInjectable({
4367
4368
  minVersion: "12.0.0",
4368
- version: "21.0.2",
4369
+ version: "21.0.3",
4369
4370
  ngImport: i0,
4370
4371
  type: RouteReuseStrategy,
4371
4372
  providedIn: 'root',
@@ -4374,7 +4375,7 @@ class RouteReuseStrategy {
4374
4375
  }
4375
4376
  i0.ɵɵngDeclareClassMetadata({
4376
4377
  minVersion: "12.0.0",
4377
- version: "21.0.2",
4378
+ version: "21.0.3",
4378
4379
  ngImport: i0,
4379
4380
  type: RouteReuseStrategy,
4380
4381
  decorators: [{
@@ -4403,7 +4404,7 @@ class BaseRouteReuseStrategy {
4403
4404
  class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4404
4405
  static ɵfac = i0.ɵɵngDeclareFactory({
4405
4406
  minVersion: "12.0.0",
4406
- version: "21.0.2",
4407
+ version: "21.0.3",
4407
4408
  ngImport: i0,
4408
4409
  type: DefaultRouteReuseStrategy,
4409
4410
  deps: null,
@@ -4411,7 +4412,7 @@ class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4411
4412
  });
4412
4413
  static ɵprov = i0.ɵɵngDeclareInjectable({
4413
4414
  minVersion: "12.0.0",
4414
- version: "21.0.2",
4415
+ version: "21.0.3",
4415
4416
  ngImport: i0,
4416
4417
  type: DefaultRouteReuseStrategy,
4417
4418
  providedIn: 'root'
@@ -4419,7 +4420,7 @@ class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4419
4420
  }
4420
4421
  i0.ɵɵngDeclareClassMetadata({
4421
4422
  minVersion: "12.0.0",
4422
- version: "21.0.2",
4423
+ version: "21.0.3",
4423
4424
  ngImport: i0,
4424
4425
  type: DefaultRouteReuseStrategy,
4425
4426
  decorators: [{
@@ -4494,7 +4495,7 @@ class StateManager {
4494
4495
  }
4495
4496
  static ɵfac = i0.ɵɵngDeclareFactory({
4496
4497
  minVersion: "12.0.0",
4497
- version: "21.0.2",
4498
+ version: "21.0.3",
4498
4499
  ngImport: i0,
4499
4500
  type: StateManager,
4500
4501
  deps: [],
@@ -4502,7 +4503,7 @@ class StateManager {
4502
4503
  });
4503
4504
  static ɵprov = i0.ɵɵngDeclareInjectable({
4504
4505
  minVersion: "12.0.0",
4505
- version: "21.0.2",
4506
+ version: "21.0.3",
4506
4507
  ngImport: i0,
4507
4508
  type: StateManager,
4508
4509
  providedIn: 'root',
@@ -4511,7 +4512,7 @@ class StateManager {
4511
4512
  }
4512
4513
  i0.ɵɵngDeclareClassMetadata({
4513
4514
  minVersion: "12.0.0",
4514
- version: "21.0.2",
4515
+ version: "21.0.3",
4515
4516
  ngImport: i0,
4516
4517
  type: StateManager,
4517
4518
  decorators: [{
@@ -4624,7 +4625,7 @@ class HistoryStateManager extends StateManager {
4624
4625
  }
4625
4626
  static ɵfac = i0.ɵɵngDeclareFactory({
4626
4627
  minVersion: "12.0.0",
4627
- version: "21.0.2",
4628
+ version: "21.0.3",
4628
4629
  ngImport: i0,
4629
4630
  type: HistoryStateManager,
4630
4631
  deps: null,
@@ -4632,7 +4633,7 @@ class HistoryStateManager extends StateManager {
4632
4633
  });
4633
4634
  static ɵprov = i0.ɵɵngDeclareInjectable({
4634
4635
  minVersion: "12.0.0",
4635
- version: "21.0.2",
4636
+ version: "21.0.3",
4636
4637
  ngImport: i0,
4637
4638
  type: HistoryStateManager,
4638
4639
  providedIn: 'root'
@@ -4640,7 +4641,7 @@ class HistoryStateManager extends StateManager {
4640
4641
  }
4641
4642
  i0.ɵɵngDeclareClassMetadata({
4642
4643
  minVersion: "12.0.0",
4643
- version: "21.0.2",
4644
+ version: "21.0.3",
4644
4645
  ngImport: i0,
4645
4646
  type: HistoryStateManager,
4646
4647
  decorators: [{
@@ -4954,7 +4955,7 @@ class Router {
4954
4955
  }
4955
4956
  static ɵfac = i0.ɵɵngDeclareFactory({
4956
4957
  minVersion: "12.0.0",
4957
- version: "21.0.2",
4958
+ version: "21.0.3",
4958
4959
  ngImport: i0,
4959
4960
  type: Router,
4960
4961
  deps: [],
@@ -4962,7 +4963,7 @@ class Router {
4962
4963
  });
4963
4964
  static ɵprov = i0.ɵɵngDeclareInjectable({
4964
4965
  minVersion: "12.0.0",
4965
- version: "21.0.2",
4966
+ version: "21.0.3",
4966
4967
  ngImport: i0,
4967
4968
  type: Router,
4968
4969
  providedIn: 'root'
@@ -4970,7 +4971,7 @@ class Router {
4970
4971
  }
4971
4972
  i0.ɵɵngDeclareClassMetadata({
4972
4973
  minVersion: "12.0.0",
4973
- version: "21.0.2",
4974
+ version: "21.0.3",
4974
4975
  ngImport: i0,
4975
4976
  type: Router,
4976
4977
  decorators: [{