Apr 12, 2017
- Fixes for the various PropTypes related issues.
Apr 11, 2017
- Add
wrappedComponent
to the component returned bywithRouter
- Add
wrappedComponentRef
prop to the component returned bywithRouter
- Add non-react static methods and properties of the wrapped component to the component returned by
withRouter
Mar 10, 2017
- Released! No code changes from 4.0.0-beta.8
Mar 8, 2017
- Updated website
- Revert to using
context.router
for everything since Relay usescontext.route
- Add
staticContext
route prop when rendering<Route>
s inside a<StaticRouter>
- Pass through the parent
match
object to<Route>
s w/out apath
. This also includes components wrapped usingwithRouter
- Fix unicode
<Route>
paths - Set
NavLink
's defaultactiveClassName
prop toactive
Mar 3, 2017
- Added support for
<Redirect>
as a child of a<Switch>
- Fixed a bug where
<Switch>
would always remount children - Removed subscriptions to avoid unneccessary rerendering in every
<Route>
- Added
<Switch location>
and<Route location>
props so that "pure" route components can know when the location changes - Removed location persistence across app restarts in
<NativeRouter>
- Made docs easier to find in individual
packages
directories - Split
context.router
into two parts:context.history
andcontext.route
- Changed
matchPath
signature tomatchPath(pathname, options)
Feb 13, 2017
- Fixed a bug with
<StaticRouter>
'screateHref
(#4484 thanks @pshrmn) - Added support for objects in
<Link to>
inreact-router-native
(#4483 by @CodogoFreddie) - Include
react-router
inreact-router-dom
's UMD bundle
Feb 7, 2017
Feb 1, 2017
Jan 30, 2017
Jan 18, 2017
- Re-add module entry to package.json
Jan 12, 2017
- Pass transition hook's arguments correctly (#4123 by @arkist)
- Fix index routes inside async pathless routes (#4147 by @taurose)
- 'to' maybe undefined (#4216 by @panzj)
- Fix withRouter error when used without a Router (#4295 by @dropfen)
- Adding support for escaped parentheses in Route Paths (#4202 by @sebastiandeutsch)
Oct 24, 2016
- Bugfix: Cancel pending enter/change hooks on location change (#4063)
Sep 16, 2016
- Feature: Add Promise support to async route functions (#3719)
Upstream changes from v2.7.0 through v2.8.1:
- Bugfix: Fix redirects that specify
query
(#3808) - Feature: Support omitting
to
on<Link>
(#3803) - Refactor: Use
history.replace
instead ofhistory.transitionTo
for redirects (#3799) - Feature: Support
router
as a prop onwithRouter
-wrapped components for overriding the router object from context (#3729) - Feature: Add
withRef
option towithRouter
that enablesgetWrappedInstance
(#3735, #3740) - Bugfix: Warn on invalid router middlewares (#3717)
Aug 2, 2016
- Feature: Support function
to
prop in<Link>
(#3669) - Chore: Move ES module build to
es/
(#3670) - Chore: Add
module
entry point for webpack 2 (#3672)
Jul 19, 2016
- Breaking: Remove all deprecated functionality as of v2.6.0 (#3603, #3646)
- Breaking: Support history v3 instead of history v2 (#3647)
- Feature: Add
router
to props for route components (#3486)
May 19, 2016
- Breaking: Remove all deprecated functionality as of v2.3.0 (#3340, #3435)
- Breaking/Feature: Make
<Link>
andwithRouter
update inside static containers (#3430, #3443) - Feature: Add
params
,location
, androutes
to props injected bywithRouter
and to properties oncontext.router
(#3444, #3446)
Sep 13, 2016
- Bugfix: Fix redirects that specify
query
(#3808)
Sep 9, 2016
- Feature: Support omitting
to
on<Link>
(#3803) - Refactor: Use
history.replace
instead ofhistory.transitionTo
for redirects (#3799)
Aug 20, 2016
- Feature: Support
router
as a prop onwithRouter
-wrapped components for overriding the router object from context (#3729) - Feature: Add
withRef
option towithRouter
that enablesgetWrappedInstance
(#3735, #3740) - Bugfix: Warn on invalid router middlewares (#3717)
Jul 29, 2016
- Bugfix: Correctly handle routes with patterns that are the names of properties on
Object.prototype
(#3680)
Jul 18, 2016
- Feature: Add
prevState
as argument toonLeave
hooks (#3616) - Bugfix: Fix when the
<Link>
onClick
invariant runs (#3636)
Jul 1, 2016
- Bugfix: Remove extraneous
propTypes
check when creating a route object from a React element (#3591)
Jun 23, 2016
- Bugfix: Throw error instead of silently failing with history v3 (#3571)
- Bugfix: Explicitly throw error in
onClick
handler of<Link>
rendered outside of router context (#3572)
Jun 22, 2016
- Feature/Deprecation: Call
getChildRoutes
andgetIndexRoute
withpartialNextState
; deprecate accessinglocation
directly in favor ofpartialNextState.location
there (#3556, #3561, #3569, Upgrade Guide) - Refactor: Refactor creating
routeParams
objects (#3544)
May 19, 2016
- Bugfix: Don't crash on invalid URI components in params (#3453)
April 28, 2016
- Feature: Add
withRouter
higher-order component for injectingprops.router
(#3352) - Minor: Add React as a peer dependency (#3361)
- Minor: Upgrade to Babel 6 (#3362)
- Minor: Add
target
topropTypes
for<Link>
(#3397)
April 18, 2016
- Feature: Add
applyRouterMiddleware
for extending router rendering (#3327) - Feature/Deprecation: Add
routerShape
andlocationShape
as top-level exported prop types, and deprecate all the old prop types, including the ones that were previously incorrectly removed (#3349) - Minor: Move ES module build back to
es6/
to avoid breaking people who were importing fromreact-router/es6
(#3334)
April 15, 2016
- Noop: Publish again to npm to work around missing tarball problem
April 15, 2016
- Bugfix: Don't use
Object.assign
ingetComponentsForRoute
(#3331) - Minor: Speed up checking index path active status (#3313)
April 14, 2016
- Bugfix: Fix edge cases with continuing matches after pathless routes (#3308)
April 14, 2016
- Bugfix: Fix
this
ingetComponent
andgetComponents
(#3306)
April 13, 2016
- Feature/Deprecation: Call
getComponent
andgetComponents
withnextState
; deprecate accessinglocation
directly in favor ofnextState.location
there (#3298, Upgrade Guide) - Bugfix: Do not ignore extraneous slashes in matching (#3285)
- Bugfix: Do not unnecessarily set empty
className
on<Link>
(#3288) - Minor: Update PropTypes (#3218)
- Minor: Move ES module build from
es6/
toes/
(#3295) - Minor: Do not include unused deprecation logic in production builds (#3296)
April 11, 2016
- Bugfix: Remove unintentionally released code change (#3280)
April 11, 2016
- Feature: Add support for
onChange
hook on routes (#3108) - Minor: Include full warning messages in non-minified UMD build (#3213)
- Minor: Speed up path matching (#3217)
March 9, 2016
- Bugfix: Call transition hooks on child routes of parents whose params changed but the child's did not. (#3166)
- Minor: Remove support for installing from source (#3164)
Feb 10, 2016
- Bugfix: Add back basename support in
match
(#3054)
Feb 5, 2016
- Breaking: Removed default top-level
<Router>
export (#2906) - Bugfix: Use history.createLocation where possible (#2910)
- Bugfix: Fix initial routing state after
match
(#2965) - Minor: Reduce stack size from matching routes (#2923)
Jan 14, 2016
- Feature: Support custom
history
formatch
(#2813) - Feature: Support location descriptor in
replace
callback inonEnter
(#2855) - Feature: Improve support for server rendering async routes (#2883)
Dec 30, 2015
- Feature: Added
render
prop toRouter
- Feature: Added singleton
browserHistory
andhashHistory
- Feature: Added
createMemoryHistory
- Deprecation: Deprecated all mixins
- Deprecation: Replaced
context.history
withcontext.router
- Deprecation: Deprecated Route Component
props.history
- Deprecation: Deprecated
context.location
Dec 23, 2015
- Switched back to a caret range for history, now that the warnings have been removed
Dec 8, 2015
- Pinned peer dependency on History to
1.13.x
to avoid console warnings.
Dec 5, 2015
Nov 9, 2015
Please see /upgrade-guides/v1.0.0.md