Skip to content

Commit 66e48f3

Browse files
authored
Merge pull request #356 from OpenAPI-Qraft/changeset-release/main
Version Packages
2 parents 467f4b4 + 9ca3ab3 commit 66e48f3

File tree

14 files changed

+71
-36
lines changed

14 files changed

+71
-36
lines changed

.changeset/bumpy-ads-tie.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.changeset/getMutationCache-exact-false-default.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/cli/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @openapi-qraft/cli
22

3+
## 2.11.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [56f4ae9]
8+
- @openapi-qraft/tanstack-query-react-plugin@2.11.0
9+
- @openapi-qraft/plugin@2.11.0
10+
- @openapi-qraft/openapi-typescript-plugin@1.2.29
11+
312
## 2.10.2
413

514
### Patch Changes

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openapi-qraft/cli",
3-
"version": "2.10.2",
3+
"version": "2.11.0",
44
"description": "CLI for generating typed TanStack Query React Hooks and services from OpenAPI Document, improving type safety in React apps",
55
"scripts": {
66
"build": "tsc --project tsconfig.build.json",

packages/openapi-typescript-plugin/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @openapi-qraft/openapi-typescript
22

3+
## 1.2.29
4+
5+
### Patch Changes
6+
7+
- @openapi-qraft/plugin@2.11.0
8+
39
## 1.2.28
410

511
### Patch Changes

packages/openapi-typescript-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openapi-qraft/openapi-typescript-plugin",
3-
"version": "1.2.28",
3+
"version": "1.2.29",
44
"type": "module",
55
"scripts": {
66
"build": "tsc --project tsconfig.build.json",

packages/plugin/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @openapi-qraft/plugin
22

3+
## 2.11.0
4+
35
## 2.10.2
46

57
## 2.10.1

packages/plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openapi-qraft/plugin",
3-
"version": "2.10.2",
3+
"version": "2.11.0",
44
"packageManager": "yarn@4.0.2",
55
"type": "module",
66
"scripts": {

packages/react-client/CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
# @openapi-qraft/react
22

3+
## 2.11.0
4+
5+
### Minor Changes
6+
7+
- 56f4ae9: Added `getMutationCache()` method to query client operations.
8+
- 7f63c73: getMutationCache() auto-sets `exact: false` for base filters
9+
10+
When calling `getMutationCache().find()` or `getMutationCache().findAll()` without providing `parameters` or
11+
`mutationKey` filters, the `exact` option is now automatically set to `false`.
12+
13+
**Why this change?**
14+
15+
TanStack Query sets `exact: true` by default for mutation filters. Without this automatic override,
16+
no mutations would match when using only predicate functions or no filters at all,
17+
since the base mutation key wouldn't match exactly against specific mutation instances.
18+
19+
**Example:**
20+
21+
```ts
22+
// Returns all mutations for the endpoint due to auto-set exact: false
23+
const mutations = qraft.entities.postEntitiesIdDocuments
24+
.getMutationCache()
25+
.findAll();
26+
```
27+
28+
This ensures that predicate-based filtering and endpoint-wide mutation searches work as expected.
29+
30+
### Patch Changes
31+
32+
- Updated dependencies [56f4ae9]
33+
- @openapi-qraft/tanstack-query-react-types@2.11.0
34+
335
## 2.10.2
436

537
### Patch Changes

packages/react-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openapi-qraft/react",
3-
"version": "2.10.2",
3+
"version": "2.11.0",
44
"description": "OpenAPI client for React, providing type-safe requests and dynamic TanStack Query React Hooks via a modular, Proxy-based architecture.",
55
"scripts": {
66
"build": "NODE_ENV=production rollup --config rollup.config.mjs && tsc --project tsconfig.build.json --emitDeclarationOnly",

0 commit comments

Comments
 (0)