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
renovate[bot]
bbd3821770
chore(deps): update dependency astro to v4.16.1 [security] (#8181)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-24 01:41:22 +00:00
renovate[bot]
22b89c96cd
chore(deps): update dependency next to v14.2.10 [security] (#8128)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-24 01:26:32 +00:00
Lachlan Collins
b846c53239
test(integrations): switch react-scripts to webpack (#8329)
* chore: switch CRA 4 to webpack 4

* pnpm dedupe

* test(integrations): switch CRA 5 to webpack 5

* Better dep vs devDep separation

* Fix lockfile
2024-11-24 12:09:27 +11:00
Arnoud
2588a08102
docs(angular-query): fix angular examples (#8335) 2024-11-24 00:11:34 +01:00
Tanner Linsley
3888f23116 release: v5.61.2 v5.61.2 2024-11-23 22:43:49 +00:00
Arnoud
228382fc01
fix(angular-query): subscribe to observer outside the Angular zone (#8331) 2024-11-23 23:40:38 +01:00
Eliya Cohen
80a49ffd3f
fix(eslint-plugin-query): improve external reference relevance (#8334)
* fix: handle external variable in queryFn without failure

Adjusted tests to ensure that the rule does not fail when a queryFn inside queryOptions contains a reference to an external variable. Also updated other tests to wrap query calls in a function component for consistency.

fix #8326

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-23 20:38:42 +01:00
Daniel Reichhart
102b6a892d
docs(react-query): add example for Expo Network in online status management (#8298)
* docs: expo-network

* ci: apply automated fixes

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-22 19:32:19 +01:00
Tanner Linsley
436422ca4c release: v5.61.1 v5.61.1 2024-11-20 16:38:01 +00:00
Arnoud
f5e2baa04e
fix(angular-query): export CreateMutationOptions (#8319) 2024-11-20 17:33:12 +01:00
Tanner Linsley
8a25b4e93b release: v5.61.0 v5.61.0 2024-11-20 13:01:32 +00:00
Arnoud
5731a3a267
feat(angular-query): add mutationOptions (#8316) 2024-11-20 13:58:00 +01:00
Dominik Dorfmeister
3fa4b7cce3
fix(types): make sure queryOptions are passable to UseQueryOptions (#8317) 2024-11-20 13:56:31 +01:00
Arnoud
6a9edbfb44
docs(angular-query): update queryOptions documentation (#8311)
* docs(angular-query): update queryOptions documentation

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-19 23:57:22 +01:00
Tanner Linsley
77b5f3a634 release: v5.60.7 v5.60.7 2024-11-19 18:40:02 +00:00
Arnoud
4aff8469aa
fix(angular-query): remove queryClient parameter from callback functions (#8307) 2024-11-19 19:32:49 +01:00
Tanner Linsley
fa77f323cb release: v5.60.6 v5.60.6 2024-11-19 10:17:37 +00:00
Juhyeok Kang
7d36089440
refactor(*): change noop function return type from undefined to void (#8299)
* refactor(*): use noop

* refactor: separate noop and returnUndefined functions with type refinement

Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
Co-authored-by: Sol Lee <82362278+saul-atomrigs@users.noreply.github.com>

* refactor: optimize bundle size with type re-assertion

* fix: Prevent type error by overloading noop function

* fix: remove jsdoc

* fix

* revert

* revert at react-query and angular-query-experimental

---------

Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
Co-authored-by: Sol Lee <82362278+saul-atomrigs@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-11-19 10:25:51 +01:00
Ammar
fadfbde045
Update infinite-queries.md (#8302) 2024-11-18 18:22:25 +01:00
Tanner Linsley
3fc2fce77e release: v5.60.5 v5.60.5 2024-11-15 18:06:46 +00:00
Dominik Dorfmeister
4a2e838fc0
fix(useQueries): make sure we don't lose property tracking (#8295)
if we call `combine` with `#this.result`, we don't have a tracked version of it, as tracking happens in useQueries (to avoid tracking internal access)
2024-11-15 19:04:39 +01:00
Arnoud
0df28830a7
docs(angular-query): type narrowing (#8297) 2024-11-15 18:48:03 +01:00
Arnoud
118b1522ef
docs(angular-query): add TypeScript documentation (#8296) 2024-11-15 18:35:16 +01:00
Tanner Linsley
878649500c release: v5.60.4 v5.60.4 2024-11-15 15:43:20 +00:00
Jonghyeon Ko
6c2a05507d
refactor(*): unify & use noop (#8294)
* refactor(*): unify & use noop

* chore: update

* fix(query-core): reflect tkdodo's review

* chore: resolve type error
2024-11-15 16:38:50 +01:00
Tanner Linsley
7838edc754 release: v5.60.3 v5.60.3 2024-11-14 21:55:29 +00:00
Arnoud
923736c62e
fix(angular-query): support inject(QueryClient) (#8292)
* fix(angular-query): support inject(QueryClient)

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-14 22:48:46 +01:00
Tanner Linsley
7615661593 release: v5.60.2 v5.60.2 2024-11-14 12:48:16 +00:00
Arnoud
94891fd137
refactor(angular-query): build with tsup and remove devtools component (#8284)
* chore(angular-query): build with tsup

* ci: apply automated fixes

* remove unused tslib dependency

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-14 13:40:48 +01:00
Jonghyeon Ko
c9fcd2fd74
test(react-query): useInfinitePrefetchQuery -> usePrefetchInfiniteQuery (#8265) 2024-11-13 09:39:29 +01:00
Sol Lee
322974c651
chore(eslint-plugin-query): ignore combinate spell check lint warning (#8266)
* chore: ignore `combinate` spell check lint warning

* fix typo

* chore: apply to root eslint config instead of just `eslint-plugin-query`
2024-11-13 08:53:40 +01:00
Jonghyeon Ko
8d1f5429e1
test(react-query): add test case for useSuspenseQueries accept skipToken as queryFn (#8271) 2024-11-13 08:07:35 +01:00
Jonghyeon Ko
ebd4c2b4ed
test(react-query): add test case for useSuspenseInfiniteQuery accept skipToken as queryFn (#8270) 2024-11-13 08:07:00 +01:00
Jonghyeon Ko
e802711e7b
test(react-query): add test case for useSuspenseQuery accept skipToken as queryFn (#8269) 2024-11-13 08:06:15 +01:00
Jonghyeon Ko
c2b435dcd9
test(react-query): add test case for infiniteQueryOptions (#8268) 2024-11-13 08:05:42 +01:00
Jonghyeon Ko
6c9e3f318c
test(react-query): add test case for queryOptions (#8267)
* test(react-query): add test case for queryOptions

* chore: update
2024-11-13 08:05:17 +01:00
Ethan Glover
aa6d3f84df
docs: Add @tanstack/query/infinite-query-property-order link (#8285) 2024-11-13 08:03:51 +01:00
Arnoud
f56fc84159
docs(angular-query): improve examples (#8273) 2024-11-10 22:08:44 +01:00
Jonghyeon Ko
74c65cc2db
test(react-query): refactor test file structure 1 file by 1 api (#8262)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-11-08 18:11:01 +01:00
Ariel-Moroshko
7085bd11c0
docs: correct file extensions to .tsx and add type annotations (#8259)
* Fix typo: 'hydrate' to 'dehydrate' in documentation

* fix: correct file extensions to .tsx and add type annotations

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-08 14:07:07 +01:00
Tanner Linsley
8ae5aed0ba release: v5.60.1 v5.60.1 2024-11-08 10:06:49 +00:00
Gyumong
2f6c028ff8
fix(eslint-plugin-query): add Suspense query hooks to no-rest-destructuring rule (#8260)
* fix(eslint-plugin-query): add missing hooks to no-rest-destructuring rule

* test(no-rest-destructuring): add test cases for Suspense query hooks
2024-11-08 11:03:58 +01:00
Tanner Linsley
3ea6c0c875 release: v5.60.0 v5.60.0 2024-11-07 15:32:23 +00:00
Arnoud
2459701116
feat(angular-query): add withDevtools and injectDevtoolsPanel 2024-11-07 16:18:52 +01:00
Tanner Linsley
5ce9959c02 release: v5.59.20 v5.59.20 2024-11-06 14:13:37 +00:00
Dominik Dorfmeister
848df6236c fix: don't ship test files 2024-11-06 15:04:17 +01:00
Jonghyeon Ko
06e315c9ff
test(react-query): type test usePrefetchInfiniteQuery correctly (#8223)
* test(react-query): type test usePrefetchInfiniteQuery correctly

* chore: update
2024-11-04 09:47:33 +01:00
Artur Abdullin
aa92accdbd
docs(devtools): fix typo (#8248) 2024-11-04 07:38:47 +01:00
Tanner Linsley
b8bef6a5c8 release: v5.59.19 v5.59.19 2024-11-03 14:18:08 +00:00
Kae
9c93dc0642
fix(query-devtools): handle null properties for __previousQueryOptions (#8240)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-11-03 15:14:15 +01:00