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
Arnoud
cc20045eca
chore(angular-query): add injection context tests (#7993) 2024-08-31 00:09:27 +02:00
Lachlan Collins
4b2c8c5a19
chore(deps): update to @tanstack/config 0.13.1 (#7986)
* chore(deps): update to @tanstack/config 0.13.1

* Fix types
2024-08-30 22:19:21 +10:00
Tanner Linsley
466401f8ee release: v5.53.1 v5.53.1 2024-08-30 10:29:25 +00:00
Bohdan Yefimenko
50315acbb3
fix(query-core): handle errors that occur inside setData method (#7966)
* fix(query-core): add test case for not serializable data

* fix(query-core): handle `setData` error

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

* fix(query-core): add `return` statement

* fix(query-core): throw the error in case when data is not serializable for non production env

* fix(query-core): delete packages/query-core/tsconfig.vitest-temp.json

* fix(query-core): lift serializability check and add console.error

* chore: message

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-08-30 12:24:16 +02:00
Lachlan Collins
82bfc340de
chore(deps): use ESLint v9 (#7985) 2024-08-30 18:42:25 +10:00
Lachlan Collins
8fe90104c6
chore(deps): update eslint plugins (#7984)
* chore(deps): update eslint plugins

* Refactor shadow-dom example
2024-08-30 18:04:08 +10:00
Tanner Linsley
9e086d89c9 release: v5.53.0 v5.53.0 2024-08-30 07:15:09 +00:00
Riva Junior
f3aad7c86e
feat(eslint-plugin): use typescript-eslint v8 stable (#7968)
* feat(eslint-plugin-query): use @typescript-eslint/utils stable v8

* test(eslint-plugin-query): fix missing parser

* Remove @typescript-eslint/parser

* Fix suggestion for empty queryKey array

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-08-30 17:09:59 +10:00
Tanner Linsley
9e755470b4 release: v5.52.3 v5.52.3 2024-08-29 23:04:13 +00:00
divdavem
eee80aff36
fix(angular-query): fix type of isSuccess, isError, isPending, isIdle on mutation result (#7923)
* fix(angular-query): fix type of isSuccess, isError, isPending, isIdle

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-30 01:00:28 +02:00
renovate[bot]
189e0c55fc
chore(deps): update @algolia/client-search to v5 (major) (#7979)
* chore(deps): update algoliasearch-client-javascript monorepo to v5

* Fix API usage

* Fix example

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-08-29 19:22:06 +10:00
renovate[bot]
f240106391
chore(deps): update material-ui monorepo to v6 (major) (#7978)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-29 17:24:59 +10:00
renovate[bot]
7f551696bd
chore(deps): update dependency jscodeshift to v17 (#7977)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-29 17:18:05 +10:00
renovate[bot]
b227998cb8
chore(deps): update dependency eslint-plugin-jsdoc to v50 (#7976)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-29 16:58:21 +10:00
renovate[bot]
21bddeb1ff
chore(deps): update dependency jsdom to v25 (#7975)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-29 16:37:17 +10:00
Lachlan Collins
907a38b850
chore: simplify clean commands (#7973) 2024-08-29 12:24:16 +10:00
Lachlan Collins
86d8438662
chore: better type vs value import separation (#7972) 2024-08-29 12:24:06 +10:00
Lachlan Collins
756164ae74
chore(devtools): consistent casing of devtools types (#7971) 2024-08-29 11:57:58 +10:00
Romain Trotard
804357b935
docs: Add known limitation about cancellation with suspense hooks (#7958)
* docs: Add known limitation about cancellation with suspense hooks

* 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-08-27 18:23:55 +02:00
Tanner Linsley
d29997a1b8 release: v5.52.2 v5.52.2 2024-08-26 17:55:04 +00:00
Dominik Dorfmeister
b93941db15
fix(types): error booleans shouldn't permanently be typed as false (#7956)
* fix(types): error booleans shouldn't permanently be typed as `false`

* fix(types): error booleans shouldn't permanently be typed as `false`

* chore: I don't understand these errors
2024-08-26 19:52:07 +02:00
Jonghyeon Ko
8cf7e2f097
chore: remove unused .all-contributorsrc (#7949) 2024-08-26 09:30:40 +02:00
Lachlan Collins
519759d731
examples(svelte-query): fix svelte auto-refetching styling (#7951) 2024-08-25 09:19:30 +10:00
Arnoud
73258c65e5
chore(angular-query): add type tests for injectQuery (#7947) 2024-08-24 02:47:41 +02:00
Tanner Linsley
d5a03424d8 release: v5.52.1 v5.52.1 2024-08-22 16:37:26 +00:00
Bumsik Kim
ca2e3067af
fix(react-query): Add missing React 19 peer dependency. (#7937)
PR https://github.com/TanStack/query/pull/7476 is done, but it seems to miss including it in react-query
2024-08-22 18:32:01 +02:00
Lanre Adelowo
639363c769
docs: make copyable example useful by default (#7928)
When copying the command, the $ appears in the copied text which makes a tiny text processing required - i.e removing the prefix. Instead of being able to just paste in a terminal and get going.

This mimics the behaviour of all commands everywhere else in the docs I could find. e.g https://tanstack.com/query/latest/docs/framework/react/installation
2024-08-21 13:18:15 +02:00
Tanner Linsley
7ac71ac563 release: v5.52.0 v5.52.0 2024-08-20 18:55:03 +00:00
Manuel Schiller
f65ebe70cb
feat(eslint-plugin-query): add rule that disallows putting the result of query hooks directly in a React hook dependency array (#7911)
* feat(eslint-plugin-query): add rule that disallows putting the result of useMutation directly in a React hook dependency array

* add doc

* add rule to recommended rules

* generalize to all affected query hooks

* rename rule to "no-unstable-deps"
2024-08-20 20:51:35 +02:00
Jonghyeon Ko
683c85e02c
refactor(query-core): type override subscribe in InfiniteQueryObserver more clearly (#7914)
* fix(query-core): type override subscribe in InfiniteQueryObserver more clearly

* chore: update
2024-08-19 20:18:11 +02:00
Shubh Porwal
c7fb5fddc8
docs: fix typos (#7898)
* fix(docs): `instead` typo

* fix(docs): `optimizes` typo

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-08-19 14:20:53 +02:00
Tanner Linsley
eee3948b45 release: v5.51.24 v5.51.24 2024-08-19 11:03:34 +00:00
Jonghyeon Ko
6500c98922
refactor(query-core): shorten listeners code (#7913) 2024-08-19 12:59:21 +02:00
Jonghyeon Ko
ab1a353ae4
ci(*): official @vitest/eslint-plugin (#7896)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-08-19 12:15:50 +02:00
Jonghyeon Ko
49a8dc40c3
docs: update README.md (#7904) 2024-08-19 11:48:05 +02:00
autofix-ci[bot]
04c977b72f
ci: apply automated fixes 2024-08-19 08:38:52 +00:00
박우빈
b565098f4d
docs: request-waterfalls typos (#7918) 2024-08-19 10:37:16 +02:00
Jay
3292791219
docs: divided installation scripts (#7881) 2024-08-19 10:36:40 +02:00
Ian VanSchooten
59a6d3df30
doc: Issue template: Point to latest examples (#7878)
* Issue template: Point to latest examples

* Update a couple of example versions
2024-08-09 21:59:06 +02:00
zhennann
5c4f88ddc3
docs: Update vue community projects (#7655)
* Update community-projects.md

Model: Unified Data Source

* Update community-projects.md

Add docs link for more info about model based on tanstack query

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-08-09 17:33:58 +02:00
Lachlan Collins
73fbf00184
ci: rename integration projects for consistency (#7875)
* ci: rename integration projects for consistency

* Fix lockfile
2024-08-09 20:09:09 +10:00
Tanner Linsley
11cda37f32 release: v5.51.23 v5.51.23 2024-08-08 08:02:45 +00:00
Dominik Dorfmeister
c744f99619
fix(react-query): ensure we have a gcTime of at least 1 second when using suspense (#7860)
Because React continues to render components that have already thrown to error boundaries, a small gcTime would lead to infinite fetches because if the cache entry is already removed, the next render will treat the extra render as a new suspending query.
2024-08-08 09:59:57 +02:00
Navin Khadka
1fc6124bfd
docs: Fix typo (#7865) 2024-08-07 16:16:17 +02:00
Tanner Linsley
c6309c13c2 release: v5.51.22 v5.51.22 2024-08-06 20:30:56 +00:00
Arnoud
ed25a3ff3f
fix(angular-query): reorder query function declarations (#7861) 2024-08-06 22:27:05 +02:00
Jay
1a1708bbfd
docs: add contributing section (#7856) 2024-08-06 10:12:28 +02:00
GwanSik Kim
075ba1c261
docs: add suspensive react query to community projects (#7846)
* docs: add react suspensive react query to community projects

Co-authored-by: Jonghyeon Ko <61593290+manudeli@users.noreply.github.com>

* docs: update suspensive react query link

---------

Co-authored-by: Jonghyeon Ko <61593290+manudeli@users.noreply.github.com>
2024-08-05 09:37:26 +02:00
dochi
d14e0060c8
docs(react-query):fix-missing-isServer-import (#7849) 2024-08-05 09:36:45 +02:00
Tanner Linsley
0696b514ce release: v5.51.21 v5.51.21 2024-08-02 18:43:38 +00:00