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

5,011 commits

Author SHA1 Message Date
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
Dominik Dorfmeister
326c6e5646
feat(query-persist-client-core): split persist-client into a separate core package (#4222)
* feat(query-persist-client-core): split persist-client into a separate core package

* feat(query-persist-client-core): revert depending on the new package

because it doesn't exist yet on npm

* feat(query-persist-client-core): revert unintentional changes to test files
2022-09-26 17:42:59 +02:00
Joël Kuijper
5d0ce9e111
docs: correct imports for 'refetch on app focus' (#4223) 2022-09-26 17:41:12 +02:00
Tanner Linsley
38da8fca80 release: v4.6.1 2022-09-26 11:34:42 +00:00
Dominik Dorfmeister
04945f38b3
fix(query): log error about undefined query data being returned (#4218) v4.6.1
* fix(query): log error about undefined query data being returned

* fix(query): fix test assertion
2022-09-26 13:26:50 +02:00
Tanner Linsley
4d68f00276 release: v4.6.0 2022-09-24 18:43:07 +00:00
Michal Tecza
34ca558121
feat(react-query): error boundary handling for useQueries (#4177) v4.6.0
* feat: handle useErrorBoundary option in useQueries

* chore: update .all-contributorsrc

* style: fix formatting issue

* test: stabilize a test that fails on production but passes locally

* refactor: rename query to options

* refactor: extract reusable code of error boundary handling

* style: apply prettier

* test: reject promise with Error instead of string to avoid TS error

* test: cover a case where useErrorBoundary is a function

* refactor: improve typing of getHasError

* style: apply prettier formatting

* fix: add type keyword for imports

* refactor: revert renaming `query` to `options` for more consistency
2022-09-24 20:37:18 +02:00
Michal Tecza
44262d067c
fix(devtools): prevent devtools explorer from collapsing when data is being fetched (#4214) 2022-09-24 20:35:38 +02:00
Tanner Linsley
650fb99764 release: v4.5.0 2022-09-24 10:19:59 +00:00
Jakov Glavina
0d976fbb5c
feat(query-core): log queryKey when queryFn returns undefined (#4213) v4.5.0
* feat(query-core): log queryKey in createRetryer

in cases where the onSuccess callback fails, this logs the affected queryKey for easier troubleshooting

* chore: use queryHash instead of queryKey

* chore(query-core): fix wording, amend tests
2022-09-24 12:13:10 +02:00
Dominik Dorfmeister
bafb1518ac
docs: solid adapter 2022-09-24 10:44:44 +02:00
Tanner Linsley
bc5fdb4e44 release: v4.4.0 2022-09-24 07:30:02 +00:00
Luke Murray
fd68b22894
feat(solid-query): Solid Query Adapter for TanStack Query (#4211) v4.4.0
* feat(solid-query): Solid Query Adapter for TanStack Query

RELEASE_ALL

Add an adapter to TanStack Query to support SolidJS.

Co-authored-by: Aryan Deora <adeora@iu.edu>
Co-authored-by: Jen Kaplan <jenniferckaplan@gmail.com>

* Fixed Tests and included changes from feedback

* Prettier Format Code

Collaborators:

@oscartbeaumont
@lukesmurray
@jennyckaplan

* Readme Update

Collaborators:

@oscartbeaumont
@lukesmurray
@jennyckaplan

Co-Authored-By: Oscar Beaumont <oscar@otbeaumont.me>
Co-Authored-By: Luke Murray <34020210+lukesmurray@users.noreply.github.com>
Co-Authored-By: Jen Kaplan <25395806+jennyckaplan@users.noreply.github.com>

* Fixing tsconfig for CI test runner

Co-Authored-By: Oscar Beaumont <oscar@otbeaumont.me>
Co-Authored-By: Luke Murray <34020210+lukesmurray@users.noreply.github.com>
Co-Authored-By: Jen Kaplan <25395806+jennyckaplan@users.noreply.github.com>

* (fix: ci) CI Test fix

Co-Authored-By: Oscar Beaumont <oscar@otbeaumont.me>
Co-Authored-By: Luke Murray <34020210+lukesmurray@users.noreply.github.com>
Co-Authored-By: Jen Kaplan <25395806+jennyckaplan@users.noreply.github.com>

* (fix: tests): Remove React 17 check

Co-Authored-By: Oscar Beaumont <oscar@otbeaumont.me>
Co-Authored-By: Luke Murray <34020210+lukesmurray@users.noreply.github.com>
Co-Authored-By: Jen Kaplan <25395806+jennyckaplan@users.noreply.github.com>

* Update packages/solid-query/src/__tests__/createQuery.test.tsx

* Locking vite-plugin-solid version

Co-Authored-By: Oscar Beaumont <oscar@otbeaumont.me>
Co-Authored-By: Luke Murray <34020210+lukesmurray@users.noreply.github.com>
Co-Authored-By: Jen Kaplan <25395806+jennyckaplan@users.noreply.github.com>

Co-authored-by: Aryan Deora <adeora@iu.edu>
Co-authored-by: Jen Kaplan <jenniferckaplan@gmail.com>
Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>
Co-authored-by: Jen Kaplan <25395806+jennyckaplan@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2022-09-24 09:15:01 +02:00
liaoliao666
b31827d12e
docs: add react query kit community contribution (#4193)
* docs: add react query kit community contribution

* docs: make ReactQueryKit doc much sense grammatically

* Update docs/community/liaoliao666-react-query-kit.md

Co-authored-by: 廖璇 <arthur.liao@huolala.cn>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2022-09-23 17:04:08 +02:00
Jungzl
ca767771f3
chore: force type import (#4202)
* chore: force type import

* lint: prettier format

* lint: rollback some eslint config

* lint: fix react-query-tools
2022-09-23 10:55:22 +02:00
Dominik Dorfmeister
7f8d4a0b1f
chore: set exhaustive deps eslint rule to error (#4207)
and fix the warnings in devtools
2022-09-22 21:11:49 +02:00
Bennett Dams
6f59bbd4b4
docs: Add un-/install statement to v3 to v4 migration guide (#4186)
* docs(migrating-to-react-query-4): Add un-/install statement

This adds a statement to uninstall `react-query` and install `@tanstack/react-query` to the `v3` to `v4` migration guide.

* docs(migrating-to-react-query-4): Add devtools install statement

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

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2022-09-22 20:53:02 +02:00
Josh
900d2c5130
docs: update react native app focus instructions (#4191) 2022-09-20 08:47:27 +02:00
David Ducluzeaud
ec23747b59
docs(react-native): delay fn returned a function insted of data (#4189) 2022-09-19 19:26:04 +02:00
Tanner Linsley
39328662c4 release: v4.3.9 2022-09-19 06:30:50 +00:00
Damian Osipiuk
932dbc4abe
fix: react native uSES (#4185) v4.3.9 2022-09-19 08:26:22 +02:00
Tanner Linsley
ac4cc06fe0 release: v4.3.8 2022-09-18 19:21:06 +00:00
Andreas Muttscheller
eefc777f2d
fix(react-query-persist-client): Make dependencies to peerDependencies (#4165) v4.3.8
For yarn 3 pnp, having react-query as a normal dependencies causes it to
be bundled multiple times. The query client set in
react-query-persist-client is not visible for the normal useQuery
imports from react-query. Setting react-query as a peerDependency
instead fixes this issue.

Co-authored-by: Andreas Muttscheller <andreas.muttscheller@codecentric.de>

RELEASE_ALL
2022-09-18 21:16:27 +02:00
Tanner Linsley
08857a42e4 release: v4.3.7 2022-09-18 09:45:42 +00:00
Dominik Dorfmeister
fd5c3f1f2d
fix: force release v4.3.7
RELEASE_ALL
2022-09-18 11:39:41 +02:00
Damian Osipiuk
3a9dc43f60
fix: serve esm.js for webpack 4 (#4183) 2022-09-18 11:38:24 +02:00
Zsolt Szabo
994f506388
docs: Add a guide for custom SSR with Suspense (#4182) 2022-09-18 08:25:54 +02:00
Tanner Linsley
a461a20e60 release: v4.3.6 2022-09-18 06:25:30 +00:00
Michal Tecza
f61b908014
refactor(tests): Get rid of TS errors in tests files (#4180) v4.3.6
* chore: get rid of TS errors in tests files

Test files in most packages were importing `tests/utils` from the root of the repo causing hundreds of typescript errors. This commit collocates these utils in each of the packages and removes 'exclude' statements from all tsconfig files as they are no longer necessary for the typechecking to pass.

* style: fix formatting

* fix: resolve broken references
2022-09-18 08:20:08 +02:00
Vincent Ricard
63932597db
refactor(examples): Update react-router example to match the last API (6.4.0) (#4174) 2022-09-17 12:10:59 +02:00
Luke Morales
9511933f25
refactor(examples): rewrite example apps query keys to recommended standard (#4159) 2022-09-13 11:10:26 +02:00
Tanner Linsley
1d83f2962e release: v4.3.5 2022-09-12 08:27:05 +00:00
Dhiraj Arun
dcf6d7b5eb
fix(devtools): not subscribing to queryCache if devtool is closed (#4146) v4.3.5
* fix(devtools): not subscribing to queryCache if devtool is closed

This will stop unnecessary rerender of devtools when they are closed.

* style(devtools): fix linting issue in devtools.tsx file
2022-09-12 10:22:23 +02:00
Tanner Linsley
ed1a88ad40 release: v4.3.4 2022-09-11 18:03:20 +00:00
Damian Osipiuk
17898a6f22
fix(devtools): bring back auto-treeshakeable devtools (#4145) v4.3.4
RELEASE_ALL
2022-09-11 19:58:46 +02:00
Damian Osipiuk
c5d8582b25
fix(build): cjs extensionsless import for .native files (#4144) 2022-09-11 19:48:39 +02:00
Luke Morales
08dedf5220
docs(community): add query key factory community contribution (#4126) 2022-09-11 19:33:08 +02:00
Tanner Linsley
66190c4109 release: v4.3.3 2022-09-11 09:39:48 +00:00
Dominik Dorfmeister
6af7b9a1ca fix(publish): make sure we can release transitive dependency packages v4.3.3
RELEASE_ALL
2022-09-11 11:34:58 +02:00
Tanner Linsley
1cfaa55787 release: v4.3.2 2022-09-11 08:58:00 +00:00