Skip to content

Commit 39ca9f7

Browse files
committed
more upgrading links
1 parent b6407e6 commit 39ca9f7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

modules/Router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const Router = React.createClass({
9595
warning(false, 'It appears you have provided a deprecated history object to `<Router/>`, please use a history provided by React Router with `import { browserHistory } from \'react-router\'` or `import { hashHistory } from \'react-router\'`. If you are using a custom, valid history please set `history.__v2_compatible__ = true`. See http://bit.ly/1Pxrl7E')
9696
createHistory = () => history
9797
} else {
98-
warning(false, 'the default hash history is deprecated; use the `hashHistory` singleton instead')
98+
warning(false, '`Router` no longer defaults the history prop to hash history. Please use the `hashHistory` singleton instead. http://bit.ly/1ktRibg')
9999
createHistory = createHashHistory
100100
}
101101

modules/RouterContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const RouterContext = React.createClass({
4949
}
5050

5151
if (__DEV__) {
52-
location = deprecateObjectProperties(location, '`context.location` is deprecated, please use a route component\'s `props.location` instead. If this is a deeply nested component, please refer to the strategies described in https://github.com/rackt/react-router/blob/v1.1.0/CHANGES.md#v110')
52+
location = deprecateObjectProperties(location, '`context.location` is deprecated, please use a route component\'s `props.location` instead. http://bit.ly/1mq2pTU')
5353
}
5454

5555
return { history, location, router }

modules/RouterUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function createRoutingHistory(history, transitionManager) {
1818
if (__DEV__) {
1919
history = deprecateObjectProperties(
2020
history,
21-
'`props.history` and `context.history` are deprecated; use `props.router` on route components and `context.router` on deeper components.'
21+
'`props.history` and `context.history` are deprecated. Please use `context.router`. http://bit.ly/1mj4IZr'
2222
)
2323
}
2424

modules/useRoutes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import warning from './warning'
1717
function useRoutes(createHistory) {
1818
warning(
1919
false,
20-
'`useRoutes` is deprecated; use `createTransitionManager` instead'
20+
'`useRoutes` is deprecated. Please use `createTransitionManager` instead.'
2121
)
2222

2323
return function ({ routes, ...options } = {}) {

0 commit comments

Comments
 (0)