Skip to content

Commit

Permalink
release v0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanflorence committed Feb 10, 2015
1 parent ac221e6 commit c050095
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 6 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
v0.12.0 - Tue, 10 Feb 2015 20:12:42 GMT
---------------------------------------

- [cd2087d](../../commit/cd2087d) [added] default handler to routes
- [848361e](../../commit/848361e) [fixed] Clean up mounted route component on unmount so we don't leak references
- [5bcf653](../../commit/5bcf653) [fixed] Double slash in href when parent route has optional trailing slash
- [26cb7d1](../../commit/26cb7d1) [added] node_modules to gitignore
- [e280efd](../../commit/e280efd) [changed] Don't restore scroll position on Forward
- [20c2c9b](../../commit/20c2c9b) [fixed] Do not decode + in pathname
- [fe5ec39](../../commit/fe5ec39) [fixed] Double-encoding of query strings
- [df38294](../../commit/df38294) [fixed] Allow comments in JSX config
- [84056ba](../../commit/84056ba) [fixed] Ignore falsy routes
- [81c7a57](../../commit/81c7a57) [changed] Removed "modules" directory
- [4a770e8](../../commit/4a770e8) [fixed] Using TestLocation without DOM
- [e24cf0f](../../commit/e24cf0f) Revert "[fixed] Path.withQuery strips query if query is empty"
- [2ac2510](../../commit/2ac2510) [added] router.replaceRoutes(children)
- [1f81286](../../commit/1f81286) [fixed] Ignore stale transitions
- [c6ed6fa](../../commit/c6ed6fa) [removed] transition.wait, use callbacks instead
- [75c6206](../../commit/75c6206) [added] router.stop()
- [4e96256](../../commit/4e96256) [fixed] Preserve original query with HashLocation
- [2f19e63](../../commit/2f19e63) [changed] Bump qs dependency version
- [b98f5a1](../../commit/b98f5a1) [changed] Use webpack instead of Browserify
- [94dc231](../../commit/94dc231) [changed] Run the examples with `npm run examples`
- [0862ea2](../../commit/0862ea2) [fixed] Path.withQuery strips query if query is empty


v0.11.6 - Wed, 17 Dec 2014 19:29:53 GMT
---------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router",
"version": "0.11.6",
"version": "0.12.0",
"homepage": "https://github.com/rackt/react-router",
"authors": [
"Ryan Florence",
Expand Down
16 changes: 14 additions & 2 deletions dist/react-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ return /******/ (function(modules) { // webpackBootstrap
var React = __webpack_require__(18);
var Configuration = __webpack_require__(19);
var PropTypes = __webpack_require__(20);

var RouteHandler = __webpack_require__(6);
/**
* <Route> components specify components that are rendered to the page when the
* URL matches a given pattern.
Expand Down Expand Up @@ -332,6 +332,8 @@ return /******/ (function(modules) { // webpackBootstrap
* );
* }
* });
*
* If no handler is provided for the route, it will render a matched child route.
*/
var Route = React.createClass({

Expand All @@ -342,8 +344,14 @@ return /******/ (function(modules) { // webpackBootstrap
propTypes: {
name: PropTypes.string,
path: PropTypes.string,
handler: PropTypes.func.isRequired,
handler: PropTypes.func,
ignoreScrollBehavior: PropTypes.bool
},

getDefaultProps: function(){
return {
handler: RouteHandler
};
}

});
Expand Down Expand Up @@ -836,6 +844,10 @@ return /******/ (function(modules) { // webpackBootstrap
this._updateRouteComponent();
},

componentWillUnmount: function () {
this.context.setRouteComponentAtDepth(this.getRouteDepth(), null);
},

_updateRouteComponent: function () {
this.context.setRouteComponentAtDepth(this.getRouteDepth(), this.refs[REF_NAME]);
},
Expand Down
Loading

0 comments on commit c050095

Please sign in to comment.