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

5,266 commits

Author SHA1 Message Date
MINSEONG KIM
c000d13b94
test(react-query): use fakeTimers in useIsFetching.test.tsx (#8982) 2025-04-12 22:10:12 +02:00
MINSEONG KIM
e5f57f6cec
test(react-query): use fakeTimers for usePrefetchQuery.test.tsx (#8983) 2025-04-12 22:09:55 +02:00
Jonghyeon Ko
403ebd474f
test(query-core): use fake timers for hydration.test.tsx (#9006) 2025-04-12 22:08:52 +02:00
Jonghyeon Ko
c710ab3f41
test(query-core): use fake timers for queriesObserver.test.tsx (#9005)
* test(query-core): use fake timers for queriesObserver.test.tsx

* chore: update
2025-04-12 22:08:23 +02:00
Giorgio Polvara
376bbd25a3
docs: fix documentation on status for suspense hooks (#9008)
* fix documentation on status for suspense hooks

* Fix formatting in useSuspenseInfiniteQuery.md
2025-04-12 22:05:20 +02:00
Tanner Linsley
f16d7afe1e release: v5.73.3 v5.73.3 2025-04-12 14:23:06 +00:00
Dominik Dorfmeister
38178bade2
fix(query-core): make sure we don't invoke select too often when using placeholderData (#9007)
* fix(query-core): make sure we don't invoke select too often when using placeholderData

* ref: run through placeholderData first, then through

this helps us memoizing select calls, and we can get rid of some duplication around how select is called again after placeholderData

* chore: skip-nx-cache attempt

* test: increase timeout

* chore: re-enable caching
2025-04-12 16:20:58 +02:00
Dominik Dorfmeister
d5ba5d1880
chore: bundle-size reporting 2025-04-12 12:09:15 +02:00
Lachlan Collins
713ba3a35d
chore(deps): update packages (#9003)
* chore(deps): update packages

* ci: apply automated fixes

* Remove @types/eslint

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-12 11:58:55 +10:00
renovate[bot]
a48ec06f29
chore(deps): update dependency vite to v6.2.6 [security] (#9000)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-12 11:18:36 +10:00
Tanner Linsley
cc2a72e33d release: v5.73.2 v5.73.2 2025-04-12 01:06:49 +00:00
Lachlan Collins
c4afce47ed
chore: use "moduleResolution": "Bundler" at root level (#9002)
* Change to bunlder at root

* Update Next defaults

* Remove moduleResolution from packages

* Remove from scripts

* Unify moduleResolution

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-12 11:03:59 +10:00
Eliya Cohen
f536199dca
fix(eslint-plugin-query): add footer workaround for CJS default export in modernConfig (#8991) 2025-04-11 07:40:39 +02:00
Arnoud
ba18d2a5db
chore(angular-query): remove unused microsoft api extractor configs (#8993) 2025-04-10 23:40:30 +02:00
Tanner Linsley
5f65345a4d release: v5.73.1 v5.73.1 2025-04-10 16:18:49 +00:00
David Madner
2e1282ca03
fix(persistQueryClientRestore): better error handling for persistQueryClientRestore (#8969)
* fix(persistQueryClientRestore): Do not swallow exceptions during in persistQueryClientRestore within `restoreClient` and `removeClient`

* fix: rethrow errors in removeClient within all branches

* fix: test for PersistQueryClientProvider in all consumers

* chore: implement PR feedback

* chore: mock console calls, so they do not end up in the console. This way we can also assert on the invocations

* chore: consoleWarn mocks to be restored after each test

* chore: remove tmp file commited accidentally

* chore: adjust docs and include new optional callback `onError`

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-04-10 18:13:17 +02:00
Tanner Linsley
a2c07a4d42 release: v5.73.0 v5.73.0 2025-04-10 15:00:28 +00:00
zhong666
f56a9f224a
feat(vue-query): useInfiniteQuery options support maybe ref type (#8956)
* feat: useInfiniteQuery options support  maybe ref type

* ci: apply automated fixes

* fix: types

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-10 16:57:17 +02:00
Juan Gonzalez
47e6662dd3
docs: fix a few typos (#8962) 2025-04-10 14:15:03 +02:00
Alex Liu
97f9625f36
types(vue-query): add shallow support to QueryClientConfig (#8692)
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2025-04-10 14:08:53 +02:00
Young
d4f49561f0
docs(vue-query): update example in disabling-queries.md (#8433) 2025-04-10 14:03:08 +02:00
spookyuser
b18972fab5
docs: update createPersister.md with info about cache mutations (#8893)
* Update createPersister.md with info about https://github.com/TanStack/query/issues/6310

* Fix typo

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-10 14:02:45 +02:00
Tanner Linsley
812fadf094 release: v5.72.3 v5.72.3 2025-04-09 20:00:20 +00:00
Dominic Bachmann
ed3565250e
fix(angular-query): align function signatures to have an options parameter accepting an object with injector property (#8776)
* refactor(angular-query): change query functions to accept an options object instead of an injector

change query functions to accept an options object instead of an injector so that it matches angular APIs such as effect and allows adding more options in the future.

Closes #8711

* ci: apply automated fixes

* fix build error

* revert changes to deprecated injectQueryClient

* Rename optionsFn as we now also have an options parameter

* Revert changes to injectQueries as there's a PR in progress for that

* Add types for options

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Arnoud de Vries <6420061+arnoud-dv@users.noreply.github.com>
2025-04-09 21:56:32 +02:00
Eliya Cohen
72362377b0
chore: add eslint test script to package.json (#8979)
* chore: add eslint test script to package.json

Add a new script "test:eslint" to run eslint on the src directory, improving code quality checks during development.

* fix(nx): ensure test eslint depends on build for plugin workspace

Added nx configuration to make test:eslint target depend on the build target of its dependencies, ensuring the eslint plugin workspace is built before running tests.
2025-04-09 18:08:32 +02:00
Tanner Linsley
acd519c707 release: v5.72.2 v5.72.2 2025-04-09 14:17:58 +00:00
TkDodo
bf7b66cb18 chore: remove eslint task from basic example 2025-04-09 16:15:01 +02:00
Tyler
0c229f4cf0
Revert "chore(paths): use customConditions to define internal imports… (#8973)
* Revert "chore(paths): use customConditions to define internal imports (#8935)"

This reverts commit 8e0c6b7639.

* fix export

* refactor: make test:lib depend on compile again

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-04-09 15:58:33 +02:00
Eliya Cohen
7d3a1a37d1
fix(eslint-plugin): separate legacy and modern dts files (#8972)
* chore(build): restructure eslint-plugin-query build configuration

Aligned the build system with other packages by replacing the custom tsup config with standard modern/legacy build outputs. Moved output files from 'dist' to 'build' directory structure. Removed the patch-missing-export-equals.js script in favor of directly exporting the plugin. Added tsconfig.prod.json for production builds.

* chore(example): eslint classic

* ci: apply automated fixes

* fix: unique name for examples

* remove unused import

* chore: add eslint test script to react examples and update eslint test command

Add `test:eslint` script to react example package.json files to enable linting checks. Update the main `test:eslint` command to remove the exclusion of examples, ensuring linting is applied across the entire project.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: TkDodo <office@dorfmeister.cc>
2025-04-08 17:14:36 +02:00
Tanner Linsley
0964fba8e3 release: v5.72.1 v5.72.1 2025-04-08 12:58:00 +00:00
Dominik Dorfmeister
4ad696aa6a
chore: trigger release
RELEASE_ALL
2025-04-08 14:55:35 +02:00
Eliya Cohen
97c8d84bcc
fix(eslint): classic build (#8971) 2025-04-07 16:41:35 +02:00
Mohammad Reza Badri
0e1d866dfe
docs: correct missing closing quote in networkMode option (#8965) 2025-04-07 14:21:06 +02:00
TkDodo
1771dd2503 chore: (temporary) make test depend on build 2025-04-07 13:46:40 +02:00
novice0840
04b58a5b52
docs(readme): document how to run tests using Nx (#8967) 2025-04-07 13:44:47 +02:00
Tanner Linsley
667650a0e2 release: v5.72.0 v5.72.0 2025-04-07 09:20:28 +00:00
Eliya Cohen
993e838d5f
feat(eslint-plugin): no-void-queryFn (#8925)
* feat(eslint-plugin-query): implement no-void-query-fn rule

* add docs

* ci: apply automated fixes

* build(eslint-plugin-query): switch from vite to tsup for building

* update lockfile

* revert lockfile

* fix

* fix publint

* chore: add script to patch missing export equals

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-07 11:17:45 +02:00
renovate[bot]
644e94514b
chore(deps): update dependency vite to v6.2.5 [security] (#8957)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-06 02:19:38 +00:00
TkDodo
57d159c425 chore: hopefully changing nx.json will cache-bust everything? 2025-04-05 20:18:52 +02:00
TkDodo
7e4e2e638e Revert "ci: disable nx-caching in CI"
This reverts commit 3319d35dcd.
2025-04-05 20:12:10 +02:00
TkDodo
3319d35dcd ci: disable nx-caching in CI 2025-04-05 19:20:42 +02:00
Tyler
8e0c6b7639
chore(paths): use customConditions to define internal imports (#8935)
* fix(paths): use customConditions to define internal imports

* the rest of the changes

* publint and vitest fixes

* order matters!

thanks https://colinhacks.com/essays/live-types-typescript-monorepo

* upgrade publint to get customCondition support

added here: b34ea9433f

* remove dynamicAliases

* remove getViteAliases

* try without references?

* Revert "try without references?"

This reverts commit b18bc946e8.

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-04-04 21:24:15 +02:00
Tanner Linsley
1bf2df6b67 release: v5.71.10 v5.71.10 2025-04-04 12:44:41 +00:00
novice0840
d2768d36f9
refactor(query-core): remove double negative (#8952)
Co-authored-by: frontend-woosung <kim.woosung@cashwalk.io>
2025-04-04 14:37:49 +02:00
marcelas5
9556576b7b
docs: fix contributing link (#8954)
http://localhost:3000/query/latest/docs/overview is broken. Change it
to point to react overview page.
2025-04-04 11:42:21 +02:00
Tanner Linsley
fcd4bf5d81 release: v5.71.9 v5.71.9 2025-04-03 21:57:14 +00:00
Birk Skyum
d040eaacf6
fix(solid-query): deprecate create in favor of use, and add full docs (#8950)
* Revert "fix(solid-query): keep solid-query on just `createQuery` syntax (#8947)"

This reverts commit 4e45d7c9a1.

* Revert "fix(solid-query): use QueryClient from query-core (#8943)"

This reverts commit 8f84606235.

* deprecate create types

* add proper deprecation

* add solid reference

* add solid guides

* request waterfall and advanced ssr

* client-state

* ci: apply automated fixes

* ci: apply automated fixes (attempt 2/3)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-03 23:54:40 +02:00
Tanner Linsley
477faeac7a release: v5.71.8 v5.71.8 2025-04-03 16:29:27 +00:00
Birk Skyum
4e45d7c9a1
fix(solid-query): keep solid-query on just createQuery syntax (#8947) 2025-04-03 18:26:41 +02:00
renovate[bot]
8f03e59620
chore(deps): update dependency next to v15.2.3 [security] (#8844)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-03 18:18:58 +11:00