0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-18 19:33:22 +00:00
Commit graph

5,589 commits

Author SHA1 Message Date
Lachlan Collins
c014ea7a29
chore: Disable vitest globals (#6216) 2023-10-22 12:08:22 +11:00
Lachlan Collins
b5c74f9f3f
chore: Update dev dependencies (#6215) 2023-10-22 10:46:18 +11:00
Tanner Linsley
fbdeb17600 release: v5.0.4 v5.0.4 2023-10-20 23:05:29 +00:00
Damian Osipiuk
e0ece4263c
fix(vue-query): fix type inference (#6210) 2023-10-21 01:02:11 +02:00
Tanner Linsley
87358d7358 release: v5.0.3 v5.0.3 2023-10-20 13:01:20 +00:00
Lars-Jørgen Kristiansen
5227246ed7
fix(query-devtools): Make sure all id attributes are unique (#6192) 2023-10-20 08:57:50 -04:00
Balázs Máté Petró
7933834b38
fix(codemod): remove the function overloads when the second argument is a function expression (#6191)
* fix(codemod): remove the function overloads when the second argument is a function expression

After a quick sync with @TkDodo, it turned out in this case it's safe to do the transformation, because the second argument is a function expression, so it means the first parameter must be the query key.

* fix(codemod): add the `useQuery` hook to the transformation list, because it was missing

* chore(codemod): rename the `parameters` constant to `functionArguments`

The naming was wrong from the beginning. The codemod does transformations with the arguments of the functions, not with their parameters. :)

* chore(codemod): fix the import order

The CI was failing because of it.

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-10-20 11:28:32 +02:00
Jonghyeon Ko
c03e15971d
docs(suspensive-react-query): update links (#6175)
* docs(suspensive-react-query): update link

* chore(suspensive-react-query): update doc to promote migrating @tanstack/react-query v4 to v5
2023-10-20 11:09:58 +02:00
Dominik Dorfmeister
f37fcf3f39 docs: hashKey 2023-10-20 10:58:13 +02:00
Basti Buck
9566984a14
docs: add typescript meta docs (#6181)
* chore: typo

* docs: add global meta registration docs
2023-10-20 08:39:28 +02:00
diggymo
92c03e24d5
docs(useQuery): remove suspense option in useQuery() v5 (#6187) 2023-10-20 08:38:40 +02:00
liaoliao666
2b76550106
docs: update the doc of react query kit (#6194) 2023-10-20 08:37:53 +02:00
Tanner Linsley
d511b3c2d0 release: v5.0.2 v5.0.2 2023-10-19 22:12:12 +00:00
Aryan Deora
0b6b9fc47c
fix(query): Fix lockfile and build pipeline (#6199)
* fix(query): Fix lockfile and build pipeline

* Update svelte vite plugin version
2023-10-19 15:02:00 -07:00
Stephen Wade
8374dc0001
chore: update README link to v4 docs (#6184) 2023-10-19 18:55:39 +02:00
Ian Langworth ☠
debece31a5
docs: Typo in optimistic-updates.md (#6182) 2023-10-18 22:29:04 +02:00
Birk Skyum
c5cb8cc44c
docs(solid-query): Update all dependencies in example
* Update solid start example

* update pnpm lockfile

* update all solid examples
2023-10-18 13:17:30 -07:00
Tanner Linsley
b9a18aaa16 release: v5.0.1 v5.0.1 2023-10-18 19:52:37 +00:00
Basti Buck
de4e2ea694
fix(react-query-devtools): prod devtools exports (#6180)
* fix: fix devtools prod exports

* chore: update devtools prod docs
2023-10-18 21:49:19 +02:00
Asad Khan
02b991cbbf
docs: Update updates-from-mutation-responses.md (#6173)
Remove extra word "via" from the sentence.
2023-10-18 16:24:14 +02:00
Bennett Dams
e68de6a68a
docs(useMutationState): Clarify mutationKey usage (#6168)
This adds a mutation to the examples to (hopefully) clarify how to use the `mutationKey` for referencing the mutation state.
2023-10-18 08:30:38 +02:00
Dominik Dorfmeister
6312d12976
docs: Update testing.md 2023-10-17 16:36:14 +02:00
Dominik Dorfmeister
6cd1566f6c chore: post release cleanup 2023-10-17 14:34:51 +02:00
Tanner Linsley
3be9b4580e release: v5.0.0 v5.0.0 2023-10-17 12:25:15 +00:00
Dominik Dorfmeister
5898ec0b1f
feat: v5 release (#6163)
BREAKING CHANGE
2023-10-17 14:16:34 +02:00
Dominik Dorfmeister
eb462acac7 chore: new repo-header.png 2023-10-17 13:34:47 +02:00
Dominik Dorfmeister
60bde96de8 docs: optimistic updates and examples 2023-10-17 11:35:50 +02:00
Dominik Dorfmeister
55b8f022ea chore: suspense docs 2023-10-17 11:05:49 +02:00
Dominik Dorfmeister
d33df62c85 Merge remote-tracking branch 'origin/main' into rc
# Conflicts:
#	packages/vue-query/package.json
#	packages/vue-query/src/__tests__/useQueries.test.ts
#	packages/vue-query/src/__tests__/useQuery.test.ts
#	packages/vue-query/src/types.ts
#	packages/vue-query/src/useBaseQuery.ts
#	packages/vue-query/src/useIsMutating.ts
#	packages/vue-query/src/useQueries.ts
2023-10-17 08:26:59 +02:00
Dominik Dorfmeister
7677c64b10 docs: remove references to suspense:boolean 2023-10-16 12:56:50 +02:00
Tanner Linsley
b99ce8f79d release: v5.0.0-rc.16 v5.0.0-rc.16 2023-10-16 07:04:04 +00:00
Dominik Dorfmeister
e3866de32c chore: remove leftover dependency to client-only package 2023-10-16 08:52:31 +02:00
liaoliao666
3ca1327822
fix(types): useQueries can not infer type of TError (#6155)
* fix(types): useQueries can not infer type of TError

* test(useQueries): infer TError from throwOnError

* types(queries): support to infer TError for queries of all frameworks

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-10-16 08:48:06 +02:00
Tanner Linsley
f83fe47822 release: v5.0.0-rc.15 v5.0.0-rc.15 2023-10-15 09:02:40 +00:00
Colonel-Sandvich
3ca4c645e3
fix(vue-query): update observer's options to latest value during suspense (#6134) 2023-10-15 10:58:21 +02:00
Tanner Linsley
8cb487bdac release: v5.0.0-rc.14 v5.0.0-rc.14 2023-10-14 20:11:14 +00:00
Aryan Deora
9ed5a766e4
fix(query-devtools): Make devtools internal fields private (#6154) 2023-10-14 13:07:41 -07:00
Flo Gehring
3a6ffb360b
chore: fix typos (#6141) 2023-10-13 21:13:55 +02:00
Tanner Linsley
42596acbf4 release: v5.0.0-rc.13 v5.0.0-rc.13 2023-10-13 06:04:53 +00:00
Aryan Deora
c7c32f1602
feat(query-devtools): Add Light mode support (#6146)
* feat(query-devtools): Add Light mode support

* Update inactive query light mode styles
2023-10-13 07:56:18 +02:00
Tanner Linsley
c5af17ef7c release: v5.0.0-rc.12 v5.0.0-rc.12 2023-10-12 07:15:16 +00:00
Dominik Dorfmeister
403699afd1
refactor: only pass query to refetchInterval function (#6128)
* refactor: only pass query to refetchInterval function

this streamlines it with other functions, and avoids typing issues as it previously took transformed data from `select`

* test: adapt test because we don't have the types limitation anymore

* docs: refetchInterval
2023-10-12 09:08:40 +02:00
Tanner Linsley
f9164ed1b4 release: v5.0.0-rc.11 v5.0.0-rc.11 2023-10-11 19:06:30 +00:00
Alex Liu
46f99f021e
feat(vue-query): let composables accepts enabled as a getter function (#6018)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2023-10-11 21:02:25 +02:00
Tanner Linsley
c8a817f42a release: v4.37.0 v4.37.0 2023-10-11 19:01:30 +00:00
Alex Liu
a0299841ee
feat(vue-query): enabled accepts getter function (#6004)
* feat(vue-query): `useBaseQuery` accepts `enabled` as a getter function

* feat(vue-query): `useQueries` accepts `enabled` as a getter function

---------

Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2023-10-11 20:58:18 +02:00
Tanner Linsley
9d5ea5567b release: v5.0.0-rc.10 v5.0.0-rc.10 2023-10-11 03:56:20 +00:00
Basti Buck
48fe741220
feat: allow editing of boolean values (#6131) 2023-10-10 23:52:48 -04:00
Aryan Deora
dbfe8a00ef
chore(solid-query): Add devtools to examples (#6132) 2023-10-10 20:17:47 -04:00
Tanner Linsley
81f00b6340 release: v5.0.0-rc.9 v5.0.0-rc.9 2023-10-10 22:16:25 +00:00