@angular/router 21.0.0 → 21.0.2

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.0
2
+ * @license Angular v21.0.2
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.0",
279
+ version: "21.0.2",
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.0",
287
+ version: "21.0.2",
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.0",
296
+ version: "21.0.2",
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.0",
1364
+ version: "21.0.2",
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.0",
1374
+ version: "21.0.2",
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.0",
1382
+ version: "21.0.2",
1383
1383
  ngImport: i0,
1384
1384
  type: ChildrenOutletContexts,
1385
1385
  decorators: [{
@@ -1719,9 +1719,11 @@ class RouterOutlet {
1719
1719
  deactivateEvents = new EventEmitter();
1720
1720
  attachEvents = new EventEmitter();
1721
1721
  detachEvents = new EventEmitter();
1722
- routerOutletData = input(...(ngDevMode ? [undefined, {
1723
- debugName: "routerOutletData"
1724
- }] : []));
1722
+ routerOutletData = input(undefined, {
1723
+ ...(ngDevMode ? {
1724
+ debugName: "routerOutletData"
1725
+ } : {})
1726
+ });
1725
1727
  parentContexts = inject(ChildrenOutletContexts);
1726
1728
  location = inject(ViewContainerRef);
1727
1729
  changeDetector = inject(ChangeDetectorRef);
@@ -1834,7 +1836,7 @@ class RouterOutlet {
1834
1836
  }
1835
1837
  static ɵfac = i0.ɵɵngDeclareFactory({
1836
1838
  minVersion: "12.0.0",
1837
- version: "21.0.0",
1839
+ version: "21.0.2",
1838
1840
  ngImport: i0,
1839
1841
  type: RouterOutlet,
1840
1842
  deps: [],
@@ -1842,7 +1844,7 @@ class RouterOutlet {
1842
1844
  });
1843
1845
  static ɵdir = i0.ɵɵngDeclareDirective({
1844
1846
  minVersion: "17.1.0",
1845
- version: "21.0.0",
1847
+ version: "21.0.2",
1846
1848
  type: RouterOutlet,
1847
1849
  isStandalone: true,
1848
1850
  selector: "router-outlet",
@@ -1875,7 +1877,7 @@ class RouterOutlet {
1875
1877
  }
1876
1878
  i0.ɵɵngDeclareClassMetadata({
1877
1879
  minVersion: "12.0.0",
1878
- version: "21.0.0",
1880
+ version: "21.0.2",
1879
1881
  ngImport: i0,
1880
1882
  type: RouterOutlet,
1881
1883
  decorators: [{
@@ -1984,7 +1986,7 @@ class RoutedComponentInputBinder {
1984
1986
  }
1985
1987
  static ɵfac = i0.ɵɵngDeclareFactory({
1986
1988
  minVersion: "12.0.0",
1987
- version: "21.0.0",
1989
+ version: "21.0.2",
1988
1990
  ngImport: i0,
1989
1991
  type: RoutedComponentInputBinder,
1990
1992
  deps: [],
@@ -1992,14 +1994,14 @@ class RoutedComponentInputBinder {
1992
1994
  });
1993
1995
  static ɵprov = i0.ɵɵngDeclareInjectable({
1994
1996
  minVersion: "12.0.0",
1995
- version: "21.0.0",
1997
+ version: "21.0.2",
1996
1998
  ngImport: i0,
1997
1999
  type: RoutedComponentInputBinder
1998
2000
  });
1999
2001
  }
2000
2002
  i0.ɵɵngDeclareClassMetadata({
2001
2003
  minVersion: "12.0.0",
2002
- version: "21.0.0",
2004
+ version: "21.0.2",
2003
2005
  ngImport: i0,
2004
2006
  type: RoutedComponentInputBinder,
2005
2007
  decorators: [{
@@ -2010,7 +2012,7 @@ i0.ɵɵngDeclareClassMetadata({
2010
2012
  class ɵEmptyOutletComponent {
2011
2013
  static ɵfac = i0.ɵɵngDeclareFactory({
2012
2014
  minVersion: "12.0.0",
2013
- version: "21.0.0",
2015
+ version: "21.0.2",
2014
2016
  ngImport: i0,
2015
2017
  type: ɵEmptyOutletComponent,
2016
2018
  deps: [],
@@ -2018,7 +2020,7 @@ class ɵEmptyOutletComponent {
2018
2020
  });
2019
2021
  static ɵcmp = i0.ɵɵngDeclareComponent({
2020
2022
  minVersion: "14.0.0",
2021
- version: "21.0.0",
2023
+ version: "21.0.2",
2022
2024
  type: ɵEmptyOutletComponent,
2023
2025
  isStandalone: true,
2024
2026
  selector: "ng-component",
@@ -2038,7 +2040,7 @@ class ɵEmptyOutletComponent {
2038
2040
  }
2039
2041
  i0.ɵɵngDeclareClassMetadata({
2040
2042
  minVersion: "12.0.0",
2041
- version: "21.0.0",
2043
+ version: "21.0.2",
2042
2044
  ngImport: i0,
2043
2045
  type: ɵEmptyOutletComponent,
2044
2046
  decorators: [{
@@ -3670,7 +3672,7 @@ class TitleStrategy {
3670
3672
  }
3671
3673
  static ɵfac = i0.ɵɵngDeclareFactory({
3672
3674
  minVersion: "12.0.0",
3673
- version: "21.0.0",
3675
+ version: "21.0.2",
3674
3676
  ngImport: i0,
3675
3677
  type: TitleStrategy,
3676
3678
  deps: [],
@@ -3678,7 +3680,7 @@ class TitleStrategy {
3678
3680
  });
3679
3681
  static ɵprov = i0.ɵɵngDeclareInjectable({
3680
3682
  minVersion: "12.0.0",
3681
- version: "21.0.0",
3683
+ version: "21.0.2",
3682
3684
  ngImport: i0,
3683
3685
  type: TitleStrategy,
3684
3686
  providedIn: 'root',
@@ -3687,7 +3689,7 @@ class TitleStrategy {
3687
3689
  }
3688
3690
  i0.ɵɵngDeclareClassMetadata({
3689
3691
  minVersion: "12.0.0",
3690
- version: "21.0.0",
3692
+ version: "21.0.2",
3691
3693
  ngImport: i0,
3692
3694
  type: TitleStrategy,
3693
3695
  decorators: [{
@@ -3712,7 +3714,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3712
3714
  }
3713
3715
  static ɵfac = i0.ɵɵngDeclareFactory({
3714
3716
  minVersion: "12.0.0",
3715
- version: "21.0.0",
3717
+ version: "21.0.2",
3716
3718
  ngImport: i0,
3717
3719
  type: DefaultTitleStrategy,
3718
3720
  deps: [{
@@ -3722,7 +3724,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3722
3724
  });
3723
3725
  static ɵprov = i0.ɵɵngDeclareInjectable({
3724
3726
  minVersion: "12.0.0",
3725
- version: "21.0.0",
3727
+ version: "21.0.2",
3726
3728
  ngImport: i0,
3727
3729
  type: DefaultTitleStrategy,
3728
3730
  providedIn: 'root'
@@ -3730,7 +3732,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3730
3732
  }
3731
3733
  i0.ɵɵngDeclareClassMetadata({
3732
3734
  minVersion: "12.0.0",
3733
- version: "21.0.0",
3735
+ version: "21.0.2",
3734
3736
  ngImport: i0,
3735
3737
  type: DefaultTitleStrategy,
3736
3738
  decorators: [{
@@ -3808,7 +3810,7 @@ class RouterConfigLoader {
3808
3810
  }
3809
3811
  static ɵfac = i0.ɵɵngDeclareFactory({
3810
3812
  minVersion: "12.0.0",
3811
- version: "21.0.0",
3813
+ version: "21.0.2",
3812
3814
  ngImport: i0,
3813
3815
  type: RouterConfigLoader,
3814
3816
  deps: [],
@@ -3816,7 +3818,7 @@ class RouterConfigLoader {
3816
3818
  });
3817
3819
  static ɵprov = i0.ɵɵngDeclareInjectable({
3818
3820
  minVersion: "12.0.0",
3819
- version: "21.0.0",
3821
+ version: "21.0.2",
3820
3822
  ngImport: i0,
3821
3823
  type: RouterConfigLoader,
3822
3824
  providedIn: 'root'
@@ -3824,7 +3826,7 @@ class RouterConfigLoader {
3824
3826
  }
3825
3827
  i0.ɵɵngDeclareClassMetadata({
3826
3828
  minVersion: "12.0.0",
3827
- version: "21.0.0",
3829
+ version: "21.0.2",
3828
3830
  ngImport: i0,
3829
3831
  type: RouterConfigLoader,
3830
3832
  decorators: [{
@@ -3886,7 +3888,7 @@ async function maybeResolveResources(value) {
3886
3888
  class UrlHandlingStrategy {
3887
3889
  static ɵfac = i0.ɵɵngDeclareFactory({
3888
3890
  minVersion: "12.0.0",
3889
- version: "21.0.0",
3891
+ version: "21.0.2",
3890
3892
  ngImport: i0,
3891
3893
  type: UrlHandlingStrategy,
3892
3894
  deps: [],
@@ -3894,7 +3896,7 @@ class UrlHandlingStrategy {
3894
3896
  });
3895
3897
  static ɵprov = i0.ɵɵngDeclareInjectable({
3896
3898
  minVersion: "12.0.0",
3897
- version: "21.0.0",
3899
+ version: "21.0.2",
3898
3900
  ngImport: i0,
3899
3901
  type: UrlHandlingStrategy,
3900
3902
  providedIn: 'root',
@@ -3903,7 +3905,7 @@ class UrlHandlingStrategy {
3903
3905
  }
3904
3906
  i0.ɵɵngDeclareClassMetadata({
3905
3907
  minVersion: "12.0.0",
3906
- version: "21.0.0",
3908
+ version: "21.0.2",
3907
3909
  ngImport: i0,
3908
3910
  type: UrlHandlingStrategy,
3909
3911
  decorators: [{
@@ -3926,7 +3928,7 @@ class DefaultUrlHandlingStrategy {
3926
3928
  }
3927
3929
  static ɵfac = i0.ɵɵngDeclareFactory({
3928
3930
  minVersion: "12.0.0",
3929
- version: "21.0.0",
3931
+ version: "21.0.2",
3930
3932
  ngImport: i0,
3931
3933
  type: DefaultUrlHandlingStrategy,
3932
3934
  deps: [],
@@ -3934,7 +3936,7 @@ class DefaultUrlHandlingStrategy {
3934
3936
  });
3935
3937
  static ɵprov = i0.ɵɵngDeclareInjectable({
3936
3938
  minVersion: "12.0.0",
3937
- version: "21.0.0",
3939
+ version: "21.0.2",
3938
3940
  ngImport: i0,
3939
3941
  type: DefaultUrlHandlingStrategy,
3940
3942
  providedIn: 'root'
@@ -3942,7 +3944,7 @@ class DefaultUrlHandlingStrategy {
3942
3944
  }
3943
3945
  i0.ɵɵngDeclareClassMetadata({
3944
3946
  minVersion: "12.0.0",
3945
- version: "21.0.0",
3947
+ version: "21.0.2",
3946
3948
  ngImport: i0,
3947
3949
  type: DefaultUrlHandlingStrategy,
3948
3950
  decorators: [{
@@ -4000,16 +4002,18 @@ function createRenderPromise(injector) {
4000
4002
  const noop = () => {};
4001
4003
  const NAVIGATION_ERROR_HANDLER = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'navigation error handler' : '');
4002
4004
  class NavigationTransitions {
4003
- currentNavigation = signal(null, ...(ngDevMode ? [{
4004
- debugName: "currentNavigation",
4005
- equal: () => false
4006
- }] : [{
4005
+ currentNavigation = signal(null, {
4006
+ ...(ngDevMode ? {
4007
+ debugName: "currentNavigation"
4008
+ } : {}),
4007
4009
  equal: () => false
4008
- }]));
4010
+ });
4009
4011
  currentTransition = null;
4010
- lastSuccessfulNavigation = signal(null, ...(ngDevMode ? [{
4011
- debugName: "lastSuccessfulNavigation"
4012
- }] : []));
4012
+ lastSuccessfulNavigation = signal(null, {
4013
+ ...(ngDevMode ? {
4014
+ debugName: "lastSuccessfulNavigation"
4015
+ } : {})
4016
+ });
4013
4017
  events = new Subject();
4014
4018
  transitionAbortWithErrorSubject = new Subject();
4015
4019
  configLoader = inject(RouterConfigLoader);
@@ -4319,7 +4323,7 @@ class NavigationTransitions {
4319
4323
  }
4320
4324
  static ɵfac = i0.ɵɵngDeclareFactory({
4321
4325
  minVersion: "12.0.0",
4322
- version: "21.0.0",
4326
+ version: "21.0.2",
4323
4327
  ngImport: i0,
4324
4328
  type: NavigationTransitions,
4325
4329
  deps: [],
@@ -4327,7 +4331,7 @@ class NavigationTransitions {
4327
4331
  });
4328
4332
  static ɵprov = i0.ɵɵngDeclareInjectable({
4329
4333
  minVersion: "12.0.0",
4330
- version: "21.0.0",
4334
+ version: "21.0.2",
4331
4335
  ngImport: i0,
4332
4336
  type: NavigationTransitions,
4333
4337
  providedIn: 'root'
@@ -4335,7 +4339,7 @@ class NavigationTransitions {
4335
4339
  }
4336
4340
  i0.ɵɵngDeclareClassMetadata({
4337
4341
  minVersion: "12.0.0",
4338
- version: "21.0.0",
4342
+ version: "21.0.2",
4339
4343
  ngImport: i0,
4340
4344
  type: NavigationTransitions,
4341
4345
  decorators: [{
@@ -4353,7 +4357,7 @@ function isBrowserTriggeredNavigation(source) {
4353
4357
  class RouteReuseStrategy {
4354
4358
  static ɵfac = i0.ɵɵngDeclareFactory({
4355
4359
  minVersion: "12.0.0",
4356
- version: "21.0.0",
4360
+ version: "21.0.2",
4357
4361
  ngImport: i0,
4358
4362
  type: RouteReuseStrategy,
4359
4363
  deps: [],
@@ -4361,7 +4365,7 @@ class RouteReuseStrategy {
4361
4365
  });
4362
4366
  static ɵprov = i0.ɵɵngDeclareInjectable({
4363
4367
  minVersion: "12.0.0",
4364
- version: "21.0.0",
4368
+ version: "21.0.2",
4365
4369
  ngImport: i0,
4366
4370
  type: RouteReuseStrategy,
4367
4371
  providedIn: 'root',
@@ -4370,7 +4374,7 @@ class RouteReuseStrategy {
4370
4374
  }
4371
4375
  i0.ɵɵngDeclareClassMetadata({
4372
4376
  minVersion: "12.0.0",
4373
- version: "21.0.0",
4377
+ version: "21.0.2",
4374
4378
  ngImport: i0,
4375
4379
  type: RouteReuseStrategy,
4376
4380
  decorators: [{
@@ -4399,7 +4403,7 @@ class BaseRouteReuseStrategy {
4399
4403
  class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4400
4404
  static ɵfac = i0.ɵɵngDeclareFactory({
4401
4405
  minVersion: "12.0.0",
4402
- version: "21.0.0",
4406
+ version: "21.0.2",
4403
4407
  ngImport: i0,
4404
4408
  type: DefaultRouteReuseStrategy,
4405
4409
  deps: null,
@@ -4407,7 +4411,7 @@ class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4407
4411
  });
4408
4412
  static ɵprov = i0.ɵɵngDeclareInjectable({
4409
4413
  minVersion: "12.0.0",
4410
- version: "21.0.0",
4414
+ version: "21.0.2",
4411
4415
  ngImport: i0,
4412
4416
  type: DefaultRouteReuseStrategy,
4413
4417
  providedIn: 'root'
@@ -4415,7 +4419,7 @@ class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4415
4419
  }
4416
4420
  i0.ɵɵngDeclareClassMetadata({
4417
4421
  minVersion: "12.0.0",
4418
- version: "21.0.0",
4422
+ version: "21.0.2",
4419
4423
  ngImport: i0,
4420
4424
  type: DefaultRouteReuseStrategy,
4421
4425
  decorators: [{
@@ -4490,7 +4494,7 @@ class StateManager {
4490
4494
  }
4491
4495
  static ɵfac = i0.ɵɵngDeclareFactory({
4492
4496
  minVersion: "12.0.0",
4493
- version: "21.0.0",
4497
+ version: "21.0.2",
4494
4498
  ngImport: i0,
4495
4499
  type: StateManager,
4496
4500
  deps: [],
@@ -4498,7 +4502,7 @@ class StateManager {
4498
4502
  });
4499
4503
  static ɵprov = i0.ɵɵngDeclareInjectable({
4500
4504
  minVersion: "12.0.0",
4501
- version: "21.0.0",
4505
+ version: "21.0.2",
4502
4506
  ngImport: i0,
4503
4507
  type: StateManager,
4504
4508
  providedIn: 'root',
@@ -4507,7 +4511,7 @@ class StateManager {
4507
4511
  }
4508
4512
  i0.ɵɵngDeclareClassMetadata({
4509
4513
  minVersion: "12.0.0",
4510
- version: "21.0.0",
4514
+ version: "21.0.2",
4511
4515
  ngImport: i0,
4512
4516
  type: StateManager,
4513
4517
  decorators: [{
@@ -4620,7 +4624,7 @@ class HistoryStateManager extends StateManager {
4620
4624
  }
4621
4625
  static ɵfac = i0.ɵɵngDeclareFactory({
4622
4626
  minVersion: "12.0.0",
4623
- version: "21.0.0",
4627
+ version: "21.0.2",
4624
4628
  ngImport: i0,
4625
4629
  type: HistoryStateManager,
4626
4630
  deps: null,
@@ -4628,7 +4632,7 @@ class HistoryStateManager extends StateManager {
4628
4632
  });
4629
4633
  static ɵprov = i0.ɵɵngDeclareInjectable({
4630
4634
  minVersion: "12.0.0",
4631
- version: "21.0.0",
4635
+ version: "21.0.2",
4632
4636
  ngImport: i0,
4633
4637
  type: HistoryStateManager,
4634
4638
  providedIn: 'root'
@@ -4636,7 +4640,7 @@ class HistoryStateManager extends StateManager {
4636
4640
  }
4637
4641
  i0.ɵɵngDeclareClassMetadata({
4638
4642
  minVersion: "12.0.0",
4639
- version: "21.0.0",
4643
+ version: "21.0.2",
4640
4644
  ngImport: i0,
4641
4645
  type: HistoryStateManager,
4642
4646
  decorators: [{
@@ -4950,7 +4954,7 @@ class Router {
4950
4954
  }
4951
4955
  static ɵfac = i0.ɵɵngDeclareFactory({
4952
4956
  minVersion: "12.0.0",
4953
- version: "21.0.0",
4957
+ version: "21.0.2",
4954
4958
  ngImport: i0,
4955
4959
  type: Router,
4956
4960
  deps: [],
@@ -4958,7 +4962,7 @@ class Router {
4958
4962
  });
4959
4963
  static ɵprov = i0.ɵɵngDeclareInjectable({
4960
4964
  minVersion: "12.0.0",
4961
- version: "21.0.0",
4965
+ version: "21.0.2",
4962
4966
  ngImport: i0,
4963
4967
  type: Router,
4964
4968
  providedIn: 'root'
@@ -4966,7 +4970,7 @@ class Router {
4966
4970
  }
4967
4971
  i0.ɵɵngDeclareClassMetadata({
4968
4972
  minVersion: "12.0.0",
4969
- version: "21.0.0",
4973
+ version: "21.0.2",
4970
4974
  ngImport: i0,
4971
4975
  type: Router,
4972
4976
  decorators: [{