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 #2077 from hey-api/changeset-release/main

Version Packages

authored by

Lubos and committed by
GitHub
2f5beadd 464ff4ae

+2326 -45
-29
.changeset/hip-crabs-help.md
··· 1 - --- 2 - '@hey-api/openapi-ts': minor 3 - --- 4 - 5 - feat: upgraded input filters 6 - 7 - ### Upgraded input filters 8 - 9 - Input filters now avoid generating invalid output without requiring you to specify every missing schema as in the previous releases. As part of this release, we changed the way filters are configured and removed the support for regular expressions. Let us know if regular expressions are still useful for you and want to bring them back! 10 - 11 - ```js 12 - export default { 13 - input: { 14 - // match only the schema named `foo` and `GET` operation for the `/api/v1/foo` path 15 - filters: { 16 - operations: { 17 - include: ['GET /api/v1/foo'], // [!code ++] 18 - }, 19 - schemas: { 20 - include: ['foo'], // [!code ++] 21 - }, 22 - }, 23 - include: '^(#/components/schemas/foo|#/paths/api/v1/foo/get)$', // [!code --] 24 - path: 'https://get.heyapi.dev/hey-api/backend', 25 - }, 26 - output: 'src/client', 27 - plugins: ['@hey-api/client-fetch'], 28 - }; 29 - ```
-5
.changeset/light-carrots-roll.md
··· 1 - --- 2 - '@hey-api/openapi-ts': patch 3 - --- 4 - 5 - fix(validators): generate JSDoc comments for validator schemas
-5
.changeset/moody-socks-develop.md
··· 1 - --- 2 - '@hey-api/openapi-ts': patch 3 - --- 4 - 5 - fix(parser): handle exclusiveMinimum and exclusiveMaximum in OpenAPI 3.1.x when they're 0
-5
.changeset/tame-numbers-talk.md
··· 1 - --- 2 - '@hey-api/openapi-ts': patch 3 - --- 4 - 5 - fix(sdk,axios): add responseType field when it's json so validators run by default
+2325
packages/openapi-ts/CHANGELOG.md
··· 1 1 # @hey-api/openapi-ts 2 2 3 + ## 0.68.0 4 + 5 + ### Minor Changes 6 + 7 + - [#2072](https://github.com/hey-api/openapi-ts/pull/2072) [`8bea7d2`](https://github.com/hey-api/openapi-ts/commit/8bea7d23a6280ee8dc843be656da820179140403) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: upgraded input filters 8 + 9 + ### Upgraded input filters 10 + 11 + Input filters now avoid generating invalid output without requiring you to specify every missing schema as in the previous releases. As part of this release, we changed the way filters are configured and removed the support for regular expressions. Let us know if regular expressions are still useful for you and want to bring them back! 12 + 13 + ```js 14 + export default { 15 + input: { 16 + // match only the schema named `foo` and `GET` operation for the `/api/v1/foo` path 17 + filters: { 18 + operations: { 19 + include: ['GET /api/v1/foo'], // [!code ++] 20 + }, 21 + schemas: { 22 + include: ['foo'], // [!code ++] 23 + }, 24 + }, 25 + include: '^(#/components/schemas/foo|#/paths/api/v1/foo/get) 26 + ``` 27 + 28 + ## 0.67.6 29 + 30 + ### Patch Changes 31 + 32 + - [#2068](https://github.com/hey-api/openapi-ts/pull/2068) [`93b62fd`](https://github.com/hey-api/openapi-ts/commit/93b62fd433a09f28c75f58852e1baaa2b6fbd641) Thanks [@mrlubos](https://github.com/mrlubos)! - fix(tanstack-query): require options when sdk client is set to false 33 + 34 + - [#2060](https://github.com/hey-api/openapi-ts/pull/2060) [`373e15a`](https://github.com/hey-api/openapi-ts/commit/373e15a34fd81ac596a0797ddb133a47aeceee1f) Thanks [@mrlubos](https://github.com/mrlubos)! - fix(valibot): add valibot plugin 35 + 36 + ## 0.67.5 37 + 38 + ### Patch Changes 39 + 40 + - [#2052](https://github.com/hey-api/openapi-ts/pull/2052) [`f430eaa`](https://github.com/hey-api/openapi-ts/commit/f430eaad13d83d2191fff12802d9283099d7a527) Thanks [@mrlubos](https://github.com/mrlubos)! - fix(tanstack-query): add SDK function comments to TanStack Query output 41 + 42 + - [#2058](https://github.com/hey-api/openapi-ts/pull/2058) [`e9fda0b`](https://github.com/hey-api/openapi-ts/commit/e9fda0bff09c534333691f981363f445dc97129f) Thanks [@mrlubos](https://github.com/mrlubos)! - fix(typescript): exclude $refs in readable/writable schemas when referenced schemas don't contain any readable/writable fields 43 + 44 + - [#2059](https://github.com/hey-api/openapi-ts/pull/2059) [`af2082f`](https://github.com/hey-api/openapi-ts/commit/af2082f75dd02a52f8196709d7497dc99c5321e5) Thanks [@mrlubos](https://github.com/mrlubos)! - fix(typescript): add enumsConstantsIgnoreNull option to skip nulls from generated JavaScript objects 45 + 46 + ## 0.67.4 47 + 48 + ### Patch Changes 49 + 50 + - [#2043](https://github.com/hey-api/openapi-ts/pull/2043) [`e3997c8`](https://github.com/hey-api/openapi-ts/commit/e3997c8d9a9e8a6da7bc4b417769e751887ff6ac) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle enum keyword with array type 51 + 52 + ## 0.67.3 53 + 54 + ### Patch Changes 55 + 56 + - [#2020](https://github.com/hey-api/openapi-ts/pull/2020) [`27cb409`](https://github.com/hey-api/openapi-ts/commit/27cb4095383aff35f1d78094b8b73fb36f432d33) Thanks [@0xfurai](https://github.com/0xfurai)! - fix: handle references to properties 57 + 58 + ## 0.67.2 59 + 60 + ### Patch Changes 61 + 62 + - [#2023](https://github.com/hey-api/openapi-ts/pull/2023) [`c6f01f3`](https://github.com/hey-api/openapi-ts/commit/c6f01f39493e241f01dd7997ccdb8b6bc3d1519c) Thanks [@kennidenni](https://github.com/kennidenni)! - fix: handle relative paths in client's `baseUrl` field 63 + 64 + ## 0.67.1 65 + 66 + ### Patch Changes 67 + 68 + - [#2010](https://github.com/hey-api/openapi-ts/pull/2010) [`13c9577`](https://github.com/hey-api/openapi-ts/commit/13c9577f122eab7b7fdd92f67ac77cb334cbdcd5) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: do not use named imports from typescript module 69 + 70 + ## 0.67.0 71 + 72 + ### Minor Changes 73 + 74 + - [#2003](https://github.com/hey-api/openapi-ts/pull/2003) [`1504a06`](https://github.com/hey-api/openapi-ts/commit/1504a0642fdb4f856d1650fade2d30988b35b4ff) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: respect `moduleResolution` value in `tsconfig.json` 75 + 76 + ### Respecting `moduleResolution` value in `tsconfig.json` 77 + 78 + This release introduces functionality related to your `tsconfig.json` file. The initial feature properly respects the value of your `moduleResolution` field. If you're using `nodenext`, the relative module paths in your output will be appended with `.js`. To preserve the previous behavior where we never appended `.js` to relative module paths, set `output.tsConfigPath` to `off`. 79 + 80 + ```js 81 + export default { 82 + input: 'https://get.heyapi.dev/hey-api/backend', 83 + output: { 84 + path: 'src/client', 85 + tsConfigPath: 'off', 86 + }, 87 + }; 88 + ``` 89 + 90 + ### Patch Changes 91 + 92 + - [#2006](https://github.com/hey-api/openapi-ts/pull/2006) [`aa10522`](https://github.com/hey-api/openapi-ts/commit/aa10522f2bd018a417d875e5ab12ed0a848d2e49) Thanks [@Liooo](https://github.com/Liooo)! - fix: make discriminator field required when used with `oneOf` keyword 93 + 94 + - [#2009](https://github.com/hey-api/openapi-ts/pull/2009) [`f45ba8e`](https://github.com/hey-api/openapi-ts/commit/f45ba8e96872a13be71c0d07e134f8c6717458d4) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: avoid including underscore for appended types (e.g. data, error, response) when preserving identifier case 95 + 96 + ## 0.66.7 97 + 98 + ### Patch Changes 99 + 100 + - [#1981](https://github.com/hey-api/openapi-ts/pull/1981) [`955b95a`](https://github.com/hey-api/openapi-ts/commit/955b95ab051401bdbeaa8cfb93a7a7b707cb7529) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle schemas with all write-only or read-only fields 101 + 102 + - [#1990](https://github.com/hey-api/openapi-ts/pull/1990) [`2fb1689`](https://github.com/hey-api/openapi-ts/commit/2fb1689b6538d32d123235175159d412df988241) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: avoid generating duplicate operation ids when sanitizing input 103 + 104 + - [#1991](https://github.com/hey-api/openapi-ts/pull/1991) [`b6e654a`](https://github.com/hey-api/openapi-ts/commit/b6e654a6e18698f3c554848f8b8113e30f108fc4) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: Zod schemas use .and() instead of .merge() 105 + 106 + - [#1919](https://github.com/hey-api/openapi-ts/pull/1919) [`ec62470`](https://github.com/hey-api/openapi-ts/commit/ec624709b1fb07da8d7234fe851561054dc68150) Thanks [@ngalluzzo](https://github.com/ngalluzzo)! - fix: correctly handle numeric property names with signs 107 + 108 + - [#1984](https://github.com/hey-api/openapi-ts/pull/1984) [`0f305e0`](https://github.com/hey-api/openapi-ts/commit/0f305e06337758ee16c801ad437d9ce0996fc8b0) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: Zod plugin handles nullable enums 109 + 110 + - [#1986](https://github.com/hey-api/openapi-ts/pull/1986) [`dbebff8`](https://github.com/hey-api/openapi-ts/commit/dbebff8dcba4c93d0c534e6e48e59e2aaaffd540) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle discriminator with multiple mappings to the same schema 111 + 112 + - [#1980](https://github.com/hey-api/openapi-ts/pull/1980) [`0d7bede`](https://github.com/hey-api/openapi-ts/commit/0d7bede6e40553ae1c4c888770c84e55732b3cae) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: Zod schemas with BigInt and min/max constraints 113 + 114 + - [#1987](https://github.com/hey-api/openapi-ts/pull/1987) [`71e2fd0`](https://github.com/hey-api/openapi-ts/commit/71e2fd029f2374ed8d2eaa01beecf254757e08d8) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: correct path to nested plugin files when using exportFromIndex 115 + 116 + - [#1978](https://github.com/hey-api/openapi-ts/pull/1978) [`267f4b3`](https://github.com/hey-api/openapi-ts/commit/267f4b3730f2a477906e4e1593154dcd1723e554) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle extended `$ref` with `type` keyword in OpenAPI 3.1 117 + 118 + - [#1982](https://github.com/hey-api/openapi-ts/pull/1982) [`1e6d74f`](https://github.com/hey-api/openapi-ts/commit/1e6d74f8321af5c61f86318b835d25db38609b03) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle additionalProperties empty object as unknown instead of preserving an empty interface 119 + 120 + ## 0.66.6 121 + 122 + ### Patch Changes 123 + 124 + - [#1971](https://github.com/hey-api/openapi-ts/pull/1971) [`e1fb199`](https://github.com/hey-api/openapi-ts/commit/e1fb199a22a30653b95d498e6aaca2c59ed2b13b) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle Zod circular reference 125 + 126 + ## 0.66.5 127 + 128 + ### Patch Changes 129 + 130 + - [#1951](https://github.com/hey-api/openapi-ts/pull/1951) [`4be46e5`](https://github.com/hey-api/openapi-ts/commit/4be46e506db1b2c53d1ddbf66e9919b5072f1cc0) Thanks [@devNameAsyraf](https://github.com/devNameAsyraf)! - fix: don't use JSON serializer for `application/octet-stream` 131 + 132 + - [#1938](https://github.com/hey-api/openapi-ts/pull/1938) [`2a03e37`](https://github.com/hey-api/openapi-ts/commit/2a03e371715b5948ba568009975ad65ccbf7bfd7) Thanks [@sredni](https://github.com/sredni)! - fix: repeat tuple type `maxItems` times 133 + 134 + ## 0.66.4 135 + 136 + ### Patch Changes 137 + 138 + - [#1936](https://github.com/hey-api/openapi-ts/pull/1936) [`ba2e5ca`](https://github.com/hey-api/openapi-ts/commit/ba2e5ca8af1cfe478963d72ff76d7d7ae026c5a5) Thanks [@seriouslag](https://github.com/seriouslag)! - fix: add return type to TanStack Query mutations 139 + 140 + - [#1934](https://github.com/hey-api/openapi-ts/pull/1934) [`d4df550`](https://github.com/hey-api/openapi-ts/commit/d4df5503369b7aa105c7f6a49e1c7b43e0e50f49) Thanks [@seriouslag](https://github.com/seriouslag)! - fix: export some internal functions 141 + 142 + ## 0.66.3 143 + 144 + ### Patch Changes 145 + 146 + - [#1917](https://github.com/hey-api/openapi-ts/pull/1917) [`d7af22c`](https://github.com/hey-api/openapi-ts/commit/d7af22c771af4bd2dab28acc69430717da390670) Thanks [@Freddis](https://github.com/Freddis)! - fix: handle nullable dates in transformers 147 + 148 + ## 0.66.2 149 + 150 + ### Patch Changes 151 + 152 + - [#1913](https://github.com/hey-api/openapi-ts/pull/1913) [`7cfa4a7`](https://github.com/hey-api/openapi-ts/commit/7cfa4a76b13ca97d49c5f0366ba7264f94753d8b) Thanks [@BogdanMaier](https://github.com/BogdanMaier)! - fix: prevent crash when optional pagination field is missing 153 + 154 + ## 0.66.1 155 + 156 + ### Patch Changes 157 + 158 + - [#1906](https://github.com/hey-api/openapi-ts/pull/1906) [`d1928d1`](https://github.com/hey-api/openapi-ts/commit/d1928d17710240bb42a6aa12da4618a9dd962df2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: exclude and include expressions can be an array 159 + 160 + - [#1906](https://github.com/hey-api/openapi-ts/pull/1906) [`d1928d1`](https://github.com/hey-api/openapi-ts/commit/d1928d17710240bb42a6aa12da4618a9dd962df2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: support excluding deprecated fields with '@deprecated' 161 + 162 + ## 0.66.0 163 + 164 + ### Minor Changes 165 + 166 + - [#1896](https://github.com/hey-api/openapi-ts/pull/1896) [`8840ed7`](https://github.com/hey-api/openapi-ts/commit/8840ed73df5ee718e803aa6e27b66e0c82ec3651) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: support read-only and write-only properties 167 + 168 + ### Read-only and write-only fields 169 + 170 + Starting with v0.66.0, `@hey-api/typescript` will generate separate types for payloads and responses if it detects any read-only or write-only fields. To preserve the previous behavior and generate a single type regardless, set `readOnlyWriteOnlyBehavior` to `off`. 171 + 172 + ```js 173 + export default { 174 + input: 'https://get.heyapi.dev/hey-api/backend', 175 + output: 'src/client', 176 + plugins: [ 177 + // ...other plugins 178 + { 179 + name: '@hey-api/typescript', 180 + readOnlyWriteOnlyBehavior: 'off', // [!code ++] 181 + }, 182 + ], 183 + }; 184 + ``` 185 + 186 + ## 0.65.0 187 + 188 + ### Minor Changes 189 + 190 + - [#1889](https://github.com/hey-api/openapi-ts/pull/1889) [`67c385b`](https://github.com/hey-api/openapi-ts/commit/67c385bf6289a79726b0cdd85fd81ca501cf2248) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: support custom clients 191 + 192 + ### Patch Changes 193 + 194 + - [#1892](https://github.com/hey-api/openapi-ts/pull/1892) [`29fa764`](https://github.com/hey-api/openapi-ts/commit/29fa764986af3d3af842793c74d61681c7e967a1) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: allow passing fetch options to the request resolving a specification 195 + 196 + - [#1877](https://github.com/hey-api/openapi-ts/pull/1877) [`6971f5b`](https://github.com/hey-api/openapi-ts/commit/6971f5bca4dd17ea65400c504ad0a4ffb083a38b) Thanks [@Matsuuu](https://github.com/Matsuuu)! - feat: ability to disable writing a log file via a `--no-log-file` flag or `logs.file` = `false` 197 + 198 + ## 0.64.15 199 + 200 + ### Patch Changes 201 + 202 + - [#1850](https://github.com/hey-api/openapi-ts/pull/1850) [`fe43b88`](https://github.com/hey-api/openapi-ts/commit/fe43b889c20a2001f56e259f93f64851a1caa1d1) Thanks [@kelnos](https://github.com/kelnos)! - feat: add support for cookies auth 203 + 204 + ## 0.64.14 205 + 206 + ### Patch Changes 207 + 208 + - [#1827](https://github.com/hey-api/openapi-ts/pull/1827) [`9dd43db`](https://github.com/hey-api/openapi-ts/commit/9dd43db54f2b7ebf87c5c7c118fdf149162a533d) Thanks [@john-cremit](https://github.com/john-cremit)! - feat: allow customizing pagination keywords using `input.pagination.keywords` 209 + 210 + ## 0.64.13 211 + 212 + ### Patch Changes 213 + 214 + - [#1822](https://github.com/hey-api/openapi-ts/pull/1822) [`c73b0d4`](https://github.com/hey-api/openapi-ts/commit/c73b0d401c2bfa6f0b0d89d844a6aa09f2685a69) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: bump json-schema-ref-parser package 215 + 216 + - [#1826](https://github.com/hey-api/openapi-ts/pull/1826) [`90886c1`](https://github.com/hey-api/openapi-ts/commit/90886c1372a999e8cb59d5da218762f6ee6cd459) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: allow config to be a function 217 + 218 + ## 0.64.12 219 + 220 + ### Patch Changes 221 + 222 + - [#1816](https://github.com/hey-api/openapi-ts/pull/1816) [`b9e1b4b`](https://github.com/hey-api/openapi-ts/commit/b9e1b4bec5e1c5d1f2b5b9cfc7fa145274ae604d) Thanks [@shemsiu](https://github.com/shemsiu)! - Allow `scheme` property to be case-insensitive 223 + 224 + ## 0.64.11 225 + 226 + ### Patch Changes 227 + 228 + - [#1800](https://github.com/hey-api/openapi-ts/pull/1800) [`a4811bd`](https://github.com/hey-api/openapi-ts/commit/a4811bdf178ec1a7f1602e0483a32fe7303f4eac) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: support Hey API platform input arguments 229 + 230 + - [#1800](https://github.com/hey-api/openapi-ts/pull/1800) [`a4811bd`](https://github.com/hey-api/openapi-ts/commit/a4811bdf178ec1a7f1602e0483a32fe7303f4eac) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle raw OpenAPI specification input 231 + 232 + ## 0.64.10 233 + 234 + ### Patch Changes 235 + 236 + - [#1779](https://github.com/hey-api/openapi-ts/pull/1779) [`57fcec8`](https://github.com/hey-api/openapi-ts/commit/57fcec804e339cfe508cfba4afd203c22495bff2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: don't throw on missing performance marks 237 + 238 + - [#1767](https://github.com/hey-api/openapi-ts/pull/1767) [`2de84ea`](https://github.com/hey-api/openapi-ts/commit/2de84ea3dbd2cba50150808a872aea8242c33014) Thanks [@Schroedi](https://github.com/Schroedi)! - fix: handle nested dates in transformers 239 + 240 + ## 0.64.9 241 + 242 + ### Patch Changes 243 + 244 + - [#1774](https://github.com/hey-api/openapi-ts/pull/1774) [`c0b36b9`](https://github.com/hey-api/openapi-ts/commit/c0b36b95645d484034c3af145c5554867568979b) Thanks [@mrlubos](https://github.com/mrlubos)! - docs: announce Hey API platform 245 + 246 + ## 0.64.8 247 + 248 + ### Patch Changes 249 + 250 + - [#1764](https://github.com/hey-api/openapi-ts/pull/1764) [`b3ecac3`](https://github.com/hey-api/openapi-ts/commit/b3ecac31d49a269ab400db4dbb84a22f1047e19a) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: reduce minimum Node.js 22 version to 22.10.0 251 + 252 + ## 0.64.7 253 + 254 + ### Patch Changes 255 + 256 + - [#1755](https://github.com/hey-api/openapi-ts/pull/1755) [`82f7c14`](https://github.com/hey-api/openapi-ts/commit/82f7c1425dd903b75d15cf532b88580d180f281a) Thanks [@Matsuuu](https://github.com/Matsuuu)! - fix: Wrap the GET request in watch mode with try-catch to prevent crashes on no-head watch targets 257 + 258 + ## 0.64.6 259 + 260 + ### Patch Changes 261 + 262 + - [#1748](https://github.com/hey-api/openapi-ts/pull/1748) [`7326d25`](https://github.com/hey-api/openapi-ts/commit/7326d2550ae3336fd8f754f8d4a25f1a40c13a2b) Thanks [@Matsuuu](https://github.com/Matsuuu)! - fix: Wrap HEAD request in a try-catch to prevent watch mode crashes on server reloads 263 + 264 + ## 0.64.5 265 + 266 + ### Patch Changes 267 + 268 + - [#1728](https://github.com/hey-api/openapi-ts/pull/1728) [`cc8dabb`](https://github.com/hey-api/openapi-ts/commit/cc8dabbf1cb94879bb08fe66ecb04c4d0801e9cc) Thanks [@georgesmith46](https://github.com/georgesmith46)! - fix: correctly generate zod regex expressions when using patterns 269 + 270 + ## 0.64.4 271 + 272 + ### Patch Changes 273 + 274 + - [#1710](https://github.com/hey-api/openapi-ts/pull/1710) [`4afdaa1`](https://github.com/hey-api/openapi-ts/commit/4afdaa1247b0bf0629817a51c29ca25840569b77) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: use relative path to custom config file if provided when resolving relative paths 275 + 276 + ## 0.64.3 277 + 278 + ### Patch Changes 279 + 280 + - [#1701](https://github.com/hey-api/openapi-ts/pull/1701) [`e86629b`](https://github.com/hey-api/openapi-ts/commit/e86629bfa9ae2a47131d3a9a240a6aa2a4f67911) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: correctly type default value for Nuxt client 281 + 282 + ## 0.64.2 283 + 284 + ### Patch Changes 285 + 286 + - [#1697](https://github.com/hey-api/openapi-ts/pull/1697) [`dec3fed`](https://github.com/hey-api/openapi-ts/commit/dec3fedb5f51aad4711fec15a006c525cb0bf7d8) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add exportFromIndex option to all plugins 287 + 288 + - [#1699](https://github.com/hey-api/openapi-ts/pull/1699) [`8ff188f`](https://github.com/hey-api/openapi-ts/commit/8ff188fb269cf46321538dbe846e1b9ae3b8de42) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: allow passing arbitrary values to SDK functions via `meta` field 289 + 290 + - [#1687](https://github.com/hey-api/openapi-ts/pull/1687) [`04c7cea`](https://github.com/hey-api/openapi-ts/commit/04c7ceac940a81cbed6a4070d9244aa5052ba4a2) Thanks [@hunshcn](https://github.com/hunshcn)! - sanitize "+" in uri to avoid plus in function name 291 + 292 + ## 0.64.1 293 + 294 + ### Patch Changes 295 + 296 + - [#1668](https://github.com/hey-api/openapi-ts/pull/1668) [`7a03341`](https://github.com/hey-api/openapi-ts/commit/7a03341301d9d56ae93b4e4e3bd1ca469444f886) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: watch mode handles servers not exposing HEAD method for spec 297 + 298 + - [#1668](https://github.com/hey-api/openapi-ts/pull/1668) [`7a03341`](https://github.com/hey-api/openapi-ts/commit/7a03341301d9d56ae93b4e4e3bd1ca469444f886) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add watch.timeout option 299 + 300 + ## 0.64.0 301 + 302 + ### Minor Changes 303 + 304 + - [#1661](https://github.com/hey-api/openapi-ts/pull/1661) [`ccefe43`](https://github.com/hey-api/openapi-ts/commit/ccefe434ee83f1202769547ce128e1c134dee25f) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: added `client.baseUrl` option 305 + 306 + ### Added `client.baseUrl` option 307 + 308 + You can use this option to configure the default base URL for the generated client. By default, we will attempt to resolve the first defined server or infer the base URL from the input path. If you'd like to preserve the previous behavior, set `baseUrl` to `false`. 309 + 310 + ```js 311 + export default { 312 + input: 'path/to/openapi.json', 313 + output: 'src/client', 314 + plugins: [ 315 + { 316 + baseUrl: false, // [!code ++] 317 + name: '@hey-api/client-fetch', 318 + }, 319 + ], 320 + }; 321 + ``` 322 + 323 + - [#1661](https://github.com/hey-api/openapi-ts/pull/1661) [`bb6d46a`](https://github.com/hey-api/openapi-ts/commit/bb6d46ae119ce4e7e3a2ab3fded74ac4fb4cdff2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: make createConfig, CreateClientConfig, and Config accept ClientOptions generic 324 + 325 + ### Added `ClientOptions` interface 326 + 327 + The `Config` interface now accepts an optional generic extending `ClientOptions` instead of `boolean` type `ThrowOnError`. 328 + 329 + ```ts 330 + type Foo = Config<false>; // [!code --] 331 + type Foo = Config<{ throwOnError: false }>; // [!code ++] 332 + ``` 333 + 334 + ## 0.63.2 335 + 336 + ### Patch Changes 337 + 338 + - [#1651](https://github.com/hey-api/openapi-ts/pull/1651) [`df350f3`](https://github.com/hey-api/openapi-ts/commit/df350f31dae957d063010ba46c5008ae831b3a32) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: lower Node version requirements 339 + 340 + ## 0.63.1 341 + 342 + ### Patch Changes 343 + 344 + - [#1637](https://github.com/hey-api/openapi-ts/pull/1637) [`2dc380e`](https://github.com/hey-api/openapi-ts/commit/2dc380eabc17c723654beb04ecd7bce6d33d3b49) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: update keywords in package.json 345 + 346 + - [#1637](https://github.com/hey-api/openapi-ts/pull/1637) [`2dc380e`](https://github.com/hey-api/openapi-ts/commit/2dc380eabc17c723654beb04ecd7bce6d33d3b49) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add Next.js client 347 + 348 + - [#1646](https://github.com/hey-api/openapi-ts/pull/1646) [`2cbffeb`](https://github.com/hey-api/openapi-ts/commit/2cbffeb2cdd6c6143cd68cac68369584879dda31) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: support required client in SDK using sdk.client = false 349 + 350 + - [#1648](https://github.com/hey-api/openapi-ts/pull/1648) [`66a9e45`](https://github.com/hey-api/openapi-ts/commit/66a9e4517d2306da8c60750dc3380e6774a7177b) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add support for openIdConnect auth flow 351 + 352 + ## 0.63.0 353 + 354 + ### Minor Changes 355 + 356 + - [#1626](https://github.com/hey-api/openapi-ts/pull/1626) [`8eba19d`](https://github.com/hey-api/openapi-ts/commit/8eba19d4092fc0903572ab9fdadf0b4c26928ba2) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: move clients to plugins 357 + 358 + ### Client plugins 359 + 360 + Clients are now plugins generating their own `client.gen.ts` file. There's no migration needed if you're using CLI. If you're using the configuration file, move `client` options to `plugins`. 361 + 362 + ```js 363 + export default { 364 + client: '@hey-api/client-fetch', // [!code --] 365 + input: 'path/to/openapi.json', 366 + output: 'src/client', 367 + plugins: ['@hey-api/client-fetch'], // [!code ++] 368 + }; 369 + ``` 370 + 371 + ### Patch Changes 372 + 373 + - [#1626](https://github.com/hey-api/openapi-ts/pull/1626) [`8eba19d`](https://github.com/hey-api/openapi-ts/commit/8eba19d4092fc0903572ab9fdadf0b4c26928ba2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: move sdk.throwOnError option to client.throwOnError 374 + 375 + ### Moved `sdk.throwOnError` option 376 + 377 + This SDK configuration option has been moved to the client plugins where applicable. Not every client can be configured to throw on error, so it didn't make sense to expose the option when it didn't have any effect. 378 + 379 + ```js 380 + export default { 381 + input: 'path/to/openapi.json', 382 + output: 'src/client', 383 + plugins: [ 384 + { 385 + name: '@hey-api/client-fetch', 386 + throwOnError: true, // [!code ++] 387 + }, 388 + { 389 + name: '@hey-api/sdk', 390 + throwOnError: true, // [!code --] 391 + }, 392 + ], 393 + }; 394 + ``` 395 + 396 + - [#1626](https://github.com/hey-api/openapi-ts/pull/1626) [`8eba19d`](https://github.com/hey-api/openapi-ts/commit/8eba19d4092fc0903572ab9fdadf0b4c26928ba2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: sdks import client from client.gen.ts instead of defining it inside the file 397 + 398 + ### Added `client.gen.ts` file 399 + 400 + The internal `client` instance previously located in `sdk.gen.ts` is now defined in `client.gen.ts`. If you're importing it in your code, update the import module. 401 + 402 + ```js 403 + import { client } from 'client/sdk.gen'; // [!code --] 404 + import { client } from 'client/client.gen'; // [!code ++] 405 + ``` 406 + 407 + - [#1626](https://github.com/hey-api/openapi-ts/pull/1626) [`8eba19d`](https://github.com/hey-api/openapi-ts/commit/8eba19d4092fc0903572ab9fdadf0b4c26928ba2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: throw if inferred plugin not found 408 + 409 + ## 0.62.3 410 + 411 + ### Patch Changes 412 + 413 + - [#1600](https://github.com/hey-api/openapi-ts/pull/1600) [`0432418`](https://github.com/hey-api/openapi-ts/commit/0432418d72c94ef94865f8216ed2f723ad5191f9) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: bundle clients from compiled index file 414 + 415 + - [#1594](https://github.com/hey-api/openapi-ts/pull/1594) [`bc66cde`](https://github.com/hey-api/openapi-ts/commit/bc66cde1ebe0e2df08c8d04b3ddc9504e4952cf3) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: generate correct response for text/plain content type 416 + 417 + - [#1596](https://github.com/hey-api/openapi-ts/pull/1596) [`4784727`](https://github.com/hey-api/openapi-ts/commit/47847276e8bc854045044dd414382080270dd779) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: do not use a body serializer on text/plain sdks 418 + 419 + - [#1602](https://github.com/hey-api/openapi-ts/pull/1602) [`194f941`](https://github.com/hey-api/openapi-ts/commit/194f94110545f2cae07bde13b863cd0cb5284d8a) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: support all oauth2 flows in sdk auth 420 + 421 + - [#1596](https://github.com/hey-api/openapi-ts/pull/1596) [`4784727`](https://github.com/hey-api/openapi-ts/commit/47847276e8bc854045044dd414382080270dd779) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add null to valid bodySerializer types 422 + 423 + ## 0.62.2 424 + 425 + ### Patch Changes 426 + 427 + - [#1519](https://github.com/hey-api/openapi-ts/pull/1519) [`14d3c4c`](https://github.com/hey-api/openapi-ts/commit/14d3c4ce0393d543e2d3aaebbfcf8f0cf32483b0) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add support for Nuxt client 428 + 429 + ## 0.62.1 430 + 431 + ### Patch Changes 432 + 433 + - [#1574](https://github.com/hey-api/openapi-ts/pull/1574) [`51bf7fc`](https://github.com/hey-api/openapi-ts/commit/51bf7fc88cb6e9ab392106b85f900a75540e524f) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: generate bigint type instead of BigInt 434 + 435 + - [#1572](https://github.com/hey-api/openapi-ts/pull/1572) [`0e4882a`](https://github.com/hey-api/openapi-ts/commit/0e4882ae3b0dc048a2d9a2a0b5c39fbdeed6de8d) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add ability to skip generating index file with output.indexFile 436 + 437 + ## 0.62.0 438 + 439 + ### Minor Changes 440 + 441 + - [#1568](https://github.com/hey-api/openapi-ts/pull/1568) [`465410c`](https://github.com/hey-api/openapi-ts/commit/465410c201eb19e737e3143ad53a146e95f80107) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: change the default parser 442 + 443 + ### Patch Changes 444 + 445 + - [#1566](https://github.com/hey-api/openapi-ts/pull/1566) [`39d558a`](https://github.com/hey-api/openapi-ts/commit/39d558afc6af97fe8de1a6471b9d1f172ec2960a) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: spread sdk options at the end to allow overriding generated values 446 + 447 + ## 0.61.3 448 + 449 + ### Patch Changes 450 + 451 + - [#1552](https://github.com/hey-api/openapi-ts/pull/1552) [`ceb8bd7`](https://github.com/hey-api/openapi-ts/commit/ceb8bd74207566871e9f179cb28b2d8c440ef2c8) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: use z.coerce before calling z.bigint 452 + 453 + ## 0.61.2 454 + 455 + ### Patch Changes 456 + 457 + - [#1543](https://github.com/hey-api/openapi-ts/pull/1543) [`7a2d6dc`](https://github.com/hey-api/openapi-ts/commit/7a2d6dcd6e30411178ac5c78db3f1dbbcc8d6b27) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: send GET request only on first spec fetch 458 + 459 + ## 0.61.1 460 + 461 + ### Patch Changes 462 + 463 + - [#1530](https://github.com/hey-api/openapi-ts/pull/1530) [`67b7295`](https://github.com/hey-api/openapi-ts/commit/67b72959be499ff59f5f68bfdaa7e5568f5de02f) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: detect pagination in composite schemas with null type 464 + 465 + - [#1535](https://github.com/hey-api/openapi-ts/pull/1535) [`d4cfa05`](https://github.com/hey-api/openapi-ts/commit/d4cfa05ed425d57f79b28efe76e6a33f1e892ec5) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle primitive constants in Zod and types 466 + 467 + ## 0.61.0 468 + 469 + ### Minor Changes 470 + 471 + - [#1520](https://github.com/hey-api/openapi-ts/pull/1520) [`b3c23ba`](https://github.com/hey-api/openapi-ts/commit/b3c23ba99c361bdca3ab9c44017b6e5c044f40a7) Thanks [@chriswiggins](https://github.com/chriswiggins)! - Add support for HTTP Bearer Authentication Scheme 472 + 473 + - [#1525](https://github.com/hey-api/openapi-ts/pull/1525) [`7b7313e`](https://github.com/hey-api/openapi-ts/commit/7b7313eeaf9a749fb81465546bc4e4bdce31d5ab) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: add OpenAPI 2.0 support to experimental parser 474 + 475 + - [#1511](https://github.com/hey-api/openapi-ts/pull/1511) [`4e8064d`](https://github.com/hey-api/openapi-ts/commit/4e8064d9a589e14b42d2b1a329e2436f242884da) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: add watch mode 476 + 477 + ## Watch Mode 478 + 479 + ::: warning 480 + Watch mode currently supports only remote files via URL. 481 + ::: 482 + 483 + If your schema changes frequently, you may want to automatically regenerate the output during development. To watch your input file for changes, enable `watch` mode in your configuration or pass the `--watch` flag to the CLI. 484 + 485 + ### Config 486 + 487 + ```js 488 + export default { 489 + client: '@hey-api/client-fetch', 490 + input: 'path/to/openapi.json', 491 + output: 'src/client', 492 + watch: true, 493 + }; 494 + ``` 495 + 496 + ### CLI 497 + 498 + ```sh 499 + npx @hey-api/openapi-ts \ 500 + -c @hey-api/client-fetch \ 501 + -i path/to/openapi.json \ 502 + -o src/client \ 503 + -w 504 + ``` 505 + 506 + - **BREAKING**: please update `@hey-api/client-*` packages to the latest version 507 + 508 + feat: add support for basic http auth 509 + 510 + ### Patch Changes 511 + 512 + - [#1529](https://github.com/hey-api/openapi-ts/pull/1529) [`ccc0bbc`](https://github.com/hey-api/openapi-ts/commit/ccc0bbcbdeace22bbd8e92caadebdca81e61e393) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add support for long integers 513 + 514 + - [#1512](https://github.com/hey-api/openapi-ts/pull/1512) [`dd0e0a2`](https://github.com/hey-api/openapi-ts/commit/dd0e0a266153e34448fbc3db6b0f864f75483280) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add `sdk.throwOnError` option 515 + 516 + - [#1525](https://github.com/hey-api/openapi-ts/pull/1525) [`7b7313e`](https://github.com/hey-api/openapi-ts/commit/7b7313eeaf9a749fb81465546bc4e4bdce31d5ab) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: preserve leading separators in enum keys 517 + 518 + ## 0.60.1 519 + 520 + ### Patch Changes 521 + 522 + - [#1468](https://github.com/hey-api/openapi-ts/pull/1468) [`20d7497`](https://github.com/hey-api/openapi-ts/commit/20d7497acb6c046f6a4206c2d8137414e17b2263) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle indexed access checks 523 + 524 + - [#1469](https://github.com/hey-api/openapi-ts/pull/1469) [`a7608c2`](https://github.com/hey-api/openapi-ts/commit/a7608c27ced3419dee228f4b0cd96479b3dc2c04) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: zod: generate patterns and improve plain schemas 525 + 526 + - [#1471](https://github.com/hey-api/openapi-ts/pull/1471) [`f86d293`](https://github.com/hey-api/openapi-ts/commit/f86d293f18f133ef6dd2f4864d037611b81edd26) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add links to the experimental parser callouts 527 + 528 + - [#1462](https://github.com/hey-api/openapi-ts/pull/1462) [`893d6ef`](https://github.com/hey-api/openapi-ts/commit/893d6ef5677d17b96174f505937f6da686abb2bc) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: update types for custom plugins so defineConfig does not throw 529 + 530 + - [#1464](https://github.com/hey-api/openapi-ts/pull/1464) [`787d59c`](https://github.com/hey-api/openapi-ts/commit/787d59c307549f5faf9f83314a8e9692bb01eb5d) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: export IR types 531 + 532 + - [#1467](https://github.com/hey-api/openapi-ts/pull/1467) [`3a3f8d7`](https://github.com/hey-api/openapi-ts/commit/3a3f8d7ea4c993d4372e4bc52f6d9525bf1e45b6) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: export utils 533 + 534 + - [#1457](https://github.com/hey-api/openapi-ts/pull/1457) [`bc03c37`](https://github.com/hey-api/openapi-ts/commit/bc03c373f4df61d8d715dc13badba2a6c5a3a450) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: allow plugins to explicitly declare whether they should be re-exported from the index file 535 + 536 + ## 0.60.0 537 + 538 + ### Minor Changes 539 + 540 + - [#1430](https://github.com/hey-api/openapi-ts/pull/1430) [`9cec9e8`](https://github.com/hey-api/openapi-ts/commit/9cec9e8582c12a8c041b922d9587e16f6f19782a) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: require sdk.transformer to use generated transformers 541 + 542 + ### Added `sdk.transformer` option 543 + 544 + When generating SDKs, you now have to specify `transformer` in order to modify response data. By default, adding `@hey-api/transformers` to your plugins will only produce additional output. To preserve the previous functionality, set `sdk.transformer` to `true`. 545 + 546 + ```js 547 + import { defaultPlugins } from '@hey-api/openapi-ts'; 548 + 549 + export default { 550 + client: '@hey-api/client-fetch', 551 + input: 'path/to/openapi.json', 552 + output: 'src/client', 553 + plugins: [ 554 + ...defaultPlugins, 555 + { 556 + dates: true, 557 + name: '@hey-api/transformers', 558 + }, 559 + { 560 + name: '@hey-api/sdk', 561 + transformer: true, // [!code ++] 562 + }, 563 + ], 564 + }; 565 + ``` 566 + 567 + - [#1447](https://github.com/hey-api/openapi-ts/pull/1447) [`200821b`](https://github.com/hey-api/openapi-ts/commit/200821b3ceea8ffca7656fe3f6e2ef98b7110a2a) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: revert license to MIT 568 + 569 + ### Patch Changes 570 + 571 + - [#1430](https://github.com/hey-api/openapi-ts/pull/1430) [`9cec9e8`](https://github.com/hey-api/openapi-ts/commit/9cec9e8582c12a8c041b922d9587e16f6f19782a) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: Zod plugin generates response schemas 572 + 573 + ## 0.59.2 574 + 575 + ### Patch Changes 576 + 577 + - [#1420](https://github.com/hey-api/openapi-ts/pull/1420) [`8010dbb`](https://github.com/hey-api/openapi-ts/commit/8010dbb1ab8b91d1d49d5cf16276183764a63ff3) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: generate querySerializer options for Axios client 578 + 579 + - [#1419](https://github.com/hey-api/openapi-ts/pull/1419) [`4555796`](https://github.com/hey-api/openapi-ts/commit/4555796df3a33fb3fdf7d7417f7d1f3b22d89bcf) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: infer responseType in SDKs for axios client 580 + 581 + - [#1409](https://github.com/hey-api/openapi-ts/pull/1409) [`646064d`](https://github.com/hey-api/openapi-ts/commit/646064d1aecea988d2b4df73bd24b2ee83394ae0) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: support oauth2 and apiKey security schemes 582 + 583 + - [#1416](https://github.com/hey-api/openapi-ts/pull/1416) [`2a605b7`](https://github.com/hey-api/openapi-ts/commit/2a605b7e43655b3100e302e10b9979fbbad6cdfe) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: zod plugin handles recursive schemas 584 + 585 + ## 0.59.1 586 + 587 + ### Patch Changes 588 + 589 + - [#1398](https://github.com/hey-api/openapi-ts/pull/1398) [`a88e7d9`](https://github.com/hey-api/openapi-ts/commit/a88e7d9f8a313c641cf651256a710d0610b95b5d) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: prefix restricted identifier names with underscore 590 + 591 + - [#1394](https://github.com/hey-api/openapi-ts/pull/1394) [`ec48d32`](https://github.com/hey-api/openapi-ts/commit/ec48d323d80de8e6a47ce7ecd732288f0a47e17a) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: disallow additional query parameters in experimental parser output 592 + 593 + ## 0.59.0 594 + 595 + ### Minor Changes 596 + 597 + - [#1387](https://github.com/hey-api/openapi-ts/pull/1387) [`7c4335d`](https://github.com/hey-api/openapi-ts/commit/7c4335d12782c73b5b242e7d5786ec8778857d1d) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: add `logs.level` option 598 + 599 + ### Added `logs.level` option 600 + 601 + You can now configure different log levels. As part of this feature, we had to introduce a breaking change by moving the `debug` option to `logs.level`. This will affect you if you're calling `@hey-api/openapi-ts` from Node.js (not CLI) or using the configuration file. 602 + 603 + ```js 604 + export default { 605 + client: '@hey-api/client-fetch', 606 + debug: true, // [!code --] 607 + input: 'path/to/openapi.json', 608 + logs: { 609 + level: 'debug', // [!code ++] 610 + }, 611 + output: 'src/client', 612 + }; 613 + ``` 614 + 615 + - [#1389](https://github.com/hey-api/openapi-ts/pull/1389) [`f4c98ec`](https://github.com/hey-api/openapi-ts/commit/f4c98ec429ee989ae1c76328f4d42d44f14cb52e) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: remove `@hey-api/schemas` from default plugins 616 + 617 + ### Updated default `plugins` 618 + 619 + `@hey-api/schemas` has been removed from the default plugins. To continue using it, add it to your plugins array. 620 + 621 + ```js 622 + import { defaultPlugins } from '@hey-api/openapi-ts'; 623 + 624 + export default { 625 + client: '@hey-api/client-fetch', 626 + experimentalParser: true, 627 + input: 'path/to/openapi.json', 628 + output: 'src/client', 629 + plugins: [ 630 + ...defaultPlugins, 631 + '@hey-api/schemas', // [!code ++] 632 + ], 633 + }; 634 + ``` 635 + 636 + ### Patch Changes 637 + 638 + - [#1382](https://github.com/hey-api/openapi-ts/pull/1382) [`3580c1e`](https://github.com/hey-api/openapi-ts/commit/3580c1eec4640d235a1e0f78bf76581e532aaf8b) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: correctly resolve required properties in nested allOf composition 639 + 640 + - [#1387](https://github.com/hey-api/openapi-ts/pull/1387) [`7c4335d`](https://github.com/hey-api/openapi-ts/commit/7c4335d12782c73b5b242e7d5786ec8778857d1d) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add `--silent` or `-s` CLI option for silent log level 641 + 642 + - [#1382](https://github.com/hey-api/openapi-ts/pull/1382) [`3580c1e`](https://github.com/hey-api/openapi-ts/commit/3580c1eec4640d235a1e0f78bf76581e532aaf8b) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: transformers handle allOf composition in experimental parser 643 + 644 + - [#1387](https://github.com/hey-api/openapi-ts/pull/1387) [`0def82c`](https://github.com/hey-api/openapi-ts/commit/0def82c91d1be936702690b8cf5a21775974d946) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: add `logs` configuration option to customize log directory 645 + 646 + - [#1390](https://github.com/hey-api/openapi-ts/pull/1390) [`8388c47`](https://github.com/hey-api/openapi-ts/commit/8388c4720dbb657899d5e30bd8d59c19583cad98) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: allow arbitrary object properties when additionalProperties is undefined 647 + 648 + - [#1387](https://github.com/hey-api/openapi-ts/pull/1387) [`7c4335d`](https://github.com/hey-api/openapi-ts/commit/7c4335d12782c73b5b242e7d5786ec8778857d1d) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: support `DEBUG` environment variable 649 + 650 + ## 0.58.0 651 + 652 + ### Minor Changes 653 + 654 + - [#1353](https://github.com/hey-api/openapi-ts/pull/1353) [`efd3e54`](https://github.com/hey-api/openapi-ts/commit/efd3e5444d208ea0c8dda7573f26bb04c31cc372) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: add typescript.identifierCase option 655 + 656 + ### Added `typescript.identifierCase` option 657 + 658 + **This change affects only the experimental parser.** By default, the generated TypeScript interfaces will follow the PascalCase naming convention. In the previous versions, we tried to preserve the original name as much as possible. To keep the previous behavior, set `typescript.identifierCase` to `preserve`. 659 + 660 + ```js 661 + export default { 662 + client: '@hey-api/client-fetch', 663 + experimentalParser: true, 664 + input: 'path/to/openapi.json', 665 + output: 'src/client', 666 + plugins: [ 667 + // ...other plugins 668 + { 669 + identifierCase: 'preserve', // [!code ++] 670 + name: '@hey-api/typescript', 671 + }, 672 + ], 673 + }; 674 + ``` 675 + 676 + - [#1360](https://github.com/hey-api/openapi-ts/pull/1360) [`5f6ddd7`](https://github.com/hey-api/openapi-ts/commit/5f6ddd796f0ce77bcca55fd13981f2a8481aecd3) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: remove schemas and transformers re-exports from index.ts 677 + 678 + ### Removed `schemas.gen.ts` re-export 679 + 680 + `index.ts` will no longer re-export `schemas.gen.ts` to reduce the chance of producing broken output. Please update your code to import from `schemas.gen.ts` directly. 681 + 682 + ```js 683 + import { mySchema } from 'client'; // [!code --] 684 + import { mySchema } from 'client/schemas.gen'; // [!code ++] 685 + ``` 686 + 687 + ### Removed `transformers.gen.ts` re-export 688 + 689 + `index.ts` will no longer re-export `transformers.gen.ts` to reduce the chance of producing broken output. Please update your code to import from `transformers.gen.ts` directly. 690 + 691 + ```js 692 + import { myTransformer } from 'client'; // [!code --] 693 + import { myTransformer } from 'client/transformers.gen'; // [!code ++] 694 + ``` 695 + 696 + - [#1360](https://github.com/hey-api/openapi-ts/pull/1360) [`5f6ddd7`](https://github.com/hey-api/openapi-ts/commit/5f6ddd796f0ce77bcca55fd13981f2a8481aecd3) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: add output.clean option 697 + 698 + ### Added `output.clean` option 699 + 700 + By default, the `output.path` folder will be emptied on every run. To preserve the previous behavior, set `output.clean` to `false`. 701 + 702 + ```js 703 + export default { 704 + client: '@hey-api/client-fetch', 705 + input: 'path/to/openapi.json', 706 + output: { 707 + clean: false, // [!code ++] 708 + path: 'src/client', 709 + }, 710 + }; 711 + ``` 712 + 713 + - [#1362](https://github.com/hey-api/openapi-ts/pull/1362) [`3bf7169`](https://github.com/hey-api/openapi-ts/commit/3bf7169b620946d99c17cf5398d7a818d0099f94) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: add typescript.enumsCase option 714 + 715 + ### Patch Changes 716 + 717 + - [#1361](https://github.com/hey-api/openapi-ts/pull/1361) [`a23c25e`](https://github.com/hey-api/openapi-ts/commit/a23c25ea1b5ca8bf421302bf93690168df3473cb) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add before and after to pagination keywords 718 + 719 + - [#1368](https://github.com/hey-api/openapi-ts/pull/1368) [`cca2290`](https://github.com/hey-api/openapi-ts/commit/cca2290aeaab0b9807c928d73dbfc1e4bacadc4d) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: export Plugin API namespace 720 + 721 + - [#1369](https://github.com/hey-api/openapi-ts/pull/1369) [`11163f0`](https://github.com/hey-api/openapi-ts/commit/11163f0d6885633078126849c04c0646e7d19255) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: TanStack Query plugin handles conflict with internal function name in experimental parser 722 + 723 + ## 0.57.1 724 + 725 + ### Patch Changes 726 + 727 + - [#1335](https://github.com/hey-api/openapi-ts/pull/1335) [`bb9a848`](https://github.com/hey-api/openapi-ts/commit/bb9a84869dc911861f3b12f725a470b8fd6b67fe) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: transformers correctly handle an array 728 + 729 + - [#1332](https://github.com/hey-api/openapi-ts/pull/1332) [`25b598b`](https://github.com/hey-api/openapi-ts/commit/25b598bcecd1dd3eb3da6b7c7f24f4adb0170114) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: improve camelcase with abbreviated plurals 730 + 731 + - [#1333](https://github.com/hey-api/openapi-ts/pull/1333) [`734a62d`](https://github.com/hey-api/openapi-ts/commit/734a62dd8d594b8266964fe16766a481d37eb7df) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: experimental parser generates url inside data types 732 + 733 + - [#1336](https://github.com/hey-api/openapi-ts/pull/1336) [`6857da8`](https://github.com/hey-api/openapi-ts/commit/6857da8a7f23829a89115b2237aaac9a71a38dfb) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: experimental parser transforms anyOf date and null 734 + 735 + - [#1330](https://github.com/hey-api/openapi-ts/pull/1330) [`3d68587`](https://github.com/hey-api/openapi-ts/commit/3d6858748c94d6e33fd4dae7ddbf6cb70d21aaee) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: experimental parser handles empty string and null enum values in JavaScript mode 736 + 737 + - [#1340](https://github.com/hey-api/openapi-ts/pull/1340) [`c8511e0`](https://github.com/hey-api/openapi-ts/commit/c8511e0d84dd408407bf764fb0bae4938b70dacb) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: experimental parser exports reusable request bodies 738 + 739 + ## 0.57.0 740 + 741 + ### Minor Changes 742 + 743 + - [#1324](https://github.com/hey-api/openapi-ts/pull/1324) [`4e62378`](https://github.com/hey-api/openapi-ts/commit/4e62378352d8306580293ee4aeef43756d245f85) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: rename Hey API plugins 744 + 745 + ### Renamed `@hey-api/services` plugin 746 + 747 + This plugin has been renamed to `@hey-api/sdk`. 748 + 749 + ### Changed `sdk.output` value 750 + 751 + To align with the updated name, the `@hey-api/sdk` plugin will generate an `sdk.gen.ts` file. This will result in a breaking change if you're importing from `services.gen.ts`. Please update your imports to reflect this change. 752 + 753 + ```js 754 + import { client } from 'client/services.gen'; // [!code --] 755 + import { client } from 'client/sdk.gen'; // [!code ++] 756 + ``` 757 + 758 + ### Renamed `@hey-api/types` plugin 759 + 760 + This plugin has been renamed to `@hey-api/typescript`. 761 + 762 + - [#1327](https://github.com/hey-api/openapi-ts/pull/1327) [`62e37d5`](https://github.com/hey-api/openapi-ts/commit/62e37d51e9d829e11d08a494060c1e808ce2e3f3) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: add typescript.exportInlineEnums option 763 + 764 + ### Added `typescript.exportInlineEnums` option 765 + 766 + By default, inline enums (enums not defined as reusable components in the input file) will be generated only as inlined union types. You can set `exportInlineEnums` to `true` to treat inline enums as reusable components. When `true`, the exported enums will follow the style defined in `enums`. 767 + 768 + This is a breaking change since in the previous versions, inline enums were always treated as reusable components. To preserve your current output, set `exportInlineEnums` to `true`. This feature works only with the experimental parser. 769 + 770 + ```js 771 + export default { 772 + client: '@hey-api/client-fetch', 773 + experimentalParser: true, 774 + input: 'path/to/openapi.json', 775 + output: 'src/client', 776 + plugins: [ 777 + // ...other plugins 778 + { 779 + exportInlineEnums: true, // [!code ++] 780 + name: '@hey-api/typescript', 781 + }, 782 + ], 783 + }; 784 + ``` 785 + 786 + ### Patch Changes 787 + 788 + - [#1326](https://github.com/hey-api/openapi-ts/pull/1326) [`01c3d69`](https://github.com/hey-api/openapi-ts/commit/01c3d69e4c97262cd6dda5061f0a76f3b4fda31a) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: improve generated enum keys in experimental parser 789 + 790 + ## 0.56.3 791 + 792 + ### Patch Changes 793 + 794 + - [#1319](https://github.com/hey-api/openapi-ts/pull/1319) [`af76a77`](https://github.com/hey-api/openapi-ts/commit/af76a7705c585fcfae0c72872f358936f7d19d56) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: Zod plugin handles value constraints and defaults 795 + 796 + ## 0.56.2 797 + 798 + ### Patch Changes 799 + 800 + - [#1316](https://github.com/hey-api/openapi-ts/pull/1316) [`a79fac8`](https://github.com/hey-api/openapi-ts/commit/a79fac8919ed29eec7195cbd441ffa38b559d63c) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add input.exclude option 801 + 802 + - [#1316](https://github.com/hey-api/openapi-ts/pull/1316) [`a79fac8`](https://github.com/hey-api/openapi-ts/commit/a79fac8919ed29eec7195cbd441ffa38b559d63c) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: make Zod plugin available in plugins options 803 + 804 + ## 0.56.1 805 + 806 + ### Patch Changes 807 + 808 + - [#1309](https://github.com/hey-api/openapi-ts/pull/1309) [`785480b`](https://github.com/hey-api/openapi-ts/commit/785480b2d5f96a681dfc1f7f0fb626f744bb221f) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: gracefully handle invalid schema type in experimental parser 809 + 810 + ## 0.56.0 811 + 812 + ### Minor Changes 813 + 814 + - [#1286](https://github.com/hey-api/openapi-ts/pull/1286) [`5514de4`](https://github.com/hey-api/openapi-ts/commit/5514de46a8c913ddc40f07d0142c80266e9837cd) Thanks [@jacobinu](https://github.com/jacobinu)! - feat: add `fastify` plugin 815 + 816 + ### Patch Changes 817 + 818 + - [#1286](https://github.com/hey-api/openapi-ts/pull/1286) [`cebf327`](https://github.com/hey-api/openapi-ts/commit/cebf327046c801b375846bae6b07561b8ad1bdd6) Thanks [@jacobinu](https://github.com/jacobinu)! - fix: export a map of error and response types by status code 819 + 820 + - [#1286](https://github.com/hey-api/openapi-ts/pull/1286) [`8a15a35`](https://github.com/hey-api/openapi-ts/commit/8a15a35e86ff22eca85dc218bc1793315b934556) Thanks [@jacobinu](https://github.com/jacobinu)! - fix: deprecate types.tree option 821 + 822 + - [#1305](https://github.com/hey-api/openapi-ts/pull/1305) [`a3698a7`](https://github.com/hey-api/openapi-ts/commit/a3698a7f1680d7dfb913c6253f8685ebbdd132ca) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle file-like content media type without explicit schema 823 + 824 + ## 0.55.3 825 + 826 + ### Patch Changes 827 + 828 + - [#1283](https://github.com/hey-api/openapi-ts/pull/1283) [`781d1a4`](https://github.com/hey-api/openapi-ts/commit/781d1a40d10ce380f1ca2cb2bc7aca7d3b169bc6) Thanks [@hougesen](https://github.com/hougesen)! - feat: add support for oxlint as linter 829 + 830 + ## 0.55.2 831 + 832 + ### Patch Changes 833 + 834 + - [#1253](https://github.com/hey-api/openapi-ts/pull/1253) [`01dee3d`](https://github.com/hey-api/openapi-ts/commit/01dee3df879232939e43355231147b3d910fb482) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: update sponsorship links 835 + 836 + - [#1266](https://github.com/hey-api/openapi-ts/pull/1266) [`d60d260`](https://github.com/hey-api/openapi-ts/commit/d60d260342ff3013c2e228151e9b897224eb89cc) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: correctly generate array when items are a oneOf array with length 1 837 + 838 + - [#1265](https://github.com/hey-api/openapi-ts/pull/1265) [`691cdc2`](https://github.com/hey-api/openapi-ts/commit/691cdc28b6ad5bc1a38e1ae9eb134a2b41d4ead8) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle non-exploded array query parameters 839 + 840 + - [#1267](https://github.com/hey-api/openapi-ts/pull/1267) [`ff3aa4a`](https://github.com/hey-api/openapi-ts/commit/ff3aa4ac58068671d2b9eedbd7528eb4f9969386) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle discriminators in experimental parser 841 + 842 + ## 0.55.1 843 + 844 + ### Patch Changes 845 + 846 + - [#1248](https://github.com/hey-api/openapi-ts/pull/1248) [`61cd848`](https://github.com/hey-api/openapi-ts/commit/61cd848262b20580fb185d023c28aa54754bf19c) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle nullable enums in experimental parser 847 + 848 + - [#1251](https://github.com/hey-api/openapi-ts/pull/1251) [`07800d4`](https://github.com/hey-api/openapi-ts/commit/07800d4fbb849614ed2c23b8acc9c82f1ef74598) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add support for custom plugins 849 + 850 + - [#1250](https://github.com/hey-api/openapi-ts/pull/1250) [`9e07675`](https://github.com/hey-api/openapi-ts/commit/9e07675802c75b8f5105dd104bb7736aeb83ece6) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: render void for empty response status codes in experimental parser 851 + 852 + ## 0.55.0 853 + 854 + ### Minor Changes 855 + 856 + - [#1241](https://github.com/hey-api/openapi-ts/pull/1241) [`41cee41`](https://github.com/hey-api/openapi-ts/commit/41cee417055c50de6170e6fdeae65bd6e643d19c) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: add input.include option 857 + 858 + ### Patch Changes 859 + 860 + - [#1239](https://github.com/hey-api/openapi-ts/pull/1239) [`319a28a`](https://github.com/hey-api/openapi-ts/commit/319a28af29541d7f61cca82389e1d486204f321f) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle pagination with basic refs 861 + 862 + ## 0.54.4 863 + 864 + ### Patch Changes 865 + 866 + - [#1237](https://github.com/hey-api/openapi-ts/pull/1237) [`63ccc07`](https://github.com/hey-api/openapi-ts/commit/63ccc0775e24a096bc46ac7ff29b99b694aad621) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: forbid any body, path, or query parameters if not defined in spec 867 + 868 + - [#1235](https://github.com/hey-api/openapi-ts/pull/1235) [`7a1a419`](https://github.com/hey-api/openapi-ts/commit/7a1a419f07d5ad39e07265771b30d49a4b754a88) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle additionalProperties: boolean in experimental parser 869 + 870 + - [#1233](https://github.com/hey-api/openapi-ts/pull/1233) [`08baa77`](https://github.com/hey-api/openapi-ts/commit/08baa77afdc5e2c49d4789b20673e949951ab0b2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: update schemas plugin to handle experimental 3.0.x parser 871 + 872 + This release adds an experimental parser for OpenAPI versions 3.0.x. In the future, this will become the default parser. If you're using OpenAPI 3.0 or newer, we encourage you to try it out today. 873 + 874 + You can enable the experimental parser by setting the `experimentalParser` boolean flag to `true` in your configuration file or CLI. 875 + 876 + ```js 877 + export default { 878 + client: '@hey-api/client-fetch', 879 + input: 'path/to/openapi.json', 880 + output: 'src/client', 881 + experimentalParser: true, 882 + }; 883 + ``` 884 + 885 + ```sh 886 + npx @hey-api/openapi-ts -i path/to/openapi.json -o src/client -c @hey-api/client-fetch -e 887 + ``` 888 + 889 + The generated output should not structurally change, despite few things being generated in a different order. In fact, the output should be cleaner! That's the immediate side effect you should notice. If that's not true, please leave feedback in [GitHub issues](https://github.com/hey-api/openapi-ts/issues). 890 + 891 + Hey API parser marks an important milestone towards v1 of `@hey-api/openapi-ts`. More features will be added to the parser in the future and the original parser from `openapi-typescript-codegen` will be deprecated and used only for generating legacy clients. 892 + 893 + If you'd like to work with the parser more closely (e.g. to generate code not natively supported by this package), feel free to reach out with any feedback or suggestions. Happy parsing! 🎉 894 + 895 + ## 0.54.3 896 + 897 + ### Patch Changes 898 + 899 + - [#1230](https://github.com/hey-api/openapi-ts/pull/1230) [`3e65ae0`](https://github.com/hey-api/openapi-ts/commit/3e65ae06bcd2823482cf012909388c7630e18229) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: add OpenAPI 3.0.x experimental parser 900 + 901 + This release adds an experimental parser for OpenAPI versions 3.0.x. In the future, this will become the default parser. If you're using OpenAPI 3.0 or newer, we encourage you to try it out today. 902 + 903 + You can enable the experimental parser by setting the `experimentalParser` boolean flag to `true` in your configuration file or CLI. 904 + 905 + ```js 906 + export default { 907 + client: '@hey-api/client-fetch', 908 + input: 'path/to/openapi.json', 909 + output: 'src/client', 910 + experimentalParser: true, 911 + }; 912 + ``` 913 + 914 + ```sh 915 + npx @hey-api/openapi-ts -i path/to/openapi.json -o src/client -c @hey-api/client-fetch -e 916 + ``` 917 + 918 + The generated output should not structurally change, despite few things being generated in a different order. In fact, the output should be cleaner! That's the immediate side effect you should notice. If that's not true, please leave feedback in [GitHub issues](https://github.com/hey-api/openapi-ts/issues). 919 + 920 + Hey API parser marks an important milestone towards v1 of `@hey-api/openapi-ts`. More features will be added to the parser in the future and the original parser from `openapi-typescript-codegen` will be deprecated and used only for generating legacy clients. 921 + 922 + If you'd like to work with the parser more closely (e.g. to generate code not natively supported by this package), feel free to reach out with any feedback or suggestions. Happy parsing! 🎉 923 + 924 + ## 0.54.2 925 + 926 + ### Patch Changes 927 + 928 + - [#1222](https://github.com/hey-api/openapi-ts/pull/1222) [`ceb4363`](https://github.com/hey-api/openapi-ts/commit/ceb4363d52893ebe947e21aac402b868ff2820d4) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: add support for @tanstack/angular-query-experimental package 929 + 930 + ## 0.54.1 931 + 932 + ### Patch Changes 933 + 934 + - [#1211](https://github.com/hey-api/openapi-ts/pull/1211) [`c8a3e3d`](https://github.com/hey-api/openapi-ts/commit/c8a3e3d7e59692698b7cf45182ca92494fc4af96) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: ignore name option when not used with legacy clients to avoid producing broken output 935 + 936 + - [#1209](https://github.com/hey-api/openapi-ts/pull/1209) [`3a80b9f`](https://github.com/hey-api/openapi-ts/commit/3a80b9fd009c8229d69f3f349acbfb19b7549a94) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add support for OpenAPI 3.1.1 to experimental parser 937 + 938 + ## 0.54.0 939 + 940 + ### Minor Changes 941 + 942 + - [#1201](https://github.com/hey-api/openapi-ts/pull/1201) [`972a93a`](https://github.com/hey-api/openapi-ts/commit/972a93a91a945cc9ead73c08bb0fa9ee120433ba) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: make plugins first-class citizens 943 + 944 + This release makes plugins first-class citizens. In order to achieve that, the following breaking changes were introduced. 945 + 946 + ### Removed CLI options 947 + 948 + The `--types`, `--schemas`, and `--services` CLI options have been removed. You can list which plugins you'd like to use explicitly by passing a list of plugins as `--plugins <plugin1> <plugin2>` 949 + 950 + ### Removed `*.export` option 951 + 952 + Previously, you could explicitly disable export of certain artifacts using the `*.export` option or its shorthand variant. These were both removed. You can now disable export of specific artifacts by manually defining an array of `plugins` and excluding the unwanted plugin. 953 + 954 + ::: code-group 955 + 956 + ```js [shorthand] 957 + export default { 958 + client: '@hey-api/client-fetch', 959 + input: 'path/to/openapi.json', 960 + output: 'src/client', 961 + schemas: false, // [!code --] 962 + plugins: ['@hey-api/types', '@hey-api/services'], // [!code ++] 963 + }; 964 + ``` 965 + 966 + ```js [*.export] 967 + export default { 968 + client: '@hey-api/client-fetch', 969 + input: 'path/to/openapi.json', 970 + output: 'src/client', 971 + schemas: { 972 + export: false, // [!code --] 973 + }, 974 + plugins: ['@hey-api/types', '@hey-api/services'], // [!code ++] 975 + }; 976 + ``` 977 + 978 + ::: 979 + 980 + ### Renamed `schemas.name` option 981 + 982 + Each plugin definition contains a `name` field. This was conflicting with the `schemas.name` option. As a result, it has been renamed to `nameBuilder`. 983 + 984 + ```js 985 + export default { 986 + client: '@hey-api/client-fetch', 987 + input: 'path/to/openapi.json', 988 + output: 'src/client', 989 + schemas: { 990 + name: (name) => `${name}Schema`, // [!code --] 991 + }, 992 + plugins: [ 993 + // ...other plugins 994 + { 995 + nameBuilder: (name) => `${name}Schema`, // [!code ++] 996 + name: '@hey-api/schemas', 997 + }, 998 + ], 999 + }; 1000 + ``` 1001 + 1002 + ### Removed `services.include` shorthand option 1003 + 1004 + Previously, you could use a string value as a shorthand for the `services.include` configuration option. You can now achieve the same result using the `include` option. 1005 + 1006 + ```js 1007 + export default { 1008 + client: '@hey-api/client-fetch', 1009 + input: 'path/to/openapi.json', 1010 + output: 'src/client', 1011 + services: '^MySchema', // [!code --] 1012 + plugins: [ 1013 + // ...other plugins 1014 + { 1015 + include: '^MySchema', // [!code ++] 1016 + name: '@hey-api/services', 1017 + }, 1018 + ], 1019 + }; 1020 + ``` 1021 + 1022 + ### Renamed `services.name` option 1023 + 1024 + Each plugin definition contains a `name` field. This was conflicting with the `services.name` option. As a result, it has been renamed to `serviceNameBuilder`. 1025 + 1026 + ```js 1027 + export default { 1028 + client: '@hey-api/client-fetch', 1029 + input: 'path/to/openapi.json', 1030 + output: 'src/client', 1031 + services: { 1032 + name: '{{name}}Service', // [!code --] 1033 + }, 1034 + plugins: [ 1035 + // ...other plugins 1036 + { 1037 + serviceNameBuilder: '{{name}}Service', // [!code ++] 1038 + name: '@hey-api/services', 1039 + }, 1040 + ], 1041 + }; 1042 + ``` 1043 + 1044 + ### Renamed `types.dates` option 1045 + 1046 + Previously, you could set `types.dates` to a boolean or a string value, depending on whether you wanted to transform only type strings into dates, or runtime code too. Many people found these options confusing, so they have been simplified to a boolean and extracted into a separate `@hey-api/transformers` plugin. 1047 + 1048 + ```js 1049 + export default { 1050 + client: '@hey-api/client-fetch', 1051 + input: 'path/to/openapi.json', 1052 + output: 'src/client', 1053 + types: { 1054 + dates: 'types+transform', // [!code --] 1055 + }, 1056 + plugins: [ 1057 + // ...other plugins 1058 + { 1059 + dates: true, // [!code ++] 1060 + name: '@hey-api/transformers', 1061 + }, 1062 + ], 1063 + }; 1064 + ``` 1065 + 1066 + ### Removed `types.include` shorthand option 1067 + 1068 + Previously, you could use a string value as a shorthand for the `types.include` configuration option. You can now achieve the same result using the `include` option. 1069 + 1070 + ```js 1071 + export default { 1072 + client: '@hey-api/client-fetch', 1073 + input: 'path/to/openapi.json', 1074 + output: 'src/client', 1075 + types: '^MySchema', // [!code --] 1076 + plugins: [ 1077 + // ...other plugins 1078 + { 1079 + include: '^MySchema', // [!code ++] 1080 + name: '@hey-api/types', 1081 + }, 1082 + ], 1083 + }; 1084 + ``` 1085 + 1086 + ### Renamed `types.name` option 1087 + 1088 + Each plugin definition contains a `name` field. This was conflicting with the `types.name` option. As a result, it has been renamed to `style`. 1089 + 1090 + ```js 1091 + export default { 1092 + client: '@hey-api/client-fetch', 1093 + input: 'path/to/openapi.json', 1094 + output: 'src/client', 1095 + types: { 1096 + name: 'PascalCase', // [!code --] 1097 + }, 1098 + plugins: [ 1099 + // ...other plugins 1100 + { 1101 + name: '@hey-api/types', 1102 + style: 'PascalCase', // [!code ++] 1103 + }, 1104 + ], 1105 + }; 1106 + ``` 1107 + 1108 + ## 0.53.12 1109 + 1110 + ### Patch Changes 1111 + 1112 + - [#1195](https://github.com/hey-api/openapi-ts/pull/1195) [`753643f`](https://github.com/hey-api/openapi-ts/commit/753643fae74d4248df8dc5fe9dda5f28a1dabdf1) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: TanStack Query plugin using missing import for infinite query 1113 + 1114 + - [#1194](https://github.com/hey-api/openapi-ts/pull/1194) [`c38deaf`](https://github.com/hey-api/openapi-ts/commit/c38deaf02b606b92edd9c316b1444b6b6c12916d) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: pass TanStack query signal to client call 1115 + 1116 + ## 0.53.11 1117 + 1118 + ### Patch Changes 1119 + 1120 + - [#1151](https://github.com/hey-api/openapi-ts/pull/1151) [`587791d`](https://github.com/hey-api/openapi-ts/commit/587791dfede0167fbed229281467e4c4875936f5) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: update website domain, add license documentation 1121 + 1122 + ## 0.53.10 1123 + 1124 + ### Patch Changes 1125 + 1126 + - [#1145](https://github.com/hey-api/openapi-ts/pull/1145) [`a0a5551`](https://github.com/hey-api/openapi-ts/commit/a0a55510d30a1a8dea0ade4908b5b13d51b5f9e6) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: update license field in package.json to match the license, revert client packages license to MIT 1127 + 1128 + ## 0.53.9 1129 + 1130 + ### Patch Changes 1131 + 1132 + - [#1137](https://github.com/hey-api/openapi-ts/pull/1137) [`f4566c2`](https://github.com/hey-api/openapi-ts/commit/f4566c2bcd67f45f069bfa6220d3c710177f28cc) Thanks [@BierDav](https://github.com/BierDav)! - Add support for passing mutation specific options to `<operation_id>Mutation(options)` 1133 + 1134 + ## 0.53.8 1135 + 1136 + ### Patch Changes 1137 + 1138 + - [#1123](https://github.com/hey-api/openapi-ts/pull/1123) [`032338c`](https://github.com/hey-api/openapi-ts/commit/032338c47506ccfd567bbbf915398942c8394bc2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: use correct relative path to bundled client when imported from nested module 1139 + 1140 + ## 0.53.7 1141 + 1142 + ### Patch Changes 1143 + 1144 + - [#1113](https://github.com/hey-api/openapi-ts/pull/1113) [`dc696e0`](https://github.com/hey-api/openapi-ts/commit/dc696e0b4500dba5ceb4c772110b123bd2f71b40) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: skip nested properties in oneOf and anyOf compositions 1145 + 1146 + - [#1115](https://github.com/hey-api/openapi-ts/pull/1115) [`5f077dd`](https://github.com/hey-api/openapi-ts/commit/5f077dd8d144bbfe71d8775bad5fe7ddda2315d6) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: abstract page params logic in TanStack Query plugin 1147 + 1148 + ## 0.53.6 1149 + 1150 + ### Patch Changes 1151 + 1152 + - [#1104](https://github.com/hey-api/openapi-ts/pull/1104) [`a1eada1`](https://github.com/hey-api/openapi-ts/commit/a1eada1896046f0de1710682635efc59434a1e2c) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: export spec-compliant OpenAPI 3.1 interface 1153 + 1154 + - [#1108](https://github.com/hey-api/openapi-ts/pull/1108) [`7677924`](https://github.com/hey-api/openapi-ts/commit/76779246534391deca5a371df2c7dc76e9d2eb73) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle multiple form-data parameters in Swagger 2.0 1155 + 1156 + ## 0.53.5 1157 + 1158 + ### Patch Changes 1159 + 1160 + - [#1096](https://github.com/hey-api/openapi-ts/pull/1096) [`b6e350a`](https://github.com/hey-api/openapi-ts/commit/b6e350a9cc2d82ac4496b7d57ec8b58978c951c2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: make TanStack Query plugin work with class-based services 1161 + 1162 + - [#1095](https://github.com/hey-api/openapi-ts/pull/1095) [`11ee53f`](https://github.com/hey-api/openapi-ts/commit/11ee53f4f519643ae7e3f0997ce4fe9b6cb050a8) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: avoid printing duplicate null nodes 1163 + 1164 + - [#1094](https://github.com/hey-api/openapi-ts/pull/1094) [`713ccd5`](https://github.com/hey-api/openapi-ts/commit/713ccd5e5e250a14cacf96fd1dffad252cc4cc6a) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: attach TanStack Query infinite page params only if they exist 1165 + 1166 + ## 0.53.4 1167 + 1168 + ### Patch Changes 1169 + 1170 + - [#1087](https://github.com/hey-api/openapi-ts/pull/1087) [`b528236`](https://github.com/hey-api/openapi-ts/commit/b528236b626d12d4ac03b98b8abecc425291c5e5) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: import handlebars instead of runtime 1171 + 1172 + - [#1086](https://github.com/hey-api/openapi-ts/pull/1086) [`0bc1ebe`](https://github.com/hey-api/openapi-ts/commit/0bc1ebe318399d01296777746ce0bccc83c0e83d) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: support dynamic require in child_process 1173 + 1174 + ## 0.53.3 1175 + 1176 + ### Patch Changes 1177 + 1178 + - [#1075](https://github.com/hey-api/openapi-ts/pull/1075) [`11a276a`](https://github.com/hey-api/openapi-ts/commit/11a276a1e35dde0735363e892d8142016fd87eec) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: properly handle dual publishing and type generation 1179 + 1180 + ## 0.53.2 1181 + 1182 + ### Patch Changes 1183 + 1184 + - [#1060](https://github.com/hey-api/openapi-ts/pull/1060) [`8d66c08`](https://github.com/hey-api/openapi-ts/commit/8d66c085cf81e0e166c3e172ce319d5e2d4002bf) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle colon in operation path 1185 + 1186 + - [#1065](https://github.com/hey-api/openapi-ts/pull/1065) [`a756987`](https://github.com/hey-api/openapi-ts/commit/a756987ad396fd7e68cc5eff63f6615bffef3782) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: allow overriding generated headers from options 1187 + 1188 + - [#1068](https://github.com/hey-api/openapi-ts/pull/1068) [`a48be86`](https://github.com/hey-api/openapi-ts/commit/a48be8660f6d1d84fdf25a3952587fb963482e8a) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: export Operation interface 1189 + 1190 + - [#1067](https://github.com/hey-api/openapi-ts/pull/1067) [`5a52da1`](https://github.com/hey-api/openapi-ts/commit/5a52da1425abef9f4fef58ef077dbd05545e25a2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle named object property with no nested properties 1191 + 1192 + - [#1066](https://github.com/hey-api/openapi-ts/pull/1066) [`e8a38ae`](https://github.com/hey-api/openapi-ts/commit/e8a38ae4e3f021a105d18764ef3252db7efa9aa0) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: transform any-of nullable dates 1193 + 1194 + ## 0.53.1 1195 + 1196 + ### Patch Changes 1197 + 1198 + - [#1050](https://github.com/hey-api/openapi-ts/pull/1050) [`6922b5a`](https://github.com/hey-api/openapi-ts/commit/6922b5a3ebe67190d2034ea79674706a5e80e818) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: throw error on invalid client value 1199 + 1200 + ## 0.53.0 1201 + 1202 + ### Minor Changes 1203 + 1204 + - [#1008](https://github.com/hey-api/openapi-ts/pull/1008) [`dc4a40d`](https://github.com/hey-api/openapi-ts/commit/dc4a40d517853e4cf5be532f5bf4874c84c924be) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: rename legacy clients with 'legacy/' prefix 1205 + 1206 + - [#1009](https://github.com/hey-api/openapi-ts/pull/1009) [`c6b044d`](https://github.com/hey-api/openapi-ts/commit/c6b044d0bc9dc54cb0eb58d23438f4e1d050cb38) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: change schemas name pattern, add schemas.name option 1207 + 1208 + ### Patch Changes 1209 + 1210 + - [#989](https://github.com/hey-api/openapi-ts/pull/989) [`bc78a42`](https://github.com/hey-api/openapi-ts/commit/bc78a421eafed1920102b796842e227cacda6ef0) Thanks [@jacobinu](https://github.com/jacobinu)! - fix: make UserConfig interface instead of type 1211 + 1212 + - [#1010](https://github.com/hey-api/openapi-ts/pull/1010) [`b6e58c6`](https://github.com/hey-api/openapi-ts/commit/b6e58c64d1b71897533a85d1738cd7ce7ede178d) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: set query key base url from supplied client if provided 1213 + 1214 + ## 0.52.11 1215 + 1216 + ### Patch Changes 1217 + 1218 + - [#981](https://github.com/hey-api/openapi-ts/pull/981) [`afd8c43`](https://github.com/hey-api/openapi-ts/commit/afd8c4386fb7b2f86a54e73c9471945bdfad22ea) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: export query key functions from TanStack Query plugin 1219 + 1220 + ## 0.52.10 1221 + 1222 + ### Patch Changes 1223 + 1224 + - [#973](https://github.com/hey-api/openapi-ts/pull/973) [`8f7a14f`](https://github.com/hey-api/openapi-ts/commit/8f7a14f570e2d17053f1e612f6e045df774916f1) Thanks [@jacobinu](https://github.com/jacobinu)! - fix: handle tree-shakeable angular client case 1225 + 1226 + ## 0.52.9 1227 + 1228 + ### Patch Changes 1229 + 1230 + - [#948](https://github.com/hey-api/openapi-ts/pull/948) [`ebfd6ee`](https://github.com/hey-api/openapi-ts/commit/ebfd6eec434d7b84883a8f9058f31948fb1a40f2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle schemas with generics from C# 1231 + 1232 + - [#949](https://github.com/hey-api/openapi-ts/pull/949) [`16f8956`](https://github.com/hey-api/openapi-ts/commit/16f89566a7affeb09a6b928c43cfa2733e8b9adc) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: rename infinite key in query key to \_infinite 1233 + 1234 + - [#946](https://github.com/hey-api/openapi-ts/pull/946) [`f873fa6`](https://github.com/hey-api/openapi-ts/commit/f873fa67befe60b2fd8f63bc2c8b73437591f686) Thanks [@mrlubos](https://github.com/mrlubos)! - chore: warn on duplicate operation ID 1235 + 1236 + - [#947](https://github.com/hey-api/openapi-ts/pull/947) [`7f0fefe`](https://github.com/hey-api/openapi-ts/commit/7f0fefec92b25ce18ed0d1c6a6edf1adbc7d4481) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: correctly use parentheses around composed schemas 1237 + 1238 + - [#944](https://github.com/hey-api/openapi-ts/pull/944) [`2f7cc89`](https://github.com/hey-api/openapi-ts/commit/2f7cc8986c0644b41cc6a5526ddf52ebff880c79) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: correctly handle integer type in additional properties 1239 + 1240 + ## 0.52.8 1241 + 1242 + ### Patch Changes 1243 + 1244 + - [#932](https://github.com/hey-api/openapi-ts/pull/932) [`cdf01e8`](https://github.com/hey-api/openapi-ts/commit/cdf01e8cc0dc63213465b9e8fe33b80443d36f55) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: cherry pick keys in mutation page param type 1245 + 1246 + ## 0.52.7 1247 + 1248 + ### Patch Changes 1249 + 1250 + - [#929](https://github.com/hey-api/openapi-ts/pull/929) [`b56c81c`](https://github.com/hey-api/openapi-ts/commit/b56c81ca67a2d069b33430c3139e2135a299b309) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle various issues with additionalProperties definitions 1251 + 1252 + - [#927](https://github.com/hey-api/openapi-ts/pull/927) [`65f151d`](https://github.com/hey-api/openapi-ts/commit/65f151dc0004ce817bc370486495bdd281439e55) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: update TanStack Query key to contain base URL 1253 + 1254 + - [#927](https://github.com/hey-api/openapi-ts/pull/927) [`65f151d`](https://github.com/hey-api/openapi-ts/commit/65f151dc0004ce817bc370486495bdd281439e55) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: change TanStack Query mutation helpers to functions for consistent API 1255 + 1256 + ## 0.52.6 1257 + 1258 + ### Patch Changes 1259 + 1260 + - [#920](https://github.com/hey-api/openapi-ts/pull/920) [`4ff2404`](https://github.com/hey-api/openapi-ts/commit/4ff24049457b7d0d5333c3704f488f1f45dd0c5b) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add preview version of TanStack Query plugin 1261 + 1262 + ## 0.52.5 1263 + 1264 + ### Patch Changes 1265 + 1266 + - [#910](https://github.com/hey-api/openapi-ts/pull/910) [`428dcad`](https://github.com/hey-api/openapi-ts/commit/428dcad06eba3ab14876c28092a6df81fcde7dbe) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: throw if prerequisite checks are not met 1267 + 1268 + - [#907](https://github.com/hey-api/openapi-ts/pull/907) [`a2a1ab8`](https://github.com/hey-api/openapi-ts/commit/a2a1ab8bd78c2cbbdcb7adb2ba3815250843dbe7) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: correctly transform string to pascalcase when referenced inside schema 1269 + 1270 + - [#908](https://github.com/hey-api/openapi-ts/pull/908) [`225b640`](https://github.com/hey-api/openapi-ts/commit/225b640b5ac628cb7ba3b7afb39ff271a0608055) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: do not generate types tree by default if services are enabled as it is unused 1271 + 1272 + ## 0.52.4 1273 + 1274 + ### Patch Changes 1275 + 1276 + - [#895](https://github.com/hey-api/openapi-ts/pull/895) [`44de8d8`](https://github.com/hey-api/openapi-ts/commit/44de8d89556b3abf48acc4e23c9b9c198059c757) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: define ThrowOnError generic as the last argument 1277 + 1278 + ## 0.52.3 1279 + 1280 + ### Patch Changes 1281 + 1282 + - [#884](https://github.com/hey-api/openapi-ts/pull/884) [`62a39e6`](https://github.com/hey-api/openapi-ts/commit/62a39e63f645bce0801779fb6b90531401748e86) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: generate ThrowOnError generic for class-based client methods 1283 + 1284 + ## 0.52.2 1285 + 1286 + ### Patch Changes 1287 + 1288 + - [#881](https://github.com/hey-api/openapi-ts/pull/881) [`a9ddfe6`](https://github.com/hey-api/openapi-ts/commit/a9ddfe6c4487fe5debd04a194ee6c6b6c611dc6b) Thanks [@hougesen](https://github.com/hougesen)! - fix: check if key is schema property before removing 1289 + 1290 + ## 0.52.1 1291 + 1292 + ### Patch Changes 1293 + 1294 + - [#855](https://github.com/hey-api/openapi-ts/pull/855) [`7ac6274`](https://github.com/hey-api/openapi-ts/commit/7ac627463a15fa6be2c9d103b25200355df6b166) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: define multiple errors type as union instead of intersection 1295 + 1296 + - [#853](https://github.com/hey-api/openapi-ts/pull/853) [`6ab387d`](https://github.com/hey-api/openapi-ts/commit/6ab387d3440ec5ec524e7f198aedfa6734431d76) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: remove Content-Type header with multipart/form-data content type 1297 + 1298 + - [#861](https://github.com/hey-api/openapi-ts/pull/861) [`21ccf90`](https://github.com/hey-api/openapi-ts/commit/21ccf90b864590c211fbfa3de5c687dd3c48f897) Thanks [@qqilihq](https://github.com/qqilihq)! - fix: Additional properties key 1299 + 1300 + - [#869](https://github.com/hey-api/openapi-ts/pull/869) [`42d8a41`](https://github.com/hey-api/openapi-ts/commit/42d8a4151bace7b70af60a1abe46b7550ddad686) Thanks [@SamuelGuillemet](https://github.com/SamuelGuillemet)! - fix: add conditionnal generation for service related types 1301 + 1302 + ## 0.52.0 1303 + 1304 + ### Minor Changes 1305 + 1306 + - [#835](https://github.com/hey-api/openapi-ts/pull/835) [`7ab277b`](https://github.com/hey-api/openapi-ts/commit/7ab277b22467fe268719af817aee701d6be3e828) Thanks [@LeeChSien](https://github.com/LeeChSien)! - feat: add namespace supporting for enums 1307 + 1308 + ### Patch Changes 1309 + 1310 + - [#830](https://github.com/hey-api/openapi-ts/pull/830) [`babf11a`](https://github.com/hey-api/openapi-ts/commit/babf11ae082af642ac71cfee9c523cc976132a50) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: generate internal client for services when using standalone package 1311 + 1312 + ## 0.51.0 1313 + 1314 + ### Minor Changes 1315 + 1316 + - [#828](https://github.com/hey-api/openapi-ts/pull/828) [`82a4696`](https://github.com/hey-api/openapi-ts/commit/82a4696b0b209ea2d9147f47f213479e61aed3d7) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: make `client` config option required 1317 + 1318 + ### Patch Changes 1319 + 1320 + - [#823](https://github.com/hey-api/openapi-ts/pull/823) [`23c9dcd`](https://github.com/hey-api/openapi-ts/commit/23c9dcd5de19de62d745cc539674c815b2588cd2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: correctly process body parameter for OpenAPI 2.0 specs 1321 + 1322 + - [#827](https://github.com/hey-api/openapi-ts/pull/827) [`8d81c06`](https://github.com/hey-api/openapi-ts/commit/8d81c0605dbf4b4d19ec1c2dc51a93f8a2aca5b2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: do not ignore api-version param in standalone clients 1323 + 1324 + ## 0.50.2 1325 + 1326 + ### Patch Changes 1327 + 1328 + - [#818](https://github.com/hey-api/openapi-ts/pull/818) [`85d123c`](https://github.com/hey-api/openapi-ts/commit/85d123c9160f4ecb4c48e8a2ead54abf604dd21b) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle fully illegal schema names 1329 + 1330 + ## 0.50.1 1331 + 1332 + ### Patch Changes 1333 + 1334 + - [#807](https://github.com/hey-api/openapi-ts/pull/807) [`ef249ba`](https://github.com/hey-api/openapi-ts/commit/ef249ba5bd04dbfb0e0a497caaa021f9c7de6949) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: generate types only for filtered services 1335 + 1336 + - [#807](https://github.com/hey-api/openapi-ts/pull/807) [`ef249ba`](https://github.com/hey-api/openapi-ts/commit/ef249ba5bd04dbfb0e0a497caaa021f9c7de6949) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: allow any key/value pair in object types with empty properties object 1337 + 1338 + ## 0.50.0 1339 + 1340 + ### Minor Changes 1341 + 1342 + - [#790](https://github.com/hey-api/openapi-ts/pull/790) [`68c3921`](https://github.com/hey-api/openapi-ts/commit/68c3921fd6e9a5db41ebd9f06e4f3ef6e64ab051) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: allow bundling standalone clients with `client.bundle = true` 1343 + 1344 + ## 0.49.0 1345 + 1346 + ### Minor Changes 1347 + 1348 + - [#787](https://github.com/hey-api/openapi-ts/pull/787) [`327c5fb`](https://github.com/hey-api/openapi-ts/commit/327c5fb629f0c7b9c727da87b6bc287b8e98bcd5) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: allow filtering service endpoints with `services.filter` 1349 + 1350 + ### Patch Changes 1351 + 1352 + - [#784](https://github.com/hey-api/openapi-ts/pull/784) [`f12dccf`](https://github.com/hey-api/openapi-ts/commit/f12dccf0ae3a05badb5783354bcd093f18f3ab74) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: suffix illegal service names 1353 + 1354 + - [#786](https://github.com/hey-api/openapi-ts/pull/786) [`20759e2`](https://github.com/hey-api/openapi-ts/commit/20759e2cc52d78974fc0f78f581e9d9cb2d21ca5) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle references to schemas with illegal names 1355 + 1356 + - [#788](https://github.com/hey-api/openapi-ts/pull/788) [`ecd94f2`](https://github.com/hey-api/openapi-ts/commit/ecd94f2adab1dbe10e7a9c310d1fb6d1f170d332) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle application/x-www-form-urlencoded content in request body 1357 + 1358 + ## 0.48.3 1359 + 1360 + ### Patch Changes 1361 + 1362 + - [#781](https://github.com/hey-api/openapi-ts/pull/781) [`df3b799`](https://github.com/hey-api/openapi-ts/commit/df3b79996d47a69e4f2fdad93cea18ae1a01c419) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: use methodNameBuilder when asClass is false 1363 + 1364 + - [#782](https://github.com/hey-api/openapi-ts/pull/782) [`edfd2bd`](https://github.com/hey-api/openapi-ts/commit/edfd2bdbb64f6682ded16f6da30f88f1c113bbe0) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: allow not generating types tree with types.tree = false 1365 + 1366 + ## 0.48.2 1367 + 1368 + ### Patch Changes 1369 + 1370 + - [#746](https://github.com/hey-api/openapi-ts/pull/746) [`0448823`](https://github.com/hey-api/openapi-ts/commit/044882399d56d1532c7125df2e69cfb3b5fb4f34) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle formData parameters in generated types 1371 + 1372 + - [#742](https://github.com/hey-api/openapi-ts/pull/742) [`efc30f4`](https://github.com/hey-api/openapi-ts/commit/efc30f4a2327b165b62f8467c68351a8bf94ffe5) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: ignore services.asClass setting for named clients 1373 + 1374 + - [#744](https://github.com/hey-api/openapi-ts/pull/744) [`1e9edde`](https://github.com/hey-api/openapi-ts/commit/1e9edde54abd8978405f91b821c99b97f067d566) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: improve default response type detection 1375 + 1376 + - [#745](https://github.com/hey-api/openapi-ts/pull/745) [`342772a`](https://github.com/hey-api/openapi-ts/commit/342772a560378c6718d25c29871eeab9a72c62a6) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle properties in one-of composition 1377 + 1378 + ## 0.48.1 1379 + 1380 + ### Patch Changes 1381 + 1382 + - [#734](https://github.com/hey-api/openapi-ts/pull/734) [`1f52b26`](https://github.com/hey-api/openapi-ts/commit/1f52b260807531edb2c14003473ea4907007ecdb) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: generate service types when types are enabled, even if services are disabled 1383 + 1384 + - [#737](https://github.com/hey-api/openapi-ts/pull/737) [`0537fe8`](https://github.com/hey-api/openapi-ts/commit/0537fe8682a93cc95d7637d643db4b9780318ea1) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: support custom config file path 1385 + 1386 + - [#736](https://github.com/hey-api/openapi-ts/pull/736) [`8410046`](https://github.com/hey-api/openapi-ts/commit/8410046c45d25db48ba940a0c6c7a7cda9e86b6a) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle async response transformers 1387 + 1388 + ## 0.48.0 1389 + 1390 + ### Minor Changes 1391 + 1392 + - [#696](https://github.com/hey-api/openapi-ts/pull/696) [`917405f`](https://github.com/hey-api/openapi-ts/commit/917405fcdcb2e978df693eb51720afa6fcf914e2) Thanks [@anchan828](https://github.com/anchan828)! - feat: pass the Operation object to methodNameBuilder 1393 + 1394 + ### Patch Changes 1395 + 1396 + - [#708](https://github.com/hey-api/openapi-ts/pull/708) [`36cf95d`](https://github.com/hey-api/openapi-ts/commit/36cf95d319b175149d3b3ecc382b8d739186e658) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: make getHeaders() accept generic 1397 + 1398 + - [#712](https://github.com/hey-api/openapi-ts/pull/712) [`6a5b96b`](https://github.com/hey-api/openapi-ts/commit/6a5b96b59e4248f2acaf5422be262edde97427dd) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle void responses in transformers 1399 + 1400 + ## 0.47.2 1401 + 1402 + ### Patch Changes 1403 + 1404 + - [#701](https://github.com/hey-api/openapi-ts/pull/701) [`1081bbf`](https://github.com/hey-api/openapi-ts/commit/1081bbf5082450c18547dac4737ecc0e312cdd0e) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: add initial implementation of prefixItems 1405 + 1406 + ## 0.47.1 1407 + 1408 + ### Patch Changes 1409 + 1410 + - [#690](https://github.com/hey-api/openapi-ts/pull/690) [`1017ace`](https://github.com/hey-api/openapi-ts/commit/1017acee80630d84a08bd8f0087c8fb0de270f1a) Thanks [@Nick-Lucas](https://github.com/Nick-Lucas)! - Fix an issue where transforms for endpoints with array returns were not generated correctly 1411 + 1412 + ## 0.47.0 1413 + 1414 + ### Minor Changes 1415 + 1416 + - [#685](https://github.com/hey-api/openapi-ts/pull/685) [`8ca3e5e`](https://github.com/hey-api/openapi-ts/commit/8ca3e5e2990bc07ce0bac902245d08b67b6621e8) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: add initial support for response transformers (string -> Date) 1417 + 1418 + - [#663](https://github.com/hey-api/openapi-ts/pull/663) [`e01c612`](https://github.com/hey-api/openapi-ts/commit/e01c61213e266afad5e3b159682b05957aac6534) Thanks [@Stono](https://github.com/Stono)! - Add support for customizing method names with `services.methodNameBuilder()` 1419 + 1420 + ## 0.46.3 1421 + 1422 + ### Patch Changes 1423 + 1424 + - [#594](https://github.com/hey-api/openapi-ts/pull/594) [`9878381`](https://github.com/hey-api/openapi-ts/commit/98783811e0c90705ddac2cc5e54c524aae634865) Thanks [@SimenB](https://github.com/SimenB)! - Add explicit type annotations to `Interceptors` 1425 + 1426 + This allows the generated code to work with TypeScript 5.5's new `isolatedDeclarations` configuration. 1427 + 1428 + - [#635](https://github.com/hey-api/openapi-ts/pull/635) [`0b09940`](https://github.com/hey-api/openapi-ts/commit/0b0994050dbcb6c17e8b78ca1c77738fc8e0d498) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle 1XX response status codes 1429 + 1430 + - [#636](https://github.com/hey-api/openapi-ts/pull/636) [`498f459`](https://github.com/hey-api/openapi-ts/commit/498f45979b91bf93b319413c60492af94a08df48) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: improve default response status code classification 1431 + 1432 + ## 0.46.2 1433 + 1434 + ### Patch Changes 1435 + 1436 + - fix: do not transform property names for standalone clients ([#616](https://github.com/hey-api/openapi-ts/pull/616)) 1437 + 1438 + ## 0.46.1 1439 + 1440 + ### Patch Changes 1441 + 1442 + - fix: handle application/json content type in parameter definitions ([#614](https://github.com/hey-api/openapi-ts/pull/614)) 1443 + 1444 + ## 0.46.0 1445 + 1446 + ### Minor Changes 1447 + 1448 + - feat: tree-shakeable services ([#602](https://github.com/hey-api/openapi-ts/pull/602)) 1449 + 1450 + ## 0.45.1 1451 + 1452 + ### Patch Changes 1453 + 1454 + - fix: use generated types in request object instead of inlined duplicated params ([#582](https://github.com/hey-api/openapi-ts/pull/582)) 1455 + 1456 + ## 0.45.0 1457 + 1458 + ### Minor Changes 1459 + 1460 + - feat: remove client inference ([#569](https://github.com/hey-api/openapi-ts/pull/569)) 1461 + 1462 + ### Patch Changes 1463 + 1464 + - fix: deduplicate inlined enums ([#573](https://github.com/hey-api/openapi-ts/pull/573)) 1465 + 1466 + - fix: generate correct optional key in types when using positional arguments (useOptions: false) ([#572](https://github.com/hey-api/openapi-ts/pull/572)) 1467 + 1468 + ## 0.44.0 1469 + 1470 + ### Minor Changes 1471 + 1472 + - feat: move format and lint config options to output object ([#546](https://github.com/hey-api/openapi-ts/pull/546)) 1473 + 1474 + ### Patch Changes 1475 + 1476 + - fix: comment position in JavaScript enums ([#544](https://github.com/hey-api/openapi-ts/pull/544)) 1477 + 1478 + - fix: export inlined enums from components ([#563](https://github.com/hey-api/openapi-ts/pull/563)) 1479 + 1480 + - fix: remove unused enums option from CLI ([#565](https://github.com/hey-api/openapi-ts/pull/565)) 1481 + 1482 + - fix: Support typescript in peerDependencies ([#551](https://github.com/hey-api/openapi-ts/pull/551)) 1483 + 1484 + ## 0.43.2 1485 + 1486 + ### Patch Changes 1487 + 1488 + - fix: deduplicate exported data and response types ([#538](https://github.com/hey-api/openapi-ts/pull/538)) 1489 + 1490 + ## 0.43.1 1491 + 1492 + ### Patch Changes 1493 + 1494 + - fix: use optional chaining in bin catch block ([#528](https://github.com/hey-api/openapi-ts/pull/528)) 1495 + 1496 + - fix: broken encoding ([#532](https://github.com/hey-api/openapi-ts/pull/532)) 1497 + 1498 + - fix(parser): handle type array ([#533](https://github.com/hey-api/openapi-ts/pull/533)) 1499 + 1500 + ## 0.43.0 1501 + 1502 + ### Minor Changes 1503 + 1504 + - feat: remove enum postfix, use typescript enums in types when generated, export enums from types.gen.ts ([#498](https://github.com/hey-api/openapi-ts/pull/498)) 1505 + 1506 + ### Patch Changes 1507 + 1508 + - fix: negative numbers in numeric enums ([#470](https://github.com/hey-api/openapi-ts/pull/470)) 1509 + 1510 + - fix: escape keys in schemas starting with digit but containing non-digit characters ([#502](https://github.com/hey-api/openapi-ts/pull/502)) 1511 + 1512 + - fix: issue causing code to not generate (t.filter is not a function) ([#507](https://github.com/hey-api/openapi-ts/pull/507)) 1513 + 1514 + - fix: handle additional properties union ([#499](https://github.com/hey-api/openapi-ts/pull/499)) 1515 + 1516 + - fix: do not export inline enums ([#508](https://github.com/hey-api/openapi-ts/pull/508)) 1517 + 1518 + - fix: prefix parameter type exports to avoid conflicts ([#501](https://github.com/hey-api/openapi-ts/pull/501)) 1519 + 1520 + - fix: export operation data and response types ([#500](https://github.com/hey-api/openapi-ts/pull/500)) 1521 + 1522 + - fix: handle cases where packages are installed globally ([#471](https://github.com/hey-api/openapi-ts/pull/471)) 1523 + 1524 + - fix: handle cases where package.json does not exist ([#471](https://github.com/hey-api/openapi-ts/pull/471)) 1525 + 1526 + ## 0.42.1 1527 + 1528 + ### Patch Changes 1529 + 1530 + - fix: properly set formData and body when using options ([#461](https://github.com/hey-api/openapi-ts/pull/461)) 1531 + 1532 + ## 0.42.0 1533 + 1534 + ### Minor Changes 1535 + 1536 + - change: config option `lint: true` has changed to `lint: 'eslint'` ([#455](https://github.com/hey-api/openapi-ts/pull/455)) 1537 + 1538 + - change: disable formatting with prettier by default ([#457](https://github.com/hey-api/openapi-ts/pull/457)) 1539 + 1540 + - feat: add support for biomejs as a formatter ([#455](https://github.com/hey-api/openapi-ts/pull/455)) 1541 + 1542 + - feat: move operationId config option to services object ([#441](https://github.com/hey-api/openapi-ts/pull/441)) 1543 + 1544 + - feat: add operation error type mappings ([#442](https://github.com/hey-api/openapi-ts/pull/442)) 1545 + 1546 + - feat: add support for biomejs as a linter ([#455](https://github.com/hey-api/openapi-ts/pull/455)) 1547 + 1548 + - change: config option `format: true` has changed to `format: 'prettier'` ([#455](https://github.com/hey-api/openapi-ts/pull/455)) 1549 + 1550 + ### Patch Changes 1551 + 1552 + - fix: do not destructure data when using use options ([#450](https://github.com/hey-api/openapi-ts/pull/450)) 1553 + 1554 + - feat: automatically handle dates in query string ([#443](https://github.com/hey-api/openapi-ts/pull/443)) 1555 + 1556 + - fix: only remove core directory when export core is true ([#449](https://github.com/hey-api/openapi-ts/pull/449)) 1557 + 1558 + - fix: add jsdoc comments with use options ([#439](https://github.com/hey-api/openapi-ts/pull/439)) 1559 + 1560 + ## 0.41.0 1561 + 1562 + ### Minor Changes 1563 + 1564 + - feat: add form type option for schemas ([#433](https://github.com/hey-api/openapi-ts/pull/433)) 1565 + 1566 + - feat: replace useDateType with option in types object ([#435](https://github.com/hey-api/openapi-ts/pull/435)) 1567 + 1568 + - feat: replace serviceResponse with option in services object ([#434](https://github.com/hey-api/openapi-ts/pull/434)) 1569 + 1570 + - feat: replace postfixServices with configuration object ([#430](https://github.com/hey-api/openapi-ts/pull/430)) 1571 + 1572 + ### Patch Changes 1573 + 1574 + - fix: properly escape backticks in template literals ([#431](https://github.com/hey-api/openapi-ts/pull/431)) 1575 + 1576 + - fix: transform names of referenced types ([#422](https://github.com/hey-api/openapi-ts/pull/422)) 1577 + 1578 + - fix: use config interceptors passed to constructor when using named client ([#432](https://github.com/hey-api/openapi-ts/pull/432)) 1579 + 1580 + - fix: properly escape expressions in template literals ([#431](https://github.com/hey-api/openapi-ts/pull/431)) 1581 + 1582 + - fix: do not export common properties as schemas ([#424](https://github.com/hey-api/openapi-ts/pull/424)) 1583 + 1584 + ## 0.40.2 1585 + 1586 + ### Patch Changes 1587 + 1588 + - fix: unhandled SyntaxKind unknown when specification has numeric enums ([#417](https://github.com/hey-api/openapi-ts/pull/417)) 1589 + 1590 + ## 0.40.1 1591 + 1592 + ### Patch Changes 1593 + 1594 + - fix: revert to generating commonjs for esm and commonjs support ([#409](https://github.com/hey-api/openapi-ts/pull/409)) 1595 + 1596 + ## 0.40.0 1597 + 1598 + ### Minor Changes 1599 + 1600 + - feat: allow choosing naming convention for types ([#402](https://github.com/hey-api/openapi-ts/pull/402)) 1601 + 1602 + ### Patch Changes 1603 + 1604 + - fix: rename exportModels to types ([#402](https://github.com/hey-api/openapi-ts/pull/402)) 1605 + 1606 + - fix: rename models.gen.ts to types.gen.ts ([#399](https://github.com/hey-api/openapi-ts/pull/399)) 1607 + 1608 + - fix: export enums from index.ts ([#399](https://github.com/hey-api/openapi-ts/pull/399)) 1609 + 1610 + ## 0.39.0 1611 + 1612 + ### Minor Changes 1613 + 1614 + - feat: rename generated files ([#363](https://github.com/hey-api/openapi-ts/pull/363)) 1615 + 1616 + - feat: add JSON-LD to content parsing ([#390](https://github.com/hey-api/openapi-ts/pull/390)) 1617 + 1618 + - fix: generate enums into their own file ([#358](https://github.com/hey-api/openapi-ts/pull/358)) 1619 + 1620 + ### Patch Changes 1621 + 1622 + - fix: remove file if no contents to write to it ([#373](https://github.com/hey-api/openapi-ts/pull/373)) 1623 + 1624 + - fix: eslint properly fixes output ([#375](https://github.com/hey-api/openapi-ts/pull/375)) 1625 + 1626 + - fix: invalid typescript Record generated with circular dependencies ([#374](https://github.com/hey-api/openapi-ts/pull/374)) 1627 + 1628 + - fix: prefer unknown type over any ([#392](https://github.com/hey-api/openapi-ts/pull/392)) 1629 + 1630 + - fix: only delete generated files instead of whole output directory ([#362](https://github.com/hey-api/openapi-ts/pull/362)) 1631 + 1632 + - fix: handle decoding models with `%` in description ([#360](https://github.com/hey-api/openapi-ts/pull/360)) 1633 + 1634 + - fix: throw error when typescript is missing ([#366](https://github.com/hey-api/openapi-ts/pull/366)) 1635 + 1636 + ## 0.38.1 1637 + 1638 + ### Patch Changes 1639 + 1640 + - fix: inconsistent indentation in models file when not using `format: true` ([#349](https://github.com/hey-api/openapi-ts/pull/349)) 1641 + 1642 + - fix: output path no longer required to be within cwd ([#353](https://github.com/hey-api/openapi-ts/pull/353)) 1643 + 1644 + ## 0.38.0 1645 + 1646 + ### Minor Changes 1647 + 1648 + - fix: rename write to dryRun and invert value ([#326](https://github.com/hey-api/openapi-ts/pull/326)) 1649 + 1650 + ### Patch Changes 1651 + 1652 + - fix: generate constant size array types properly ([#345](https://github.com/hey-api/openapi-ts/pull/345)) 1653 + 1654 + - fix: support x-enumNames for custom enum names ([#334](https://github.com/hey-api/openapi-ts/pull/334)) 1655 + 1656 + - fix: export service types from single namespace ([#341](https://github.com/hey-api/openapi-ts/pull/341)) 1657 + 1658 + - fix: generate models with proper indentation when formatting is false ([#340](https://github.com/hey-api/openapi-ts/pull/340)) 1659 + 1660 + - fix: log errors to file ([#329](https://github.com/hey-api/openapi-ts/pull/329)) 1661 + 1662 + - fix: cleanup some styling issues when generating client without formatting ([#330](https://github.com/hey-api/openapi-ts/pull/330)) 1663 + 1664 + ## 0.37.3 1665 + 1666 + ### Patch Changes 1667 + 1668 + - fix: do not ignore additionalProperties when object with properties object ([#323](https://github.com/hey-api/openapi-ts/pull/323)) 1669 + 1670 + ## 0.37.2 1671 + 1672 + ### Patch Changes 1673 + 1674 + - fix: escape schema names ([#317](https://github.com/hey-api/openapi-ts/pull/317)) 1675 + 1676 + - fix: escape backticks in strings starting with backtick ([#315](https://github.com/hey-api/openapi-ts/pull/315)) 1677 + 1678 + ## 0.37.1 1679 + 1680 + ### Patch Changes 1681 + 1682 + - fix: ensure strings with both single/double quotes and backticks are escaped properly ([#310](https://github.com/hey-api/openapi-ts/pull/310)) ([#310](https://github.com/hey-api/openapi-ts/pull/310)) 1683 + 1684 + ## 0.37.0 1685 + 1686 + ### Minor Changes 1687 + 1688 + - remove: `generics` as valid option for serviceResponse ([#299](https://github.com/hey-api/openapi-ts/pull/299)) 1689 + 1690 + ### Patch Changes 1691 + 1692 + - fix: escape dollar sign in operation names ([#307](https://github.com/hey-api/openapi-ts/pull/307)) 1693 + 1694 + ## 0.36.2 1695 + 1696 + ### Patch Changes 1697 + 1698 + - fix: move service types into models file ([#292](https://github.com/hey-api/openapi-ts/pull/292)) 1699 + 1700 + ## 0.36.1 1701 + 1702 + ### Patch Changes 1703 + 1704 + - fix: do not throw when failing to decode URI ([#296](https://github.com/hey-api/openapi-ts/pull/296)) 1705 + 1706 + ## 0.36.0 1707 + 1708 + ### Minor Changes 1709 + 1710 + - feat: export schemas directly from OpenAPI specification (ie. support exporting JSON schemas draft 2020-12 ([#285](https://github.com/hey-api/openapi-ts/pull/285)) 1711 + 1712 + ### Patch Changes 1713 + 1714 + - fix(config): rename exportSchemas to schemas ([#288](https://github.com/hey-api/openapi-ts/pull/288)) 1715 + 1716 + ## 0.35.0 1717 + 1718 + ### Minor Changes 1719 + 1720 + - fix(config): remove postfixModels option ([#266](https://github.com/hey-api/openapi-ts/pull/266)) 1721 + 1722 + - fix(client): do not send default params ([#267](https://github.com/hey-api/openapi-ts/pull/267)) 1723 + 1724 + ### Patch Changes 1725 + 1726 + - fix(api): use TypeScript Compiler API to create schemas ([#271](https://github.com/hey-api/openapi-ts/pull/271)) 1727 + 1728 + - fix(client): export APIResult when using serviceResponse as 'response' ([#283](https://github.com/hey-api/openapi-ts/pull/283)) 1729 + 1730 + - fix(parser): use only isRequired to determine if field is required ([#264](https://github.com/hey-api/openapi-ts/pull/264)) 1731 + 1732 + ## 0.34.5 1733 + 1734 + ### Patch Changes 1735 + 1736 + - fix(client): access service data type in namespace properly ([#258](https://github.com/hey-api/openapi-ts/pull/258)) 1737 + 1738 + ## 0.34.4 1739 + 1740 + ### Patch Changes 1741 + 1742 + - fix(client): namespace service data types ([#246](https://github.com/hey-api/openapi-ts/pull/246)) 1743 + 1744 + ## 0.34.3 1745 + 1746 + ### Patch Changes 1747 + 1748 + - fix(docs): link to docs hosted on vercel ([#244](https://github.com/hey-api/openapi-ts/pull/244)) 1749 + 1750 + ## 0.34.2 1751 + 1752 + ### Patch Changes 1753 + 1754 + - docs(readme): update broken contributing link ([#236](https://github.com/hey-api/openapi-ts/pull/236)) 1755 + 1756 + - fix(config): support ts config files and `defineConfig` syntax ([`0c92222ab74bb7d2391d49587760db9ea9228d5a`](https://github.com/hey-api/openapi-ts/commit/0c92222ab74bb7d2391d49587760db9ea9228d5a)) 1757 + 1758 + ## 0.34.1 1759 + 1760 + ### Patch Changes 1761 + 1762 + - fix(docs): ensure README is shown on NPMJS ([#229](https://github.com/hey-api/openapi-ts/pull/229)) 1763 + 1764 + ## 0.34.0 1765 + 1766 + ### Minor Changes 1767 + 1768 + - feat(client): generate all services in single `services.ts` file ([#215](https://github.com/hey-api/openapi-ts/pull/215)) 1769 + 1770 + - feat(schema): add support for default values ([#197](https://github.com/hey-api/openapi-ts/pull/197)) 1771 + 1772 + - feat(schema): add array of enum values for enums ([#197](https://github.com/hey-api/openapi-ts/pull/197)) 1773 + 1774 + ### Patch Changes 1775 + 1776 + - fix(axios): use builtin form data to ensure blob form data works in node environment ([#211](https://github.com/hey-api/openapi-ts/pull/211)) 1777 + 1778 + - fix(enum): append index number on duplicate name ([#220](https://github.com/hey-api/openapi-ts/pull/220)) 1779 + 1780 + ## 0.33.2 1781 + 1782 + ### Patch Changes 1783 + 1784 + - fix(axios): properly type content-type headers assignment ([#206](https://github.com/hey-api/openapi-ts/pull/206)) 1785 + 1786 + ## 0.33.1 1787 + 1788 + ### Patch Changes 1789 + 1790 + - fix(axios): set content type to multipart/form-data when using form data ([#204](https://github.com/hey-api/openapi-ts/pull/204)) 1791 + 1792 + ## 0.33.0 1793 + 1794 + ### Minor Changes 1795 + 1796 + - feat(fetch): detect form data repsonses properly ([#195](https://github.com/hey-api/openapi-ts/pull/195)) 1797 + 1798 + - feat(fetch): add application/octet-stream, application/pdf, and application/zip as binary response types ([#195](https://github.com/hey-api/openapi-ts/pull/195)) 1799 + 1800 + ### Patch Changes 1801 + 1802 + - fix(client): do not create or export empty files ([#200](https://github.com/hey-api/openapi-ts/pull/200)) 1803 + 1804 + - client(angular/fetch/xhr): detect all application/json or +json as JSON ([#195](https://github.com/hey-api/openapi-ts/pull/195)) 1805 + 1806 + ## 0.32.1 1807 + 1808 + ### Patch Changes 1809 + 1810 + - fix(schema): allow minimums/maximums to be 0 ([#194](https://github.com/hey-api/openapi-ts/pull/194)) 1811 + 1812 + - fix(axios): let axios handle serializing form data ([#192](https://github.com/hey-api/openapi-ts/pull/192)) 1813 + 1814 + ## 0.32.0 1815 + 1816 + ### Minor Changes 1817 + 1818 + - Support all HTTP error codes ([#188](https://github.com/hey-api/openapi-ts/pull/188)) 1819 + 1820 + - Use File or Blob type for binary types ([#186](https://github.com/hey-api/openapi-ts/pull/186)) 1821 + 1822 + - Check value instanceof Blob when using isBlob ([#186](https://github.com/hey-api/openapi-ts/pull/186)) 1823 + 1824 + ### Patch Changes 1825 + 1826 + - fix(cli): properly handle booleans ([#190](https://github.com/hey-api/openapi-ts/pull/190)) 1827 + 1828 + - Attempt to use body type as content type when sending Blob in node client ([#185](https://github.com/hey-api/openapi-ts/pull/185)) 1829 + 1830 + - fix(api): add experimental flag ([#191](https://github.com/hey-api/openapi-ts/pull/191)) 1831 + 1832 + ## 0.31.1 1833 + 1834 + ### Patch Changes 1835 + 1836 + - merge enums and useLegacyEnums into one option ([#178](https://github.com/hey-api/openapi-ts/pull/178)) 1837 + 1838 + - use FormData from node-fetch in node client ([#173](https://github.com/hey-api/openapi-ts/pull/173)) 1839 + 1840 + ## 0.31.0 1841 + 1842 + ### Minor Changes 1843 + 1844 + - Import all required models for a service in one import ([#172](https://github.com/hey-api/openapi-ts/pull/172)) 1845 + 1846 + - generate all models in single `models.ts` file ([#168](https://github.com/hey-api/openapi-ts/pull/168)) 1847 + 1848 + - generate all schemas in single `schemas.ts` file ([#168](https://github.com/hey-api/openapi-ts/pull/168)) 1849 + 1850 + ### Patch Changes 1851 + 1852 + - fix async response interceptors when using angular client ([#167](https://github.com/hey-api/openapi-ts/pull/167)) 1853 + 1854 + - fix deprecation warning on `throwError` in Angular client ([#167](https://github.com/hey-api/openapi-ts/pull/167)) 1855 + 1856 + - Do not create or export CancelablePromise when using Angular client ([#167](https://github.com/hey-api/openapi-ts/pull/167)) 1857 + 1858 + - Fix issue causing type error when targeting lower than ES2015 ([#171](https://github.com/hey-api/openapi-ts/pull/171)) 1859 + 1860 + - fix various warnings in generated client code ([#164](https://github.com/hey-api/openapi-ts/pull/164)) 1861 + 1862 + - fix providing interceptors in Angular client ([#167](https://github.com/hey-api/openapi-ts/pull/167)) 1863 + 1864 + ## 0.30.0 1865 + 1866 + ### Minor Changes 1867 + 1868 + - add support for interceptors ([#153](https://github.com/hey-api/openapi-ts/pull/153)) 1869 + 1870 + ## 0.29.2 1871 + 1872 + ### Patch Changes 1873 + 1874 + - Fix export types as type only when using useLegacyEnums ([#160](https://github.com/hey-api/openapi-ts/pull/160)) 1875 + 1876 + ## 0.29.1 1877 + 1878 + ### Patch Changes 1879 + 1880 + - Properly export enums when using useLegacyEnums ([#158](https://github.com/hey-api/openapi-ts/pull/158)) 1881 + 1882 + ## 0.29.0 1883 + 1884 + ### Minor Changes 1885 + 1886 + - Add useLegacyEnums options to generate TypeScript enums ([#147](https://github.com/hey-api/openapi-ts/pull/147)) 1887 + 1888 + ## 0.28.0 1889 + 1890 + ### Minor Changes 1891 + 1892 + - Add `index.ts` file to models, schemas, and services ([#137](https://github.com/hey-api/openapi-ts/pull/137)) 1893 + 1894 + ## 0.27.39 1895 + 1896 + ### Patch Changes 1897 + 1898 + - Warn users about missing dependencies used in the generated client ([#124](https://github.com/hey-api/openapi-ts/pull/124)) 1899 + 1900 + - Use AbortController in Axios client instead of deprecated CancelToken ([#124](https://github.com/hey-api/openapi-ts/pull/124)) 1901 + 1902 + ## 0.27.38 1903 + 1904 + ### Minor Changes 1905 + 1906 + - Make useOptions default to true 1907 + 1908 + ## 0.27.37 1909 + 1910 + ### Minor Changes 1911 + 1912 + - Fix import error in generated Node client 1913 + 1914 + - Update package dependencies 1915 + 1916 + - Use engine-strict in .npmrc 1917 + 1918 + ## 0.27.36 1919 + 1920 + ### Minor Changes 1921 + 1922 + - Handle falsy values in header 1923 + 1924 + - Export schemas by default 1925 + 1926 + ## 0.27.35 1927 + 1928 + ### Minor Changes 1929 + 1930 + - Update all project dependencies 1931 + 1932 + - Discard only null or undefined in query string 1933 + 1934 + ## 0.27.34 1935 + 1936 + ### Minor Changes 1937 + 1938 + - Add flag for linting generated code (default: false) 1939 + 1940 + - Add flag for formatting generated code (default: true) 1941 + 1942 + ## 0.27.33 1943 + 1944 + ### Minor Changes 1945 + 1946 + - Auto format with Eslint if available 1947 + 1948 + - Add types for programmatic API 1949 + 1950 + ## 0.27.32 1951 + 1952 + ### Minor Changes 1953 + 1954 + - Rename Config type to UserConfig 1955 + 1956 + - Pass arguments in correct order in Angular client 1957 + 1958 + ## 0.27.31 1959 + 1960 + ### Minor Changes 1961 + 1962 + - Add support for openapi-ts.config.js file 1963 + 1964 + - Use built-in flat map 1965 + 1966 + ## 0.27.30 1967 + 1968 + ### Minor Changes 1969 + 1970 + - Prefer unknown instead of any in generated client 1971 + 1972 + ## 0.27.29 1973 + 1974 + ### Minor Changes 1975 + 1976 + - Rename openapi command to openapi-ts 1977 + 1978 + - Add basic support for response that are Blobs 1979 + 1980 + ## 0.27.28 1981 + 1982 + ### Minor Changes 1983 + 1984 + - Generate enums as JavaScript objects 1985 + 1986 + - Use shorthand object properties in service calls 1987 + 1988 + ## 0.27.27 1989 + 1990 + ### Minor Changes 1991 + 1992 + - Handle cases where a project does not have dependencies when checking to run Prettier 1993 + 1994 + ## 0.27.26 1995 + 1996 + ### Minor Changes 1997 + 1998 + - Skip global parameters if they are duplicates of path parameters 1999 + 2000 + - remove option to indent code 2001 + 2002 + ## 0.27.25 2003 + 2004 + ### Minor Changes 2005 + 2006 + - Correctly set content-type header, even when body is falsy 2007 + 2008 + ## 0.27.24 2009 + 2010 + ### Minor Changes 2011 + 2012 + - Remove union types flag (this is now default) 2013 + 2014 + ## 0.27.23 2015 + 2016 + ### Minor Changes 2017 + 2018 + - Support printing exact arrays 2019 + 2020 + ## 0.27.22 2021 + 2022 + ### Minor Changes 2023 + 2024 + - Add option to specify custom base path 2025 + 2026 + - Fix spacing in cancelable promise 2027 + 2028 + ## 0.27.21 2029 + 2030 + ### Minor Changes 2031 + 2032 + - Add explicit flags for generics 2033 + 2034 + ## 0.27.20 2035 + 2036 + ### Minor Changes 2037 + 2038 + - Do not require type to be set for object properties 2039 + 2040 + ## 0.27.19 2041 + 2042 + ### Minor Changes 2043 + 2044 + - Do not insert generics into custom client 2045 + 2046 + ## 0.27.18 2047 + 2048 + ### Minor Changes 2049 + 2050 + - Support returning raw result object 2051 + 2052 + - Allow passing config 2053 + 2054 + ## 0.27.17 2055 + 2056 + ### Minor Changes 2057 + 2058 + - Generate nullable interface when isNullable is true 2059 + 2060 + ## 0.27.16 2061 + 2062 + ### Minor Changes 2063 + 2064 + - Generate types for services when useOptions is true 2065 + 2066 + ## 0.27.15 2067 + 2068 + ### Minor Changes 2069 + 2070 + - Fix wrong path on Windows 2071 + 2072 + ## 0.27.14 2073 + 2074 + ### Minor Changes 2075 + 2076 + - Change imports to match project style 2077 + 2078 + ## 0.27.13 2079 + 2080 + ### Minor Changes 2081 + 2082 + - Support printing Date instead of string for date-time formats in models 2083 + 2084 + ## 0.27.12 2085 + 2086 + ### Minor Changes 2087 + 2088 + - Escape enum name when exported 2089 + 2090 + ## 0.27.11 2091 + 2092 + ### Minor Changes 2093 + 2094 + - Fix typo in template header 2095 + 2096 + ## 0.27.10 2097 + 2098 + ### Minor Changes 2099 + 2100 + - Escape newlines when outputting pattern string value in schemas 2101 + 2102 + ## 0.27.9 2103 + 2104 + ### Minor Changes 2105 + 2106 + - Start passing options object instead of positional parameters 2107 + 2108 + - Handle composition of any-of and properties 2109 + 2110 + - Allow ignoring operation ID when generating operation names 2111 + 2112 + - Propagate useVersionId to Swagger V2 parser 2113 + 2114 + - Change --ingoreOperationId to --useOperationId 2115 + 2116 + ## 0.27.8 2117 + 2118 + ### Minor Changes 2119 + 2120 + - Support non-ascii (unicode) characters in service name, operation name, and parameter name 2121 + 2122 + ## 0.27.7 2123 + 2124 + ### Minor Changes 2125 + 2126 + - Bump dependencies 2127 + 2128 + ## 0.27.6 2129 + 2130 + ### Minor Changes 2131 + 2132 + - Allow overriding request body name with x-body-name key 2133 + 2134 + ## 0.27.5 2135 + 2136 + ### Minor Changes 2137 + 2138 + - Type additional properties with properties 2139 + 2140 + - Parse array items only if parent definition has type 2141 + 2142 + ## 0.27.4 2143 + 2144 + ### Minor Changes 2145 + 2146 + - Bump dependencies 2147 + 2148 + ## 0.27.3 2149 + 2150 + ### Minor Changes 2151 + 2152 + - Support autoformat option flag 2153 + 2154 + - Handle more cases of any-of 2155 + 2156 + - Support regexp to select models to export 2157 + 2158 + - Return optional success response on 204 status code 2159 + 2160 + - Fix nested any-of 2161 + 2162 + - Add const support 2163 + 2164 + ## 0.27.0 2165 + 2166 + ### Minor Changes 2167 + 2168 + - Reverted `@apidevtools/json-schema-ref-parser` to version 10.1.0 2169 + 2170 + ## 0.26.0 2171 + 2172 + ### Minor Changes 2173 + 2174 + - Upgraded dependencies 2175 + 2176 + ## 0.25.0 2177 + 2178 + ### Minor Changes 2179 + 2180 + - Upgraded dependencies 2181 + - Allow usage of a custom axios instance 2182 + - Added message in generated files 2183 + 2184 + ## 0.24.0 2185 + 2186 + ### Minor Changes 2187 + 2188 + - Upgraded dependencies 2189 + - Fixed issue with Cancelable promise 2190 + - Fixed issue with escaping reserved keywords in schema names 2191 + - Added `--postfixModels` option 2192 + 2193 + ## 0.23.0 2194 + 2195 + ### Minor Changes 2196 + 2197 + - Upgraded dependencies 2198 + - Added blank line at the end of generated files 2199 + - Added support for Node.js v12 2200 + - Added `request` property inside `ApiError` 2201 + - Added support for `@depricated` inside models and operations 2202 + 2203 + ## 0.22.0 2204 + 2205 + ### Minor Changes 2206 + 2207 + - Upgraded dependencies 2208 + - Fixed issue with `null` value inside comments for OpenAPI v2 enums 2209 + - Fixed issue with compatibility for latest version of Axios (0.27.x) 2210 + - Removed deprecated enum model generation 2211 + 2212 + ## 0.21.0 2213 + 2214 + ### Minor Changes 2215 + 2216 + - Return `undefined` to match `noImplicitReturns` rule 2217 + - Made `BaseHttpRequest` class abstract 2218 + - Removed private fields using `#` inside `CancelablePromise` 2219 + - Removed unneeded import `AbortController` from `node-fetch` client 2220 + - Filter out wrong enum values 2221 + 2222 + ## 0.20.1 2223 + 2224 + ### Patch Changes 2225 + 2226 + - Support enums with single quotes in names for V2 2227 + 2228 + ## 0.20.0 2229 + 2230 + ### Minor Changes 2231 + 2232 + - Updated dependencies 2233 + - Support enums with single quotes in names for V3 2234 + - Generating better names when `operationId` is not given (breaking change) 2235 + - Fixed issue where `x-enum` flags where breaking due to non-string values 2236 + 2237 + ## 0.19.0 2238 + 2239 + ### Minor Changes 2240 + 2241 + - Support for Angular client with `--name` option 2242 + - Added test cases for Angular client 2243 + 2244 + ## 0.18.2 2245 + 2246 + ### Patch Changes 2247 + 2248 + - Updated dependencies 2249 + - Fixed type definition 2250 + - Added test cases for CLI commands 2251 + - Added test cases for query parsing 2252 + 2253 + ## 0.18.1 2254 + 2255 + ### Patch Changes 2256 + 2257 + - Escaping error description 2258 + - Made `Client.request` and `BaseHttpRequest.config` props public 2259 + 2260 + ## 0.18.0 2261 + 2262 + ### Minor Changes 2263 + 2264 + - Angular client generation! 2265 + - Updated documentation with more examples and better descriptions 2266 + 2267 + ## 0.17.0 2268 + 2269 + ### Minor Changes 2270 + 2271 + - Shorthand notation for properties passed through constructor 2272 + - Simplified creation of headers 2273 + - Prepare codebase for Angular client 2274 + 2275 + ## 0.16.2 2276 + 2277 + ### Patch Changes 2278 + 2279 + - Removed dependency on `URLSearchParams` to support browser and node without any additional imports 2280 + 2281 + ## 0.16.1 2282 + 2283 + ### Patch Changes 2284 + 2285 + - Correct export inside `index.ts` when giving a custom name 2286 + 2287 + ## 0.16.0 2288 + 2289 + ### Minor Changes 2290 + 2291 + - Added option to set the indentation (spaces and tabs) 2292 + - Added option to export separate client file that allows usage for multiple backends 2293 + - Decoupled OpenAPI object from requests 2294 + - Updated dependencies 2295 + 2296 + ## 0.15.0 2297 + 2298 + ### Minor Changes 2299 + 2300 + - Added change log and releases on GitHub 2301 + 2302 + ## 0.14.0 2303 + 2304 + ### Minor Changes 2305 + 2306 + - Added missing `postfix` options to typedef 2307 + - Updated escaping of comments and descriptions 2308 + - Better handling of services without tags 2309 + - Updated dependencies 2310 + , // [!code --] 2311 + path: 'https://get.heyapi.dev/hey-api/backend', 2312 + }, 2313 + output: 'src/client', 2314 + plugins: ['@hey-api/client-fetch'], 2315 + }; 2316 + ``` 2317 + 2318 + ``` 2319 + 2320 + ### Patch Changes 2321 + 2322 + - [#2079](https://github.com/hey-api/openapi-ts/pull/2079) [`d478d8a`](https://github.com/hey-api/openapi-ts/commit/d478d8a75b2691f2a113f3fe9cf7d1ce588baa0b) Thanks [@mrlubos](https://github.com/mrlubos)! - fix(validators): generate JSDoc comments for validator schemas 2323 + 2324 + - [#2081](https://github.com/hey-api/openapi-ts/pull/2081) [`4c076ee`](https://github.com/hey-api/openapi-ts/commit/4c076ee6e302ebdb587aaf4e7064aa086fd0bc5c) Thanks [@mrlubos](https://github.com/mrlubos)! - fix(parser): handle exclusiveMinimum and exclusiveMaximum in OpenAPI 3.1.x when they're 0 2325 + 2326 + - [#2080](https://github.com/hey-api/openapi-ts/pull/2080) [`2698a40`](https://github.com/hey-api/openapi-ts/commit/2698a4095f836b23248869018b98665d0afbcde7) Thanks [@mrlubos](https://github.com/mrlubos)! - fix(sdk,axios): add responseType field when it's json so validators run by default 2327 + 3 2328 ## 0.67.6 4 2329 5 2330 ### Patch Changes
+1 -1
packages/openapi-ts/package.json
··· 1 1 { 2 2 "name": "@hey-api/openapi-ts", 3 - "version": "0.67.6", 3 + "version": "0.68.0", 4 4 "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.", 5 5 "homepage": "https://heyapi.dev/", 6 6 "repository": {