Skip to content

Commit 209d356

Browse files
committed
fix: use correct history version
1 parent c9e684c commit 209d356

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

packages/use-query-params/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"license": "MIT",
3030
"dependencies": {
31-
"history": "^5.0.0",
31+
"history": "^4.9.0",
3232
"query-string": "^7.0.0",
3333
"react-router-dom": "^5.2.0"
3434
},

packages/use-query-params/src/__tests__/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ describe('useQueryParam', () => {
4646
})
4747
expect(result.current.queryParams).toEqual({ user: 'Jerry' })
4848
expect(history.length).toBe(2)
49-
50-
console.log(history)
5149
})
5250

5351
it('should set one object', () => {

yarn.lock

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@
997997
core-js-pure "^3.0.0"
998998
regenerator-runtime "^0.13.4"
999999

1000-
"@babel/runtime@^7.1.2", "@babel/runtime@^7.10.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.1", "@babel/runtime@^7.12.13", "@babel/runtime@^7.12.5", "@babel/runtime@^7.7.6", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2":
1000+
"@babel/runtime@^7.1.2", "@babel/runtime@^7.10.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.1", "@babel/runtime@^7.12.13", "@babel/runtime@^7.12.5", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2":
10011001
version "7.15.3"
10021002
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.15.3.tgz#2e1c2880ca118e5b2f9988322bd8a7656a32502b"
10031003
integrity sha512-OvwMLqNXkCXSz1kSm58sEsNuhqOx/fKpnUnKnFB5v8uDda5bLNEHNgKPvhDN6IU0LDcnHQ90LlJ0Q6jnyBSIBA==
@@ -4794,13 +4794,6 @@ history@^4.9.0:
47944794
tiny-warning "^1.0.0"
47954795
value-equal "^1.0.1"
47964796

4797-
history@^5.0.0:
4798-
version "5.0.1"
4799-
resolved "https://registry.yarnpkg.com/history/-/history-5.0.1.tgz#de35025ed08bce0db62364b47ebbf9d97b5eb06a"
4800-
integrity sha512-5qC/tFUKfVci5kzgRxZxN5Mf1CV8NmJx9ByaPX0YTLx5Vz3Svh7NYp6eA4CpDq4iA9D0C1t8BNIfvQIrUI3mVw==
4801-
dependencies:
4802-
"@babel/runtime" "^7.7.6"
4803-
48044797
hoist-non-react-statics@^3.1.0:
48054798
version "3.3.2"
48064799
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45"

0 commit comments

Comments
 (0)