|
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 |
| 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: 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) |
| 29 | + |
| 30 | +- 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) |
| 31 | + |
| 32 | +- feat(pinia-colada): query options use `defineQueryOptions` |
| 33 | + |
| 34 | +### Updated Pinia Colada query options |
| 35 | + |
| 36 | +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. |
| 37 | + |
| 38 | +#### No params |
| 39 | + |
| 40 | +```ts |
| 41 | +useQuery(getPetsQuery); |
| 42 | +```` |
| 43 | + |
| 44 | +#### Constant |
| 45 | + |
| 46 | +```ts |
| 47 | +useQuery(getPetByIdQuery, () => ({ |
| 48 | + path: { |
| 49 | + petId: 1, |
| 50 | + }, |
| 51 | +})); |
| 52 | +``` |
| 53 | + |
| 54 | +#### Reactive |
| 55 | + |
| 56 | +```ts |
| 57 | +const petId = ref<number | null>(1); |
| 58 | + |
| 59 | +useQuery(getPetByIdQuery, () => ({ |
| 60 | + path: { |
| 61 | + petId: petId.value, |
| 62 | + }, |
| 63 | +})); |
| 64 | +``` |
| 65 | + |
| 66 | +#### Properties |
| 67 | + |
| 68 | +````ts |
| 69 | +const petId = ref<number | null>(1); |
| 70 | + |
| 71 | +useQuery(() => ({ |
| 72 | + ...getPetByIdQuery({ |
| 73 | + path: { petId: petId.value as number }, |
| 74 | + }), |
| 75 | + enabled: () => petId.value != null, |
| 76 | +})); |
| 77 | +``` ([#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) |
| 78 | + |
3 | 79 | ## 0.84.4
|
4 | 80 |
|
5 | 81 | ### Patch Changes
|
@@ -76,7 +152,7 @@ export default {
|
76 | 152 | path: 'src/client',
|
77 | 153 | },
|
78 | 154 | };
|
79 |
| -``` |
| 155 | +```` |
80 | 156 |
|
81 | 157 | 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.
|
82 | 158 |
|
|
0 commit comments