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
Jonghyeon Ko
eb5816eee2
test(solid-query): use fake timers for useMutation.test.tsx (#9081) 2025-04-29 23:06:51 +09:00
Jonghyeon Ko
e786913dbf
test(solid-query): simplify type inference tests in useQueryOptions (#9080) 2025-04-29 20:26:12 +09:00
Tanner Linsley
8226d41ba8 release: v5.74.9 v5.74.9 2025-04-29 10:50:19 +00:00
Dominik Dorfmeister
10493efa8a
refactor(core): switch from Object.defineProperty to Proxies (#9079)
* ref: switch from Object.defineProperty to Proxies

* test: improve the test that tracks property access
2025-04-29 12:48:29 +02:00
Emma Segal-Grossman
8c7df6369f
docs: Fix broken links on QueryCache reference page (#9033)
* Fix broken link to TkDodo's Blog page from QueryCache page

It looks like the `docs` part of the url was being removed, so there's now one less `../` in the relative url.

* Fix other broken links on page & add `.md` extension to relative links
as suggested by @TkDodo
2025-04-29 11:18:25 +02:00
Tanner Linsley
c8baa4c92b release: v5.74.8 v5.74.8 2025-04-29 08:04:24 +00:00
차승하
66151ca851
fix(vue-query): fix initialData Type Inference Bug in useQuery (#9077)
* fix: Correct bug where non-undefined values in initialData are not treated as defined

* test: Update test to ensure data is TData only when initialData is defined

* fix: Modified to recognize UndefinedInitialQueryOptions when a function returning undefined is used in initialData.

* test: update test result values for case where a function returning TData is passed to initialData
2025-04-29 10:01:28 +02:00
Jonghyeon Ko
b397fba936
test(react-query): use test-d file for useMutationState (#9075) 2025-04-28 09:21:01 +09:00
Tanner Linsley
fcb3d4add6 release: v5.74.7 v5.74.7 2025-04-27 15:02:14 +00:00
Sol Lee
e45dea84a7
fix(vue-query): update initialData type to allow InitialDataFunction and NonUndefinedGuard, similar to react-query (#9073)
* fix(vue-query): update `initialData` type to allow InitialDataFunction and NonUndefinedGuard, similar to react-query

* ci: apply automated fixes

* test: update types to include `undefined` in useQueries and useQuery tests in vue-query

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-27 16:54:28 +02:00
Jonghyeon Ko
b8ea29ef82
test(react-query): use fake timers for QueryClientProvider.test.tsx (#9074) 2025-04-26 20:43:23 +02:00
MINSEONG KIM
83f01cd2c9
test(query-persist-client-core): use fake timers for createPersister.test.ts (#9067)
* test(query-persist-client-core): use fake timers for createPersister.test.ts

* refactor: remove unnecessary export

---------

Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-04-26 19:29:06 +09:00
Jonghyeon Ko
62f02fcd3c
test(react-query): use fake timers for useMutationState.test.tsx (#9055) 2025-04-26 19:19:33 +09:00
Zac Rosenbauer
eb15f8727c
docs: fix broken links in docs (#9052) 2025-04-25 14:36:10 +02:00
Dominik Dorfmeister
a2a39c92f1
docs: fix typo 2025-04-25 14:35:41 +02:00
Jonghyeon Ko
027be32703
test(react-query): use fake timers for fine-grained-persister.test.tsx (#9056) 2025-04-25 14:22:21 +02:00
MINSEONG KIM
08496604a7
test(react-query): use fake timers for ssr-hydration.test.tsx (#9058) 2025-04-25 14:19:05 +02:00
Dominik Dorfmeister
c987abcafe
docs: Update streamedQuery.md 2025-04-25 10:37:57 +02:00
renovate[bot]
b13f0b8384
chore(deps): update dependency @sveltejs/kit to v2.20.6 [security] (#9054)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-23 10:29:28 +00:00
Jonghyeon Ko
1b169ae240
test(query-core): use fake timers for queryObserver.test.tsx (#9004)
* test(query-core): use fake timers for queryObserver.test.tsx

* chore: update

* chore: migrate

* chore: update

* Removes unused testing library dependency

Deletes `@testing-library/dom` from devDependencies in package.json and pnpm-lock.yaml to clean up unused dependencies and streamline the project's dependency tree.

* chore: update

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-04-23 09:55:36 +02:00
Tyler
9f93f12de1
chore: move from paths to customCondition (#9042) 2025-04-23 09:54:51 +02:00
Tanner Linsley
12cced37b4 release: v5.74.6 v5.74.6 2025-04-22 17:05:48 +00:00
Damian Osipiuk
3a2e2d915d
fix(vue-query): unify shallow flag behaviour (#9050) 2025-04-22 19:03:56 +02:00
MINSEONG KIM
b63a1d08f9
chore(query-async-storage-persister): remove unnecessary export keyword (#9040) 2025-04-19 20:28:32 +02:00
MINSEONG KIM
a9b8391a00
test(*): remove unnecessary async (#9039) 2025-04-19 20:24:34 +02:00
Tanner Linsley
59c22d5d6d release: v5.74.5 v5.74.5 2025-04-18 12:38:52 +00:00
Sol Lee
b6faa37ffc
fix(types): remove 'queryFn' from OmitKeyof in DefaultOptions (#9035) 2025-04-18 13:50:49 +02:00
Tanner Linsley
256624af67 release: v5.74.4 v5.74.4 2025-04-17 09:44:48 +00:00
MINSEONG KIM
d1255a8d2f
test(vue-query): remove unnecessary async (#9028) 2025-04-17 11:10:45 +02:00
MINSEONG KIM
fdf5a549c1
test(svelte-query-persist-client): remove unnecessary async (#9027) 2025-04-17 11:10:19 +02:00
MINSEONG KIM
522b081bf0
test(*): remove unnecessary async (#9026) 2025-04-17 11:10:00 +02:00
MINSEONG KIM
f812bf4791
test(*): remove unnecessary async (#9025) 2025-04-17 11:09:39 +02:00
shiwoo.park
8f8e6d00b3
fix(query-core, vue-query): fix type inference in setQueryData when used in functions with explicit return types (#9030)
* fix(query-core): fix setQueryData type inference in typed contexts

* test(query-core): add test case for setQueryData type inference in functions

* fix(vue-query): fix setQueryData type inference in typed contexts

* test(vue-query): add test case for setQueryData type inference in functions
2025-04-17 11:05:27 +02:00
Arnoud
4a5990e849
chore(angular-query): move angular-query-persist-client (#9021) 2025-04-15 11:55:35 +02:00
Tanner Linsley
59dc99c4b2 release: v5.74.3 v5.74.3 2025-04-14 12:55:58 +00:00
Nick Lucas
f580d4d395
fix(types): Remove predicate typing for query filters (#8958)
* Remove prdicate typing

* Removing generics everywhere

* Fix type errors

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-04-14 14:45:45 +02:00
Tanner Linsley
231d9b17ee release: v5.74.2 v5.74.2 2025-04-14 10:54:39 +00:00
Raphael Gimenez
02c3d5130e
fix(query-core): unpause restored mutations (#9015)
* fix(query-core): unpause restored mutations

ensure that restored mutations have their isPaused state set to false when continued.

* Update packages/query-core/src/__tests__/mutations.test.tsx

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-04-14 12:48:59 +02:00
MINSEONG KIM
727230f3c2
test(query-core): add test case for hydration (#8949)
* test(query-core): add test case

* Reflect feedback

* Remove unnecessary code

* reflect not share a client between tests

* reflect feedback

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-04-14 09:47:33 +02:00
Tanner Linsley
ea9d3730ad release: v5.74.1 v5.74.1 2025-04-14 00:16:32 +00:00
Arnoud
5d12a32cbc
refactor(angular-query): remove private assertInjector util (#9012) 2025-04-14 02:12:24 +02:00
Arnoud
572e2a5b44
docs(angular-query): fix links (#9010) 2025-04-13 20:21:31 +02:00
Tanner Linsley
b76b0ef8b6 release: v5.74.0 v5.74.0 2025-04-13 17:48:44 +00:00
Omer Gronich
967c231d2a
feat(angular-query): add angular-persist-query-client
* feat(angular-query):
- Created isRestoring injection token and provider
- handled restoration phase in create-base-query.ts
- handled restoration phase in

* feat(angular-query): created package for experimental persistence support, and the withPersistQueryClient feature

* test(persistQuery): add tests for withPersistQueryClient

* docs(angular-query): add basic persister example

* fix(angular-query): synced angular versions in new package

* fix(angular-query): commit before ng update

* feat(angular-query): updated example to v18

* fix(angular-query): fixed project name to basic-persister

* feat(angular-query): updated example basic-persister to v19

* feat(angular-query): included back the persister package after angular migration

* feat(angular-query): migrate to provideEnvironmentInitializer

* fix(angular-query): fix eslint issues in inject-queries.ts

* Revert "feat(angular-query): migrate to provideEnvironmentInitializer"

This reverts commit af5b47b31511dd2db180abfd92f08541f29532d4.

* fix(angular-query): only track the isRestoring in the effect

* fix(angular-query): removed conditional _isRestoring

* ci: apply automated fixes

* fix(angular-query): used effect onCleanup instead of destroy ref

* Update examples/angular/basic-persister/.devcontainer/devcontainer.json

Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>

* Update examples/angular/basic-persister/package.json

Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>

* Update examples/angular/basic-persister/src/index.html

Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>

* Update examples/angular/basic-persister/tsconfig.json

Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>

* Update examples/angular/basic-persister/tsconfig.json

Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>

* Update examples/angular/basic-persister/tsconfig.json

Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>

* Update packages/angular-query-experimental/src/inject-is-restoring.ts

Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>

* fix(angular-query): fixed lock file

* fix(angular-query): aligned package.json versions

* added missing dep from basic-persister example

* Added a more complex example for persistence. This examples demonstrates how to selectively persist queries to different persisters.

* fix(angular-query) bumped versions to 5.62.4

* refactor(angular-query) refactored to implicit return

* fix(angular-query) bump angular persister package and examples version

* fix(angular-query) fixed eslint errors

* refactor(angular-query) set initial `isRestoring` to true to match the React adapter logic

* Revert "refactor(angular-query) set initial `isRestoring` to true to match the React adapter logic"

This reverts commit 235bbabebf.

* fix(angular-query) fixed formatting of JSDOC comment ruined by eslint

* update build configs

* zoneless unit tests

* replace deprecated injectQueryClient

* createBaseQuery is always run in injection context, remove inject(Injector)

* remove api extractor config

* update example dependencies

* comment out from publish script for now

* refactor(persist-query-client): simplify configuration by removing array structure for persistOptions

* refactor(angular-query-persist-client): removed experimental from package name and updated configurations

* fix example

* fix outdated comment

* exclude from preview for now

* mark package as private instead

* configure injectIsRestoring injector through options object

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>
2025-04-13 19:42:49 +02:00
MINSEONG KIM
3471d0f30f
test(query-core): add test case for mutationObserver (#8975)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-04-12 22:27:56 +02:00
MINSEONG KIM
ec1237768a
test(query-core): use fakeTimers for onlineManager.test.tsx (#8980)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-04-12 22:27:39 +02:00
Jonghyeon Ko
068b7645a4
test(query-core): use fakeTimers for infiniteQueryBehavior.test.tsx (#8961)
* test(query-core): use fakeTimers for infiniteQueryBehavior.test.tsx

* chore: update

* chore: reflect review
2025-04-12 22:14:46 +02:00
MINSEONG KIM
3bf217d39c
test(query-core): add test case for notifyManager (#8976) 2025-04-12 22:11:36 +02:00
MINSEONG KIM
efe6ddb076
test(react-query): use fakeTimers for ssr.test.tsx (#8981)
* test(react-query): use fakeTimers in ssr.test.tsx

* fix
2025-04-12 22:10:35 +02:00
MINSEONG KIM
c000d13b94
test(react-query): use fakeTimers in useIsFetching.test.tsx (#8982) 2025-04-12 22:10:12 +02:00