Skip to content

Commit a603eaa

Browse files
committed
Bump react-history dep
Also, remove history dep Closes #3960
1 parent 075c747 commit a603eaa

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

modules/LocationUtils.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { parsePath, createPath } from 'history/PathUtils'
1+
import { parsePath, createPath } from 'react-history/PathUtils'
22

3-
export { locationsAreEqual } from 'history/LocationUtils'
3+
export { locationsAreEqual } from 'react-history/LocationUtils'
44

5-
const createRouterLocation = (input, parseQueryString, stringifyQuery) => {
5+
export const createRouterLocation = (input, parseQueryString, stringifyQuery) => {
66
if (typeof input === 'string') {
77
const location = parsePath(input)
88
location.query = location.search !== '' ?
@@ -24,13 +24,11 @@ const createRouterLocation = (input, parseQueryString, stringifyQuery) => {
2424
}
2525
}
2626

27-
const createRouterPath = (input, stringifyQuery) => {
27+
export const createRouterPath = (input, stringifyQuery) => {
2828
return typeof input === 'string' ? input : createPath({
2929
...input,
3030
search: input.search || (
3131
input.query ? `?${stringifyQuery(input.query)}` : ''
3232
)
3333
})
3434
}
35-
36-
export { createRouterLocation, createRouterPath }

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@
2626
"lint": "eslint modules"
2727
},
2828
"dependencies": {
29-
"history": "^4.0.0",
3029
"path-to-regexp": "^1.5.3",
3130
"query-string": "4.2.3",
32-
"react-history": "^0.13.0"
31+
"react-history": "^0.14.0"
3332
},
3433
"peerDependencies": {
3534
"react": "15.x"

0 commit comments

Comments
 (0)