PackageTrack
Sign in Get early access

angular_router

Router for AngularDart.

3.0.1 angulardart/angular

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 2021
2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 31
  1. 3.0.1 07 Oct 2021
    Release notes
    • Update README.md.
    Open source →
  2. 3.0.0 17 Sep 2021
    Release notes
    • Support null safety
    • Require Dart ^2.14.0
    Open source →
  3. 2.0.0 08 Oct 2020
    Release notes
    • Stable release.

    Bug fixes

    • Fixed a bug where MockLocationStrategy.back() returned the wrong URL after calling replaceState().

    • Blocking a navigation triggered by a location change will no longer throw a null error when all prior navigation requests have also been blocked.

    Open source →
  4. 2.0.0-alpha 25 Sep 2017 pre-release
    Release notes
    • Major refactoring of the angular_router package. For a migration guide from angular_router v1, see https://github.com/angulardart/angular/blob/master/doc/router/migration.md.
    Open source →
  5. 2.0.0-alpha+1 21 Nov 2017 pre-release
    Release notes
    • Support for angular 5.0.0-alpha+1
    Open source →
  6. 2.0.0-alpha+2 19 Dec 2017 pre-release
    Release notes
    • Fixed a bug where RouterLinkDirective was not keyboard accessible.
    Open source →
  7. 2.0.0-alpha+3 08 Jan 2018 pre-release
    Release notes

    New features

    • Added the CanNavigate lifecycle interface. This is similar to CanDeactivate, and preferred when the next RouterState isn't necessary to determine whether the router may navigate.

    • Added reload field to NavigationParams which can be used to force navigation, even if the path and other navigation parameters are unchanged.

    • Added replace field to NavigationParams which can be used to replace the current history entry on navigation instead of creating a new one.

    Breaking changes

    • Removed hashCode and operator == overrides from RouteDefinition and RouterState, as these can't be removed by tree-shaking.

    Bug fixes

    • Upon destruction, RouterOutlet will now properly destroy all of its cached components, instead of only destroying the active one.
    Open source →
  8. 2.0.0-alpha+4 18 Jan 2018 pre-release
    Release notes

    Breaking changes

    • Removed SpyLocation. MockLocationStrategy should 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.

    Open source →
  9. 2.0.0-alpha+5 06 Feb 2018 pre-release
    Release notes

    New features

    • Added Router.onNavigationStart to notify subscribers when a navigation request starts.

    • Added the routerProvidersTest module 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 of popstate events without actually relying on dart:html. Since Angular must be tested in the browser anyways, there's no incentive to avoid this dependency. As a consequence, the signature of MockLocationStrategy.onPopState is now unchanged from LocationStrategy.onPopState.
    Open source →
  10. 2.0.0-alpha+6 27 Feb 2018 pre-release
    Release notes

    New features

    • Router.onNavigationStart now emits the requested navigation path.
    Open source →
  11. 2.0.0-alpha+7 07 Mar 2018 pre-release
    Release notes

    Breaking changes

    • RouterOutlet is no longer injectable.

    • Renamed Router.stream to Router.onRouteActivated. Router.stream is 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.
    Open source →
  12. 2.0.0-alpha+8 16 Mar 2018 pre-release
    Release notes

    Breaking changes

    • APP_BASE_HREF is being renamed appBaseHref.
    Open source →
  13. 2.0.0-alpha+9 29 Mar 2018 pre-release
    Release notes

    Breaking changes

    • APP_BASE_HREF was removed in favor of appBaseHref.

    • 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, and OnDeactivate should 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.
    Open source →
  14. 2.0.0-alpha+10 10 Apr 2018 pre-release
    Release notes

    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.
    Open source →
  15. 2.0.0-alpha+11 23 Apr 2018 pre-release
    Release notes

    New features

    • Added the method navigateByUrl to Router.
    Open source →
  16. 2.0.0-alpha+12 24 May 2018 pre-release
    Release notes

    Breaking changes

    • Renamed the platformStrategy field of Location to locationStrategy, since it's of type LocationStrategy.
    Open source →
  17. 2.0.0-alpha+13 05 Jun 2018 pre-release
    Release notes

    New features

    • Moved normalizePath() from an internal type to Location to give fine-grained control over path normalization.

    Bug fixes

    • Fixed a regression where the RouterLinkActive directive 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.

    Open source →
  18. 2.0.0-alpha+14 15 Jun 2018 pre-release
    Release notes

    Bug fixes

    • Preserves NavigationParams on redirection.

    • Added canNavigate to RouterHook.

    • Navigation will no longer succeed for an empty path if it doesn't match a route.

    Open source →
  19. 2.0.0-alpha+15 29 Jun 2018 pre-release
    Release notes

    Breaking changes

    • Removed component instance parameter from RouterHook.canNavigate().
    Open source →
  20. 2.0.0-alpha+16 16 Jul 2018 pre-release
    Release notes
    • Maintenance release; declare official support for the Dart2 SDK.
    Open source →
  21. 2.0.0-alpha+17 19 Jul 2018 pre-release
    Release notes

    New features

    • RouteDefinition.redirect now supports forwarding route parameters.
    Open source →
  22. 2.0.0-alpha+18 02 Aug 2018 pre-release
    Release notes

    Bug fixes

    • HashLocationStrategy no longer drops query parameters (before the #) when pushing or replacing an empty URL.
    Open source →
  23. 2.0.0-alpha+19 07 Aug 2018 pre-release
    Release notes
    • Maintenance release to support Angular 5.0.
    Open source →
  24. 2.0.0-alpha+20 10 Oct 2018 pre-release
    Release notes

    Bug fixes

    • Fixed a discrepancy between the href rendered by RouterLinkDirective, and the browser location to which it would navigate upon being clicked when using routerProvidersHash.
    Open source →
  25. 2.0.0-alpha+21 10 Dec 2018 pre-release
    Release notes
    • Maintenance release to support Angular 5.2.
    Open source →
  26. 2.0.0-alpha+22 05 Apr 2019 pre-release
    Release notes

    New features

    • RouteDefinition.defer now supports an optional prefetcher parameter which can be defined to prefetch additional resources that are dependent on the matched RouterState.

    • The RouteDefinition subclasses DeferredRouteDefinition, RedirectRouteDefinition, and ComponentRouteDefinition are now exported from package: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 popstate events will now update the browser location if the resulting navigation matches a redirecting route or is transformed by a RouterHook implementation.

    Open source →
  27. 2.0.0-alpha+23 07 May 2019 pre-release
    Release notes

    Bug fixes

    • Navigation requests triggered by popstate events 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 the popstate event.

    • 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.

    Open source →
  28. 2.0.0-alpha+24 25 Jul 2019 pre-release
    Release notes
    • Maintenance release to support Angular 6.0-alpha+1.
    Open source →
  29. 1.0.2 30 Aug 2017
    Release notes
    • Support for angular 4.0.0.
    Open source →
  30. 1.0.1 24 Aug 2017
    Release notes
    • Minor internal changes to support angular 4.0.0-beta
    Open source →
  31. 1.0.0 07 Aug 2017
    Release notes
    • Initial commit of angular_router. This is just a port of the router that was in the core angular package.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive