|
1 | 1 | # @hey-api/openapi-ts
|
2 | 2 |
|
| 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 | + |
3 | 78 | ## 0.84.4
|
4 | 79 |
|
5 | 80 | ### Patch Changes
|
@@ -95,7 +170,8 @@ export default {
|
95 | 170 | - 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)
|
96 | 171 |
|
97 | 172 | ### Updated Dependencies:
|
98 |
| - |
| 173 | + |
| 174 | + |
99 | 175 |
|
100 | 176 | ## 0.83.1
|
101 | 177 |
|
|
0 commit comments