Skip to content

Commit c050095

Browse files
committed
release v0.12.0
1 parent ac221e6 commit c050095

File tree

5 files changed

+44
-6
lines changed

5 files changed

+44
-6
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
v0.12.0 - Tue, 10 Feb 2015 20:12:42 GMT
2+
---------------------------------------
3+
4+
- [cd2087d](../../commit/cd2087d) [added] default handler to routes
5+
- [848361e](../../commit/848361e) [fixed] Clean up mounted route component on unmount so we don't leak references
6+
- [5bcf653](../../commit/5bcf653) [fixed] Double slash in href when parent route has optional trailing slash
7+
- [26cb7d1](../../commit/26cb7d1) [added] node_modules to gitignore
8+
- [e280efd](../../commit/e280efd) [changed] Don't restore scroll position on Forward
9+
- [20c2c9b](../../commit/20c2c9b) [fixed] Do not decode + in pathname
10+
- [fe5ec39](../../commit/fe5ec39) [fixed] Double-encoding of query strings
11+
- [df38294](../../commit/df38294) [fixed] Allow comments in JSX config
12+
- [84056ba](../../commit/84056ba) [fixed] Ignore falsy routes
13+
- [81c7a57](../../commit/81c7a57) [changed] Removed "modules" directory
14+
- [4a770e8](../../commit/4a770e8) [fixed] Using TestLocation without DOM
15+
- [e24cf0f](../../commit/e24cf0f) Revert "[fixed] Path.withQuery strips query if query is empty"
16+
- [2ac2510](../../commit/2ac2510) [added] router.replaceRoutes(children)
17+
- [1f81286](../../commit/1f81286) [fixed] Ignore stale transitions
18+
- [c6ed6fa](../../commit/c6ed6fa) [removed] transition.wait, use callbacks instead
19+
- [75c6206](../../commit/75c6206) [added] router.stop()
20+
- [4e96256](../../commit/4e96256) [fixed] Preserve original query with HashLocation
21+
- [2f19e63](../../commit/2f19e63) [changed] Bump qs dependency version
22+
- [b98f5a1](../../commit/b98f5a1) [changed] Use webpack instead of Browserify
23+
- [94dc231](../../commit/94dc231) [changed] Run the examples with `npm run examples`
24+
- [0862ea2](../../commit/0862ea2) [fixed] Path.withQuery strips query if query is empty
25+
26+
127
v0.11.6 - Wed, 17 Dec 2014 19:29:53 GMT
228
---------------------------------------
329

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router",
3-
"version": "0.11.6",
3+
"version": "0.12.0",
44
"homepage": "https://github.com/rackt/react-router",
55
"authors": [
66
"Ryan Florence",

dist/react-router.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ return /******/ (function(modules) { // webpackBootstrap
294294
var React = __webpack_require__(18);
295295
var Configuration = __webpack_require__(19);
296296
var PropTypes = __webpack_require__(20);
297-
297+
var RouteHandler = __webpack_require__(6);
298298
/**
299299
* <Route> components specify components that are rendered to the page when the
300300
* URL matches a given pattern.
@@ -332,6 +332,8 @@ return /******/ (function(modules) { // webpackBootstrap
332332
* );
333333
* }
334334
* });
335+
*
336+
* If no handler is provided for the route, it will render a matched child route.
335337
*/
336338
var Route = React.createClass({
337339

@@ -342,8 +344,14 @@ return /******/ (function(modules) { // webpackBootstrap
342344
propTypes: {
343345
name: PropTypes.string,
344346
path: PropTypes.string,
345-
handler: PropTypes.func.isRequired,
347+
handler: PropTypes.func,
346348
ignoreScrollBehavior: PropTypes.bool
349+
},
350+
351+
getDefaultProps: function(){
352+
return {
353+
handler: RouteHandler
354+
};
347355
}
348356

349357
});
@@ -836,6 +844,10 @@ return /******/ (function(modules) { // webpackBootstrap
836844
this._updateRouteComponent();
837845
},
838846

847+
componentWillUnmount: function () {
848+
this.context.setRouteComponentAtDepth(this.getRouteDepth(), null);
849+
},
850+
839851
_updateRouteComponent: function () {
840852
this.context.setRouteComponentAtDepth(this.getRouteDepth(), this.refs[REF_NAME]);
841853
},

0 commit comments

Comments
 (0)