Releases: d4f/backbone-highway
Releases · d4f/backbone-highway
Release list
Add method to get current route
Just an alias to Backbone.history.getFragment()
import highway from 'backbone-highway'
// Declare routes ...
const currentRoute = highway.currentRoute()Promised routes \o/
Promised based execution flow control. Check the readme ;)
Fix lodash compatibility
Swapped usage of _.contains() by _.includes() to be compatible with underscore and lodash at the same time.
The new Highway!
Backbone.Highway has been entirely rewritten in ES2015. With that the API and functionnalities have changed in several breaking ways.
List of changes:
highway.start()method takes less options than beforehighway.go()method takes a single argument (string or object)highway.go()method does not support named parameters in theargsoption (for now)highway.route()method takes a single argument (object)highway.map()method has been removed- No
before/aftertriggers anymore, but a singleeventslist for each route - Client-side
403route has been removed (for now) - Private API is not exposed anymore
- Original
Backbone.Routerinstance is exposed viahighway.router
Fix deps
Named parameters
- Named parameters object passed to the
gomethod - Re-execute the current route with
forceoption - Better support for path routing
- Support for (very) complex route path declarations
- Bug fixes and unit tests
Second release candidate for 0.7.0
Added named params conversion to _parse method plus unit tests
0.7.0-rc1
First release candidate for the 0.7.0 version
A few enhancements
- Named parameters object passed to the
gomethod - Re-execute the current route with
forceoption - Better support for path routing
- Support for (very) complex route path declarations
Quite a few bug fixes aswell and more tests !
Dev release for 0.7.0
Added functionnality
- Named parameters passed to
gomethod
Fix optional trailing slash
Just a quick fix to the path parser to permit optional trailing slashes