Skip to content

Commit 9b978c2

Browse files
fix: specify peerDependencies for adapters compatibility (#261)
1 parent e4923cc commit 9b978c2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

packages/use-query-params/package.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,18 @@
6868
"react-router-dom-6": "npm:react-router-dom@^6.8.1"
6969
},
7070
"peerDependencies": {
71+
"@reach/router": "^1.2.1",
7172
"react": ">=16.8.0",
72-
"react-dom": ">=16.8.0"
73+
"react-dom": ">=16.8.0",
74+
"react-router-dom": ">=5"
75+
},
76+
"peerDependenciesMeta": {
77+
"@reach/router": {
78+
"optional": true
79+
},
80+
"react-router-dom": {
81+
"optional": true
82+
}
7383
},
7484
"dependencies": {
7585
"serialize-query-params": "^2.0.2"

0 commit comments

Comments
 (0)