Skip to content

Releases: aurelia/router

aurelia-router v0.14.1

15 Nov 19:29
Compare
Choose a tag to compare

Bug Fixes

aurelia-router v0.14.0

10 Nov 13:52
Compare
Choose a tag to compare

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:
    • make router.refreshNavigation() public (331bd514)
    • Fix bug where previous nav models were not deactivated in child routers (ef0aa0e6)
    • fix typo in doc comment (c13abf5d)
    • fix up type annotations and private properties (a96ed779)
    • make configure slightly more resilient (fff97eb2)
  • updateTitle: use private method name (9ea95ac7)

Features

  • all: fill in doc comments and rename private APIs (57257adf)
  • router:
    • remove router.reset() (fa4e412b)
    • improve support for unknown route handlers (4aa9bc9e, closes #234)
    • don't automatically use conventional routing when no unknown handler is specifie (5a80996a)

Breaking Changes

  • * Pipeline steps now receive the NavigationInstruction instead of the NavigationContext. Pipeline steps should use instruction.getAllInstructions() and instruction.getAllPreviousInstructions() instead of context.nextInstructions and context.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

13 Oct 08:11
Compare
Choose a tag to compare

Bug Fixes

  • all:
    • update executionContext to bindingContext (236db1db)
    • update compiler, core-js and pipeline (f86d6dbc)
  • 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:
    • update linting, testing and tools (2203b887)
    • add missing bower bump (8fab77de)
  • 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:
    • change jspm directories (bb51cacb)
    • update dependencies (01e5adac)
    • update deps and fix bower semver ranges (35b65594)
    • update dependencies (3c143634)
    • update Aurelia dependencies (3e8dac3d)
    • update dependencies to latest versions (87391cc4)
    • added missing es6-shim polyfill (8d295197)
  • pipeline: fix bug preventing errors in pipeline steps from being handled (6ee2eb87, closes #85)
  • route-loading:
    • fix typo in error message (6a623111)
    • prevent infinite loading with referenced routers (943c02ba)
    • use correct rejection callback (74799a2e)
  • 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...
Read more

aurelia-router v0.12.0

04 Sep 20:59
Compare
Choose a tag to compare

Bug Fixes

  • all: update executionContext to bindingContext (236db1db)
  • build: update linting, testing and tools (2203b887)
  • navigation-commands: parameter options in constructor of Redirect class is optional (b43af880)
  • router:
    • reset configuration promise in reset() (a65100e9, closes #189)
    • check if href property in route table exists in refreshNavigation (d624152d)

Features

  • docs: generate api.json from .d.ts file (80b2a132)

aurelia-router v0.11.0

14 Aug 07:09
Compare
Choose a tag to compare

Bug Fixes

  • router: Use correct import for core-js We were previously using `import core from core-j (a4dba7bd)

Features

  • docs:
    • generate api.json from .d.ts file (070c9a17)
    • generate api.json from .d.ts file (a9650133)
  • 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 to canceled.

    (dcecd013)

aurelia-router v0.10.4

05 Aug 04:29
Compare
Choose a tag to compare

Bug Fixes

  • app-router: previously assumed very specific component structure (df9d089a)

aurelia-router v0.10.3

30 Jul 00:44
Compare
Choose a tag to compare

Bug Fixes

  • route-loading: fix typo in error message (6a623111)
  • test: incorrect import statements in specs (33cf4bae)

aurelia-router v0.10.2

13 Jul 18:58
Compare
Choose a tag to compare

Improvements to the d.ts files.

aurelia-router v0.10.1

07 Jul 15:58
Compare
Choose a tag to compare

Bug Fixes

  • app-router: log navigation errors before attempting to restore previous location (5c8ee83d)
  • router: clarify error message when generating unknown route (9d0dcd0c)
  • d.ts: add more types

aurelia-router v0.10.0

02 Jul 06:13
Compare
Choose a tag to compare

Bug Fixes

  • router:
    • 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)

Features

  • app-router: refactor navigation events to be more consistent (90358136, closes #97)
  • router:
    • 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)

Breaking Changes

  • This changes the names and arguments of the events published by the router during navigation.

fixes #97

(90358136)