use-query-params
Advanced tools
Comparing version 2.0.0-rc.0 to 2.0.0-rc.1
@@ -441,3 +441,3 @@ "use strict"; | ||
if (navigate) { | ||
if (updateType == null ? void 0 : updateType.startsWith("replace")) { | ||
if (typeof updateType === "string" && updateType.startsWith("replace")) { | ||
adapter.replace(newLocation); | ||
@@ -444,0 +444,0 @@ } else { |
{ | ||
"name": "use-query-params", | ||
"version": "2.0.0-rc.0", | ||
"version": "2.0.0-rc.1", | ||
"description": "React Hook for managing state in URL query parameters with easy serialization.", | ||
@@ -92,4 +92,4 @@ "main": "./index.cjs.js", | ||
}, | ||
"gitHead": "67964960ff04313bddc35eda3a4e92456249bd83", | ||
"gitHead": "443df91b390fe0503bfbe6a437e1b762a70502c9", | ||
"types": "./index.d.ts" | ||
} |
@@ -72,3 +72,3 @@ import { | ||
if (navigate) { | ||
if (updateType == null ? void 0 : updateType.startsWith("replace")) { | ||
if (typeof updateType === "string" && updateType.startsWith("replace")) { | ||
adapter.replace(newLocation); | ||
@@ -75,0 +75,0 @@ } else { |
{ | ||
"name": "use-query-params", | ||
"version": "2.0.0-rc.0", | ||
"version": "2.0.0-rc.1", | ||
"description": "React Hook for managing state in URL query parameters with easy serialization.", | ||
@@ -92,3 +92,3 @@ "main": "./dist/index.cjs.js", | ||
}, | ||
"gitHead": "67964960ff04313bddc35eda3a4e92456249bd83" | ||
"gitHead": "443df91b390fe0503bfbe6a437e1b762a70502c9" | ||
} |
@@ -124,3 +124,5 @@ import { | ||
if (navigate) { | ||
if (updateType?.startsWith('replace')) { | ||
// be defensive about checking updateType since it is somewhat easy to | ||
// accidentally pass a second argument to the setter. | ||
if (typeof updateType === 'string' && updateType.startsWith('replace')) { | ||
adapter.replace(newLocation); | ||
@@ -127,0 +129,0 @@ } else { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
287776
96
4758
0