What this package is like to depend on
Last release 5 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 1.2 years
Nearly every release is documented
notes for 6 of 6 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
31 releases · first in 2017
0 releases in the last 12 months
see the full history below
Release timeline
31 releases · Aug 2017 to Oct 2021Releases
latest 31-
3.0.107 Oct 2021 -
3.0.017 Sep 2021 -
2.0.008 Oct 2020Release notes
Open source →- Stable release.
Bug fixes
-
Fixed a bug where
MockLocationStrategy.back()returned the wrong URL after callingreplaceState(). -
Blocking a navigation triggered by a location change will no longer throw a null error when all prior navigation requests have also been blocked.
-
2.0.0-alpha25 Sep 2017 pre-releaseRelease notes
Open source →- Major refactoring of the
angular_routerpackage. For a migration guide fromangular_routerv1, see https://github.com/angulardart/angular/blob/master/doc/router/migration.md.
- Major refactoring of the
-
2.0.0-alpha+121 Nov 2017 pre-release -
2.0.0-alpha+219 Dec 2017 pre-release -
2.0.0-alpha+308 Jan 2018 pre-releaseRelease notes
Open source →New features
-
Added the
CanNavigatelifecycle interface. This is similar toCanDeactivate, and preferred when the nextRouterStateisn't necessary to determine whether the router may navigate. -
Added
reloadfield toNavigationParamswhich can be used to force navigation, even if the path and other navigation parameters are unchanged. -
Added
replacefield toNavigationParamswhich can be used to replace the current history entry on navigation instead of creating a new one.
Breaking changes
- Removed
hashCodeandoperator ==overrides fromRouteDefinitionandRouterState, as these can't be removed by tree-shaking.
Bug fixes
- Upon destruction,
RouterOutletwill now properly destroy all of its cached components, instead of only destroying the active one.
-
-
2.0.0-alpha+418 Jan 2018 pre-releaseRelease notes
Open source →Breaking changes
- Removed
SpyLocation.MockLocationStrategyshould be used instead.
Bug fixes
-
Prevented
canDeactivate()from being invoked twice during redirection. It will now only be invoked with the redirected next router state, without also being invoked with the intermediate next router state. -
Prevented
canNavigate()from being invoked twice during redirection.
- Removed
-
2.0.0-alpha+506 Feb 2018 pre-releaseRelease notes
Open source →New features
-
Added
Router.onNavigationStartto notify subscribers when a navigation request starts. -
Added the
routerProvidersTestmodule for testing route configurations or components with router dependencies.
Breaking changes
- Removed fuzzy arrow from
MockLocationStrategy. It relied on Dart 1's treatment of dynamic as bottom to mock handling ofpopstateevents without actually relying ondart:html. Since Angular must be tested in the browser anyways, there's no incentive to avoid this dependency. As a consequence, the signature ofMockLocationStrategy.onPopStateis now unchanged fromLocationStrategy.onPopState.
-
-
2.0.0-alpha+627 Feb 2018 pre-releaseRelease notes
Open source →New features
Router.onNavigationStartnow emits the requested navigation path.
-
2.0.0-alpha+707 Mar 2018 pre-releaseRelease notes
Open source →Breaking changes
-
RouterOutletis no longer injectable. -
Renamed
Router.streamtoRouter.onRouteActivated.Router.streamis now deprecated and will be removed after next release.
Bug fixes
RouterPath.toUrl()no longer generates an incorrect URL with an extra '/' when a parent route has an empty path.
-
-
2.0.0-alpha+816 Mar 2018 pre-release -
2.0.0-alpha+929 Mar 2018 pre-releaseRelease notes
Open source →Breaking changes
-
APP_BASE_HREFwas removed in favor ofappBaseHref. -
When navigating to and from the same implementation of
CanReuse, if it returns true, the implementation will remain attached to the DOM. Previously, components were unconditionally detached from the DOM on navigation, and reusable components would simply be reattached.This may be a change to the scroll behavior of your components, as temporarily removing reused components from the DOM could reset the scroll position if no other content was present.
Bug fixes
CanNavigate,CanDeactivate, andOnDeactivateshould now always be invoked on the active instance of a component rather than the instance created during route resolution. This previously could occur when navigating away and back to a nested route whose parent was not reusable.
-
-
2.0.0-alpha+1010 Apr 2018 pre-releaseRelease notes
Open source →Breaking changes
- The minimum SDK version is now
sdk: ">=2.0.0-dev.46.0 <2.0.0".
Bug fixes
- Router navigation requests are now queued to ensure they'll run sequentially in the order they were requested. Previously no attempt was made to synchronise navigation requests, and if multiple were made simultaneously they could run concurrently, interfere with each other, and potentially complete out of order.
- The minimum SDK version is now
-
2.0.0-alpha+1123 Apr 2018 pre-release -
2.0.0-alpha+1224 May 2018 pre-releaseRelease notes
Open source →Breaking changes
- Renamed the
platformStrategyfield ofLocationtolocationStrategy, since it's of typeLocationStrategy.
- Renamed the
-
2.0.0-alpha+1305 Jun 2018 pre-releaseRelease notes
Open source →New features
- Moved
normalizePath()from an internal type toLocationto give fine-grained control over path normalization.
Bug fixes
-
Fixed a regression where the
RouterLinkActivedirective would not activate for empty paths (including'/'). -
Fixed a bug where if a component threw an exception during routing the router would get in a perpetual bad state where it was impossible to route away or otherwise use the application.
- Moved
-
2.0.0-alpha+1415 Jun 2018 pre-releaseRelease notes
Open source →Bug fixes
-
Preserves
NavigationParamson redirection. -
Added
canNavigatetoRouterHook. -
Navigation will no longer succeed for an empty path if it doesn't match a route.
-
-
2.0.0-alpha+1529 Jun 2018 pre-releaseRelease notes
Open source →Breaking changes
- Removed component instance parameter from
RouterHook.canNavigate().
- Removed component instance parameter from
-
2.0.0-alpha+1616 Jul 2018 pre-release -
2.0.0-alpha+1719 Jul 2018 pre-releaseRelease notes
Open source →New features
RouteDefinition.redirectnow supports forwarding route parameters.
-
2.0.0-alpha+1802 Aug 2018 pre-releaseRelease notes
Open source →Bug fixes
HashLocationStrategyno longer drops query parameters (before the #) when pushing or replacing an empty URL.
-
2.0.0-alpha+1907 Aug 2018 pre-release -
2.0.0-alpha+2010 Oct 2018 pre-releaseRelease notes
Open source →Bug fixes
- Fixed a discrepancy between the href rendered by
RouterLinkDirective, and the browser location to which it would navigate upon being clicked when usingrouterProvidersHash.
- Fixed a discrepancy between the href rendered by
-
2.0.0-alpha+2110 Dec 2018 pre-release -
2.0.0-alpha+2205 Apr 2019 pre-releaseRelease notes
Open source →New features
-
RouteDefinition.defernow supports an optionalprefetcherparameter which can be defined to prefetch additional resources that are dependent on the matchedRouterState. -
The
RouteDefinitionsubclassesDeferredRouteDefinition,RedirectRouteDefinition, andComponentRouteDefinitionare now exported frompackage:angular_router/testing.dart.
Bug fixes
-
Deferred route loaders and prefetchers are no longer called a second time when matched during route resolution.
-
Navigation requests triggered by
popstateevents will now update the browser location if the resulting navigation matches a redirecting route or is transformed by aRouterHookimplementation.
-
-
2.0.0-alpha+2307 May 2019 pre-releaseRelease notes
Open source →Bug fixes
-
Navigation requests triggered by
popstateevents that redirect back to the active route will now correctly update the browser location to match the active route. Prior to this fix, the browser location would be left in the state changed by thepopstateevent. -
The history stack prior to the current entry is now preserved when preventing a navigation triggered by the back button. Previously, preventing such a navigation would erase the previous history entry, causing subsequent history manipulations to have unexpected results.
-
-
2.0.0-alpha+2425 Jul 2019 pre-release -
1.0.230 Aug 2017 -
1.0.124 Aug 2017 -
1.0.007 Aug 2017Release notes
Open source →- Initial commit of
angular_router. This is just a port of the router that was in the core angular package.
- Initial commit of