Releases: OpenAPI-Qraft/openapi-qraft
Releases · OpenAPI-Qraft/openapi-qraft
@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
@openapi-qraft/plugin@2.11.0
@openapi-qraft/plugin@2.11.0
@openapi-qraft/openapi-typescript-plugin@1.2.29
Patch Changes
- @openapi-qraft/plugin@2.11.0
@openapi-qraft/cli@2.11.0
Patch Changes
- Updated dependencies [56f4ae9]
- @openapi-qraft/tanstack-query-react-plugin@2.11.0
- @openapi-qraft/plugin@2.11.0
- @openapi-qraft/openapi-typescript-plugin@1.2.29
@openapi-qraft/tanstack-query-react-types@2.10.2
@openapi-qraft/tanstack-query-react-types@2.10.2
@openapi-qraft/tanstack-query-react-plugin@2.10.2
Patch Changes
- @openapi-qraft/plugin@2.10.2
@openapi-qraft/react@2.10.2
Patch Changes
- 2a4db33: Refactored parameter preparation logic for queryable write operations to correctly handle body parameters in both regular and infinite queries. The update extracts shared logic into a reusable utility and ensures consistent parameter handling across all affected query methods.
- @openapi-qraft/tanstack-query-react-types@2.10.2
@openapi-qraft/plugin@2.10.2
@openapi-qraft/plugin@2.10.2