Skip to content

Commit

Permalink
feat(deps): update TanStack Query to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
ReidyT committed Sep 17, 2024
1 parent 1de0f4d commit d6e65e6
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 83 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@emotion/react": "11.13.0",
"@emotion/server": "11.11.0",
"@emotion/styled": "11.13.0",
"@graasp/query-client": "3.22.2",
"@graasp/query-client": "github:graasp/graasp-query-client#889-migrate-to-v5",
"@graasp/sdk": "4.26.0",
"@graasp/translations": "1.35.0",
"@graasp/ui": "4.26.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/collection/CopyButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const useCopyAction = (id?: string) => {
const [showTreeModal, setShowTreeModal] = useState(false);
const { hooks, mutations } = useContext(QueryClientContext);
const { data: user } = hooks.useCurrentMember();
const { mutate: copyItems, isLoading: isCopying } = mutations.useCopyItems();
const { mutate: copyItems, isPending: isCopying } = mutations.useCopyItems();

const startCopy = (event: MouseEvent<HTMLButtonElement>) => {
if (user?.id) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/collection/DownloadButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const useDownloadAction = (itemId?: string) => {
mutate: exportZip,
data,
isSuccess,
isLoading,
isPending: isLoading,
} = mutations.useExportItem();

useEffect(() => {
Expand Down
113 changes: 33 additions & 80 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1646,19 +1646,19 @@ __metadata:
languageName: node
linkType: hard

"@graasp/query-client@npm:3.22.2":
version: 3.22.2
resolution: "@graasp/query-client@npm:3.22.2"
"@graasp/query-client@github:graasp/graasp-query-client#889-migrate-to-v5":
version: 3.22.3
resolution: "@graasp/query-client@https://github.com/graasp/graasp-query-client.git#commit=be343e746eb47c8580b426ac683463e64b0d5e1d"
dependencies:
"@tanstack/react-query": "npm:4.36.1"
"@tanstack/react-query-devtools": "npm:4.36.1"
axios: "npm:1.7.4"
"@tanstack/react-query": "npm:5.52.0"
"@tanstack/react-query-devtools": "npm:5.52.0"
axios: "npm:1.7.7"
http-status-codes: "npm:2.3.0"
peerDependencies:
"@graasp/sdk": ^4.0.0
"@graasp/translations": "*"
react: ^18.0.0
checksum: 10/518fd2f7f3a0725f506e49b584e511c23f4a2339194adf3593040a90fa669cace59d4ad45702fc253bac550abb420fa6f3369d81fa8b933c3f1351e095ae9fbc
checksum: 10/67234f0f403f8b586a64997dc035333abbbd9e41431a667427a6f4be8a8428dabc09098a69b35c95acadc1069cd6db61c4fb1091caee2e1fad17ef67c60c2ef1
languageName: node
linkType: hard

Expand Down Expand Up @@ -3421,53 +3421,40 @@ __metadata:
languageName: node
linkType: hard

"@tanstack/match-sorter-utils@npm:^8.7.0":
version: 8.11.8
resolution: "@tanstack/match-sorter-utils@npm:8.11.8"
dependencies:
remove-accents: "npm:0.4.2"
checksum: 10/a74863bca3302a06cb3869bcea99c8091d1ccd023b8be7dded9e5e9d2695f7fe9c4ae65562b8e2ebdaf33554057d41bba2bf04a709b6af9940fefcee8ffc5c41
"@tanstack/query-core@npm:5.52.0":
version: 5.52.0
resolution: "@tanstack/query-core@npm:5.52.0"
checksum: 10/cd21e87ad7a0bbb262dea21704352eb1bbaafc26776ae1602b4be9a2d0d1f16a89cc4b5951f69083e26f970d75386431240d5a573ed9bce5a37ba2dc862e376a
languageName: node
linkType: hard

"@tanstack/query-core@npm:4.36.1":
version: 4.36.1
resolution: "@tanstack/query-core@npm:4.36.1"
checksum: 10/7c648872cd491bcab2aa4c18e0b7ca130c072f05c277a5876977fa3bfa87634bbfde46e9d249236587d78c39866889a02e4e202b478dc6074ff96093732ae56d
"@tanstack/query-devtools@npm:5.51.16":
version: 5.51.16
resolution: "@tanstack/query-devtools@npm:5.51.16"
checksum: 10/b0e8c1f86890a515d4ddbab4743387aecd882271f7be2cbc36f69d05ba42b803ae2e9bbfd53a03450ca4827c94f6b5d7d6fa5e013bfabe6ee0aa9a7b34a223d3
languageName: node
linkType: hard

"@tanstack/react-query-devtools@npm:4.36.1":
version: 4.36.1
resolution: "@tanstack/react-query-devtools@npm:4.36.1"
"@tanstack/react-query-devtools@npm:5.52.0":
version: 5.52.0
resolution: "@tanstack/react-query-devtools@npm:5.52.0"
dependencies:
"@tanstack/match-sorter-utils": "npm:^8.7.0"
superjson: "npm:^1.10.0"
use-sync-external-store: "npm:^1.2.0"
"@tanstack/query-devtools": "npm:5.51.16"
peerDependencies:
"@tanstack/react-query": ^4.36.1
react: ^16.8.0 || ^17.0.0 || ^18.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
checksum: 10/f21896c97a50304071d9ebe130c9d1ea35b29462830fd3f908b986690a9d7f018d76c7595406154d83e4e173ffc2fe0be5ae78f19b36f6df2a3f4d551776d2b7
"@tanstack/react-query": ^5.52.0
react: ^18 || ^19
checksum: 10/67fff9fe45a54e6823800bd15de5d5712b65bda9bb567907765481025775817b03c56925add47dd51fe19de1135b57b290570e5cb00b5a071ca3f7d409c39805
languageName: node
linkType: hard

"@tanstack/react-query@npm:4.36.1":
version: 4.36.1
resolution: "@tanstack/react-query@npm:4.36.1"
"@tanstack/react-query@npm:5.52.0":
version: 5.52.0
resolution: "@tanstack/react-query@npm:5.52.0"
dependencies:
"@tanstack/query-core": "npm:4.36.1"
use-sync-external-store: "npm:^1.2.0"
"@tanstack/query-core": "npm:5.52.0"
peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
react-native: "*"
peerDependenciesMeta:
react-dom:
optional: true
react-native:
optional: true
checksum: 10/764b860c3ac8d254fc6b07e01054a0f58058644d59626c724b213293fbf1e31c198cbb26e4c32c0d16dcaec0353c0ae19147d9c667675b31f8cea1d64f1ff4ac
react: ^18.0.0
checksum: 10/6976d309d306f0dd70f25e0de820812c47bfc39b654294e1512d4bb5320d0abad1bc3d6de16a25b7ae6766eb9b928c5e396e996d7d6689d33a1c1436de68cf7b
languageName: node
linkType: hard

Expand Down Expand Up @@ -4862,14 +4849,14 @@ __metadata:
languageName: node
linkType: hard

"axios@npm:1.7.4":
version: 1.7.4
resolution: "axios@npm:1.7.4"
"axios@npm:1.7.7":
version: 1.7.7
resolution: "axios@npm:1.7.7"
dependencies:
follow-redirects: "npm:^1.15.6"
form-data: "npm:^4.0.0"
proxy-from-env: "npm:^1.1.0"
checksum: 10/7a1429be1e3d0c2e1b96d4bba4d113efbfabc7c724bed107beb535c782c7bea447ff634886b0c7c43395a264d085450d009eb1154b5f38a8bae49d469fdcbc61
checksum: 10/7f875ea13b9298cd7b40fd09985209f7a38d38321f1118c701520939de2f113c4ba137832fe8e3f811f99a38e12c8225481011023209a77b0c0641270e20cde1
languageName: node
linkType: hard

Expand Down Expand Up @@ -5923,15 +5910,6 @@ __metadata:
languageName: node
linkType: hard

"copy-anything@npm:^3.0.2":
version: 3.0.5
resolution: "copy-anything@npm:3.0.5"
dependencies:
is-what: "npm:^4.1.8"
checksum: 10/4c41385a94a1cff6352a954f9b1c05b6bb1b70713a2d31f4c7b188ae7187ce00ddcc9c09bd58d24cd35b67fc6dd84df5954c0be86ea10700ff74e677db3cb09c
languageName: node
linkType: hard

"core-util-is@npm:1.0.2":
version: 1.0.2
resolution: "core-util-is@npm:1.0.2"
Expand Down Expand Up @@ -8533,7 +8511,7 @@ __metadata:
"@emotion/react": "npm:11.13.0"
"@emotion/server": "npm:11.11.0"
"@emotion/styled": "npm:11.13.0"
"@graasp/query-client": "npm:3.22.2"
"@graasp/query-client": "github:graasp/graasp-query-client#889-migrate-to-v5"
"@graasp/sdk": "npm:4.26.0"
"@graasp/translations": "npm:1.35.0"
"@graasp/ui": "npm:4.26.0"
Expand Down Expand Up @@ -9519,13 +9497,6 @@ __metadata:
languageName: node
linkType: hard

"is-what@npm:^4.1.8":
version: 4.1.16
resolution: "is-what@npm:4.1.16"
checksum: 10/f6400634bae77be6903365dc53817292e1c4d8db1b467515d0c842505b8388ee8e558326d5e6952cb2a9d74116eca2af0c6adb8aa7e9d5c845a130ce9328bf13
languageName: node
linkType: hard

"is-windows@npm:^1.0.2":
version: 1.0.2
resolution: "is-windows@npm:1.0.2"
Expand Down Expand Up @@ -13587,15 +13558,6 @@ __metadata:
languageName: node
linkType: hard

"superjson@npm:^1.10.0":
version: 1.13.3
resolution: "superjson@npm:1.13.3"
dependencies:
copy-anything: "npm:^3.0.2"
checksum: 10/71a186c513a9821e58264c0563cd1b3cf07d3b5ba53a09cc5c1a604d8ffeacac976a6ba1b5d5b3c71b6ab5a1941dfba5a15e3f106ad3ef22fe8d5eee3e2be052
languageName: node
linkType: hard

"supports-color@npm:^5.3.0":
version: 5.5.0
resolution: "supports-color@npm:5.5.0"
Expand Down Expand Up @@ -14316,15 +14278,6 @@ __metadata:
languageName: node
linkType: hard

"use-sync-external-store@npm:^1.2.0":
version: 1.2.0
resolution: "use-sync-external-store@npm:1.2.0"
peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0
checksum: 10/a676216affc203876bd47981103f201f28c2731361bb186367e12d287a7566763213a8816910c6eb88265eccd4c230426eb783d64c373c4a180905be8820ed8e
languageName: node
linkType: hard

"util-deprecate@npm:^1.0.1, util-deprecate@npm:^1.0.2, util-deprecate@npm:~1.0.1":
version: 1.0.2
resolution: "util-deprecate@npm:1.0.2"
Expand Down

0 comments on commit d6e65e6

Please sign in to comment.