aurelia-router v0.13.0
Bug Fixes
- all:
- app-router:
- previously assumed very specific component structure (df9d089a)
- log navigation errors before attempting to restore previous location (5c8ee83d)
- handle non-promise return values from configureRouter (f2709d60)
- throw a more helpful error when a pipeline step fails to return a result (0f1eda20)
- catch pipeline processing errors (36f20a6e)
- bower: bad version number (42c065a3)
- build:
- es6: removed the custom extend helper in place of Object.assign (308855d4)
- interfaces: add settings property to route config interface (3e8355f5, closes #208)
- navigation: route config href was not used in router.navigation (ea60eef9)
- navigation-command: add explicit interface for commands interested in child routers (1e1c4d3b)
- navigation-commands: parameter options in constructor of Redirect class is optional (b43af880)
- navigation-context: navigation result not returned (2890bfde)
- navigation-instruction: query string causes error in child routers (e4c6e688, closes #106)
- navigation-plan: handle redirects in child router configs (52349014, closes #103)
- package:
- pipeline: fix bug preventing errors in pipeline steps from being handled (6ee2eb87, closes #85)
- route-loading:
- router:
- promise missing type param (289cfdf9)
- properly handle async router configurations (ada26d31, closes #213)
- reset configuration promise in reset() (a65100e9, closes #189)
- check if href property in route table exists in refreshNavigation (d624152d)
- Use correct import for core-js We were previously using `import core from core-j (a4dba7bd)
- clarify error message when generating unknown route (9d0dcd0c)
- a route with path '/' breaks handleUnknownRoutes (adf30dc6, closes #116)
- use replaceState when restoring previous locations following nav errors (55196072)
- include querystring when restoring previous router location (2183ab24)
- fix problems with absolute path normalization (b49d2ddd, closes #111)
- considering wildcard when comparing route parameter values and using strict equa (f809626a)
- incorrectly comparing routes parameter values in navigation plan (7c962066)
- handle navigating to the empty string in a child router (8f0b8fdc, closes #99)
- export NavigationContext (1bc53fd6)
- correctly handle absolute URLs when navigating (df1633cd, closes #92)
- using navigationStrategy throws a validation error (80eb22f0)
- regression in redirect due to incorrect route config validation (f12af2e3)
- add basic route config validation (87741b2c)
- require dynamic routes to specify href when adding to navigation (c95be190, closes #59)
- do not interpret as child router if not configured (18e52d85, closes #34)
- canActivate = false doesn't change back route (80b219cc)
- link click handler not triggering when clicking on a nested element inside an an (a08ee477)
- url fragments duplicated on subsequent navigations between routes when using pus (021e7410)
- get queryParams route-recognizer results (37308a6d)
- export navigation strategies (b1959c71)
- do not add routes with nav=false (2cda7eb8)
- per-route view data added (48cd118d)
- enable async configureRouter for app-level router (576b869f)
- correct push state href generation (9116d50e)
- add missing config data for dynamic routing scenarios (fca4ad57)
- empty paths for unknown routes now match (fda55889)
- switch router to using path lib (a89f4289)
- shouldContinue: typo change value to output (1f023a16)
- test: incorrect import statements in specs (33cf4bae)
- tests: fix typo in test description (f09f1c7b)
Features
- NavigationInstruction: merge params and queryParams into a single argument to activate and canActivate (8aecba85, closes #74)
- activation: remove support for string affirmations from activation (48182863)
- all:
- app-router: refactor navigation events to be more consistent (90358136, closes #97)
- build: update compile, switch to register modules, switch to core-js (ce6abe32)
- docs:
- nav-model: allow title to be set at any time by an active navModel (5ac335d2, closes #69)
- navigation-context: custom error for missing router-views (383bd22e)
- navigation-instruction:
- navigation-plan:
- redirect: enable redirect from the app router by option (4d1a7ea8, closes #51)
- route-loading:
- router:
- add ensureConfigured method (14ec352c)
- restore previous location after exceeding max nav attempts (2e03ca04)
- use aurelia/logging for error logging (5f378c1a)
- fail navigations after attempting to execute more than 10 instructions (a1b1c43e, closes #84)
- add navModel.setTitle method (2cff0e10)
- per route config customization of the navigation instruction (7abf47d1)
- add convenience method for navigating to a named route (9053fc23)
- support navigating to absolute paths (a017edee)
- add methods for checking if a router has a named route (aa465649)
- support generating absolute paths (aa78cc3d)
- delegate to parent when asked to generate an unknown route (9dd556ff)
- add lifecycle events (4c2839d1)
- Add a precommit extension point to the pipeline (8f11bfd9)
- add support for named pipelines (7e9f1c71, closes #26)
- enable dedicated user setting for route config (9cc337d0, closes #23)
- delayed view loading and post-activate view strategies (e0e991b0)
- enable asynchronous router configuration (4c6543c7)
- router-configuration:
Breaking Changes
-
Activation code returning string values to abort
activation will need to perform their own comparison and return a
boolean(48182863)
-
This is a minor breaking change to any code inspecting instruction pipeline status. To update, change uses of the property or string value
cancelledtocanceled.(dcecd013)
-
This changes the names and arguments of the events published by the router during navigation.
fixes #97
(90358136)
-
Parent params are no longer available via the
$parentproperty. Parent params can be accessed vianavigationInstruction.parentInstruction.params. Injected*childRouteparam is no longer available on the params object passed toactivate().(1f274186)
-
This is a breaking API change that replace router's NO_CHANGE, REPLACE, and INVOKE_LIFECYCLE constants with an activationStrategy object with noChange, replace, and invokeLifecycle properties.
(7f10f215)
-
This is a breaking API change to the
activateandcanActivateview model callbacks. The first two arguments representing route params and query params have been merged into a single object. The signature is nowactivate(params, config, navigationInstruction).
fixes #74
(8aecba85)