Skip to content

Commit 0b7d5ca

Browse files
ci: release
1 parent bf5331f commit 0b7d5ca

File tree

6 files changed

+78
-83
lines changed

6 files changed

+78
-83
lines changed

.changeset/dry-jeans-ring.md

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

.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: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,80 @@
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 ([#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)
8+
9+
### Updated `output` options
10+
11+
We made the `output` configuration more consistent by using `null` to represent disabled options. [This change](https://heyapi.dev/openapi-ts/migrating#updated-output-options) 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+
```
24+
25+
### Patch Changes
26+
27+
- feat: support multiple configurations ([#2602](https://github.com/hey-api/openapi-ts/pull/2602)) ([`c84f10e`](https://github.com/hey-api/openapi-ts/commit/c84f10e5a1b7c54320e3ef5edfc9d2fffe5183e9)) by [@carson2222](https://github.com/carson2222)
28+
29+
- 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)
30+
31+
- feat(pinia-colada): query options use `defineQueryOptions` ([#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)
32+
33+
### Updated Pinia Colada query options
34+
35+
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](https://heyapi.dev/openapi-ts/migrating#updated-pinia-colada-query-options).
36+
37+
#### No params
38+
39+
```ts
40+
useQuery(getPetsQuery);
41+
```
42+
43+
#### Constant
44+
45+
```ts
46+
useQuery(getPetByIdQuery, () => ({
47+
path: {
48+
petId: 1,
49+
},
50+
}));
51+
```
52+
53+
#### Reactive
54+
55+
```ts
56+
const petId = ref<number | null>(1);
57+
58+
useQuery(getPetByIdQuery, () => ({
59+
path: {
60+
petId: petId.value,
61+
},
62+
}));
63+
```
64+
65+
#### Properties
66+
67+
```ts
68+
const petId = ref<number | null>(1);
69+
70+
useQuery(() => ({
71+
...getPetByIdQuery({
72+
path: { petId: petId.value as number },
73+
}),
74+
enabled: () => petId.value != null,
75+
}));
76+
```
77+
378
## 0.84.4
479

580
### Patch Changes
@@ -95,7 +170,8 @@ export default {
95170
- fix(axios): remove duplicate `baseURL` when using relative values ([#2624](https://github.com/hey-api/openapi-ts/pull/2624)) ([`8ffceec`](https://github.com/hey-api/openapi-ts/commit/8ffceec89fe471d4e14df17a172f3d5a254eb819)) by [@Ben-Pfirsich](https://github.com/Ben-Pfirsich)
96171

97172
### Updated Dependencies:
98-
- @hey-api/[email protected]
173+
174+
99175

100176
## 0.83.1
101177

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)