@angular/router 13.0.0-rc.0 → 13.0.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 v13.0.0-rc.0
2
+ * @license Angular v13.0.0
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -93,9 +93,9 @@ class RouterTestingModule {
93
93
  };
94
94
  }
95
95
  }
96
- RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
97
- RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
98
- RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: RouterTestingModule, providers: [
96
+ RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
97
+ RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
98
+ RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: RouterTestingModule, providers: [
99
99
  ɵROUTER_PROVIDERS,
100
100
  EXTRA_ROUTER_TESTING_PROVIDERS,
101
101
  { provide: Location, useClass: SpyLocation },
@@ -112,7 +112,7 @@ RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
112
112
  { provide: PreloadingStrategy, useExisting: NoPreloading },
113
113
  provideRoutes([]),
114
114
  ], imports: [RouterModule] });
115
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.0", ngImport: i0, type: RouterTestingModule, decorators: [{
115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: RouterTestingModule, decorators: [{
116
116
  type: NgModule,
117
117
  args: [{
118
118
  exports: [RouterModule],
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v13.0.0-rc.0
2
+ * @license Angular v13.0.0
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/router",
3
- "version": "13.0.0-rc.0",
3
+ "version": "13.0.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": "13.0.0-rc.0",
28
- "@angular/common": "13.0.0-rc.0",
29
- "@angular/platform-browser": "13.0.0-rc.0",
27
+ "@angular/core": "13.0.0",
28
+ "@angular/common": "13.0.0",
29
+ "@angular/platform-browser": "13.0.0",
30
30
  "rxjs": "^6.5.3 || ^7.4.0"
31
31
  },
32
32
  "ng-update": {
package/router.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v13.0.0-rc.0
2
+ * @license Angular v13.0.0
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -906,6 +906,28 @@ export declare interface ExtraOptions {
906
906
  * The default in v11 is `corrected`.
907
907
  */
908
908
  relativeLinkResolution?: 'legacy' | 'corrected';
909
+ /**
910
+ * Configures how the Router attempts to restore state when a navigation is cancelled.
911
+ *
912
+ * 'replace' - Always uses `location.replaceState` to set the browser state to the state of the
913
+ * router before the navigation started. This means that if the URL of the browser is updated
914
+ * _before_ the navigation is canceled, the Router will simply replace the item in history rather
915
+ * than trying to restore to the previous location in the session history. This happens most
916
+ * frequently with `urlUpdateStrategy: 'eager'` and navigations with the browser back/forward
917
+ * buttons.
918
+ *
919
+ * 'computed' - Will attempt to return to the same index in the session history that corresponds
920
+ * to the Angular route when the navigation gets cancelled. For example, if the browser back
921
+ * button is clicked and the navigation is cancelled, the Router will trigger a forward navigation
922
+ * and vice versa.
923
+ *
924
+ * Note: the 'computed' option is incompatible with any `UrlHandlingStrategy` which only
925
+ * handles a portion of the URL because the history restoration navigates to the previous place in
926
+ * the browser history rather than simply resetting a portion of the URL.
927
+ *
928
+ * The default value is `replace` when not set.
929
+ */
930
+ canceledNavigationResolution?: 'replace' | 'computed';
909
931
  }
910
932
 
911
933
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v13.0.0-rc.0
2
+ * @license Angular v13.0.0
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v13.0.0-rc.0
2
+ * @license Angular v13.0.0
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */