0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-18 19:33:22 +00:00
Commit graph

5,395 commits

Author SHA1 Message Date
Zachary DeRose
5335294c67
chore: removing docs from default inputs (#5212)
* removing docs from default inputs

* fixing caching so touching md files does not invlaidate the cache

* rerun ci

* rerun ci

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-13 09:13:40 +02:00
Tanner Linsley
87300819cf release: v4.29.1 2023-04-10 09:45:56 +00:00
Ahmed Hamed
a317633b37
perf(useQueries): optimize findMatchingObservers fn in queriesObserver for large datasets (#5247) v4.29.1
* perf(useQueries): optimize findMatchingObservers fn in queriesObserver for large datasets

* optimize finding unmatchedObservers in queriesObserver

---------

Co-authored-by: aemad01 <ahmedeamd199824@gmail.com>
2023-04-10 11:39:59 +02:00
Tanner Linsley
8969dc1649 release: v4.29.0 2023-04-03 14:25:51 +00:00
Jaga Santagostino
69aea629f7
feat(react-query-devtools): add button to clear cache (#5186) v4.29.0
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-03 16:23:24 +02:00
Judicael
1c5165e70b
docs: revert docs for QueryCache (#5221) 2023-04-02 19:46:25 +02:00
Eliya Cohen
88f144c273
test(eslint-plugin): add test (#5218)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-02 11:29:54 +02:00
Tanner Linsley
5c3943ef4d release: v4.28.1 2023-04-02 08:12:33 +00:00
Eliya Cohen
af086e05f3
fix(eslint-plugin): ignore nodes outside of scope (#5217) v4.28.1
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-02 10:04:43 +02:00
Dominik Dorfmeister
86150d6d1b chore: fix test:react:17 in CI 2023-04-02 10:01:44 +02:00
Zachary DeRose
55bdf7794b
chore: switching to an affected strategy (#5215)
* switiching to an affected strategy

* updating base affected option for ci and ci-v3 workflows

* Update .github/workflows/ci-v3.yml

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>

* checking github context

* checking pnpm version

* fix?

* does not like main - let's use a sha then

* checking git head

* checking git in general

* fix????

* fix???????? pleeeease

* still in detatched head state

* try checking out the pr head sha?

* checking out pr branch

* checking githubref

* full gh ref

* dumping context again

* try to checkout head ref

* adding repo prop

* git logging

* trying with sha for base

* fixing other jobs

* fixing other jobs again

* reverting root specific projects to run many

* removing special stuff from build test

* testing affected

* reverting change

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-02 09:14:26 +02:00
Zachary DeRose
dbf452e99b
chore: adding nx cloud access token to ci workflow files (#5213) 2023-04-01 10:50:07 +02:00
Zachary DeRose
2bab18520d
chore: adding the nx-cloud task-runner (#5143)
* adding the nx-cloud task-runner

* empty commit to trigger ci with warm cache

* retrying after adding workspace to TanStack organization

* another empty commit...

* another empty commit...

* this is why I should never use the in-browser conflict resolver...

* another empty commit...

* another empty commit...

* Update packages/query-core/src/tests/hydration.test.tsx

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>

* rm console.log left in query core

* empty commit to trigger re-build

* updating nx cloud dependency

* empty commit to attempt to recreate unexpected cache miss

* gather hash data to check

* empty commit

* invalidating cache again

* removing old key and adding read-only key to source control

* empty commit

* updating build task

* adding rollup to cacheable operations

* fixing the project json file with better globs

* removing test:format and test:build as cacheable operations

* updating package scripts for better terminal logging

* removing comment left in

* bumping to latest cloud runner version

* updating pnpm-lock.yaml file

* adding skip-nx-cache to publish script

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-04-01 08:55:31 +02:00
Mitchell Bösecke
9e92e5ecd3
docs: Update useQueries.md (#5180)
* Update useQueries.md

Specifying that the return value is ordered, to help users understand how to match up the results with their inputs:

https://stackoverflow.com/questions/72045306/usequeries-how-to-get-response-for-a-certain-query

* Elaborated on how the order of the useQueries return value matches the input order
2023-04-01 08:40:05 +02:00
Samuel Kinuthia
9759fee0b8
docs: Update paginated-queries.md (#5191) 2023-04-01 08:37:24 +02:00
Tanner Linsley
dec9ed34da release: v4.28.0 2023-03-20 08:34:37 +00:00
Fredrik Höglund
017867eff4
feat(react-query): preserve 'use client' directives (#5161) v4.28.0
* chore: preserve 'use client' directive in unbundled builds

* fix(react-query): add 'use client' to files missing it

* chore: lock version for rollup-plugin-preserve-directives
2023-03-20 09:27:26 +01:00
Tanner Linsley
fe0ae802d8 release: v4.27.1 2023-03-17 16:50:51 +00:00
Nicholas Firth-McCoy
d23d8934ce
fix(query-sync-storage-persister): Relax undefined check against storage to handle null values (#5095) v4.27.1
* fix: Relax undefined check against storage to handle null values

Fixes #4957.

On Android WebView if `setDomStorageEnabled` is not configured,
`window.localStorage` will be `null` (rather than `undefined`).

Relax the existing conditional to check if `storage` is present to
handle both `null` and `undefined` values to remove a gotcha here.

* docs: update storage type

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-03-17 17:45:48 +01:00
Zachary DeRose
73e21ce7c3
chore: Add retries to cover flakiness in tests (#5140)
* adding in retries to cover flakiness in tests

* fixing workflow error

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-03-17 16:59:10 +01:00
Tanner Linsley
0e98eddff2 release: v4.27.0 2023-03-17 15:45:02 +00:00
Zachary DeRose
e25259de57
chore: fix test:format task giving false positives (#5147) v4.27.0 2023-03-17 13:21:35 +01:00
Dominik Dorfmeister
62a7c38e7a chore: fix publish script 2023-03-17 08:55:49 +01:00
Zachary DeRose
8e13afa259
chore: Local Task Caching for all Revelant tasks (#5134)
* caching added for eslint for packages

* project definition added for scripts project and test:eslint target

* adding task caching for test:types

* adding appropriate dependsOn and outputs to test:types

* updating test:react:17

* running many on test:ci for nx scripts

* adding output to test:types

* adding root project and format task

* adding caching for build and test:build

* fixing frozen lockfile error in ci

* fixing pnpm build to include the build of the eslin-plugin

* adding build for svelte-query as well

* parallelizing bundlewatch and validate pacakges script

* cleaning up a bit more

* moving build config to the root project
2023-03-17 08:49:50 +01:00
Paul Sachs
b7089d1010
feat(react-query-devtools): enable setting loading/error via devtools (#4352)
* feat(devtools): enable setting loading/error via devtools

* Some cleanup

* refactor: use flex-gap to align buttons

* refactor: fix linter and dropdown reset

* refactor: operate directly on activeQuery

* Change buttons to toggle states

* Sneak some queryState into meta

* Added test for error and loading

* Fix lint

* Fix prettier formatting

* chore: releases should run on alpha/beta as well

* chore: extract package validation to an extra script (#5039)

* chore: extract package validation to an extra script

and run it during CI

* chore: add missing `build:types` script to solid-query

* docs: update link for v2 docs (#5044)

* docs: update link for v2 docs

* Update README.md

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>

* release: v4.24.12

* fix(react-query-devtools): do not stretch query status label (#5063)

Do not stretch query status label (fresh, fetching, paused, stale, inactive) shown on Query Details view.

* release: v4.24.13

* fix(react-query-devtools): add 'use client' directive to disable SSR (#5041)

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>

* release: v4.24.14

* feat(core): re-export matchQuery from utils (#5070)

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>

* release: v4.25.0

* feat(query-core): Add global onSettled callbacks for QueryCache and MutationCache (#5075)

* feat(query-core): Add global onSettled callbacks for QueryCache and MutationCache

* test: tests for query onSettled callback

* test: tests for mutation onSettled callback

* docs: onSettled callbacks

* release: v4.26.0

* fix(core): make sure mutations get updated options (#5085)

this fixes an issue around stale closures where callbacks are not updated, thus are called with wrong values in the closure

* release: v4.26.1

* fix(eslint-plugin): improve object property checks (#5079)

* fix(eslint-plugin): improve object property checks

* prettier

* release: v4.26.2

* docs: add adapter dropdown to issue template (#5108)

* docs(queries): rename `success` (#5110)

* chore: `test:lib` task-caching w/ Nx (#5116)

* adding quick caching test

* reverting workflow change

* updating pr yml to test nx speed

* fixing yml on property

* fixing yml on property

* fixing target name

* upping to running4 in parallel

* upping to running 5 in parallel

* upping to running 6 in parallel

* upping to running 7 in parallel

* upping to running 8 in parallel

* upping to running 9 in parallel

* upping to running 10 in parallel

* opting for --parallel=5

* cleaning up nx.json

* revert touching of ci.yml file

* reverting on property of pr.yml file

* updating root pacakge.json test:lib command

* fixing frozen lockfile error in ci

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>

* chore: fix missing dependencies (#5127)

* chore: include scripts directory in linting

and fix issues

* chore: add missing dependencies chalk and semver

* chore: turning off Nx daemon in CI (#5128)

* chore: downgrade chalk to v4 because v5 is ESM only (#5130)

see: https://stackoverflow.com/questions/70309135/chalk-error-err-require-esm-require-of-es-module

* fix(eslint-plugin): ignore internal properties (#5119)

* chore: resolve merge conflicts

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Abhijeet Singh <contact.abhijeetsingh@gmail.com>
Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com>
Co-authored-by: janinegygax <32389974+janinegygax@users.noreply.github.com>
Co-authored-by: Youssouf Oumar <63708012+yousoumar@users.noreply.github.com>
Co-authored-by: remolueoend <remolueoend@users.noreply.github.com>
Co-authored-by: Eliya Cohen <co.eliya2@gmail.com>
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
Co-authored-by: Leon Fong <ooohmydawn@hotmail.com>
Co-authored-by: Zachary DeRose <zack@nrwl.io>
Co-authored-by: Zachary DeRose <zack.derose@gmail.com>
2023-03-15 12:36:09 +01:00
Eliya Cohen
33338ad19b
fix(eslint-plugin): ignore internal properties (#5119) 2023-03-15 08:42:05 +01:00
Dominik Dorfmeister
ed7d9f82fa
chore: downgrade chalk to v4 because v5 is ESM only (#5130)
see: https://stackoverflow.com/questions/70309135/chalk-error-err-require-esm-require-of-es-module
2023-03-14 16:25:11 +01:00
Zachary DeRose
fcb4170ec5
chore: turning off Nx daemon in CI (#5128) 2023-03-14 13:18:20 +01:00
Dominik Dorfmeister
6fc51ddfe2
chore: fix missing dependencies (#5127)
* chore: include scripts directory in linting

and fix issues

* chore: add missing dependencies chalk and semver
2023-03-14 09:37:39 +01:00
Zachary DeRose
19a8e98bfe
chore: test:lib task-caching w/ Nx (#5116)
* adding quick caching test

* reverting workflow change

* updating pr yml to test nx speed

* fixing yml on property

* fixing yml on property

* fixing target name

* upping to running4 in parallel

* upping to running 5 in parallel

* upping to running 6 in parallel

* upping to running 7 in parallel

* upping to running 8 in parallel

* upping to running 9 in parallel

* upping to running 10 in parallel

* opting for --parallel=5

* cleaning up nx.json

* revert touching of ci.yml file

* reverting on property of pr.yml file

* updating root pacakge.json test:lib command

* fixing frozen lockfile error in ci

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-03-14 09:03:20 +01:00
Leon Fong
b8b0562349
docs(queries): rename success (#5110) 2023-03-11 09:56:08 +01:00
Damian Osipiuk
b974268bf2
docs: add adapter dropdown to issue template (#5108) 2023-03-10 16:22:14 +01:00
Tanner Linsley
aa2f94420f release: v4.26.2 2023-03-06 20:35:30 +00:00
Eliya Cohen
df512e5393
fix(eslint-plugin): improve object property checks (#5079) v4.26.2
* fix(eslint-plugin): improve object property checks

* prettier
2023-03-06 21:30:48 +01:00
Tanner Linsley
d86e3437f6 release: v4.26.1 2023-03-06 15:02:02 +00:00
Dominik Dorfmeister
aac9488944
fix(core): make sure mutations get updated options (#5085) v4.26.1
this fixes an issue around stale closures where callbacks are not updated, thus are called with wrong values in the closure
2023-03-06 15:56:49 +01:00
Tanner Linsley
a81da97890 release: v4.26.0 2023-03-05 07:17:31 +00:00
Dominik Dorfmeister
8d235134ab
feat(query-core): Add global onSettled callbacks for QueryCache and MutationCache (#5075) v4.26.0
* feat(query-core): Add global onSettled callbacks for QueryCache and MutationCache

* test: tests for query onSettled callback

* test: tests for mutation onSettled callback

* docs: onSettled callbacks
2023-03-05 08:12:34 +01:00
Tanner Linsley
5df1198001 release: v4.25.0 2023-03-05 06:33:45 +00:00
remolueoend
1c2c132575
feat(core): re-export matchQuery from utils (#5070) v4.25.0
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-03-05 07:28:41 +01:00
Tanner Linsley
ab7eb18d15 release: v4.24.14 2023-03-04 07:38:49 +00:00
Youssouf Oumar
c2b480a223
fix(react-query-devtools): add 'use client' directive to disable SSR (#5041) v4.24.14
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-03-04 08:34:03 +01:00
Tanner Linsley
6c334e8bb7 release: v4.24.13 2023-03-03 19:43:33 +00:00
janinegygax
517202ce37
fix(react-query-devtools): do not stretch query status label (#5063) v4.24.13
Do not stretch query status label (fresh, fetching, paused, stale, inactive) shown on Query Details view.
2023-03-03 20:37:01 +01:00
Tanner Linsley
ce4de31c62 release: v4.24.12 2023-02-27 11:10:13 +00:00
Abhijeet Singh
63219f3158
docs: update link for v2 docs (#5044) v4.24.12
* docs: update link for v2 docs

* Update README.md

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-02-27 12:05:27 +01:00
Dominik Dorfmeister
1ec2c14391
chore: extract package validation to an extra script (#5039)
* chore: extract package validation to an extra script

and run it during CI

* chore: add missing `build:types` script to solid-query
2023-02-26 17:37:04 +01:00
Dominik Dorfmeister
c807d91fe5 chore: releases should run on alpha/beta as well 2023-02-26 11:07:22 +01:00
Emmanouil Zoumpoulakis
86e8413196
fix(react-query-devtools): do not hide sort options when filter is used (#5038)
Sort options (asc / desc, and sort function) were hidden when filter was set.
Sort options are now shown along with the filter, even when a filter is set.

Closes #4989
2023-02-26 09:14:08 +01:00
Anup Mantri
9434a162dc
docs: Fix typo (#5029)
wholistic -> holistic
2023-02-24 07:19:24 +01:00