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
Tanner Linsley
8f72f59463
release: v5.62.11
v5.62.11
2024-12-27 13:15:50 +00:00
Hossein Mohammadi
7ade23350a
fix: handle react-native resolver ( #8478 )
2024-12-27 14:11:06 +01:00
Tanner Linsley
4f90639610
release: v5.62.10
v5.62.10
2024-12-24 12:05:31 +00:00
Muhammad Ilham Mubarak
287848b528
fix(solid-query): solid query options default error type ( #8472 )
2024-12-24 13:02:12 +01:00
Muhammad Ilham Mubarak
3bc3147703
docs(contributing): update pnpm version ( #8473 )
2024-12-24 12:15:32 +01:00
Jonghyeon Ko
ee628e1f9e
chore(react-query): update devDeps ( #8427 )
...
* chore(react-query): update devDeps
* chore: reflect review
2024-12-23 18:30:07 +01:00
Tanner Linsley
e41ea5a562
release: v5.62.9
v5.62.9
2024-12-23 16:51:41 +00:00
Nick Lucas
1e73d3a3ad
fix(types): change symbol declarations ( #8468 )
2024-12-23 17:42:26 +01:00
Pierre Spring
18d81b96d5
docs: Update infiniteQueryOptions.md ( #8447 )
...
Fix copy/pasted typo.
2024-12-23 14:42:36 +01:00
Lachlan Collins
5be38721d4
chore: update dependencies ( #8464 )
...
* chore: update dependencies
* pnpm dedupe
* ci: apply automated fixes
* fix: downgrade nx to fix graph
* update node
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-22 10:00:54 +11:00
gnerkus
a76ac59e97
docs(useQuery): add more info to description of staleTime field of query options ( #8448 )
2024-12-18 10:13:29 +01:00
Tanner Linsley
8a0eb6a364
release: v5.62.8
v5.62.8
2024-12-17 17:11:25 +00:00
Nick Lucas
4989399a86
fix(types): fix issues with queryOptions factory method types ( #8394 )
...
* Fix issues with queryOptions factory method types
* Apply the same fixes to infiniteQueryOptions
* Revert change to failing test
* Fix test in more userland way
* Unused import
* Add tRPC-style solution
* Unused import
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-12-17 18:06:55 +01:00
Alex Liu
4521a04a25
docs: use correct broadcastChannel default value and type name ( #8436 )
2024-12-16 16:14:41 +01:00
Lachlan Collins
94e2c7752e
chore(deps): use stable @types/react version ( #8437 )
2024-12-14 18:24:35 +11:00
Tanner Linsley
1eebfc9d33
release: v5.62.7
v5.62.7
2024-12-10 19:04:21 +00:00
Dominik Dorfmeister
465906af3d
fix(query-core): respect initialData for queryClient.ensureQueryData ( #8425 )
...
* fix(query-core): respect initialData for queryClient.ensureQueryData
we used to call `getQueryData` before queryCache.build(), but building is what creates the query and potentially adds initialData. I tried to make that more obvious by reading directly from `query.state.data`
* refactor: simplify condition
2024-12-10 20:01:43 +01:00
Dominik Dorfmeister
27ce0b6559
chore: examples to react19 ( #8408 )
...
* chore: examples to react19
* test: seems like pre-warming adds another render, which is fine
* test: more pre-warming renders (this is fine)
* test: use react-render-stream
* chore: move tests to renderStream
* chore: fix act
* test: fix remaining tests
* test: move away from fireEvent.click
because it uses `act` under the hood, which isn't supported / wanted with renderStreams
* test: useInfiniteQuery to renderStream
* chore: stabilize test
2024-12-10 16:06:34 +01:00
Tanner Linsley
aef7ba209a
release: v5.62.6
v5.62.6
2024-12-09 14:27:39 +00:00
Arnoud
4dc825661a
fix(angular-query): fix console warning on Angular 19 ( #8422 )
2024-12-09 15:24:34 +01:00
Tanner Linsley
e7d7d36fa0
release: v5.62.5
v5.62.5
2024-12-09 10:39:01 +00:00
Arnoud
406df7529d
fix(angular-query): fix error NG0600 on Angular v16-v18 ( #8419 )
2024-12-09 11:35:52 +01:00
Tanner Linsley
9e6d01d442
release: v5.62.4
v5.62.4
2024-12-08 15:44:36 +00:00
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