- Update packages.
- Added
leadingslash
option. - Export
defaultState
andreducer
props.
- Rewrite tests to use jest. Some code cleanup to make it slightly more useful on a server.
- Reducer saves pattern string as
pattern
and selector saves Pattern() atpatternUrl
.
getInitState()
can accept an array of actions or an object of route like details. SeeinitState.spec.js
.
getInitState()
updateRoute()
action.- Code cleanup.
getHref()
selector allows sending state and props, returns href string.routeInfoSelector()
get and combine route info from a history object.
- Embrace redux.
- Move towards using a Redux style architecture.
2016-02-17
- Allow sending options as fourth argument to
addRoute(routeId, path, props, options)
that gets sent tonew Pattern(path, options)
.
2016-02-16
- Forgot to update
lodash
to 4.4.0. Sorry about that.
2016-02-16
locationInfo()
now returns the route withlocation
attached to it as a property. What wasrouteId
is now justid
.- If you want to parse the search sting you must pass a
parseSearch
function in options. No longer depends onquery-string
. pathInfo()
returns an empty object if there is no match.
2016-02-09
createRouter({ trailingSlash = true })
now accepts options.trailingSlash
false will create id only routes like/foo
instead of the default/foo/
.addRoutes
now accepts array in addition to object.
2016-02-08
- Added
index
property to route. Clearly states route match priority. - Transition away from
makeRoute
toaddRoute
. Aliased for now. - Added
deleteRoute(id)
method. - Added
size()
method.
2016-02-07
- No longer strip the
#
from the hash.getHash
becamestripHash
util function. - Added
makeRoutes({ author: '/author(/:author)' })
- Added a couple tests.
Initial Release