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

5,014 commits

Author SHA1 Message Date
Dominik Dorfmeister
ecb71fbca4 docs: query options 2023-12-04 14:16:18 +01:00
Tanner Linsley
478ed5bc21 release: v5.13.0 v5.13.0 2023-12-03 16:30:45 +00:00
Arnoud
21502ad8e5
feat(angular-query): rename Angular Query devtools (#6479) 2023-12-03 17:27:23 +01:00
Tanner Linsley
7946653999 release: v5.12.2 v5.12.2 2023-12-02 09:37:17 +00:00
Charlotte Grace (Bone)
b54936f11d
fix(useQueries): add type tests for useQueries and fix a couple of type bugs (#6471)
Creating new useQueries type tests in react-query and vue-query and fixing a couple of type bugs.
2023-12-02 10:34:05 +01:00
Enea Jahollari
23374bb434
docs(angular-query): fix quickstart 2023-12-01 20:01:16 +01:00
Arnoud
ac046b1170
docs(angular-query): compatible with angular 17 (#6469) 2023-12-01 18:53:05 +01:00
Tanner Linsley
1198570cbb release: v5.12.1 v5.12.1 2023-12-01 15:43:27 +00:00
Dominik Dorfmeister
4e8a6c5acc
fix: angular release process (#6468)
RELEASE_ALL

* fix: make sure there is only one package.json after build

* fix: angular release

we cannot publish out of the build directory because pnpm doesn't see it as a workspace, so it won't replace workspace dependencies. To fix this, we:

- make the publish script point to the root directory (config.js)
- make sure our top-level package.json has types and exports and that they point to ./build
- make sure to remove the build/package.json after the build script ran

* chore: use rimraf

* chore: specify files to limit what we include

* chore: fix relative workspace dependencies

* chore: fix ci.json

* fix: package.json path
2023-12-01 16:30:04 +01:00
Lachlan Collins
3a60413d94
chore: Use prettier v4 alpha (#6466) 2023-12-01 22:36:48 +09:00
Dominik Dorfmeister
a914166b16
feat: trigger release v5.12.0
RELEASE_ALL
2023-12-01 14:25:40 +01:00
Dominik Dorfmeister
776a2098f9
chore: trigger release
RELEASE_ALL
2023-12-01 14:19:21 +01:00
Tanner Linsley
16494bd480 release: v5.11.0 v5.11.0 2023-12-01 13:15:44 +00:00
Arnoud
46034aada2
feat: experimental angular query adapter (#6195)
* feat(angular-query): add Angular Query

* feat(angular-query): integration test

* fix(angular-query): PR feedback on QueryClientService injection

* fix(angular-query): PR feedback

* chore(angular-query): update unit tests

* feat(angular-query): custom inject functions

* feat(angular-query): docs

* fix(angular-query): replace React context mention with Angular injector

* fix(angular-query): re-add missing angular-query-experimental package config

* feat: updated angular version

* feat: code improvements, DX improvements, fixed small doc example to use http client,

* Update docs/angular/overview.md

* version fixes

* feat: use proxy object to create single signals (computed) for query fields instead of query itself being a signal and improved types

* fix: docs

* Update packages/angular-query-experimental/src/query-proxy.ts

Co-authored-by: Chau Tran <nartc7789@gmail.com>

* Update packages/angular-query-experimental/src/query-proxy.ts

Co-authored-by: Chau Tran <nartc7789@gmail.com>

* fix: add missing import

* revert: use helper method for injectQueryClient

* Add Angular-CLI apps for testing

* fix: useValue instead of useFactory

* fix(angular-query): examples

* chore(angular-query): remove build script from angular 17 integration

* fix(angular-query): add sandbox config

* build working for angular-query-devtools-experimental

* fix(angular-query): improve development workflow

* fix(angular-query): downgrade vitest

* fix(angular-query): eslint and unit test typing fix

* fix(angular-query): test:ci fixes

* fix(angular-query): relative workspace path to build dir

* fix(angular-query): configure workspaces for top directories only

* chore(angular-query): remove dead code found by Knip

---------

Co-authored-by: Enea Jahollari <jahollarienea14@gmail.com>
Co-authored-by: Chau Tran <nartc7789@gmail.com>
Co-authored-by: Tomasz Ducin <tomasz@ducin.it>
Co-authored-by: Tomasz Ducin <tomasz.ducin@gmail.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-12-01 14:09:39 +01:00
Tyler Dane
af0ff9ad50
docs(initial-query-data.md): simplify initialDataUpdatedAt (#6458)
Simplify `initialDataUpdatedAt` description to avoid confusion
2023-12-01 13:28:37 +01:00
Dammy O
0604a40d37
docs: Update paginated-queries.md (#6463)
use isPlaceholderData instead of isPreviousData.

isPreviousData does not exist, and should be replaced with isPlaceholderData.

Also keepPreviousData: true does not also exist and should be replaced as written.
2023-12-01 13:24:50 +01:00
Tanner Linsley
e5d1e247ae release: v5.10.0 v5.10.0 2023-11-29 15:07:47 +00:00
Damian Osipiuk
050577e84e
feat(experimental_createPersister): support async serialization and storage of arbitrary values instead of strings (#6450)
* feat(experimental_createPersister): support async serialization and storage of arbitrary values instead of strings

* fix: allow async serialization in async-storage-persister
2023-11-29 16:01:47 +01:00
Lars Kappert
5d29f8ff47
chore: introduce Knip as dead-code removal tool (#6368)
* Add knip with inital config

* Rename vite.config.js → vite.config.js (`__dirname` not in ESM scope)

* chore: upgrade to knip v3

* chore(knip): remove duplicate exports

* chore(knip): remove unused types from query devtools

* chore(knip): do not export unused types

* chore(knip): run knip in ci

* chore(knip): ignore certain .d.ts files

* chore(knip): remove unused file

* chore(knip): use devtools in next integration

so the dependency doesn't show up as unused

* chore(knip): remove unused dependencies

* chore(knip): remove unused exports

* chore(knip): add unlisted dependencies

* chore(knip): remove unnecessary scope-manager dependency

* Update knip to 3.3.0

* Update knip to 3.3.1

* chore: ignore custom deps, remove unneeded file

* chore: remove unused util

* chore: remove esbuild dep as it's not directly used

* chore: bump tsup to match esbuild types with the plugin

* chore: remove unused peer deps

* chore: remove unneeded deps

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2023-11-29 15:58:02 +01:00
Arnoud
ac92fc9c83
chore(codemods): disable no-unnecessary-condition in test fixtures (#6457) 2023-11-29 12:58:27 +01:00
Tanner Linsley
9f7725a30c release: v5.9.0 v5.9.0 2023-11-29 07:48:31 +00:00
Charlotte Grace (Bone)
3319d80d59
fix(types): Fix types when using select with the queryOptions helper (#6454)
useQueries, createQueries and useSuspenseQueries now return the correct data type if using the queryOptions helper with the select option.

fixes #6442

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-11-29 08:28:27 +01:00
Zachary DeRose
568ce178cc
chore: switching retry strategy (#6453) 2023-11-29 08:25:08 +01:00
Balázs Máté Petró
f62e079a4f
feat(codemod): isLoading codemod (#6388)
* feat(codemod): implement codemod that replaces the `isLoading` usages with `isPending`

* fix(codemod): differentiate shorthand property usages in the codemod

* chore(codemod): add the `useMutation` hook as well to the "affected hooks" list

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-11-28 13:29:01 +01:00
Tanner Linsley
50391134f9 release: v5.8.9 v5.8.9 2023-11-28 08:28:04 +00:00
Dominik Dorfmeister
5163ed4d7e chore: remove integrations packages from sherif 2023-11-28 09:22:23 +01:00
Balázs Máté Petró
fe87fc1f97
fix(codemod): extend the remove overloads codemod logic (#6268)
* fix(codemod): extend codemod logic to transform usages when the second parameter is a function in the scope

* fix(codemod): handle the case when the second argument is a function definition

* chore(codemod): fix the `eslint` issue in the newly added example

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-11-28 09:07:27 +01:00
Dominik Dorfmeister
6b79e10241
test: add vite5 integration test for react (#6443)
* chore: rename integration test

* test: add vite5 integration test for react

* chore: make test more stable

we don't really care about in-between renders as they might be batched

* Empty-Commit

* chore: add unique names

* chore: touching pr.yml to diagnose dte issues (#6445)

* touching pr.yml to diagnose dte issues

* fixing typo in pr.yml

---------

Co-authored-by: Zachary DeRose <zack.derose@gmail.com>
2023-11-28 08:50:08 +01:00
Tanner Linsley
0a181d5ff9 release: v5.8.8 v5.8.8 2023-11-27 15:02:00 +00:00
Danilo Britto
c04df4568c
fix(query-devtools): do not break words on labels (#6435)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-11-27 15:59:28 +01:00
Dominik Dorfmeister
5d1797cd33
docs: add wagmi to community-projects.md 2023-11-27 11:39:46 +01:00
Ruben Oostinga
e0b6e6e91a
docs: Fix Typo in migrating-to-v5.md (#6440) 2023-11-27 11:37:05 +01:00
Thomas Pfeiffer
9191f15592
docs(installation) remove note about v5 being a release-candidate (#6393) 2023-11-25 13:49:19 +01:00
Kolja
19564db9f2
docs: Use latest version of jscodeshift (#6394)
Co-authored-by: Kolja Lampe <klampe@slashwhy.de>
2023-11-25 13:45:56 +01:00
Tomasz Ducin
e5a1f5edf3
docs: troubleshooting commands for contributors (#6403) 2023-11-25 13:29:27 +01:00
Tanner Linsley
84bf775334 release: v5.8.7 v5.8.7 2023-11-24 19:49:28 +00:00
Dominik Dorfmeister
43bb4b9396
fix(core): make sure queries initialize correctly (#6431)
* fix(core): make sure queries initialize correctly

setQueries sets them, so it needs to be set before setResult, where we already access `this.queries`

* fix: initialize queries and options before calling setResult
2023-11-24 20:43:59 +01:00
Tanner Linsley
99c022342b release: v5.8.6 v5.8.6 2023-11-24 09:20:17 +00:00
Dominik Dorfmeister
1f0088e5fa
fix(react-query): make sure options are up-to-date when a mounted component re-suspends (#6429)
* fix(react-query): make sure options are up-to-date when a mounted component re-suspends

* chore: simplify test

there is no need to assert how often we rendered in this test case
2023-11-24 10:16:53 +01:00
Flo
3d1e0a0d84
chore: fix typo in code comment (#6411) 2023-11-23 17:58:25 +01:00
Ishrath Inaam
87174c940b
docs: Update dependent-queries.md (#6418)
Syntax typo
2023-11-23 17:55:54 +01:00
Philip Englund
94dc3f64c4
docs(useMutationState): add reference (#6423) 2023-11-23 17:52:20 +01:00
Tanner Linsley
fda172be4f release: v5.8.5 v5.8.5 2023-11-22 21:47:19 +00:00
eth3lbert
73a65ac393
fix(svelte-query-devtools): make styleNonce prop optional (#6417) 2023-11-22 16:45:58 -05:00
이효범
a46c8a7f6d
docs: Update caching.md (#6406) 2023-11-21 13:40:10 +01:00
Björn Böing
ab69d83add
docs: Fix example for focusManager.setEventListener (#6385)
Fixes #6382
2023-11-16 08:22:16 +01:00
Tanner Linsley
dc8f6395f8 release: v5.8.4 v5.8.4 2023-11-15 11:30:28 +00:00
EL AYADI Mohamed
e7f6d3ae8b
fix(react-query): useSuspenseQuery returns undefined as data when network is offline (#6350)
* #6344: reproduce query not suspending when offline

* shouldSuspend to return true when isPaused is true and other conditions are met

* change test to load data first on online and then go offline, then come back online

* adapt test to issue with changing query and rely on isPending rather than isPaused

* Adapt shouldSuspend condition & remove isRestoring from it
2023-11-15 12:27:30 +01:00
Lachlan Collins
83d71c3074
chore: Update to prettier v3.1.0 (#6378) 2023-11-15 14:15:47 +11:00
Lachlan Collins
b8bfe43562
chore: Add Sherif to CI to lint monorepo config (#6376) 2023-11-15 13:49:37 +11:00