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

5,002 commits

Author SHA1 Message Date
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
Tanner Linsley
6682bb1489 release: v5.71.7 v5.71.7 2025-04-02 21:35:41 +00:00
Birk Skyum
8f84606235
fix(solid-query): use QueryClient from query-core (#8943)
* fix(solid-query): use QueryClient from query-core

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-02 23:33:36 +02:00
Birk Skyum
509dbd532b
chore(solid-query): update docs (#8942) 2025-04-02 21:29:11 +02:00
Birk Skyum
5f9eaef182
chore(solid-query): update examples, integration, docs (#8941)
* chore(solid-query): update examples/intergration

* update docs
2025-04-02 21:20:18 +02:00
Tanner Linsley
3294054006 release: v5.71.6 v5.71.6 2025-04-02 19:10:38 +00:00
Birk Skyum
2770a9147c
fix(solid-query): add compat types (#8940)
* fix(solid-query): add compat types

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-02 21:08:20 +02:00
Birk Skyum
5d6649ad8f
chore(solid-query): add readme (#8939) 2025-04-02 20:41:07 +02:00
Tanner Linsley
0972942783 release: v5.71.5 v5.71.5 2025-04-02 18:39:12 +00:00
Birk Skyum
1202ba0bec
fix(solid-query): add useQuery, useInfiniteQuery, useQueries, useMutation as alternative syntax to align with react and ease maintenance (#8938) 2025-04-02 20:36:54 +02:00
renovate[bot]
8b1eff18cf
chore(deps): replace dependency npm-run-all with npm-run-all2 ^5.0.0 (#8602)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-02 15:51:00 +02:00
Tanner Linsley
3ae06e5f2b release: v5.71.4 v5.71.4 2025-04-02 13:33:16 +00:00
Braden Wong
eebc9a366d
refactor: replace Accessor<T> wth FunctionedParams<T> (#8535) 2025-04-02 15:29:30 +02:00
Tanner Linsley
64368bf41b release: v5.71.3 v5.71.3 2025-04-02 09:47:46 +00:00
Birk Skyum
8e27629db7
update devDeps to vite 6 (#8896) 2025-04-02 11:45:58 +02:00