Skip to content

Releases: ayamflow/vue-route

v.1.5.0

26 Jun 16:49
Compare
Choose a tag to compare

This release makes the transition with Vue.js version 0.12 and superior.

  • Fix #25 (compatibility with Vue v0.12+)
  • Move tests from tape to prova

v1.4.4

21 Mar 21:44
Compare
Choose a tag to compare
  • Fix #20
  • Add note about subviews/subroutes - should be in userland

v1.4.3

10 Mar 21:10
Compare
Choose a tag to compare
  • Prevent the original data from a route declaration to be overwritten
  • Properly update a component's $data with keep-alive (#18)
  • Add documentation about IE9/History polyfill
  • Add documentation about the $routeParams object (#17);
  • Recreate oldLocation and location (instead of updating their props) to avoid "reference traps" in userland.

1.4.2

06 Jan 18:10
Compare
Choose a tag to compare
  • Fix component.json
  • Enhance the README.md

1.4.1

21 Dec 12:46
Compare
Choose a tag to compare

Merge #12 and #14.

1.4.0

10 Dec 14:23
Compare
Choose a tag to compare
  • Minor rewrite: turn the beforeUpdate param into a middleware:

beforeUpdate(location, oldLocation, next)

You have to call next in order to continue the routing. This allows to prevent the return if needed.
If no beforeUpdate param is provided, next is automatically called.

All events emitted by the router are now asynchronous.

Fix #10.

1.3.3

09 Dec 18:59
Compare
Choose a tag to compare

New feature: data object.

You can now pass an additional object of static parameters for each route. This object will be merged with the vm's $data$ when the according route is matched. This is useful for passing static parameters to a same component existing in different routes, for instance. See the documentation's example.

Fix #4, #7. Merge #5, #6, #8.

1.2.1

09 Dec 13:20
Compare
Choose a tag to compare

Fix #4.

1.2.0

04 Dec 21:41
Compare
Choose a tag to compare

Structural rewrite.

Add Vue.navigate(path) method to manually trigger a page change.
Directly extends v-component for a cleaner and more concise code, meaning that v-transition, transition-mode, wait-for and keep-alive work.

The routes hash now takes an additional options object allowing to pass some config properties:

  • debug (boolean, defaults false) enable/disable the directive logs
  • broadcast (boolean, defaults false) enable/disable $broadcast for routing events (instead of $emit)
  • base (string, default '/') the base to use for the routing
  • click (boolean, defaults true) enable/disable automatic binding on all click
  • hashbang (boolean, defaults false) enable/disable hashbangs