Skip to content

Commit f573591

Browse files
committed
release v0.4.1
1 parent 8152d67 commit f573591

File tree

5 files changed

+20
-10
lines changed

5 files changed

+20
-10
lines changed

CHANGELOG

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
v0.4.1
2+
Thu, 24 Jul 2014 21:35:07 GMT
3+
4+
8152d67 [changed] repo location to rackt/react-router
5+
0ac4dea [removed] Dependency on react/lib/emptyFunction
6+
7+
18
v0.4.0
29
Thu, 24 Jul 2014 19:41:04 GMT
310

bower.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"homepage": "https://github.com/rackt/react-router",
55
"authors": [
66
"Ryan Florence",
@@ -26,4 +26,4 @@
2626
"package.json",
2727
"webpack.config.js"
2828
]
29-
}
29+
}

dist/react-router.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ module.exports = Link;
160160
var React = (typeof window !== "undefined" ? window.React : typeof global !== "undefined" ? global.React : null);
161161
var warning = _dereq_('react/lib/warning');
162162
var invariant = _dereq_('react/lib/invariant');
163-
var emptyFunction = _dereq_('react/lib/emptyFunction');
164163
var ExecutionEnvironment = _dereq_('react/lib/ExecutionEnvironment');
165164
var mergeProperties = _dereq_('../helpers/mergeProperties');
166165
var goBack = _dereq_('../helpers/goBack');
@@ -604,7 +603,7 @@ function computeHandlerProps(matches, query) {
604603
key: null,
605604
params: null,
606605
query: null,
607-
activeRouteHandler: emptyFunction.thatReturnsNull
606+
activeRouteHandler: returnNull
608607
};
609608

610609
var childHandler;
@@ -621,7 +620,7 @@ function computeHandlerProps(matches, query) {
621620
if (childHandler) {
622621
props.activeRouteHandler = childHandler;
623622
} else {
624-
props.activeRouteHandler = emptyFunction.thatReturnsNull;
623+
props.activeRouteHandler = returnNull;
625624
}
626625

627626
childHandler = function (props, addedProps) {
@@ -635,13 +634,17 @@ function computeHandlerProps(matches, query) {
635634
return props;
636635
}
637636

637+
function returnNull() {
638+
return null;
639+
}
640+
638641
function reversedArray(array) {
639642
return array.slice(0).reverse();
640643
}
641644

642645
module.exports = Route;
643646

644-
},{"../helpers/Path":4,"../helpers/goBack":6,"../helpers/mergeProperties":9,"../helpers/replaceWith":10,"../helpers/transitionTo":11,"../helpers/withoutProperties":12,"../stores/ActiveStore":15,"../stores/RouteStore":16,"../stores/URLStore":17,"es6-promise":21,"react/lib/ExecutionEnvironment":46,"react/lib/emptyFunction":48,"react/lib/invariant":49,"react/lib/warning":50}],4:[function(_dereq_,module,exports){
647+
},{"../helpers/Path":4,"../helpers/goBack":6,"../helpers/mergeProperties":9,"../helpers/replaceWith":10,"../helpers/transitionTo":11,"../helpers/withoutProperties":12,"../stores/ActiveStore":15,"../stores/RouteStore":16,"../stores/URLStore":17,"es6-promise":21,"react/lib/ExecutionEnvironment":46,"react/lib/invariant":49,"react/lib/warning":50}],4:[function(_dereq_,module,exports){
645648
var invariant = _dereq_('react/lib/invariant');
646649
var qs = _dereq_('querystring');
647650
var mergeProperties = _dereq_('./mergeProperties');

dist/react-router.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "A complete routing library for React.js",
55
"tags": [
66
"react",
@@ -54,4 +54,4 @@
5454
"browserify-shim": {
5555
"react": "global:React"
5656
}
57-
}
57+
}

0 commit comments

Comments
 (0)