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

4,997 commits

Author SHA1 Message Date
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
Vitalii Hopaniuk
f828528c93
fix(types): change MutateOptions return types to void (#4133) v4.3.2
* Docs: Update mutate options description

* fix(types): change MutateOptions return types to void

* fix(types): undo context param type change for mutate onSuccess

* style: run prettier for types
2022-09-11 10:52:07 +02:00
Tanner Linsley
0c276467ad release: v4.3.1 2022-09-10 10:22:51 +00:00
Dominik Dorfmeister
41ad9a2ddc
fix: force release v4.3.1
RELEASE_ALL
2022-09-10 12:17:14 +02:00
Tanner Linsley
61e47913cf release: v4.3.0 2022-09-10 10:11:28 +00:00
Dominik Dorfmeister
ea80700c2c
feat: ESM support (#4092) v4.3.0
* fix: restore missing `exports` declarations (#3892)

* fix: restore missing `exports` declarations

* fix: restore package.json exports[C

* fix: reexport types used by vue-query

* fix: react-native uSES usage

* fix: emit mjs for esm

* fix: uSES build

* fix: devtools exports to allow devtools in prod

* fix: cjs and esm build bundled to lib dir

* fix: sideEffect in react-query, better files paths

* fix: generate declarations to lib

* fix: lint and tests

* fix: use the same ts build method for tests

* fix: change force prod import

* fix: subpackage dependencies (#4013)

* fix: umd-build (#3924)

* - Fix UMD build getting overwritten
- Updating "browser" field for @tanstack/react-query-devtools

* Updating the "browser" field to be the same as "main"

* release: v4.0.11-beta.0

* release: v4.0.11-beta.1

* fix(react-query-devtools): cjs devtools fallback (#4048)

* release: v4.0.11-beta.2

* fix: remove browser entry, fix umd size (#4044)

* fix: remove browser entry, fix umd size

* fix: bundle query-core with react-query for umd

* fix: remove missed browser entry

* chore: remove 'browser' field from package validation

because it doesn't exist anymore

* release: v4.0.11-beta.3

* release: v4.0.11-beta.4

* chore: react-query should be a peerDependency of the devtools

* release: v4.0.11-beta.5

* release: v4.3.0-beta.0

* fix: webpack 4 fallback to cjs (#4069)

* fix: publish script shouldn't check against module anymore

* fix: publish script

I don't think we can have single quotes in commit message when passing them to --notes

* release: v4.3.0-beta.2

* release: v4.3.0-beta.3

* fix: umd build size, force prod devtools (#4074)

* fix: umd build size

* fix: devtools force production

* release: v4.3.0-beta.4

* release: v4.3.0-beta.5

* fix: reintroduce production export (#4090)

* release: v4.3.0-beta.6

* fix(react-query-devtools): always useEffect for the mounted check

no effect runs on the server, and there is no real advantage to useLayoutEffect on the client; somehow, this dynamic check creates problems with the production build of the devtools

* release: v4.3.0-beta.7

* docs: document devtools in production

* docs: document devtools in production

* docs: document devtools in production

nodenext needs 4.7

* fix: support react-native (#4125)

* fix: support react-native

* chore: remove banner from build

Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
Co-authored-by: John Daly <john.daly2@gmail.com>
Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com>
2022-09-10 12:06:42 +02:00
Dhruv Jain
f231f8ca6f
docs: fix comment in comparison doc (#4137) 2022-09-09 12:57:46 +02:00
João Pedro Magalhães
ebd657064b
docs: query keys consistency (#4122) 2022-09-06 09:49:19 +02:00
Ross Gardiner
21eef3ca1b
docs: Fix link to Mutations page from Queries page (#4123) 2022-09-06 09:49:01 +02:00
David Jebing
292f021aa1
docs(migration-guide): multiline codemod commands (#4116) 2022-09-03 10:51:13 +02:00
Dominik Dorfmeister
f6f211fd57
docs(examples): react-router example (#4058) 2022-08-28 09:13:17 +02:00
Dominik Dorfmeister
607a6c31e8 chore(publish): do not release without changed packages
we might have commits in files that are not in the src directory; this will right now create a tag, but there will be nothing published to npm; early exit stops creating the tag.
2022-08-28 08:28:45 +02:00
Dominik Dorfmeister
6630b1b28d
chore: update CONTRIBUTING.md 2022-08-26 21:16:32 +02:00
Dominik Dorfmeister
cd89dc2907 chore(publish): restrict change detection to src directory
since package.json is updated a lot by the cipublish script itself, that basically means every release releases all packages. Changes to non-src directories not yielding releases should be fine. For false-negatives, we can still trigger manually.
2022-08-26 14:05:31 +02:00
Tanner Linsley
e0405faede release: v4.2.3 2022-08-26 11:39:36 +00:00