Skip to content

Feature implementation from commits 02c3d51..62f02fc#2

Open
yashuatla wants to merge 25 commits intofeature-base-2from
feature-head-2
Open

Feature implementation from commits 02c3d51..62f02fc#2
yashuatla wants to merge 25 commits intofeature-base-2from
feature-head-2

Conversation

@yashuatla
Copy link
Copy Markdown
Owner

@yashuatla yashuatla commented Jun 24, 2025

PR Summary

Code Cleanup and Type Signature Simplification

Overview

This PR focuses on code cleanup and type signature simplification across the codebase, removing unnecessary 'async' keywords from test functions and simplifying generic type parameters in the QueryClient class.

Change Types

Type Description
Refactor Removed unnecessary 'async' keywords from test functions
Refactor Simplified type signatures in QueryClient methods
Enhancement Improved consistency by always applying readonly wrappers

Affected Modules

Module / File Change Description
query-devtools/src/__tests__/utils.test.ts Removed unnecessary 'async' keyword from test function
vue-query/src/__tests__/queryClient.test.ts Removed unnecessary 'async' keywords from test functions
vue-query/src/queryClient.ts Simplified type signatures for invalidateQueries, RefetchQueryFilters, and removeQueries methods
vue-query/src/useMutation.ts Always apply readonly/shallowReadonly wrappers regardless of environment

tannerlinsley and others added 25 commits April 14, 2025 10:54
* Remove prdicate typing

* Removing generics everywhere

* Fix type errors

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
… used in functions with explicit return types (TanStack#9030)

* fix(query-core): fix setQueryData type inference in typed contexts

* test(query-core): add test case for setQueryData type inference in functions

* fix(vue-query): fix setQueryData type inference in typed contexts

* test(vue-query): add test case for setQueryData type inference in functions
…k#9004)

* test(query-core): use fake timers for queryObserver.test.tsx

* chore: update

* chore: migrate

* chore: update

* Removes unused testing library dependency

Deletes `@testing-library/dom` from devDependencies in package.json and pnpm-lock.yaml to clean up unused dependencies and streamline the project's dependency tree.

* chore: update

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
…anStack#9054)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.