Skip to content

Commit 29fe85b

Browse files
feat: add initial compatibility with react-query v5 (#457)
Co-authored-by: Benjamin Montazer <benjamin@montazer.dev> Co-authored-by: Michael Angelo Rivera <55844504+michaelangeloio@users.noreply.github.com>
1 parent 3f2730d commit 29fe85b

5 files changed

Lines changed: 92 additions & 69 deletions

File tree

.changeset/five-singers-jog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@ts-rest/react-query': minor
3+
'@ts-rest/vue-query': minor
4+
---
5+
6+
feat: `@ts-rest/react-query` use object-syntax in react-query to support [@tanstack/react-query@^5.0.0](https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5)
7+
- note: This does **not** implement a complete migration to v5 but lays the groundwork to get the ball rolling and apps running again.
8+
9+
feat: `@ts-rest/vue-query` add @tanstack/vue-query@^5.0.0 as peer dependency

libs/ts-rest/react-query/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"peerDependencies": {
2424
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
25-
"@tanstack/react-query": "^4.0.0",
25+
"@tanstack/react-query": "^4.0.0 || ^5.0.0",
2626
"zod": "^3.22.3"
2727
},
2828
"peerDependenciesMeta": {

0 commit comments

Comments
 (0)