File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
# CHANGELOG
2
2
3
+ ## 0.29.0
4
+ - Added optional ` childProps ` hash to the Router. If this is specified, these props will be passed to all
5
+ handlers, contextual routers, and their children. Props defined on a handler or Route directly have priority.
6
+ This fixes [ #104 ] ( https://github.com/STRML/react-router-component/issues/104 ) .
7
+ - Possibly Breaking Change/Bugfix:
8
+ * We allow passing an actual element as a handler, not just a component. Previously, props on these
9
+ elements were lost, so that ` <Location handler={<div className="foo" />} /> ` would render ` <div></div> ` .
10
+ This was unintentional and these inner props are now preserved and have priority over ` childProps ` or
11
+ properties defined on the Route.
12
+
3
13
## 0.28.0
4
14
- Fix querystring not being properly passed in ` PathnameEnvironment ` . Incremented minor in case of potential
5
15
unexpected ` _query ` attribute.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-router-component" ,
3
- "version" : " 0.28 .0" ,
3
+ "version" : " 0.29 .0" ,
4
4
"description" : " Declarative router component for React" ,
5
5
"main" : " index.js" ,
6
6
"dependencies" : {
64
64
"publishConfig" : {
65
65
"registry" : " https://registry.npmjs.org"
66
66
}
67
- }
67
+ }
You can’t perform that action at this time.
0 commit comments