···11----
22-'@hey-api/openapi-ts': patch
33----
44-55-fix: move sdk.throwOnError option to client.throwOnError
66-77-### Moved `sdk.throwOnError` option
88-99-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.
1010-1111-```js
1212-export default {
1313- input: 'path/to/openapi.json',
1414- output: 'src/client',
1515- plugins: [
1616- {
1717- name: '@hey-api/client-fetch',
1818- throwOnError: true, // [!code ++]
1919- },
2020- {
2121- name: '@hey-api/sdk',
2222- throwOnError: true, // [!code --]
2323- },
2424- ],
2525-};
2626-```
-14
.changeset/friendly-jars-argue.md
···11----
22-'@hey-api/openapi-ts': patch
33----
44-55-fix: sdks import client from client.gen.ts instead of defining it inside the file
66-77-### Added `client.gen.ts` file
88-99-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.
1010-1111-```js
1212-import { client } from 'client/sdk.gen'; // [!code --]
1313-import { client } from 'client/client.gen'; // [!code ++]
1414-```
-5
.changeset/happy-ladybugs-type.md
···11----
22-'@hey-api/openapi-ts': patch
33----
44-55-fix: throw if inferred plugin not found
-18
.changeset/late-moons-impress.md
···11----
22-'@hey-api/openapi-ts': minor
33----
44-55-feat: move clients to plugins
66-77-### Client plugins
88-99-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`.
1010-1111-```js
1212-export default {
1313- client: '@hey-api/client-fetch', // [!code --]
1414- input: 'path/to/openapi.json',
1515- output: 'src/client',
1616- plugins: ['@hey-api/client-fetch'], // [!code ++]
1717-};
1818-```
···11# @hey-api/openapi-ts
2233+## 0.63.0
44+55+### Minor Changes
66+77+- [#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
88+99+ ### Client plugins
1010+1111+ 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`.
1212+1313+ ```js
1414+ export default {
1515+ client: '@hey-api/client-fetch', // [!code --]
1616+ input: 'path/to/openapi.json',
1717+ output: 'src/client',
1818+ plugins: ['@hey-api/client-fetch'], // [!code ++]
1919+ };
2020+ ```
2121+2222+### Patch Changes
2323+2424+- [#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
2525+2626+ ### Moved `sdk.throwOnError` option
2727+2828+ 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.
2929+3030+ ```js
3131+ export default {
3232+ input: 'path/to/openapi.json',
3333+ output: 'src/client',
3434+ plugins: [
3535+ {
3636+ name: '@hey-api/client-fetch',
3737+ throwOnError: true, // [!code ++]
3838+ },
3939+ {
4040+ name: '@hey-api/sdk',
4141+ throwOnError: true, // [!code --]
4242+ },
4343+ ],
4444+ };
4545+ ```
4646+4747+- [#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
4848+4949+ ### Added `client.gen.ts` file
5050+5151+ 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.
5252+5353+ ```js
5454+ import { client } from 'client/sdk.gen'; // [!code --]
5555+ import { client } from 'client/client.gen'; // [!code ++]
5656+ ```
5757+5858+- [#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
5959+360## 0.62.3
461562### Patch Changes
+1-1
packages/openapi-ts/package.json
···11{
22 "name": "@hey-api/openapi-ts",
33- "version": "0.62.3",
33+ "version": "0.63.0",
44 "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
55 "homepage": "https://heyapi.dev/",
66 "repository": {