Releases: aurelia/router
Releases · aurelia/router
aurelia-router v0.14.1
aurelia-router v0.14.0
Bug Fixes
- all: update to use viewModel terminology internally (f01282b6)
- navigation-instruction: remove references to previous instructions after navigation is committed (7fa6e0b9, closes #207)
- router:
- updateTitle: use private method name (9ea95ac7)
Features
- all: fill in doc comments and rename private APIs (57257adf)
- router:
Breaking Changes
- * Pipeline steps now receive the NavigationInstruction instead of the NavigationContext. Pipeline steps should use
instruction.getAllInstructions()
andinstruction.getAllPreviousInstructions()
instead ofcontext.nextInstructions
andcontext.currentInstructions
, respectively, to inspect current and previous instructions.
*Semantics have changed in names such as "prevInstruction" such that "current" refers to the current navigation, and "previous" refers to the previous navigation. Currently, "next" referred to the current navigation, and "current" and "previous" both referred to the previous navigation.
(a6f47887)
- Unknown route handlers must now return the moduleId or route config instead of mutating
instruction.config
.
Fixes #234
(4aa9bc9e)
-
calling
router.handleUnknownRoutes()
with no arguments will no longer cause the router to apply conventional routing. This logic must now be provided by the application.(5a80996a)
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 ([1f023a1](http://github.com/aurelia/router/commit/1f023a1614b85782f1840c57005c3fd85e29...
aurelia-router v0.12.0
aurelia-router v0.11.0
Bug Fixes
- router: Use correct import for core-js We were previously using `import core from core-j (a4dba7bd)
Features
- docs:
- navigation-plan: enable configuring the activationStrategy on the route config instead of the vie (edf87ad9)
- route-loading: pass additional context data to the route loader (5ac66a30)
- router: add ensureConfigured method (14ec352c)
Breaking Changes
-
This is a minor breaking change to any code inspecting instruction pipeline status. To update, change uses of the property or string value
cancelled
tocanceled
.(dcecd013)
aurelia-router v0.10.4
Bug Fixes
- app-router: previously assumed very specific component structure (df9d089a)
aurelia-router v0.10.3
aurelia-router v0.10.2
Improvements to the d.ts files.