0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-18 19:33:22 +00:00
Commit graph

5,191 commits

Author SHA1 Message Date
Manuel Schiller
1dd372f94b
fix(query-core): replaceEqualDeep correctly handles values that contain undefined (#6719) 2024-01-16 20:29:40 +01:00
Tanner Linsley
c08abf002f release: v5.17.14 v5.17.14 2024-01-16 14:34:07 +00:00
Kirby
9dc3eaac03
fix(query-core): computed properties of QueryObserverResult (#6716)
* fix: computed type from QueryObserverResult

* test: add test cases for QueryObserverResult

* test: add test cases for InfiniteQueryObserverResult
2024-01-16 15:27:22 +01:00
Tanner Linsley
1ead251fc8 release: v5.17.13 v5.17.13 2024-01-15 11:51:18 +00:00
robin labat
4524716501
fix(vue-query): Fix type inference (#6706)
Co-authored-by: LABAT Robin <robin.labat@airbus.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-01-15 12:49:16 +01:00
海秋
f294d4711e
docs: correct nuxt2 example (#6702)
Co-authored-by: worldzhao <107326924@qq.com>
2024-01-15 10:37:10 +01:00
Tanner Linsley
72c3a06cf9 release: v5.17.12 v5.17.12 2024-01-15 09:28:17 +00:00
Luke Morales
020ac08d01
fix(types): repair wrong types passed to DataTag (#6699)
* fix: repair wrong types passed to `DataTag`

* test: remove introduced changes and add test for the fixed behavior

* Update packages/angular-query-experimental/src/__tests__/query-options.test-d.ts

* Update packages/angular-query-experimental/src/__tests__/query-options.test-d.ts

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-01-15 10:24:06 +01:00
Dominik Dorfmeister
22caf2aa71
Revert "chore(sherif): remove unnecessary option and ignore directory" (#6703) 2024-01-15 06:53:17 +01:00
Jonghyeon Ko
4a931464ad
chore(sherif): remove unnecessary option and ignore directory (#6701)
* fix(sherif): ignore directory

* chore(sherif): remove shorthand and unnecessary option
2024-01-14 20:46:53 +01:00
Tanner Linsley
7a9419a083 release: v5.17.11 v5.17.11 2024-01-14 12:00:39 +00:00
René Klomp
dfa4dc9474
fix(types): Fix typo in PersistQueryClientRootOptions (#6698) 2024-01-14 12:58:17 +01:00
Jonghyeon Ko
3a127bfc13
chore: include field of tsconfig correctly to be affected by eslint with typescript (#6688)
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-01-13 22:03:43 +11:00
Brian West
4973f326e6
docs(react-prefetching): fix spelling (#6602) 2024-01-13 22:03:24 +11:00
Lachlan Collins
c697605e87
docs(svelte): Fix SvelteKit v2 migration (#6694)
* docs: Fix sveltekit v2 migration

* Bump kit and adapter

* Update lockfile
2024-01-13 16:08:18 +11:00
Alexander Lichter
61142a07ae
perf(vue-query): use shallowRef instead of ref in useQueries (#6657)
* perf: use shallowRef

* chore: lint

* chore: format with prettier

---------

Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2024-01-13 00:32:52 +01:00
Lachlan Collins
58fe2eb1ad
chore(vue-query-devtools): Use tanstackBuildConfig from @tanstack/config (#6638)
* Experimental vite build

* Finalise changes

* Move to its own file

* Better wrapper input

* Implement feedback

* Allow customising excluded directories

* Update build script

* Use getViteConfig for vue-query-devtools

* Fix type error in getViteConfig

* Rename to viteBuildConfig

* Simplify relative paths

* Demo snapshot testing build output

* Remove snapshot testing

* Undo testing

* Remove local config

* Bump @tanstack/config

* Undo react-query changes

* Bump @tanstack/config

* Bump @tanstack/config

* Undo lockfile changes

---------

Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2024-01-13 00:23:10 +01:00
Tanner Linsley
02477c377e release: v5.17.10 v5.17.10 2024-01-12 22:51:22 +00:00
Manuel Schiller
9d1fd2916a
fix(query-core): replaceEqualDeep now handles objects with the same number of properties and one property being undefined (#6693)
this was previously fixed in router: https://github.com/TanStack/router/pull/903
2024-01-12 23:44:37 +01:00
Arnoud
91fb1eb428
chore(angular-query): add query options tests (#6677) 2024-01-10 20:14:12 +01:00
Tanner Linsley
7eb49eb8e3 release: v5.17.9 v5.17.9 2024-01-08 00:54:03 +00:00
Rares Golea
e423ebfdd4
fix(angular-query): type narrowing on query and mutation results (#6662)
* chore(angular-query): query and mutation type tests

* chore(angular-query): fix type narrowing for a better DX experience

chore(angular-query): fix linting

* chore(angular-query): fix knip issues

---------

Co-authored-by: Arnoud de Vries <6420061+arnoud-dv@users.noreply.github.com>
2024-01-08 01:43:56 +01:00
Jonghyeon Ko
a8f5db0f75
chore(query-core): rename QueryStore's methods' parameter queryKey as queryHash correctly (#6661) 2024-01-07 22:54:17 +01:00
Tanner Linsley
22f7f76422 release: v5.17.8 v5.17.8 2024-01-07 09:50:53 +00:00
Jonghyeon Ko
1317aa5518
refactor(query-core): use constructor shorthand to remove duplicated code (#6660) 2024-01-07 10:44:20 +01:00
Lachlan Collins
df089941a1
chore: Fix incorrect npm tag for previous version release (#6658) 2024-01-07 08:04:49 +11:00
Tanner Linsley
b680581796 release: v5.17.7 v5.17.7 2024-01-06 13:26:18 +00:00
Dominik Dorfmeister
0f6477f41d
fix: trigger release
RELEASE_ALL
2024-01-06 14:23:48 +01:00
Tanner Linsley
c40a98450b release: v5.17.6 v5.17.6 2024-01-06 02:29:30 +00:00
Arnoud
c6a78d14b7
fix(angular-query): align types to React Query (#6654) 2024-01-06 03:26:30 +01:00
Tanner Linsley
41598cfb41 release: v5.17.5 v5.17.5 2024-01-05 23:46:29 +00:00
Lachlan Collins
e5f23fcea2
fix: Remove unnecessary tsconfig options (#6653) 2024-01-06 10:39:43 +11:00
Tanner Linsley
d26cb41005 release: v5.17.4 v5.17.4 2024-01-05 21:42:57 +00:00
Dominik Dorfmeister
24719c16ae
fix: revert early bailout improvements (#6652) 2024-01-05 22:40:45 +01:00
Tanner Linsley
3fecf710a8 release: v5.17.3 v5.17.3 2024-01-05 21:05:07 +00:00
Dominik Dorfmeister
9e0bfa8b74
fix(queriesObserver): always use latest combine function (#6651)
* fix(queriesObserver): always use latest combine function

computing the optimistic result didn't use the latest combine function, but the one set from setOptions (which runs in an effect, but is too late)

* fix: don't forget about svelte
2024-01-05 22:03:02 +01:00
Dominik Dorfmeister
f43d2ad9b5 chore: fix prettier 2024-01-05 12:14:41 +01:00
angeloaltamiranom
971bd6f8d4
docs(useSuspenseQueries): add stale time caveat (#6641)
* docs(useSuspenseQueries): add stale time caveat

* Update docs/react/reference/useSuspenseQueries.md

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-01-05 12:04:51 +01:00
Jonghyeon Ko
694cfdbcbd
chore(tsconfig): remove unnecessary strictNullChecks (#6642) 2024-01-05 11:59:46 +01:00
Tanner Linsley
0007e258a6 release: v5.17.2 v5.17.2 2024-01-05 10:57:59 +00:00
Lachlan Collins
8f4aa64fb1
fix: Correctly exit publish script (#6647)
* fix: Correctly exit publish script

* Remove ts-expect-error
2024-01-05 21:51:22 +11:00
Lachlan Collins
ca6102b854
ci: Avoid uploading coverage files in Nx cache (#6644)
* ci: Avoid uploading coverage files in Nx cache

* Clean up config
2024-01-05 13:23:46 +11:00
Lachlan Collins
422cbed783
ci: Use publish function from @tanstack/config (#6643)
* ci: Use publish function from @tanstack/config

* Remove type-fest
2024-01-05 12:01:37 +11:00
Tanner Linsley
9028c7459b release: v5.17.1 v5.17.1 2024-01-03 14:08:09 +00:00
Arnoud
07d40df1fa
fix(angular-query): add notifyManager to query and mutation (#6633) 2024-01-03 15:05:46 +01:00
Lachlan Collins
e6cb6df568
chore: Enable coverage and typecheck in vitest config (#6624)
* Better vitest config

* Update other packages

* Delete unused files
2024-01-01 09:49:17 +11:00
Tanner Linsley
ca6ad31c19 release: v5.17.0 v5.17.0 2023-12-31 12:31:29 +00:00
Nathan Huisman
3265ec3262
feat(notifyManager): setScheduler configuration (#6600)
* feat(notifyManager): add batch method configuration

add the method setBatchMethod on the notifyManager to configure the
batching method. Inspiration taken from redux[^redux]

[^redux]: https://redux-toolkit.js.org/api/autoBatchEnhancer#autobatchenhancer-1

* fix(notifyManager): remove scheduleMicrotask import for test:eslint

* fix(notifyManager): fix eslint (incorrectly) complaining

* feat(notifyManager): ability to add custom schedule function

* feat(examples/solid): demonstrate layout shift

* feat(notifyManager): add tests for setBatchMethod

* refactor(utils): remove unnecessary scheduleMicrotask

* feat(notifyManager): add docs

* fix(pnpm-lock.yaml): Revert accidentally updated lockfile

* fix: run prettier

* docs(notifyManager): add requestAnimationFrame mdn link

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

* fix: revert pnpm-lock.yaml

* feat(notifyManager): simplify setBatchMethod interface, rename to setScheduler

* fix(solid-start-streaming): fix batch-methods example

* refactor: init scheduleFn when declaring it

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-12-31 13:25:02 +01:00
Lachlan Collins
50230c5626
chore: Update Nx caching inputs (#6619)
* chore: Update Nx caching inputs

* More descriptive CI task names
2023-12-31 09:42:33 +11:00
Lachlan Collins
a8d7bd2b85
chore: Update Node to latest v18 release for CI (#6618)
* Bump node to latest v18

* Only run CI on query repo
2023-12-31 09:22:38 +11:00