fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #2726 from hey-api/chore/changeset-fix-3

Chore/changeset fix 3

authored by

Lubos and committed by
GitHub
596c3e8c 683dd227

+59 -17
+1 -1
.changeset/pretty-deers-change.md
··· 6 6 7 7 ### Updated `output` options 8 8 9 - We made the `output` configuration more consistent by using `null` to represent disabled options. This change does not affect boolean options. 9 + 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. 10 10 11 11 ```js 12 12 export default {
+41
.changeset/refactor-pinia-colada-query.md
··· 7 7 ### Updated Pinia Colada query options 8 8 9 9 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). 10 + 11 + #### No params 12 + 13 + ```ts 14 + useQuery(getPetsQuery); 15 + ``` 16 + 17 + #### Constant 18 + 19 + ```ts 20 + useQuery(getPetByIdQuery, () => ({ 21 + path: { 22 + petId: 1, 23 + }, 24 + })); 25 + ``` 26 + 27 + #### Reactive 28 + 29 + ```ts 30 + const petId = ref<number | null>(1); 31 + 32 + useQuery(getPetByIdQuery, () => ({ 33 + path: { 34 + petId: petId.value, 35 + }, 36 + })); 37 + ``` 38 + 39 + #### Properties 40 + 41 + ```ts 42 + const petId = ref<number | null>(1); 43 + 44 + useQuery(() => ({ 45 + ...getPetByIdQuery({ 46 + path: { petId: petId.value as number }, 47 + }), 48 + enabled: () => petId.value != null, 49 + })); 50 + ```
+17 -16
packages/openapi-ts/CHANGELOG.md
··· 62 62 63 63 - fix(parser): bump support for OpenAPI 3.1.2 ([#2667](https://github.com/hey-api/openapi-ts/pull/2667)) ([`3511fb8`](https://github.com/hey-api/openapi-ts/commit/3511fb88cbe6b767b631af16336cb6c0722c3ff8)) by [@mrlubos](https://github.com/mrlubos) 64 64 65 - - fix(config): add `output.fileName` option 65 + - fix(config): add `output.fileName` option ([#2664](https://github.com/hey-api/openapi-ts/pull/2664)) ([`e1ede9c`](https://github.com/hey-api/openapi-ts/commit/e1ede9cabf52b5bbcb9195570deff58db8f43dbb)) by [@mrlubos](https://github.com/mrlubos) 66 66 67 67 ## File Name 68 68 ··· 80 80 81 81 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 82 83 - ````js 83 + ```js 84 84 export default { 85 85 input: 'hey-api/backend', // sign up at app.heyapi.dev 86 86 output: { ··· 90 90 path: 'src/client', 91 91 }, 92 92 }; 93 - ``` ([#2664](https://github.com/hey-api/openapi-ts/pull/2664)) ([`e1ede9c`](https://github.com/hey-api/openapi-ts/commit/e1ede9cabf52b5bbcb9195570deff58db8f43dbb)) by [@mrlubos](https://github.com/mrlubos) 93 + ``` 94 94 95 95 - 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 + 96 97 ### Updated Dependencies: 97 98 - @hey-api/codegen-core@0.2.0 98 99 ··· 184 185 185 186 - [#2505](https://github.com/hey-api/openapi-ts/pull/2505) [`97c57f6`](https://github.com/hey-api/openapi-ts/commit/97c57f68af1f907f278707fb526289c73b33ea89) Thanks [@SebastiaanWouters](https://github.com/SebastiaanWouters)! - feat(parser): add Hooks API 186 187 187 - ### Added Hooks API 188 + ### Added Hooks API 188 189 189 - This release adds the [Hooks API](https://heyapi.dev/openapi-ts/configuration/parser#hooks), giving you granular control over which operations generate queries and mutations. As a result, we tightened the previous behavior and POST operations no longer generate queries by default. To preserve the old behavior, add a custom matcher. 190 + This release adds the [Hooks API](https://heyapi.dev/openapi-ts/configuration/parser#hooks), giving you granular control over which operations generate queries and mutations. As a result, we tightened the previous behavior and POST operations no longer generate queries by default. To preserve the old behavior, add a custom matcher. 190 191 191 - ```js 192 - export default { 193 - input: 'hey-api/backend', // sign up at app.heyapi.dev 194 - output: 'src/client', 195 - parser: { 196 - hooks: { 197 - operations: { 198 - isQuery: (op) => (op.method === 'post' ? true : undefined), 199 - }, 192 + ```js 193 + export default { 194 + input: 'hey-api/backend', // sign up at app.heyapi.dev 195 + output: 'src/client', 196 + parser: { 197 + hooks: { 198 + operations: { 199 + isQuery: (op) => (op.method === 'post' ? true : undefined), 200 200 }, 201 201 }, 202 - }; 203 - ```` 202 + }, 203 + }; 204 + ``` 204 205 205 206 ### Patch Changes 206 207