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

5,191 commits

Author SHA1 Message Date
Arnoud
67d1705944
fix(angular-query): improve support for required signals (#8409) 2024-12-08 16:41:43 +01:00
René Klomp
7f9f28eef2
docs: Removed unused notifyOnChangeProps prop (#8415) 2024-12-07 20:15:43 +01:00
Mohammed Elzanaty
bb31c47eb8
📝 docs(query): add link to infiniteQueryOptions reference (#8413) 2024-12-07 15:35:38 +01:00
Dominik Dorfmeister
76900b8f27
docs: remove confusing sentence (#8411) 2024-12-07 09:07:34 +01:00
최준영
665e747c6a
docs: Fix typo in useMutation.md (#8397)
Fix typo in useMutation.md
2024-12-07 09:00:19 +01:00
Tanner Linsley
d3073c86c4 release: v5.62.3 v5.62.3 2024-12-06 15:33:36 +00:00
Dominik Dorfmeister
32d71892cd
fix: allow passing enabled:true when skipToken is present (#8407) 2024-12-06 16:30:20 +01:00
Matan Shushan
d6621a8631
docs(angular-query): add auto-refetching example (#8371)
* feat(examples): add angular auto-refetching example

Implement an example showcasing auto-refetching in Angular using TanStack Query. Includes a mock API interceptor to simulate HTTP calls for tasks.

* feat(examples): add angular auto-refetching example

Implement an example showcasing auto-refetching in Angular using TanStack Query. Includes a mock API interceptor to simulate HTTP calls for tasks.

* feat(examples): update lock file

* Update lock file

* ci: apply automated fixes

* Update examples/angular/auto-refetching/.devcontainer/devcontainer.json

Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>

* Update examples/angular/auto-refetching/package.json

Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>

* Update examples/angular/auto-refetching/src/index.html

Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>

* Update examples/angular/auto-refetching/tsconfig.json

Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>

* Update examples/angular/auto-refetching/tsconfig.json

Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>

* Update examples/angular/auto-refetching/tsconfig.json

Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>

* Update examples/angular/auto-refetching/src/app/app.config.ts

Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>

* Update MR change interceptor to function interceptor and update all tasks to quert options obj

* Update Angular version

* Update Angular version

* ci: apply automated fixes

* Add fetching indicator

* add example to docs

* fix build

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>
2024-12-05 00:30:59 +01:00
Max
8ccc36c82a
docs: useQuery to object syntax (#8387)
* docs: useQuery to object syntax

* 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-12-03 08:43:25 +01:00
Tanner Linsley
73ec525f32 release: v5.62.2 v5.62.2 2024-12-03 07:29:36 +00:00
Nick Lucas
175757afe6
fix(types): Fix type errors when using fully-typed inputs like QueryFilters<Data, Error>, and test all QueryClient methods to detect similar issues (#8375)
* Add test with failing types

* Tidy up

* Move tests to correct file

* Add initial fixes (some review and testing needed)

* Formatting

* Ensure T params are mandatory for new overloads

* Fix type issues

* Unnecessary DataTag

* Add typeless tests

* Fix some cases

* Fixing more cases

* Fix some typings

* Fix remaining issues

* Fix linting errors

* Fix one warning

* Revert unnecessary change to getQueryDefaults

* Remove mutation defaults todo

* Rename var

* Remove all additional overloads in favour of a single definition which supports all cases

* Change type tests to more idomatic api
2024-12-03 07:32:01 +01:00
Tanner Linsley
ceb4094038 release: v5.62.1 v5.62.1 2024-12-02 18:40:38 +00:00
Parbez
d9d2728648
fix(eslint-plugin-query): handle non-null at then end of var in exhaustive-deps (#8385) 2024-12-02 19:37:35 +01:00
Sol Lee
12b678232c
test(query-core): add type check tests for queryObserver (#8304)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-12-02 16:31:52 +01:00
Arnoud
b7bad3dfda
chore(angular-query): update examples to typescript 5.7 (#8374) 2024-11-30 15:32:34 +01:00
Tanner Linsley
f8164805b3 release: v5.62.0 v5.62.0 2024-11-29 13:03:27 +00:00
Nick Lucas
0fa1f01771
feat(types): Include optional TError on DataTag (#8361)
* Include TError on DataTag so that getQueryState can infer the error type correctly

* ci: apply automated fixes

* Add type case to QueryFilters tests

* Remove redudant comment

* TInferredError

* Fix Default TError in query filters

* Move to UnsetMarker and add type changes to a few missed datatag usages

* Fixed wasting Dominik's time

* Force build

* Undo

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-29 13:58:58 +01:00
Arnoud
f245792bf1
chore(angular-query): update example dev containers to node 22 (#8370) 2024-11-28 17:24:46 +01:00
Tanner Linsley
c361be4854 release: v5.61.6 v5.61.6 2024-11-28 13:59:42 +00:00
Arnoud
ebcaa555b5
fix(angular-query): improve compatibility with Jest (#8367) 2024-11-28 14:55:55 +01:00
Eliya Cohen
c402a2b815
fix(eslint-plugin-query): handle optional and non-null chaining in exhaustive-deps (#8365)
* fix: handle optional and non-null chaining in exhaustive-deps

Fixed a false positive in the exhaustive-deps rule when using optional chaining and non-null assertions in query keys and functions.

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-28 09:39:33 +01:00
Tanner Linsley
dc4ae50717 release: v5.61.5 v5.61.5 2024-11-27 08:09:30 +00:00
Nick Lucas
422c879cff
fix(types): Add types for QueryFilters which flow down to Query<> and QueryKey/DataTag types (#8332)
* Add types for QueryFilters which flow down to Query<> and QueryKey/DataTag types

* ci: apply automated fixes

* Add a type test

* ci: apply automated fixes

* Fix linting

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-27 09:03:51 +01:00
Leonardo Montini
d28de3ce6f
ci: disable max report age in codecov (#8354) 2024-11-26 20:53:54 +01:00
Tanner Linsley
efdd2044a7 release: v5.61.4 v5.61.4 2024-11-26 13:39:52 +00:00
Jonathan Toung
3b7556f5d4
fix(QueriesObserver): fix improper sorting in QueriesObserver's #find… (#8351)
* fix(QueriesObserver): fix improper sorting in QueriesObserver's #findMatchingObservers method

This commit fixes a bug in the QueriesObserver's #findMatchingObservers. The bug is present when there are duplicate unsorted queries, for example, ['A', 'B', 'A']. The bug results in #findMatchingObservers to return the queries in sorted order, or ['A', 'A', 'B'], which results in a mismatch between Array<QueryObserverOptions> and Array<QueryObserverMatch>. This bug was introduced in 54995777af

* 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-26 14:35:25 +01:00
renovate[bot]
dfe2cd169f
chore(deps): update dependency @sveltejs/kit to v2.8.3 [security] (#8350)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-25 19:11:29 +00:00
Arnoud
8b0756ad8b
chore(angular-query): update to angular 19 (#8349) 2024-11-25 18:21:06 +01:00
Dominik Dorfmeister
ef0b7b2c28
chore: typescript 5.7 (#8327)
* chore: typescript 5.7

and run tests against ts 5.0 - 5.7

* chore: make eslint happy

* chore: type import issue

* chore: the type assertion is necessary for ts 5.4 and lower

* fix: write code so that it narrows in all ts versions

* fix: import assertion

* fix: angular examples stay at typescript 5.4

* Add JSON import attribute, update vue-tsc

* angular fixes

* Fix vue-tsc compatibility

---------

Co-authored-by: Arnoud de Vries <6420061+arnoud-dv@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-11-25 09:45:10 +01:00
renovate[bot]
ecc17d5c58
chore(deps): update dependency rimraf to v6 (#8343)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-25 06:41:10 +11:00
Lachlan Collins
c69f302f03
chore(deps): update react 19/next 15 (#8342) 2024-11-24 15:24:35 +11:00
Lachlan Collins
5cd9611387
chore(deps): move some deps from root to sub-packages (#8341) 2024-11-24 14:58:38 +11:00
Tanner Linsley
68dee7e0f9 release: v5.61.3 v5.61.3 2024-11-24 03:24:48 +00:00
Lachlan Collins
bdafc84657
fix(eslint-plugin): fix no-unstable-deps with ts-eslint >=8.10.0 (#8340) 2024-11-24 14:21:47 +11:00
Lachlan Collins
9972595940
chore(deps): more manual package updates (#8339) 2024-11-24 13:34:01 +11:00
Lachlan Collins
99b5354760
chore(deps): update expo, next, astro, nx (#8337)
* chore(deps): update expo, next, astro

* Fix lockfile

* Update some misc packages
2024-11-24 12:55:20 +11:00
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