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

5,036 commits

Author SHA1 Message Date
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
Nicholas Griffin
fabb2ae571
fix(react-query-devtools): Adding screenreader text to offline mock button (#4087) v4.2.3 2022-08-26 13:32:50 +02:00
Tanner Linsley
7db5da560e release: v4.2.2 2022-08-26 09:52:08 +00:00
Nicholas Griffin
e97a9a5b7e
fix(react-query-devtools): Adding screenreader text to the DevTools open icon (#4063) v4.2.2 2022-08-26 11:45:29 +02:00
Dominik Dorfmeister
a1050eb0d7 docs(query-cancellation): remove reference to old cancel function
This doesn't exist at all anymore in v4
2022-08-26 11:28:16 +02:00
Amer Lotfi Orimi
76b98ed107
docs: Add new guides for React Native createAsyncStoragePersister (#4064) 2022-08-22 20:41:04 +02:00
Henry Nguyen
4690b58572
docs: Fix typos (#4061)
* docs(reference): Fix typo

* docs(guides): Fix typo
2022-08-21 08:47:17 +02:00
Vlad Tansky
e7171444f1
docs: fix /reactjs import path (#4059) 2022-08-20 21:13:32 +02:00
Artur Drobinskiy
f0870bbd5a
docs: Update the docs for loading state of status field (#4057)
The current definition is incorrect, since `status` might be `loading` even if `isFetching` is false (e.g. when query is disabled)
2022-08-20 11:19:15 +02:00
Dominik Dorfmeister
c1aa2a5c21 docs: update blogposts 2022-08-19 14:22:29 +02:00
Dominik Dorfmeister
1da9e43895 chore: use strict dependency versions in publish scripts 2022-08-19 08:55:25 +02:00
Dominik Dorfmeister
213a85fec5
chore: fix release script (#4053)
* chore: remove testing from ci-publish pipeline

because the cipublish script does it internally, so we have been doing twice the tests now

* chore: fix release script

any change in package should result in a package release - not just the `src` directory

* fix: publish script

the Package that's defined in config does not have dependencies / peerDependencies, so we need to iterate over the object we find package.json
2022-08-18 21:42:33 +02:00