Skip to content

Commit eef4610

Browse files
jmcpeakJason McPeak
andauthored
New version of use-query-params to pickup #244 in fixed serialize-query-params (#247)
* issue244 * use try/catch * follow function convention * New drop of use-query-params to pick up fix #244 in serialize-query-params Co-authored-by: Jason McPeak <jmcpeak@payrailz.com>
1 parent cb5010b commit eef4610

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/use-query-params/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## use-query-params v2.1.2 (October 24, 2022)
4+
- fix: #244 `updateLocation` returns an empty string for `href` when the original `location.href` is not defined. This allows `updateLocation` to be recursively recalled without crashing when creating a `new URL()` (thank you @jmcpeak)
5+
36
## use-query-params v2.1.1 (September 16, 2022)
47
- fix: #241 import from react-router-dom in adapters to prevent error about wrong context. (thank you @lisandro52)
58

packages/use-query-params/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "use-query-params",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"description": "React Hook for managing state in URL query parameters with easy serialization.",
55
"main": "./dist/index.cjs.js",
66
"typings": "./dist/index.d.ts",
@@ -72,7 +72,7 @@
7272
"react-dom": ">=16.8.0"
7373
},
7474
"dependencies": {
75-
"serialize-query-params": "^2.0.0"
75+
"serialize-query-params": "^2.0.2"
7676
},
7777
"husky": {
7878
"hooks": {

0 commit comments

Comments
 (0)