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

5,550 commits

Author SHA1 Message Date
Tanner Linsley
df598a7dad release: v4.11.1 2022-10-12 11:21:37 +00:00
Aryan Deora
9579dd8936
fix(solid-query): fix disappearing data key during fetching state (#4308) v4.11.1
* fix(solid-query): fix disappearing data key during fetching state

* Add prettier formatting

* Fix prefer-const rule
2022-10-12 13:09:54 +02:00
Michal Tecza
e989725e27
docs: describe a way to run examples using local builds (#4310)
* chore: repair `watch` command in the main package.json

* docs: describe a way to run examples using local builds of packages without linking with yalc
2022-10-12 12:54:23 +02:00
Michal Tecza
c3b869381a
docs(examples): migrate examples/react/basic-typescript to vite (#4300) 2022-10-11 08:36:06 +02:00
Tanner Linsley
1c8d978150 release: v4.11.0 2022-10-09 16:10:08 +00:00
Salama Ashoush
e6eaca60fe
feat(react-query-devtools): Add move devtools select menu (#4100) v4.11.0
* feat: Add move devtools select menu

Added the option to move devtools to one of these sides `left`,  `right`, `top`, and `bottom` and refactored the code to accommodate the new capability

* fix: import types with ts type import

* fix: fix a docs typo
2022-10-09 18:06:19 +02:00
jeski-bright
f5fb92c80f
test(solid-query): Add test for transition (#4224)
* test(solid-query) Add test for transition

* change!

* chore(solid-js) update to most recent version and enable test

* Delete change

Co-authored-by: Jedrzej Sadowski <jedrzej.sadowski@justeattakeaway.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2022-10-08 17:36:12 +02:00
Tanner Linsley
222ec6295f release: v4.10.4 2022-10-08 15:28:50 +00:00
Omar-Awawdeh
31d799d993
fix(react-query-devtools): add direction style (#4283) v4.10.4
* fix(devTools styles): add direction style

Add dir="ltr" to devtools panel beacause the devtools appear inverted when direction of a parent is rtl

Fixes #4282

* fix(devTools styles): Run changes through prettier

Missing space caused CI check to fail

Fixes #4282
2022-10-08 17:24:14 +02:00
Sergey Bunas
f9e8b2cf4c
chore: Update outdated LICENSE year (#4266)
Updated the outdated copyright year to the present. 
So there will not be a need for any further license year updates
2022-10-08 08:01:32 +02:00
Chrystian de Matos
7a44a79c88
docs(mutations): Fix spelling error (#4285) 2022-10-08 06:46:04 +02:00
Tanner Linsley
31ef31cfbf release: v4.10.3 2022-10-07 19:11:15 +00:00
Dale Alexander Webb
9d364e75bc
refactor(query-core): change QueryMeta and MutationMeta to an interface (#4253) v4.10.3
* refactor(query-core): change QueryMeta and MutationMeta to an interface

* Apply suggestions from code review

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2022-10-07 21:06:28 +02:00
Jan G
71e73c4297
docs: productId to todoId (#4274)
Nothing fancy.
2022-10-07 20:55:18 +02:00
ericbiewener
d6dacbfa6c
docs: usePaginatedQuery was removed in v3, not just deprecated (#4279) 2022-10-07 20:54:29 +02:00
Tanner Linsley
47a1bd1c82 release: v4.10.2 2022-10-07 16:06:43 +00:00
Damian Osipiuk
667efe37a3
fix: use match-sorter-utils, simplify sorting (#4258) v4.10.2
* fix: use match-sorter-utils, simplify sorting

* fix: change localstorage key

* fix: exclude babel preset for vue

* test: fix test
2022-10-07 18:02:30 +02:00
siddtheone
ae7b2abc2b
docs: Improve example (#4251) 2022-10-07 17:25:12 +02:00
Tanner Linsley
d018dfa460 release: v4.10.1 2022-10-04 13:32:16 +00:00
Dominik Dorfmeister
b162309f01 fix(react-query-devtools): add superjson as dependency v4.10.1
rather than devDependency

RELEASE_ALL
2022-10-04 15:27:01 +02:00
Tanner Linsley
ceb5bb6637 release: v4.10.0 2022-10-04 12:55:31 +00:00
Damian Osipiuk
923c740ee2
fix: add proper rollup config for superjson (#4263) v4.10.0 2022-10-04 14:50:23 +02:00
Mohammad Al Zouabi
1bb13e2d23
feat(react-query-devtools): use superjson to display values (#4085) 2022-10-04 13:35:43 +02:00
Ejiro Asiuwhu
bb3030ce21
docs: changed import path -> vue-query to @tanstack/vue-query (#4261) 2022-10-03 18:13:33 +02:00
Jhon Arly Rodríguez
a2fc30a29b
docs: Changed vue-query into @tanstack/vue-query (#4259) 2022-10-03 14:46:51 +02:00
Tanner Linsley
db09965324
Update config.json 2022-10-02 14:32:58 -06:00
Damian Osipiuk
f715b305de
chore: ignore coverage from index and types files (#4257) 2022-10-02 22:24:21 +02:00
Tanner Linsley
3993a1f0c9 release: v4.9.0 2022-10-02 20:11:44 +00:00
Damian Osipiuk
741cc3f2e0
feat: vue-query adapter (#4254) v4.9.0
* feat: vue-query adapter

* fix: umd build

* chore: add basic example

* docs: add vue adapter page

* docs: add readme

* fix: shields in readme, package ver, ts config

* docs: fix one more link

* fix: removed unused params

RELEASE_ALL
2022-10-02 22:07:30 +02:00
Tanner Linsley
9f48dffaf5 release: v4.8.0 2022-09-30 06:36:22 +00:00
Dominik Dorfmeister
46ad29a571
feat(queryObserver): add isInitialLoading derived flag (#4244) v4.8.0
* feat(queryObserver): add isInitialLoading derived flag

this flag describes isLoading && isFetching and can be used to show a loading spinner for lazy or disabled queries

* chore(ci): fix caching

apparently, v3 has a fix: https://github.com/actions/setup-node/issues/543

* chore(ci): properly fix token issue

as described here: https://stackoverflow.com/questions/52015748/npm-failed-to-replace-env-in-config-npm-token

he extra warn output made the caching fail

* chore: fix bundlewatch glob

* docs: add a section about isInitialLoading to the migration guide
2022-09-30 08:32:10 +02:00
Dominik Dorfmeister
fec3daa381 chore(ci): fix yml syntax 2022-09-28 20:58:29 +02:00
Dominik Dorfmeister
c566c3c194 chore(ci): add quotes 2022-09-28 20:57:03 +02:00
Julius Marminge
d9478e000c
chore(ci): filter out examples (#4239)
* filter out examples

* typo

* update docs and gitignore to account for pnpm switch
2022-09-28 20:53:23 +02:00
Dominik Dorfmeister
6c069660fc chore: remove cache folder
because postinstall errors with:

Error: Cache folder path is retrieved for pnpm but doesn't exist on disk
2022-09-28 20:50:53 +02:00
Tanner Linsley
65490a19a5 release: v4.7.2 2022-09-28 17:21:26 +00:00
Dominik Dorfmeister
815fe5ac56 chore: fix release v4.7.2
- --token is not possible with pnpm, so we need this workaround (https://github.com/pnpm/pnpm/issues/3141)
- also capture log output for easier debugging
2022-09-28 19:15:42 +02:00
Dominik Dorfmeister
ddcebdb287 chore: fix release
- duplicate workspace peerDependencies as devDependencies due to this issue: https://github.com/pnpm/pnpm/issues/4164
- remove --non-interactive as it doesn't exist for pnpmn
- add --no-git-checks because otherwise, we cannot publish with changes in package.json
2022-09-28 18:58:03 +02:00
Dominik Dorfmeister
5a57af629b chore: fix release
okay but now for real
2022-09-28 18:34:57 +02:00
Dominik Dorfmeister
bba8a19bbf chore: fix release
by adding jsonfile as dependency and re-adding fetch-depth:0
2022-09-28 18:30:55 +02:00
Dominik Dorfmeister
6adaed533e chore: use pnpm to run cipublish 2022-09-28 18:15:56 +02:00
Dominik Dorfmeister
dce2815b95
refactor: switch from npm workspaces to pnpm
RELEASE_ALL

* chore(pnpm): update lockfile

* chore(pnpm): add pnpm

* chore(pnpm): get rid of private:true

which was only needed for yarn workspaces; also, remove the csb workaround, because it didn't work with private:true

* chore(pnpm): switch to workspace:* dependencies

because pnpm will replace them automatically during publish

* chore(pnpm): use ^ dependencies for examples

we will always get the latest version as there is no lockfile for them

* chore(pnpm): update publish script to use pnpm

this also means we don't need to update package.json at all because we use workspace dependencies now

* chore(pnpm): devtools need react-error-boundary

* chore(pnpm): replace lerna with pnpm

* chore(pnpm): use pnpm to install in CI

* chore(pnpm): fix install in ci

* chore(pnpm): fix yml syntax

* chore(pnpm): add jest-dom to react-query

* chore(pnpm): add jest-dom to types

* chore(pnpm): explicitly add jest-dom typings

* chore(pnpm): revert jest-com changes

* chore(pnpm): ok prettier, whatever

* chore(pnpm): go to pnpm v7

* chore(pnpm): use stricter node version

* chore(pnpm): oh boy

* chore(pnpm): remove engines

because codesandbox-ci has a different version

* chore(pnpm): restore updating version in publish script

* chore(pnpm): filter pnpm scripts and installs down to ./packages

so that we exclude examples

* chore(pnpm): remove filtering from installs

as it doesn't install top-level dependencies; also, --frozen-lockfile is the default for CI environments
2022-09-28 18:07:37 +02:00
Dominik Dorfmeister
4645881295
test: stabilize flaky tests
* refactor(tests): remove differential assertions

we only run our tests in node16 now, where AbortController and AbortSignal do exist

* refactor(tests): stabilize Blink tests
2022-09-28 08:48:41 +02:00
Tanner Linsley
91e85a651c release: v4.7.1 2022-09-27 17:58:40 +00:00
Sam Rosenthal
83948e21fd
refactor(types): rename query data generics (#4228) v4.7.1
* fix return type for set/get query data funcs

* run prettier on project

* Update packages/query-core/src/queryClient.ts

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2022-09-27 19:52:44 +02:00
Dominik Dorfmeister
7741a2f723
fix(react-query-persist-client): make use of the query-persist-client-core package
* fix(react-query-persist-client): make use of the query-persist-client-core package

* fix(react-query-persist-client): move retryStrategies to core and use core in persisters

* fix(react-query-persist-client): fix imports in tests

* fix(react-query-persist-client): react-query-persist-client needs the core as dependency

as it re-exports the query-persist-client-core, and we don't want users to have to depend on the query-persist-client-core manually

* fix(react-query-persist-client): try to fix rollup config
2022-09-27 19:39:23 +02:00
Tanner Linsley
a27439e2e2 release: v4.7.0 2022-09-27 14:12:43 +00:00
Dominik Dorfmeister
a535d0d805 chore: fix missing dependency conflict v4.7.0 2022-09-27 16:07:03 +02:00
Dominik Dorfmeister
3b8b00ea84 fix(query-persist-client-core): fix build by adding missing reference paths 2022-09-26 18:17:05 +02:00
Dominik Dorfmeister
a9dbadbe1c fix(query-persist-client-core): add missing build config 2022-09-26 17:59:08 +02:00