Skip to content

Sync#1

Merged
xiaoyu2er merged 39 commits intoTanStack-dev:mainfrom
TanStack:main
May 6, 2025
Merged

Sync#1
xiaoyu2er merged 39 commits intoTanStack-dev:mainfrom
TanStack:main

Conversation

@xiaoyu2er
Copy link
Copy Markdown

No description provided.

manudeli and others added 30 commits April 26, 2025 19:19
…test.ts (#9067)

* test(query-persist-client-core): use fake timers for createPersister.test.ts

* refactor: remove unnecessary export

---------

Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
…on` and `NonUndefinedGuard`, similar to react-query (#9073)

* fix(vue-query): update `initialData` type to allow InitialDataFunction and NonUndefinedGuard, similar to react-query

* ci: apply automated fixes

* test: update types to include `undefined` in useQueries and useQuery tests in vue-query

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* fix: Correct bug where non-undefined values in initialData are not treated as defined

* test: Update test to ensure data is TData only when initialData is defined

* fix: Modified to recognize UndefinedInitialQueryOptions when a function returning undefined is used in initialData.

* test: update test result values for case where a function returning TData is passed to initialData
* Fix broken link to TkDodo's Blog page from QueryCache page

It looks like the `docs` part of the url was being removed, so there's now one less `../` in the relative url.

* Fix other broken links on page & add `.md` extension to relative links
as suggested by @TkDodo
* ref: switch from Object.defineProperty to Proxies

* test: improve the test that tracks property access
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* refactor(query-core): make common type more readable

* fix: revert WithRequired type

* fix: remove blank

* refactor(query-core): change Omitkeyof to Omit

* refactor: remove unused common type

* fix: revert type WithRequired
* refetchmode replace

* feat: refetchMode replace for streamedQuery

* test: should allow arrays
…ads to fix type inference (#9088)

* fix(vue-query): more specific function overloads for queryOptions and useQuery to come before general ones (#9069)

This instructs TypeScript to pick correct function overload when initialData is defined.

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
…tab doesn't remove it from all tabs (#9017)

* fix(solid-query): client() doesn't return undefined

* fix: (query-broadcast-client-experimental) - removing query from one tab doesn't remove it from all tabs

* fix: (query-broadcast-client-experimental) - removing query from one tab doesn't remove it from all tabs

* isolated tests

* chore: add test config

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
TkDodo and others added 9 commits May 4, 2025 11:23
* fix(types): useSuspenseQuery should type-narrow the Error field

* Update packages/query-core/src/types.ts

Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>

* Update packages/query-core/src/types.ts

Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>

* ref: use DistributiveOmit from query-core in vue-query

* chore: fix type error in tests

---------

Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
…ule as error across multiple packages gradually (#9104)

* chore(*): init ESLint configurations to include 'vitest/expect-expect' rule as error across multiple packages gradually

* chore(query-core): remove unused import from ESLint configuration

* chore(angular-query-experimental): update eslint rule

* chore: integrate vitest ESLint plugin and apply recommended rules across multiple packages

* chore(react-query-devtools): add vitest ESLint plugin to configuration
@xiaoyu2er xiaoyu2er merged commit dc71787 into TanStack-dev:main May 6, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.