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

5,165 commits

Author SHA1 Message Date
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
ericbiewener
d6dacbfa6c
docs: usePaginatedQuery was removed in v3, not just deprecated (#4279) 2022-10-07 20:54:29 +02:00
Tanner Linsley
47a1bd1c82 release: v4.10.2 2022-10-07 16:06:43 +00:00
Damian Osipiuk
667efe37a3
fix: use match-sorter-utils, simplify sorting (#4258) v4.10.2
* fix: use match-sorter-utils, simplify sorting

* fix: change localstorage key

* fix: exclude babel preset for vue

* test: fix test
2022-10-07 18:02:30 +02:00
siddtheone
ae7b2abc2b
docs: Improve example (#4251) 2022-10-07 17:25:12 +02:00
Tanner Linsley
d018dfa460 release: v4.10.1 2022-10-04 13:32:16 +00:00
Dominik Dorfmeister
b162309f01 fix(react-query-devtools): add superjson as dependency v4.10.1
rather than devDependency

RELEASE_ALL
2022-10-04 15:27:01 +02:00
Tanner Linsley
ceb5bb6637 release: v4.10.0 2022-10-04 12:55:31 +00:00
Damian Osipiuk
923c740ee2
fix: add proper rollup config for superjson (#4263) v4.10.0 2022-10-04 14:50:23 +02:00
Mohammad Al Zouabi
1bb13e2d23
feat(react-query-devtools): use superjson to display values (#4085) 2022-10-04 13:35:43 +02:00
Ejiro Asiuwhu
bb3030ce21
docs: changed import path -> vue-query to @tanstack/vue-query (#4261) 2022-10-03 18:13:33 +02:00
Jhon Arly Rodríguez
a2fc30a29b
docs: Changed vue-query into @tanstack/vue-query (#4259) 2022-10-03 14:46:51 +02:00
Tanner Linsley
db09965324
Update config.json 2022-10-02 14:32:58 -06:00
Damian Osipiuk
f715b305de
chore: ignore coverage from index and types files (#4257) 2022-10-02 22:24:21 +02:00
Tanner Linsley
3993a1f0c9 release: v4.9.0 2022-10-02 20:11:44 +00:00
Damian Osipiuk
741cc3f2e0
feat: vue-query adapter (#4254) v4.9.0
* feat: vue-query adapter

* fix: umd build

* chore: add basic example

* docs: add vue adapter page

* docs: add readme

* fix: shields in readme, package ver, ts config

* docs: fix one more link

* fix: removed unused params

RELEASE_ALL
2022-10-02 22:07:30 +02:00
Tanner Linsley
9f48dffaf5 release: v4.8.0 2022-09-30 06:36:22 +00:00
Dominik Dorfmeister
46ad29a571
feat(queryObserver): add isInitialLoading derived flag (#4244) v4.8.0
* feat(queryObserver): add isInitialLoading derived flag

this flag describes isLoading && isFetching and can be used to show a loading spinner for lazy or disabled queries

* chore(ci): fix caching

apparently, v3 has a fix: https://github.com/actions/setup-node/issues/543

* chore(ci): properly fix token issue

as described here: https://stackoverflow.com/questions/52015748/npm-failed-to-replace-env-in-config-npm-token

he extra warn output made the caching fail

* chore: fix bundlewatch glob

* docs: add a section about isInitialLoading to the migration guide
2022-09-30 08:32:10 +02:00
Dominik Dorfmeister
fec3daa381 chore(ci): fix yml syntax 2022-09-28 20:58:29 +02:00
Dominik Dorfmeister
c566c3c194 chore(ci): add quotes 2022-09-28 20:57:03 +02:00
Julius Marminge
d9478e000c
chore(ci): filter out examples (#4239)
* filter out examples

* typo

* update docs and gitignore to account for pnpm switch
2022-09-28 20:53:23 +02:00
Dominik Dorfmeister
6c069660fc chore: remove cache folder
because postinstall errors with:

Error: Cache folder path is retrieved for pnpm but doesn't exist on disk
2022-09-28 20:50:53 +02:00