Skip to content

Commit ece2de9

Browse files
ci: release
1 parent 34bc6e7 commit ece2de9

File tree

5 files changed

+76
-78
lines changed

5 files changed

+76
-78
lines changed

.changeset/pretty-deers-change.md

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

.changeset/red-bats-eat.md

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

.changeset/refactor-pinia-colada-query.md

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

packages/openapi-ts/CHANGELOG.md

Lines changed: 75 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,79 @@
11
# @hey-api/openapi-ts
22

3+
## 0.85.0
4+
5+
### Minor Changes
6+
7+
- refactor(config): replace 'off' with null to disable options
8+
9+
### Updated `output` options
10+
11+
We made the `output` configuration more consistent by using `null` to represent disabled options. This change does not affect boolean options.
12+
13+
````js
14+
export default {
15+
input: 'hey-api/backend', // sign up at app.heyapi.dev
16+
output: {
17+
format: null,
18+
lint: null,
19+
path: 'src/client',
20+
tsConfigPath: null,
21+
},
22+
};
23+
``` ([#2718](https://github.com/hey-api/openapi-ts/pull/2718)) ([`fcdd73b`](https://github.com/hey-api/openapi-ts/commit/fcdd73b816d74babf47e6a1f46032f5b8ebb4b48)) by [@mrlubos](https://github.com/mrlubos)
24+
25+
### Patch Changes
26+
27+
28+
- feat(config): add `output.importFileExtension` option ([#2718](https://github.com/hey-api/openapi-ts/pull/2718)) ([`fcdd73b`](https://github.com/hey-api/openapi-ts/commit/fcdd73b816d74babf47e6a1f46032f5b8ebb4b48)) by [@mrlubos](https://github.com/mrlubos)
29+
30+
- feat(pinia-colada): query options use `defineQueryOptions`
31+
32+
### Updated Pinia Colada query options
33+
34+
Pinia Colada query options now use `defineQueryOptions` to improve reactivity support. Instead of calling the query options function, you can use one of the following approaches.
35+
36+
#### No params
37+
38+
```ts
39+
useQuery(getPetsQuery);
40+
````
41+
42+
#### Constant
43+
44+
```ts
45+
useQuery(getPetByIdQuery, () => ({
46+
path: {
47+
petId: 1,
48+
},
49+
}));
50+
```
51+
52+
#### Reactive
53+
54+
```ts
55+
const petId = ref<number | null>(1);
56+
57+
useQuery(getPetByIdQuery, () => ({
58+
path: {
59+
petId: petId.value,
60+
},
61+
}));
62+
```
63+
64+
#### Properties
65+
66+
````ts
67+
const petId = ref<number | null>(1);
68+
69+
useQuery(() => ({
70+
...getPetByIdQuery({
71+
path: { petId: petId.value as number },
72+
}),
73+
enabled: () => petId.value != null,
74+
}));
75+
``` ([#2610](https://github.com/hey-api/openapi-ts/pull/2610)) ([`33e6b31`](https://github.com/hey-api/openapi-ts/commit/33e6b31fa2ab840dd4e6e2e3e0fbc6e207ccdf7e)) by [@brolnickij](https://github.com/brolnickij)
76+
377
## 0.84.4
478

579
### Patch Changes
@@ -76,7 +150,7 @@ export default {
76150
path: 'src/client',
77151
},
78152
};
79-
```
153+
````
80154

81155
By default, we append every file name with a `.gen` suffix to highlight it's automatically generated. You can customize or disable this suffix using the `fileName.suffix` option.
82156

packages/openapi-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hey-api/openapi-ts",
3-
"version": "0.84.4",
3+
"version": "0.85.0",
44
"description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
55
"homepage": "https://heyapi.dev/",
66
"repository": {

0 commit comments

Comments
 (0)