Skip to content

Commit cc0bc7f

Browse files
Replace dependency react-query with @tanstack/react-query
1 parent ea95afb commit cc0bc7f

File tree

2 files changed

+34
-81
lines changed

2 files changed

+34
-81
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"react-helmet-async": "1.3.0",
2626
"react-hook-form": "7.31.1",
2727
"react-lightgallery": "0.9.0",
28-
"react-query": "3.39.0",
28+
"@tanstack/react-query": "4.0.5",
2929
"react-router-bootstrap": "0.26.1",
3030
"react-router-dom": "6.3.0",
3131
"react-scripts": "5.0.1",

yarn.lock

Lines changed: 33 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@
10301030
core-js-pure "^3.20.2"
10311031
regenerator-runtime "^0.13.4"
10321032

1033-
"@babel/runtime@^7.10.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.1", "@babel/runtime@^7.12.5", "@babel/runtime@^7.16.3", "@babel/runtime@^7.17.2", "@babel/runtime@^7.18.3", "@babel/runtime@^7.18.9", "@babel/runtime@^7.5.5", "@babel/runtime@^7.6.2", "@babel/runtime@^7.6.3", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.6", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7":
1033+
"@babel/runtime@^7.10.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.1", "@babel/runtime@^7.12.5", "@babel/runtime@^7.16.3", "@babel/runtime@^7.17.2", "@babel/runtime@^7.18.3", "@babel/runtime@^7.18.9", "@babel/runtime@^7.5.5", "@babel/runtime@^7.6.2", "@babel/runtime@^7.6.3", "@babel/runtime@^7.7.6", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7":
10341034
version "7.18.9"
10351035
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.18.9.tgz#b4fcfce55db3d2e5e080d2490f608a3b9f407f4a"
10361036
integrity sha512-lkqXDcvlFT5rvEjiu6+QYO+1GXrEHRo2LOtS7E4GtX5ESIZOgepqsZBVIj6Pv+a6zqsya9VCgiK1KAK4BvJDAw==
@@ -1967,6 +1967,20 @@
19671967
resolved "https://registry.yarnpkg.com/@swc/wasm/-/wasm-1.2.130.tgz#88ac26433335d1f957162a9a92f1450b73c176a0"
19681968
integrity sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==
19691969

1970+
"@tanstack/query-core@^4.0.0-beta.1":
1971+
version "4.35.3"
1972+
resolved "https://registry.yarnpkg.com/@tanstack/query-core/-/query-core-4.35.3.tgz#1c127e66b4ad1beeac052db83a812d7cb67369e1"
1973+
integrity sha512-PS+WEjd9wzKTyNjjQymvcOe1yg8f3wYc6mD+vb6CKyZAKvu4sIJwryfqfBULITKCla7P9C4l5e9RXePHvZOZeQ==
1974+
1975+
"@tanstack/react-query@4.0.5":
1976+
version "4.0.5"
1977+
resolved "https://registry.yarnpkg.com/@tanstack/react-query/-/react-query-4.0.5.tgz#4597ac03394ddfa6ad8b5e1beb6282468623d398"
1978+
integrity sha512-tIggVlhoFevVpY/LkZroPmrERFHN8tw4aZLtgwSArzHmMJ03WQcaNvbbHy6GERidXtaMdUz+IeQryrE7cO7WPQ==
1979+
dependencies:
1980+
"@tanstack/query-core" "^4.0.0-beta.1"
1981+
"@types/use-sync-external-store" "^0.0.3"
1982+
use-sync-external-store "^1.2.0"
1983+
19701984
"@tootallnate/once@1":
19711985
version "1.1.2"
19721986
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82"
@@ -2285,6 +2299,11 @@
22852299
resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.2.tgz#fc25ad9943bcac11cceb8168db4f275e0e72e756"
22862300
integrity sha512-F5DIZ36YVLE+PN+Zwws4kJogq47hNgX3Nx6WyDJ3kcplxyke3XIzB8uK5n/Lpm1HBsbGzd6nmGehL8cPekP+Tg==
22872301

2302+
"@types/use-sync-external-store@^0.0.3":
2303+
version "0.0.3"
2304+
resolved "https://registry.yarnpkg.com/@types/use-sync-external-store/-/use-sync-external-store-0.0.3.tgz#b6725d5f4af24ace33b36fafd295136e75509f43"
2305+
integrity sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA==
2306+
22882307
"@types/warning@^3.0.0":
22892308
version "3.0.0"
22902309
resolved "https://registry.yarnpkg.com/@types/warning/-/warning-3.0.0.tgz#0d2501268ad8f9962b740d387c4654f5f8e23e52"
@@ -3083,11 +3102,6 @@ bfj@^7.0.2:
30833102
hoopy "^0.1.4"
30843103
tryer "^1.0.1"
30853104

3086-
big-integer@^1.6.16:
3087-
version "1.6.51"
3088-
resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.51.tgz#0df92a5d9880560d3ff2d5fd20245c889d130686"
3089-
integrity sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==
3090-
30913105
big.js@^5.2.2:
30923106
version "5.2.2"
30933107
resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328"
@@ -3179,20 +3193,6 @@ braces@^3.0.2, braces@~3.0.2:
31793193
dependencies:
31803194
fill-range "^7.0.1"
31813195

3182-
broadcast-channel@^3.4.1:
3183-
version "3.7.0"
3184-
resolved "https://registry.yarnpkg.com/broadcast-channel/-/broadcast-channel-3.7.0.tgz#2dfa5c7b4289547ac3f6705f9c00af8723889937"
3185-
integrity sha512-cIAKJXAxGJceNZGTZSBzMxzyOn72cVgPnKx4dc6LRjQgbaJUQqhy5rzL3zbMxkMWsGKkv2hSFkPRMEXfoMZ2Mg==
3186-
dependencies:
3187-
"@babel/runtime" "^7.7.2"
3188-
detect-node "^2.1.0"
3189-
js-sha3 "0.8.0"
3190-
microseconds "0.2.0"
3191-
nano-time "1.0.0"
3192-
oblivious-set "1.0.0"
3193-
rimraf "3.0.2"
3194-
unload "2.2.0"
3195-
31963196
browser-or-node@^1.3.0:
31973197
version "1.3.0"
31983198
resolved "https://registry.yarnpkg.com/browser-or-node/-/browser-or-node-1.3.0.tgz#f2a4e8568f60263050a6714b2cc236bb976647a7"
@@ -4182,7 +4182,7 @@ detect-newline@^3.0.0:
41824182
resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651"
41834183
integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==
41844184

4185-
detect-node@^2.0.4, detect-node@^2.1.0:
4185+
detect-node@^2.0.4:
41864186
version "2.1.0"
41874187
resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.1.0.tgz#c9c70775a49c3d03bc2c06d9a73be550f978f8b1"
41884188
integrity sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==
@@ -6685,11 +6685,6 @@ jest@^27.4.3:
66856685
import-local "^3.0.2"
66866686
jest-cli "^27.5.1"
66876687

6688-
js-sha3@0.8.0:
6689-
version "0.8.0"
6690-
resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840"
6691-
integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==
6692-
66936688
"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
66946689
version "4.0.0"
66956690
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
@@ -7110,14 +7105,6 @@ makeerror@1.0.12:
71107105
dependencies:
71117106
tmpl "1.0.5"
71127107

7113-
match-sorter@^6.0.2:
7114-
version "6.3.1"
7115-
resolved "https://registry.yarnpkg.com/match-sorter/-/match-sorter-6.3.1.tgz#98cc37fda756093424ddf3cbc62bfe9c75b92bda"
7116-
integrity sha512-mxybbo3pPNuA+ZuCUhm5bwNkXrJTbsk5VWbR5wiwz/GC6LIiegBGn2w3O08UG/jdbYLinw51fSQ5xNU1U3MgBw==
7117-
dependencies:
7118-
"@babel/runtime" "^7.12.5"
7119-
remove-accents "0.4.2"
7120-
71217108
mdn-data@2.0.14:
71227109
version "2.0.14"
71237110
resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50"
@@ -7178,11 +7165,6 @@ micromatch@^4.0.2, micromatch@^4.0.4, micromatch@^4.0.5:
71787165
braces "^3.0.2"
71797166
picomatch "^2.3.1"
71807167

7181-
microseconds@0.2.0:
7182-
version "0.2.0"
7183-
resolved "https://registry.yarnpkg.com/microseconds/-/microseconds-0.2.0.tgz#233b25f50c62a65d861f978a4a4f8ec18797dc39"
7184-
integrity sha512-n7DHHMjR1avBbSpsTBj6fmMGh2AGrifVV4e+WYc3Q9lO+xnSZ3NyhcBND3vzzatt05LFhoKFRxrIyklmLlUtyA==
7185-
71867168
mime-db@1.52.0, "mime-db@>= 1.43.0 < 2":
71877169
version "1.52.0"
71887170
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70"
@@ -7312,13 +7294,6 @@ multicast-dns@^7.2.5:
73127294
dns-packet "^5.2.2"
73137295
thunky "^1.0.2"
73147296

7315-
nano-time@1.0.0:
7316-
version "1.0.0"
7317-
resolved "https://registry.yarnpkg.com/nano-time/-/nano-time-1.0.0.tgz#b0554f69ad89e22d0907f7a12b0993a5d96137ef"
7318-
integrity sha512-flnngywOoQ0lLQOTRNexn2gGSNuM9bKj9RZAWSzhQ+UJYaAFG9bac4DW9VHjUAzrOaIcajHybCTHe/bkvozQqA==
7319-
dependencies:
7320-
big-integer "^1.6.16"
7321-
73227297
nanoid@^3.3.4:
73237298
version "3.3.4"
73247299
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab"
@@ -7493,11 +7468,6 @@ object.values@^1.1.0, object.values@^1.1.5:
74937468
define-properties "^1.1.3"
74947469
es-abstract "^1.19.1"
74957470

7496-
oblivious-set@1.0.0:
7497-
version "1.0.0"
7498-
resolved "https://registry.yarnpkg.com/oblivious-set/-/oblivious-set-1.0.0.tgz#c8316f2c2fb6ff7b11b6158db3234c49f733c566"
7499-
integrity sha512-z+pI07qxo4c2CulUHCDf9lcqDlMSo72N/4rLUpRXf6fu+q8vjt8y0xS+Tlf8NTJDdTXHbdeO1n3MlbctwEoXZw==
7500-
75017471
obuf@^1.0.0, obuf@^1.1.2:
75027472
version "1.1.2"
75037473
resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.2.tgz#09bea3343d41859ebd446292d11c9d4db619084e"
@@ -8773,15 +8743,6 @@ react-overlays@^4.1.1:
87738743
uncontrollable "^7.0.0"
87748744
warning "^4.0.3"
87758745

8776-
react-query@3.39.0:
8777-
version "3.39.0"
8778-
resolved "https://registry.yarnpkg.com/react-query/-/react-query-3.39.0.tgz#0caca7b0da98e65008bbcd4df0d25618c2100050"
8779-
integrity sha512-Od0IkSuS79WJOhzWBx/ys0x13+7wFqgnn64vBqqAAnZ9whocVhl/y1padD5uuZ6EIkXbFbInax0qvY7zGM0thA==
8780-
dependencies:
8781-
"@babel/runtime" "^7.5.5"
8782-
broadcast-channel "^3.4.1"
8783-
match-sorter "^6.0.2"
8784-
87858746
react-refresh@^0.11.0:
87868747
version "0.11.0"
87878748
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.11.0.tgz#77198b944733f0f1f1a90e791de4541f9f074046"
@@ -9023,11 +8984,6 @@ relateurl@0.2.x, relateurl@^0.2.7:
90238984
resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9"
90248985
integrity sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==
90258986

9026-
remove-accents@0.4.2:
9027-
version "0.4.2"
9028-
resolved "https://registry.yarnpkg.com/remove-accents/-/remove-accents-0.4.2.tgz#0a43d3aaae1e80db919e07ae254b285d9e1c7bb5"
9029-
integrity sha512-7pXIJqJOq5tFgG1A2Zxti3Ht8jJF337m4sowbuHsW30ZnkQFnDzy9qBNhgzX8ZLW4+UBcXiiR7SwR6pokHsxiA==
9030-
90318987
renderkid@^3.0.0:
90328988
version "3.0.0"
90338989
resolved "https://registry.yarnpkg.com/renderkid/-/renderkid-3.0.0.tgz#5fd823e4d6951d37358ecc9a58b1f06836b6268a"
@@ -9135,20 +9091,20 @@ rfdc@^1.3.0:
91359091
resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.3.0.tgz#d0b7c441ab2720d05dc4cf26e01c89631d9da08b"
91369092
integrity sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==
91379093

9138-
rimraf@3.0.2, rimraf@^3.0.0, rimraf@^3.0.2:
9139-
version "3.0.2"
9140-
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
9141-
integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==
9142-
dependencies:
9143-
glob "^7.1.3"
9144-
91459094
rimraf@^2.6.1:
91469095
version "2.7.1"
91479096
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec"
91489097
integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==
91499098
dependencies:
91509099
glob "^7.1.3"
91519100

9101+
rimraf@^3.0.0, rimraf@^3.0.2:
9102+
version "3.0.2"
9103+
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
9104+
integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==
9105+
dependencies:
9106+
glob "^7.1.3"
9107+
91529108
rollup-plugin-terser@^7.0.0:
91539109
version "7.0.2"
91549110
resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz#e8fbba4869981b2dc35ae7e8a502d5c6c04d324d"
@@ -10205,14 +10161,6 @@ universalify@^2.0.0:
1020510161
resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717"
1020610162
integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==
1020710163

10208-
unload@2.2.0:
10209-
version "2.2.0"
10210-
resolved "https://registry.yarnpkg.com/unload/-/unload-2.2.0.tgz#ccc88fdcad345faa06a92039ec0f80b488880ef7"
10211-
integrity sha512-B60uB5TNBLtN6/LsgAf3udH9saB5p7gqJwcFfbOEZ8BcBHnGwCf6G/TGiEqkRAxX7zAFIUtzdrXQSdL3Q/wqNA==
10212-
dependencies:
10213-
"@babel/runtime" "^7.6.2"
10214-
detect-node "^2.0.4"
10215-
1021610164
unpipe@1.0.0, unpipe@~1.0.0:
1021710165
version "1.0.0"
1021810166
resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"
@@ -10261,6 +10209,11 @@ url-parse@^1.5.3:
1026110209
querystringify "^2.1.1"
1026210210
requires-port "^1.0.0"
1026310211

10212+
use-sync-external-store@^1.2.0:
10213+
version "1.2.0"
10214+
resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a"
10215+
integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==
10216+
1026410217
util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1:
1026510218
version "1.0.2"
1026610219
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"

0 commit comments

Comments
 (0)