Skip to content

Commit 29c820b

Browse files
committed
release v0.29.0
1 parent a051c64 commit 29c820b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# CHANGELOG
22

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+
313
## 0.28.0
414
- Fix querystring not being properly passed in `PathnameEnvironment`. Incremented minor in case of potential
515
unexpected `_query` attribute.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-component",
3-
"version": "0.28.0",
3+
"version": "0.29.0",
44
"description": "Declarative router component for React",
55
"main": "index.js",
66
"dependencies": {
@@ -64,4 +64,4 @@
6464
"publishConfig": {
6565
"registry": "https://registry.npmjs.org"
6666
}
67-
}
67+
}

0 commit comments

Comments
 (0)