Releases: OpenAPI-Qraft/openapi-qraft
@openapi-qraft/tanstack-query-react-types@2.12.0
@openapi-qraft/tanstack-query-react-types@2.12.0
@openapi-qraft/tanstack-query-react-plugin@2.12.0
@openapi-qraft/react@2.12.0
Minor Changes
- cdc4bf3: Resolve unmet peerDependencies.
Patch Changes
- @openapi-qraft/tanstack-query-react-types@2.12.0
@openapi-qraft/plugin@2.12.0
Minor Changes
- cdc4bf3: Resolve unmet peerDependencies.
@openapi-qraft/openapi-typescript-plugin@2.12.0
@openapi-qraft/eslint-plugin-query@2.12.0
Minor Changes
-
8dcc7c1: Added
@openapi-qraft/eslint-plugin-queryAn ESLint plugin to enforce best practices and prevent common mistakes with Qraft-generated hooks has been added.
@openapi-qraft/cli@2.12.0
@openapi-qraft/tanstack-query-react-types@2.11.0
Minor Changes
- 56f4ae9: Added
getMutationCache()method to query client operations.
@openapi-qraft/tanstack-query-react-plugin@2.11.0
Minor Changes
- 56f4ae9: Added
getMutationCache()method to query client operations.
Patch Changes
- @openapi-qraft/plugin@2.11.0
@openapi-qraft/react@2.11.0
Minor Changes
-
56f4ae9: Added
getMutationCache()method to query client operations. -
7f63c73: getMutationCache() auto-sets
exact: falsefor base filtersWhen calling
getMutationCache().find()orgetMutationCache().findAll()without providingparametersor
mutationKeyfilters, theexactoption is now automatically set tofalse.Why this change?
TanStack Query sets
exact: trueby default for mutation filters. Without this automatic override,
no mutations would match when using only predicate functions or no filters at all,
since the base mutation key wouldn't match exactly against specific mutation instances.Example:
// Returns all mutations for the endpoint due to auto-set exact: false const mutations = qraft.entities.postEntitiesIdDocuments .getMutationCache() .findAll();
This ensures that predicate-based filtering and endpoint-wide mutation searches work as expected.
Patch Changes
- Updated dependencies [56f4ae9]
- @openapi-qraft/tanstack-query-react-types@2.11.0