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

5,005 commits

Author SHA1 Message Date
Lachlan Collins
8253a80b6f
ci: Add TS version tests (#7605)
* Simplify implementation

* Add to remaining packages
2024-06-24 06:51:03 +10:00
Lachlan Collins
32bce35ae0
chore: Update typescript-eslint to v7 (#7610)
* chore: Update typescript-eslint to v7

* pnpm dedupe

* Fix new errors
2024-06-22 22:07:42 +10:00
Tanner Linsley
51d3e8f0cb release: v5.46.2 v5.46.2 2024-06-21 15:04:39 +00:00
Shahar Har-Shuv
cc474175b6
fix(angular-query): run mutation callback in injection context (#7360)
* fix(angular-query-experimental): run mutation callback in injection context

Previously, the injectMutation callback was run in injection context only if accessed in the same task as the component initialization (i.e. before the `effect` callback run). By running the effect run in injection context, it is ensured that the callback will always run in injection context, and any `inject` calls will not fail.

Note there is a separate issue here, and it's that the callback is always run twice - once synchronously when initialization the mutation, and secondly as the first callback of the `effect`. This is something that can potentially be improved.

No breaking changes, any code that worked before should still work.

* run prettier

* Catch error in test

---------

Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>
2024-06-21 17:00:47 +02:00
Tanner Linsley
62e262036b release: v5.46.1 v5.46.1 2024-06-21 14:32:32 +00:00
Arthur Petrie
b7aaa03f1e
refactor(angular-query): align inject-query and inject-infinite-query + clean-up create-base-query + add query correct type tests (#7593) 2024-06-21 16:28:58 +02:00
Lachlan Collins
ea26f261b7
chore(svelte-query): Move tests folder (#7603) 2024-06-21 19:59:16 +10:00
Tanner Linsley
a65b222ba9 release: v5.46.0 v5.46.0 2024-06-21 08:52:04 +00:00
Kevin
1c7739eb46
feat(react-query-next-experimental): introduce nonce prop (#7575)
allow the inline script to be executed when CSP is enforced by including nonce to the script

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-06-21 10:48:47 +02:00
Arnoud
89e1fbe5ef
docs(angular-query): angular zoneless support (#7600) 2024-06-21 00:57:31 +02:00
Arnoud
ad176cf1ce
chore(angular-query): prettier ignore api report (#7598) 2024-06-21 00:38:15 +02:00
Dominik Dorfmeister
bda8a54ae0 chore: prettier 2024-06-19 08:40:56 +02:00
Natan Deitch
0ae229bba3
docs(react-query): queryFn must be a function calling (#7572)
* docs: queryFn must be a function calling

* Update docs/framework/react/guides/advanced-ssr.md
2024-06-18 14:55:38 +02:00
Lachlan Collins
49795a3952
ci: Update Nx and @tanstack/config (#7580)
* ci: Update Nx and @tanstack/config

* Undo prettier change
2024-06-17 12:40:23 +10:00
Tanner Linsley
80a03229f4 release: v5.45.1 v5.45.1 2024-06-16 20:16:54 +00:00
GwanSik Kim
77a7b28668
refactor(react-query): improve type inference for useSuspenseQueries with skipToken (#7564)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-06-16 22:12:48 +02:00
Paul Ashioya
8d69ef4940
docs: fix grammar mistake on migrating-to-v5.md (#7556)
Fixed grammar mistake on migrating-to-v5.md

Very small change but makes the documentation better than it already is
2024-06-15 20:33:31 +02:00
Tanner Linsley
ac8f48a6a1 release: v5.45.0 v5.45.0 2024-06-12 12:35:38 +00:00
Julius Marminge
9a030b6408
feat: hydrate.transformPromise (#7538)
* hydrate.deserialize

* rm logs

* test

* commit what i got

* async await is king

* rev

* rev

* rm unused

* make thenable work

* comment usage

* docs

* simplify

* fix docs

* tsx

* Update packages/query-core/src/hydration.ts

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-06-12 14:32:00 +02:00
MinhoPark
bd094f8ace
docs(advanced-ssr): delete unused import (#7553) 2024-06-11 16:35:04 +02:00
Tanner Linsley
b157fe445b release: v5.44.0 v5.44.0 2024-06-11 13:13:39 +00:00
Dominik Dorfmeister
96a743eec7
feat(query-core): staleTime as a function (#7541)
* feat: staleTime as a function

* test: staleTime as a function

* refactor: types

* docs: staleTime as function
2024-06-11 15:11:40 +02:00
Tanner Linsley
ef72cd5091 release: v5.43.1 v5.43.1 2024-06-10 15:54:03 +00:00
David Jebing
0a03d6f30a
fix: peer dependencies for eslint-plugin-query (#7546) 2024-06-10 17:51:35 +02:00
Tanner Linsley
908c37a169 release: v5.43.0 v5.43.0 2024-06-10 14:24:18 +00:00
David Jebing
1c0d0f07f1
feat: ESLint v9 Support (#7543)
* update to latest packages

* remove duplicated test case

* fix rule types

* migrate to `sourceCode.getAncestors`

* rename type

* remove unused export

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-06-10 16:20:43 +02:00
Dominik Dorfmeister
a42a2ed20e chore: fully exclude examples and integrations for sherif checks 2024-06-10 15:10:00 +02:00
Tanner Linsley
f353ef8d3d release: v5.42.0 v5.42.0 2024-06-10 07:25:05 +00:00
Valerii Smirnov
2a6e447856
feat(solid-query): infiniteQueryOptions (#7404)
* feat(solid-query): implemented infiniteQueryOptions

* removed useless TOptions type

* fix formatting

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-06-10 09:21:40 +02:00
Mandeep56Singh
62841b6217
docs(installation):remove prompt symbol from installation commands(#7293) (#7540)
Installation commands for various framework includes prompt symbol.
On execution of same commands IDE throws error
as IDEs by default includes prompt symbol.
This commit resolve this issue
2024-06-10 07:01:06 +02:00
Joshua Rogan
40fcb54fa4
docs: Update migrating-to-v5.md (#7539)
* docs: Update migrating-to-v5.md

* docs: Update migrating-to-v5.md

* docs: Update migrating-to-v5.md
2024-06-09 17:11:25 +02:00
Tanner Linsley
bf500aee13 release: v5.41.0 v5.41.0 2024-06-08 18:46:34 +00:00
Dominik Dorfmeister
97bc113143 chore: fix test syntax 2024-06-08 20:43:34 +02:00
Luiz
f2db185dfb
docs: Update optimistic-updates.md (#7450)
Fixed code snippet to match explanation

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-06-08 19:41:38 +02:00
Davide Segullo
c73eb30981
feat(vue-query): add support for infiniteQueryOptions (#7257)
* feat(vue-query): ✨ add support for infiniteQueryOptions

* test(vue-query): ✅ add infiniteQueryOptions types tests

* test(vue-query): ✅ add test for infiniteQueryOptions

* test: ✅ add more infiniteQueryOptions test

* fix: ✅ fix failing test
2024-06-08 19:38:41 +02:00
Hwang Taehwan
4e1a04b506
refactor(react-query-next-experimental): use isServer to determine server environment (#7536)
* docs: use isServer on ssr guides

* refactor: use isServer on nextjs examples

* refactor(react-query-next-experimental): use isServer instead of typeof window

* chore(docs): fix prettier

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-06-08 19:37:05 +02:00
Tanner Linsley
dd4ee0a568 release: v5.40.3 v5.40.3 2024-06-08 17:32:26 +00:00
Randall71
f8ce2ba7c1
docs: add Expo dev tools (#7461) 2024-06-08 19:30:13 +02:00
ynnsuis / 장윤수
b8cdb8972b
fix(svelte-query): infer query data type in queryOptions (#7537)
* fix(svelte-query): infer query data type in queryOptions

* test(svelte-query): add tests for queryOptions type inference
2024-06-08 19:28:08 +02:00
Tanner Linsley
281f386cce release: v5.40.2 v5.40.2 2024-06-08 03:21:11 +00:00
David Bieregger
de0f306681
fix(solid-query): Retry query on client when SSR query fails 2024-06-07 23:16:50 -04:00
Jonghyeon Ko
7110ea3eef
ci(codecov): update config (#7503)
* ci(codecov): update threshold

* ci(codecov): update target as auto

* ci(codecov): update comment config
2024-06-07 21:27:46 +02:00
Tanner Linsley
a300d48475 release: v5.40.1 v5.40.1 2024-06-04 08:18:33 +00:00
김관식
6f08200c9b
refactor(*): improved type inference for useQueries with skipToken (#7484)
* refactor(react-query): improved type inference for useQueries

* test(react-query): improved type inference for useQueries with skipToken

* refactor(vue-query): improved type inference for useQueries with skipToken

* refactor(svelte-query): improved type inference for useQueries with skipToken

* refactor(angular-query): improved type inference for useQueries with skipToken

* refactor(solid-query): improved type inference for useQueries with skipToken

* refactor(*): update defaultQueryOptions type

* refactor(solid-query): updated defaultQueryOptions type in useQueries

* test(vue-query): fixed test for useQueries with skipToken

* refactor(vue-query): ensured accurate error type inference for `useQueries`

* test(vue-query): fixed test for useQueries with skipToken

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-06-04 10:12:58 +02:00
Minjee Son
96aa4617af
docs: update usePrefetchQuery to avoid infinite refetching (#7456)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-06-02 18:54:27 +02:00
Jonghyeon Ko
3a6613964e
test(vue-query): vitest type test correctly (#7452)
* test(vue-query): vitest type test correctly

* test(vue-query): add queryOptions.test.ts to resolve codecov error in PR

* test(vue-query): remove queryOptions.test.ts
2024-06-02 11:02:57 +02:00
Jason Rametta
eb2b469a91
docs: Update community-projects.md - Add Rapini (#7499)
* Update community-projects.md

* Alphabetical

* Prettier fix whitespace

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-06-02 10:35:40 +02:00
Jonghyeon Ko
bd991bcf30
ci(codecov): update version with token (#7506)
Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-06-01 21:35:48 +02:00
Dominik Dorfmeister
ee0283817f Revert "chore: add CODECOV_TOKEN"
This reverts commit f6f89e1a5c.
2024-06-01 21:31:41 +02:00
Dominik Dorfmeister
f6f89e1a5c chore: add CODECOV_TOKEN 2024-06-01 21:29:03 +02:00