Skip to content

Commit

Permalink
Silence warnings on createPath and createHref
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr committed Dec 14, 2015
1 parent c2fa109 commit 1db00a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
- **Bugfix:** Don't throw in memory history when out of history entries ([#170])
- **Bugfix:** Fix the deprecation warnings on `createPath` and `createHref` ([#189])
- **Bugfix:** Silence deprecation warnings on `createPath` and `createHref` ([#190])

[HEAD]: https://github.com/rackt/history/compare/latest...HEAD
[#170]: https://github.com/rackt/history/pull/170
[#189]: https://github.com/rackt/history/pull/189
[#190]: https://github.com/rackt/history/pull/190

## [v1.16.0]

Expand Down
8 changes: 0 additions & 8 deletions modules/useQueries.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,10 @@ function useQueries(createHistory) {
}

function createPath(location, query) {
warning(
!query,
'the query argument to createPath is deprecated; use a location descriptor instead'
)
return history.createPath(appendQuery(location, query || location.query))
}

function createHref(location, query) {
warning(
!query,
'the query argument to createHref is deprecated; use a location descriptor instead'
)
return history.createHref(appendQuery(location, query || location.query))
}

Expand Down

0 comments on commit 1db00a2

Please sign in to comment.