Damian Osipiuk
050577e84e
feat(experimental_createPersister): support async serialization and storage of arbitrary values instead of strings ( #6450 )
...
* feat(experimental_createPersister): support async serialization and storage of arbitrary values instead of strings
* fix: allow async serialization in async-storage-persister
2023-11-29 16:01:47 +01:00
Lars Kappert
5d29f8ff47
chore: introduce Knip as dead-code removal tool ( #6368 )
...
* Add knip with inital config
* Rename vite.config.js → vite.config.js (`__dirname` not in ESM scope)
* chore: upgrade to knip v3
* chore(knip): remove duplicate exports
* chore(knip): remove unused types from query devtools
* chore(knip): do not export unused types
* chore(knip): run knip in ci
* chore(knip): ignore certain .d.ts files
* chore(knip): remove unused file
* chore(knip): use devtools in next integration
so the dependency doesn't show up as unused
* chore(knip): remove unused dependencies
* chore(knip): remove unused exports
* chore(knip): add unlisted dependencies
* chore(knip): remove unnecessary scope-manager dependency
* Update knip to 3.3.0
* Update knip to 3.3.1
* chore: ignore custom deps, remove unneeded file
* chore: remove unused util
* chore: remove esbuild dep as it's not directly used
* chore: bump tsup to match esbuild types with the plugin
* chore: remove unused peer deps
* chore: remove unneeded deps
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2023-11-29 15:58:02 +01:00
Arnoud
ac92fc9c83
chore(codemods): disable no-unnecessary-condition in test fixtures ( #6457 )
2023-11-29 12:58:27 +01:00
Tanner Linsley
9f7725a30c
release: v5.9.0
v5.9.0
2023-11-29 07:48:31 +00:00
Charlotte Grace (Bone)
3319d80d59
fix(types): Fix types when using select with the queryOptions helper ( #6454 )
...
useQueries, createQueries and useSuspenseQueries now return the correct data type if using the queryOptions helper with the select option.
fixes #6442
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-11-29 08:28:27 +01:00
Zachary DeRose
568ce178cc
chore: switching retry strategy ( #6453 )
2023-11-29 08:25:08 +01:00
Balázs Máté Petró
f62e079a4f
feat(codemod): isLoading codemod ( #6388 )
...
* feat(codemod): implement codemod that replaces the `isLoading` usages with `isPending`
* fix(codemod): differentiate shorthand property usages in the codemod
* chore(codemod): add the `useMutation` hook as well to the "affected hooks" list
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-11-28 13:29:01 +01:00
Tanner Linsley
50391134f9
release: v5.8.9
v5.8.9
2023-11-28 08:28:04 +00:00
Dominik Dorfmeister
5163ed4d7e
chore: remove integrations packages from sherif
2023-11-28 09:22:23 +01:00
Balázs Máté Petró
fe87fc1f97
fix(codemod): extend the remove overloads codemod logic ( #6268 )
...
* fix(codemod): extend codemod logic to transform usages when the second parameter is a function in the scope
* fix(codemod): handle the case when the second argument is a function definition
* chore(codemod): fix the `eslint` issue in the newly added example
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-11-28 09:07:27 +01:00
Dominik Dorfmeister
6b79e10241
test: add vite5 integration test for react ( #6443 )
...
* chore: rename integration test
* test: add vite5 integration test for react
* chore: make test more stable
we don't really care about in-between renders as they might be batched
* Empty-Commit
* chore: add unique names
* chore: touching pr.yml to diagnose dte issues (#6445 )
* touching pr.yml to diagnose dte issues
* fixing typo in pr.yml
---------
Co-authored-by: Zachary DeRose <zack.derose@gmail.com>
2023-11-28 08:50:08 +01:00
Tanner Linsley
0a181d5ff9
release: v5.8.8
v5.8.8
2023-11-27 15:02:00 +00:00
Danilo Britto
c04df4568c
fix(query-devtools): do not break words on labels ( #6435 )
...
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-11-27 15:59:28 +01:00
Dominik Dorfmeister
5d1797cd33
docs: add wagmi to community-projects.md
2023-11-27 11:39:46 +01:00
Ruben Oostinga
e0b6e6e91a
docs: Fix Typo in migrating-to-v5.md ( #6440 )
2023-11-27 11:37:05 +01:00
Thomas Pfeiffer
9191f15592
docs(installation) remove note about v5 being a release-candidate ( #6393 )
2023-11-25 13:49:19 +01:00
Kolja
19564db9f2
docs: Use latest version of jscodeshift ( #6394 )
...
Co-authored-by: Kolja Lampe <klampe@slashwhy.de>
2023-11-25 13:45:56 +01:00
Tomasz Ducin
e5a1f5edf3
docs: troubleshooting commands for contributors ( #6403 )
2023-11-25 13:29:27 +01:00
Tanner Linsley
84bf775334
release: v5.8.7
v5.8.7
2023-11-24 19:49:28 +00:00
Dominik Dorfmeister
43bb4b9396
fix(core): make sure queries initialize correctly ( #6431 )
...
* fix(core): make sure queries initialize correctly
setQueries sets them, so it needs to be set before setResult, where we already access `this.queries`
* fix: initialize queries and options before calling setResult
2023-11-24 20:43:59 +01:00
Tanner Linsley
99c022342b
release: v5.8.6
v5.8.6
2023-11-24 09:20:17 +00:00
Dominik Dorfmeister
1f0088e5fa
fix(react-query): make sure options are up-to-date when a mounted component re-suspends ( #6429 )
...
* fix(react-query): make sure options are up-to-date when a mounted component re-suspends
* chore: simplify test
there is no need to assert how often we rendered in this test case
2023-11-24 10:16:53 +01:00
Flo
3d1e0a0d84
chore: fix typo in code comment ( #6411 )
2023-11-23 17:58:25 +01:00
Ishrath Inaam
87174c940b
docs: Update dependent-queries.md ( #6418 )
...
Syntax typo
2023-11-23 17:55:54 +01:00
Philip Englund
94dc3f64c4
docs(useMutationState): add reference ( #6423 )
2023-11-23 17:52:20 +01:00
Tanner Linsley
fda172be4f
release: v5.8.5
v5.8.5
2023-11-22 21:47:19 +00:00
eth3lbert
73a65ac393
fix(svelte-query-devtools): make styleNonce prop optional ( #6417 )
2023-11-22 16:45:58 -05:00
이효범
a46c8a7f6d
docs: Update caching.md ( #6406 )
2023-11-21 13:40:10 +01:00
Björn Böing
ab69d83add
docs: Fix example for focusManager.setEventListener ( #6385 )
...
Fixes #6382
2023-11-16 08:22:16 +01:00
Tanner Linsley
dc8f6395f8
release: v5.8.4
v5.8.4
2023-11-15 11:30:28 +00:00
EL AYADI Mohamed
e7f6d3ae8b
fix(react-query): useSuspenseQuery returns undefined as data when network is offline ( #6350 )
...
* #6344 : reproduce query not suspending when offline
* shouldSuspend to return true when isPaused is true and other conditions are met
* change test to load data first on online and then go offline, then come back online
* adapt test to issue with changing query and rely on isPending rather than isPaused
* Adapt shouldSuspend condition & remove isRestoring from it
2023-11-15 12:27:30 +01:00
Lachlan Collins
83d71c3074
chore: Update to prettier v3.1.0 ( #6378 )
2023-11-15 14:15:47 +11:00
Lachlan Collins
b8bfe43562
chore: Add Sherif to CI to lint monorepo config ( #6376 )
2023-11-15 13:49:37 +11:00
Richard Ejem
c6d5f53b6a
docs: Fix example hook cleanup if window is undefined ( #6372 )
...
If window is undefined, we'd skip initialization of the event,
but window.removeEventListener would still be attempted
to be called upon cleanup and fail with error due to undefined
window.
2023-11-14 15:44:39 +01:00
Tanner Linsley
2fb759fda8
release: v5.8.3
v5.8.3
2023-11-13 08:50:40 +00:00
Dominik Dorfmeister
02c95f98eb
chore: trigger release
...
RELEASE_ALL
2023-11-13 09:42:31 +01:00
Florian De la comble
f29f0e7097
docs(community): adding http-wizard ( #6360 )
2023-11-12 11:38:37 +01:00
Aryan Deora
73e339624b
fix(query-core): Show correct placeholderData when request in cache ( #6357 )
...
v5.8.2
5.8.2
* fix(query-core): Show correct placeholderData when reuest in cache
* Fix formatting
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-11-11 21:57:36 +01:00
Bene
7c87c3d7b7
fix(types): pass TError, TQueryData and TQueryKey to PlaceholderDataFunction ( #6349 )
...
* fix: pass TError, TQueryData and TQueryKey to PlaceholderDataFunction
* test: add types test for placeholderData function
* style: format
---------
Co-authored-by: Benedikt Viebahn <benedikt.viebahn@live-eo.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Benedikt Viebahn <bviebahn@pm.me>
2023-11-11 21:47:07 +01:00
Jonghyeon Ko
8b7cc4313f
chore(query-core): rename sleep param as ms ( #6358 )
...
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-11-11 21:42:41 +01:00
Jonghyeon Ko
6df2ae1d11
chore(query-core): resolve prettier error ( #6359 )
2023-11-11 21:38:42 +01:00
Aldrin
2d42f2bbc4
docs: add in editor-docs for gcTime key ( #6339 )
...
* chore: add in editor-docs for gcTime key
* chore: add in editor-docs for gcTime key
* Update packages/query-core/src/types.ts
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-11-11 16:19:53 +01:00
Lachlan Collins
3f82dc8588
chore: Fix monorepo issues reported by Sherif ( #6354 )
2023-11-11 12:27:07 +11:00
krisko4
4d2d4856be
docs(examples-react-suspense): add font-awesone dependency to display Spinner correctly ( #6345 )
...
Spinner is not visible in the Suspense example due to missing font-awesome dependency.
2023-11-10 10:39:34 +01:00
Dominik Dorfmeister
0eccfbfeca
docs: suspense api docs
2023-11-10 10:39:12 +01:00
Tanner Linsley
5b9be1e299
release: v5.8.1
v5.8.1
2023-11-08 08:05:09 +00:00
Dominik Dorfmeister
4774f03046
fix(core): make sure queries that re-subscribe will have the correct result ( #6334 )
2023-11-08 08:59:24 +01:00
Daniel Roe
4266f0b77c
docs(vue-query): import nuxt composables from #imports ( #6329 )
...
* fix: import nuxt composables from #imports
* chore: also import `defineNuxtPlugin`
2023-11-08 00:41:47 +01:00
Mihai Crisan
e3a00034bd
docs(QueryClient.md): fix typo immuatable → immutable ( #6330 )
...
I made a [PR for this before] (https://github.com/TanStack/query/pull/6328 ) but turns out that change was for v4 only. This is for latest
2023-11-07 22:57:00 +01:00
wildOrlik
55d70c74a6
test(asyncThrottle): migrated to useFakeTimers ( #6324 )
2023-11-07 17:16:33 +01:00