- [#417] Updates to routr 2.0.0.
getRoute
will nowdecodeURIComponent
route values, you might need to removedecodeURIComponent
from your route actions if you were supporting extended characters manually in your routes.
- [#414] Send correct payload to NAVIGATE_FAILURE
- [#413] Support query in navigateAction when not using full URL
- [#412] Fixed style property in NavLink when inactive
See the upgrade guide
- Default
activeClass
prop has been removed route
object no longer containsnavigate
key.navigate
can be accessed viarouteStore.getCurrentNavigate()
NAVIGATE_SUCCESS
andNAVIGATE_FAILURE
payloads are now thenavigate
object which contains aroute
key to access the current route.
- Performance improvements:
**
NavLink
will only listen to theRouteStore
if anactive*
property is used. **NavLink
will no longer compute active state on all prop/state changes, only whencurrentRoute
orprop
has changed. - [#397] NavLink now supports query parameters via the
queryParams
property
- [#396] Add
navigate={true}
property that will check if a route matches before executingnavigateAction
. This is useful if you are rendering a NavLink with an href that you are unsure of whether it is an internal or external route. (thanks @hfter789)
- [#390] Support for React 15
- [#394] Allow ignoring popstate event on page load
- [#392] Fix stopPropagation not working with modified key presses
- [#387] Allow
followLink
functionality to be modified bycreateNavLinkComponent
spec argument
- [#378] Allow stateless functional components to be wrapped with higher-order components
- [#368] Always update currentRoute regardless if the routes match (kaesonho)
- [#367] Always set _currentNavigate regardless if the routes match (gfranko)
- [#360] Allow navParams to be overwritten by overwriteSpec (snyamathi)
- [#354] currentRoute is no longer immutable (gingur)
- [#348] Added getRoute(url, options) to RouteStore (kfay)
Deprecated, published package was corrupted
- [#107] Fix "nav.params is not an object" error (geta6)
- [#102] Immutable.js dependency has been removed to reduce k-weight
- [#103] Navigation uses transaction IDs to ensure correct handling of success/failure
- [#104] Router instance with static routes is reused between requests
- [#99] Fix rehydrate store for POST routes (andersonba)
- [#97] Add handling for pre-render popstate events
- Upgraded to React 0.14, breaking compatibility with older versions of React
- Removed dependency on
Object.assign
library, must be polyfilled
- [#69] Add NavLink
activeElement
option to use another element type for active state
- Higher-order components can now be used as decorators
- Now requires Fluxible@>=0.5.x
First version.