0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-16 22:50:20 +00:00
Commit graph

5,036 commits

Author SHA1 Message Date
Tanner Linsley
fae2718498 release: v4.13.5 2022-10-30 22:43:15 +00:00
Damian Osipiuk
fe67cb72bc
fix: unwrap queryKey in queryFn for overloads (#4410) v4.13.5 2022-10-30 23:38:20 +01:00
Michal Tecza
1fe93566c4
test: stabilize flaky tests (#4397)
* test: stabilize a flaky test for notifyOnChangeProps

* test: stabilize a flaky test for cacheTime 0 and rerendering

* test: add sleep to make sure no additional renders are happening after data is successfully fetched for the second time

* test: stabilize test for switching to a disabled query

* test: small improvements to a test for disabled query

* test: stabilize test for "previous data on disabled query when keepPreviousData is set"

* test: run prettier
2022-10-29 21:34:38 +02:00
Charly POLY
7f7e759f05
doc(graphql): update "Type-Safety and Code Generation" section (#4371)
* doc(graphql): update "Type-Safety and Code Generation" section

* Update docs/graphql.md

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2022-10-29 15:10:35 +02:00
Tanner Linsley
9fc79d6b6c release: v4.13.4 2022-10-29 08:07:50 +00:00
Dominik Dorfmeister
9495006ed7
fix(queryObserver): always structurally share placeholderData (#4402) v4.13.4 2022-10-29 10:04:03 +02:00
Michal Tecza
fc98d3109f
test: stabilize a flaky test for isFetchedAfterMount (#4381) 2022-10-28 11:54:17 +02:00
Michal Tecza
f6023ff0fb
test: stabilize some flaky tests (#4395)
* test: stabilize a flaky test for CancelledError

* test: stabilize a flaky test for batching re-renders
2022-10-28 11:53:40 +02:00
Tanner Linsley
541cbbff95 release: v4.13.3 2022-10-25 21:36:27 +00:00
Damian Osipiuk
c3f9b1e3ab
fix(vue-query): proper function types in MaybeRefDeep (#4382) v4.13.3 2022-10-25 23:31:40 +02:00
Tanner Linsley
99119a5814 release: v4.13.2 2022-10-23 19:09:32 +00:00
Matthew Hausman
a7972eb733
fix(vue-query): properly unref useMutation parameters (#4363) v4.13.2
* update

* Update useMutation.test.ts

* Update useMutation.ts

* Update useMutation.test.ts

* Update utils.ts

* Update useMutation.test.ts

* Update useMutation.test.ts

* Update useMutation.test.ts

* Update useMutation.test.ts
2022-10-23 11:44:11 +02:00
allcontributors[bot]
f9840ddda2
add matthewhausman as a contributor for code (#4362)
* update README.md [skip ci]

* update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-10-23 07:57:52 +02:00
Tanner Linsley
22f7253aba release: v4.13.1 2022-10-22 23:20:26 +00:00
Matthew Hausman
915d5e95c2
fix(vue-query): improve useMutation reactivity, allow params to be refs (#4339) v4.13.1
* update

* Update utils.ts

* Update types.ts

* potentail fix to parseArgs typing

* change name of maybeRefArgs

* Update useMutation.ts

* update

* revert some stuff

* Update types.ts

* Update types.ts

* update

* Update types.ts

* Update types.ts

* Update useMutation.ts

* update

* update

* Update useMutation.ts

* Update useMutation.ts

* PR feedback

* Update useMutation.ts

* Update types.ts

* Update useMutation.ts

* Update types.ts

* Update types.ts

* Update useMutation.ts

* Update types.ts

* Update useMutation.ts

* update

* update fn names

* change subscribe to const

* Update types.ts

* Update useMutation.ts

* wrong arg passed in useMutation, unnecessary changes in testing files potentially

* update

* update

* Update useMutation.test.ts

* Update useMutation.test.ts

* update

* Update useMutation.test.ts

* Update useMutation.test.ts
2022-10-23 01:16:07 +02:00
Tanner Linsley
30ac34f1f9 release: v4.13.0 2022-10-22 10:02:13 +00:00
Jonas Kugelmann
07c96311a5
feat(query-core): Expose retry error as failureReason (#4315) v4.13.0
* feat(query-core): Expose retry error as `failureReason`

* feat: Add `failureReason` to mutation as well

* fix: mutation `failureCount` not being reset to `0` on success

* chore: Add tests for mutation loading state reset

* fix: linting + tests
2022-10-22 11:58:27 +02:00
Arnas Savickas
d026e41711
docs(testing): fix infinite query example (#4328) 2022-10-22 11:56:14 +02:00
김의진
65e965afd5
docs(QueryClient): fix setQueryData updater type (#4357) 2022-10-22 11:55:35 +02:00
Dominik Dorfmeister
52764b0d46
Update FUNDING.yml 2022-10-17 10:13:55 +02:00
liaoliao666
51913558a2
docs: add ReactQueryKit link (#4325)
forgot to add the link😓
2022-10-15 07:36:06 +02:00
Ty Mick
30f068399d
docs(useQueryClient): add context option (#4326) 2022-10-15 07:35:31 +02:00
allcontributors[bot]
1d57f01c94
add DamianOsipiuk as a contributor for code, and maintenance (#4324)
* update README.md [skip ci]

* update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-10-14 09:08:52 +02:00
allcontributors[bot]
22a8d95e3a
add oscartbeaumont as a contributor for code (#4323)
* update README.md [skip ci]

* update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-10-14 09:05:11 +02:00
allcontributors[bot]
80f4c73fb1
add jennyckaplan as a contributor for code (#4322)
* update README.md [skip ci]

* update README.md [skip ci]

* update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2022-10-14 09:04:37 +02:00
allcontributors[bot]
90434c8c6f
add lukesmurray as a contributor for code (#4321)
* update README.md [skip ci]

* update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-10-14 08:35:39 +02:00
Tanner Linsley
8bbb03c823 release: v4.12.0 2022-10-14 06:23:52 +00:00
Dominik Dorfmeister
17a362b141 chore: run typecheck last in CI v4.12.0
typecheck creates typescript output and solid tests stumble upon that
2022-10-14 08:19:15 +02:00
Dominik Dorfmeister
3bf5168685 chore: do not collectCoverage during build
this should speed-up CI and make log output visible
2022-10-14 08:16:46 +02:00
Dominik Dorfmeister
d785c2b154 chore: fix tests in publish script
run the tests before we make the build so that tests are not run against the built files
2022-10-14 07:34:32 +02:00
Dominik Dorfmeister
6be0e383e8
feat(query-core): await global mutation cache callbacks (#4313)
* feat(query-core): await global mutation cache callbacks

global mutation cache callbacks are always invoked, just like the callbacks on useMutation; however, they were not awaited, so you couldn't really do invalidations in them

* feat(query-core): await global mutation cache callbacks

add tests

* docs: document global mutation callback changes
2022-10-13 19:15:29 +02:00
Bruno Galeotti
afbd6c7377
docs: pnpm typo (#4314) 2022-10-13 06:58:33 +02:00
Johan Suleiko Allansson
cf0eb6cf70
docs(useQueries): duplicate query keys disclaimer (#4303)
* docs(useQueries): duplicate query keys disclaimer

Document the issue discussed in #4187.

* Update docs/reference/useQueries.md

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2022-10-12 19:37:10 +02:00
Michal Tecza
f9b5cc5253
docs(examples): upgrade vite-plugin-solid to latest version to fix runtime issue in examples (#4311) 2022-10-12 19:35:51 +02:00
allcontributors[bot]
85119e99c0
add ardeora as a contributor for code, and maintenance (#4312)
* update README.md [skip ci]

* update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-10-12 17:40:02 +02:00
Dominik Dorfmeister
4ae99561ca
chore: improve CI (#4288)
* chore: get rit of rescript

* chore: solid-query doesn't need jscodeshift

* chore: move react dependencies to react packages

* chore: move react dependencies to react packages

* chore: add descriptions

* chore: remove special lint tsconfigs

we want to use the same tsconfigs for linting as for everything else

* chore: make all tests run in parallel with pnpm

* chore: chunk ci pipeline

* chore: move react specific test setup into react packages

* chore: remove jest configs from tsconfig.json

because they live outside of the root dir (src)

* chore: fix weird type errors in solid tests

* chore: fix running the lint task

* chore: run the typecheck task in parallel

* chore: add a clean task

* Revert "chore: run the typecheck task in parallel"

This reverts commit 53573f5b13.

* chore: no idea why this is errors

* chore: fix codecov upload

* chore: add runInBand

* Revert "chore: add runInBand"

This reverts commit 568e12c41b.

* chore: make jest tests temporarily exit with 0

so that we can test code-coverage

* chore: only run test jests

* Revert "chore: make jest tests temporarily exit with 0"

This reverts commit ad099006f8.

* chore: fix solid-query tests with a custom transform

* chore: use checkout v3

* chore: fix node-version for Test React 17 pipeline

* chore: fix watch mode

we cannot run jest:dev anymore because streaming watch mode to multiple packages is not a thing; you'd need to go into a separate package and watch those tests there
2022-10-12 13:34:01 +02:00
Tanner Linsley
df598a7dad release: v4.11.1 2022-10-12 11:21:37 +00:00
Aryan Deora
9579dd8936
fix(solid-query): fix disappearing data key during fetching state (#4308) v4.11.1
* fix(solid-query): fix disappearing data key during fetching state

* Add prettier formatting

* Fix prefer-const rule
2022-10-12 13:09:54 +02:00
Michal Tecza
e989725e27
docs: describe a way to run examples using local builds (#4310)
* chore: repair `watch` command in the main package.json

* docs: describe a way to run examples using local builds of packages without linking with yalc
2022-10-12 12:54:23 +02:00
Michal Tecza
c3b869381a
docs(examples): migrate examples/react/basic-typescript to vite (#4300) 2022-10-11 08:36:06 +02:00
Tanner Linsley
1c8d978150 release: v4.11.0 2022-10-09 16:10:08 +00:00
Salama Ashoush
e6eaca60fe
feat(react-query-devtools): Add move devtools select menu (#4100) v4.11.0
* feat: Add move devtools select menu

Added the option to move devtools to one of these sides `left`,  `right`, `top`, and `bottom` and refactored the code to accommodate the new capability

* fix: import types with ts type import

* fix: fix a docs typo
2022-10-09 18:06:19 +02:00
jeski-bright
f5fb92c80f
test(solid-query): Add test for transition (#4224)
* test(solid-query) Add test for transition

* change!

* chore(solid-js) update to most recent version and enable test

* Delete change

Co-authored-by: Jedrzej Sadowski <jedrzej.sadowski@justeattakeaway.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2022-10-08 17:36:12 +02:00
Tanner Linsley
222ec6295f release: v4.10.4 2022-10-08 15:28:50 +00:00
Omar-Awawdeh
31d799d993
fix(react-query-devtools): add direction style (#4283) v4.10.4
* fix(devTools styles): add direction style

Add dir="ltr" to devtools panel beacause the devtools appear inverted when direction of a parent is rtl

Fixes #4282

* fix(devTools styles): Run changes through prettier

Missing space caused CI check to fail

Fixes #4282
2022-10-08 17:24:14 +02:00
Sergey Bunas
f9e8b2cf4c
chore: Update outdated LICENSE year (#4266)
Updated the outdated copyright year to the present. 
So there will not be a need for any further license year updates
2022-10-08 08:01:32 +02:00
Chrystian de Matos
7a44a79c88
docs(mutations): Fix spelling error (#4285) 2022-10-08 06:46:04 +02:00
Tanner Linsley
31ef31cfbf release: v4.10.3 2022-10-07 19:11:15 +00:00
Dale Alexander Webb
9d364e75bc
refactor(query-core): change QueryMeta and MutationMeta to an interface (#4253) v4.10.3
* refactor(query-core): change QueryMeta and MutationMeta to an interface

* Apply suggestions from code review

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2022-10-07 21:06:28 +02:00
Jan G
71e73c4297
docs: productId to todoId (#4274)
Nothing fancy.
2022-10-07 20:55:18 +02:00