cherrytree
Advanced tools
Comparing version 2.0.0-alpha.10 to 2.0.0-alpha.11
@@ -0,1 +1,5 @@ | ||
### v2.0.0-alpha.11 | ||
* Add `transition.redirectTo` so that middleware could initiate redirects without having the router | ||
### v2.0.0-alpha.10 | ||
@@ -2,0 +6,0 @@ |
@@ -65,2 +65,5 @@ 'use strict'; | ||
query: query, | ||
redirectTo: function redirectTo() { | ||
return router.transitionTo.apply(router, arguments); | ||
}, | ||
retry: function retry() { | ||
@@ -103,2 +106,3 @@ return router.transitionTo(path); | ||
}, | ||
then: promise.then.bind(promise), | ||
@@ -105,0 +109,0 @@ 'catch': promise['catch'].bind(promise) |
{ | ||
"name": "cherrytree", | ||
"version": "2.0.0-alpha.10", | ||
"version": "2.0.0-alpha.11", | ||
"description": "Cherrytree - a flexible hierarchical client side router", | ||
@@ -5,0 +5,0 @@ "main": "index", |
@@ -5,3 +5,3 @@ # Cherrytree | ||
Cherrytree is a flexible hierarchical client side router. Cherrytree translates each URL change to a transition object and applies your middleware functions that translate the transition data into the desired state of your application. | ||
Cherrytree is a flexible hierarchical router. Cherrytree translates each URL change to a transition object and applies your middleware functions that translate the transition data into the desired state of your application. | ||
@@ -13,2 +13,4 @@ | ||
**IMPORTANT!** - to get the latest (alpha) version, atm you need to use the `@latest` tag. There are a couple of small API tweaks I want to make before I release the 2.0.0 stable. | ||
$ npm install --save cherrytree@latest | ||
@@ -103,10 +105,15 @@ | ||
You can clone this repo if you want to run the `examples` locally. Currently the examples are | ||
You can clone this repo if you want to run the `examples` locally. Currently the examples are: | ||
* [hello-world](examples/hello-world) - a single file example of how to get started | ||
* [hello-world-react](examples/hello-world-react) - a small example of how to get started | ||
* [hello-world-jquery](examples/hello-world-jquery) - a single file example of how to get started | ||
* [cherry-pick](examples/cherry-pick) - a mini GitHub clone written in React.js | ||
* [vanilla-blog](examples/vanilla-blog) - a simple static demo of blog like app that uses no framework | ||
* [server-side-react](examples/server-side-react) - a simple server side express app using cherrytree for routing and react for rendering | ||
* [vanilla-blog](examples/vanilla-blog) - a small static demo of blog like app that uses no framework | ||
* [server-side-react](examples/server-side-react) - a server side express app using cherrytree for routing and react for rendering | ||
There is also an example in a separate repo: | ||
* [cherrytree-redux-react-example](https://github.com/KidkArolis/cherrytree-redux-react-example) - a more modern stack - redux + react + react-hot-loader + cherrytree-for-react | ||
# Features | ||
@@ -245,2 +252,3 @@ | ||
* `followRedirects` | ||
* `redirectTo` | ||
@@ -247,0 +255,0 @@ #### route |
Sorry, the diff of this file is too big to display
240933
6653
374