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

5,264 commits

Author SHA1 Message Date
andy
5426e6c0a3
fix(deps): Add react-native field to package.json for Metro resolutions (#8653) 2025-02-16 11:14:28 +01:00
Arnoud
c807ee26d4
chore(angular-query): zoneless testing (#8652) 2025-02-15 13:11:15 +01:00
Martijn Gribnau
b184cd5752
docs(react-native): fix typo (#8637) 2025-02-12 16:01:46 +01:00
Frederic R.
4621e5b6b1
docs(react-native): partial revert online manager usage (#8634)
introduced a regression in the doc with PR #8633
only expo network returns an object
NetInfo returns a function
mea culpa
2025-02-11 17:25:39 +01:00
Frederic R.
5bf569b1f3
docs(react-native): online manager usage change (#8633)
resolves #8631
2025-02-11 15:55:17 +01:00
Tanner Linsley
8f9f183f11 release: v5.66.1 v5.66.1 2025-02-10 17:44:01 +00:00
Nisharg Shah
8093fc2ce5
fix(eslint-plugin-query): add name attribute for eslint config inspector (#8584)
* fix(eslint-plugin-query): add name attribute for eslint config inspector

* 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>
2025-02-10 18:40:57 +01:00
Nisharg Shah
0186c20fc7
chore(eslint-plugin-query): update FlatConfig to Config due to deprecation (#8585)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-02-10 18:40:12 +01:00
TkDodo
2d677aeaa9 chore: harden nx dependency 2025-02-10 17:46:01 +01:00
Arnoud
7ff544e12e
docs(angular-query): improve queryOptions code snippets (#8601) 2025-02-02 19:26:57 +01:00
Tanner Linsley
ebe996d70d release: v5.66.0 v5.66.0 2025-01-31 09:05:17 +00:00
Dominik Dorfmeister
f86eb7e099
feat(core): add client to queryFunctionContext (#8599)
* feat: add queryClient to queryFunctionContext

* fix: remove queryClient exception

closing over a queryClient should now error, as we pass the queryClient directly to the queryFunctionContext

* fix: persister

* refactor: keep private reference to cache

* chore: fix tests

* docs: QueryFunctionContext

* refactor: derive from private member

* refactor: name it `client`

* refactor: let's go with client

* chore: try skipping the cache

* chore: re-enable caching

and try to bust it by changing sharedGlobals lol
2025-01-31 10:02:56 +01:00
Alex Batalov
a507400307
docs: Add OpenAPI Qraft React to the list of community projects (#8588) 2025-01-29 13:32:24 +01:00
Tanner Linsley
7bbc86c3ff release: v5.65.1 v5.65.1 2025-01-28 08:59:52 +00:00
Oliver Joseph Ash
088ec87e6d
fix(useSuspenseQuery): throw select errors to ErrorBoundary (#8593) 2025-01-28 09:38:21 +01:00
Tanner Linsley
c6af7a5712 release: v5.65.0 v5.65.0 2025-01-27 16:19:17 +00:00
Dominik Dorfmeister
2399bb048b
feat(types): type narrowing for isPlaceholderData (#8586)
* feat(types): type narrowing for isPlaceholderData

* fix: infiniteQueryObserver types

* fix: typing issues 🤷‍♂️

* chore: add missing tsconfig.legacy.json files

* fix: run type-tests in serial
2025-01-27 17:17:34 +01:00
Dominik Dorfmeister
97f55448b8
chore: composite monorepo (#8560)
* chore: query-query, react-query and persist-core to composite setup

* fix: self contain packages by having shared configs as symlinks

* fix: add tsConfigPaths to vite config

so that tests can pick up the path aliases

* chore: set outDir, rootDir and baseUrl for all packages

* chore: make legacy tsconfig extend regular tsconfig

* fix: tsc --build

* feat: setup project references

* fix: legacy configs also need references

* fix: oops

* fix: tsup related builds

we need to turn off composite builds for tsup

* fix: set rootDir for tsup builds

so that it can include all files it needs

* fix: remove dependencies on ^build

we no longer need builds to run tests / type checks

* fix: add separate out dir for tsc

* fix: include root eslint config in globals

* refactor: create compile task to depend on

* fix: typo

* fix: dynamic alisases for vitest

* chore: try to fix knip

* fix: make compile a cacheable task

* chore: temporary disable tests against older TS versions

* fix: ts doesn't like string return types

* fix(vue-query-devtools): fix build

* fix: test types

* Revert "chore: temporary disable tests against older TS versions"

This reverts commit 10ef560eb5.

* fix: make legacy ts builds output to their own directory

* chore: remove test:types from examples as they need a build step

* chore: fix knip

* chore: remove test:types from all examples

* Revert "Revert "chore: temporary disable tests against older TS versions""

This reverts commit d6daded7da.

* fix: outputs for compile task

* chore: remove test:types from integrations

* Revert "Revert "Revert "chore: temporary disable tests against older TS versions"""

This reverts commit 79b4844785.

---------

Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2025-01-27 15:58:10 +01:00
Oleksandr Danylchenko
d595e23679
docs: fix variables obtaining path (#8589) 2025-01-26 19:24:42 +01:00
Dominik Dorfmeister
061340072a
ci: bundle size preview (#8577)
* ci: bundle size preview

* chore: syntax

* fix: markdown syntax for images

* fix: use github event number over sha

* fix: fix main link

* chore: format message

* fix: make preview bundle size part of the preview step

* fix: proper links

* fix: back to github.sha

* fix: determine correct commit SHA

* ok
2025-01-25 10:51:09 +01:00
Alex Errant
12d4542f25
docs: Document staleTime's default (#8561) 2025-01-24 14:53:38 +01:00
Favour Ohanekwu
322760bf43
docs(framework): update Next.js and Svelte documentation links (#8572)
* docs(svelte): fix writable stores tutorial link

Update the Svelte stores tutorial link to the correct URL in the Svelte Query overview documentation.

The previous link to writable-stores was broken or outdated.

* docs(ssr): update Next.js documentation links to latest version

Update outdated Next.js documentation links in the SSR guide to point to
the latest App Router documentation paths, ensuring users are directed to
the most current and relevant documentation.

Links updated:
- rewrites feature
- automatic static optimization
- rewrite parameters
2025-01-23 17:50:04 +01:00
Paul Nodet
cd88c9cd64
docs: fix invalid openapi-react-query url (#8568) 2025-01-23 07:13:33 +01:00
renovate[bot]
4a0a129803
chore(deps): update dependency vite to v5.4.12 [security] (#8563)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-22 06:01:46 +00:00
Ruud Andriessen
397fcfc141
docs: prefer using satisfies instead of type cast in persistQueryClient docs (#8551) 2025-01-20 17:26:19 +01:00
Tanner Linsley
d4d246685c release: v5.64.2 v5.64.2 2025-01-19 08:45:19 +00:00
Seyed Mohammad Asadi
3e3fba997b
fix(react-query): add missing subscribed option to UseInfiniteQueryOptions (#8546)
* fix(react-query): add missing subscribed option to UseInfiniteQueryOptions

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-19 09:35:18 +01:00
Lachlan Collins
f04dd199ea
chore(deps): replace rimraf with premove (#8532)
* chore(deps): replace rimraf with premove

* Fix command

* Fix sherif
2025-01-14 08:32:22 +11:00
Tanner Linsley
e3e8814ea3 release: v5.64.1 v5.64.1 2025-01-13 13:23:39 +00:00
Neef Rehman
8d174c8f92
fix(types): support both Array and ReadonlyArray for typed query and mutation keys (#8529)
* fix(types): support both `Array` and `ReadonlyArray` for typed query and mutation keys

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-13 14:18:23 +01:00
Tanner Linsley
4a589bf279 release: v5.64.0 v5.64.0 2025-01-11 18:59:20 +00:00
Ciarán Curley
8ddebc6640
docs(react-query): highlight per component select pattern for query options (#8522)
* docs(react-query): per component select pattern

highlight per component select pattern for query options

* Update docs/framework/react/guides/query-options.md

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-01-11 19:55:57 +01:00
Neef Rehman
fd500a4078
feat(types): support typing QueryKey and MutationKey via Register (#8521)
* feat(types): support typing QueryKey and MutationKey via Register

* 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>
2025-01-10 16:47:08 +01:00
Przemek Maszczynski
690fd2ae08
docs(react-query): Add import statement with skipToken to the docs (#8519)
* docs(react-query): Add import statement with skipToken to the docs

Makes more obvious how should the skipToken be used

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-10 13:49:47 +01:00
Tanner Linsley
564e549687 release: v5.63.0 v5.63.0 2025-01-08 14:21:54 +00:00
Dominik Dorfmeister
e2bc2165fa
feat(react-query): allow useQuery and useQueries to unsubscribe from the query cache with an option (#8348)
* feat(react-query): allow useQuery and useQueries to unsubscribe from the query cache with an option

* test: subscribed

* fix: revert calling getOptimisticResult later

* docs(react): update the react-native.md section (#8506)

* update the doc

* update the doc

---------

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

* docs: reference

---------

Co-authored-by: Florian De la comble <f.delacomble@gmail.com>
2025-01-08 15:17:08 +01:00
Tanner Linsley
3c5d8e348c release: v5.62.16 v5.62.16 2025-01-06 19:15:35 +00:00
nick-avi-say
e664d2274c
fix(QueriesObserver): include default options on duplicate query, queryHash check (#8432)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-01-06 19:17:18 +01:00
Alex Liu
3104854c1c
fix(vue-query): ensure queryKey match the current value of ref used inside (#8443)
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2025-01-04 14:31:11 +01:00
Ifeanyi Aladi
f6757a603a
fix(react-query): eslint-plugin-query now working with vanilla js (#8322)
* fix: eslint-plugin-query not working with vanilla js

* Update packages/eslint-plugin-query/src/utils/detect-react-query-imports.ts

* Disabled linter for conditional statement

This should make it pass the eslint-plugin test

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2025-01-04 12:32:59 +01:00
Dominik Dorfmeister
d08d115d92 test: add a test to ensure new meta gets accepted by fetchQuery 2025-01-04 12:25:59 +01:00
Tomáš Vojtášek
9a0ca9bf82
fix(eslint-plugin-query): export Plugin interface (#8392)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-01-04 12:24:54 +01:00
Tanner Linsley
c91c590a82 release: v5.62.14 v5.62.14 2025-01-03 19:50:18 +00:00
MINSEONG KIM
0503282843
fix(react-query): ensureSuspenseTimers should ALWAYS set staleTime to 1000 when it is below 1000. (#8398)
* fix(react-query): ensureSuspenseTimers should ALWAYS set staleTime to 1000 when it is below 1000.

* ci: apply automated fixes

* fix(react-query): fix ensureSuspenseTimers logic

* test(react-query): add test code

* test(react-query): delete unnecessary test code

* test(react-query): Refectoring test code to reduce test time

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-01-03 20:00:04 +01:00
Tanner Linsley
bc8b9e79da release: v5.62.13 v5.62.13 2025-01-03 16:32:01 +00:00
Arnoud
f2fb523cd1
refactor(angular-query): deprecate injectQueryClient (#8497) 2025-01-03 17:28:48 +01:00
Ayush Seth
6184a89354
docs(angular-query): remove outdated comment from example
* Update invalidations-from-mutations.md

* Update invalidations-from-mutations.md

* restore first code snippet

---------

Co-authored-by: Arnoud de Vries <6420061+arnoud-dv@users.noreply.github.com>
2025-01-03 16:54:42 +01:00
Tanner Linsley
b25a41e209 release: v5.62.12 v5.62.12 2025-01-03 14:50:19 +00:00
Dominik Dorfmeister
19b95c47bb
perf(query-core): Improve mutationCache implementation performance (#8496)
---------

  Co-authored-by: Josh Story <jcs.gnoff@gmail.com>
2025-01-03 15:48:13 +01:00
Matt Tingen
3124193c08
docs: describe query default changes in v5 (#8488)
Fixes #8485
2025-01-03 15:21:03 +01:00