Releases: hey-api/openapi-ts
@hey-api/openapi-ts@0.63.2
@hey-api/openapi-ts@0.63.1
Patch Changes
@hey-api/client-nuxt@0.1.3
Patch Changes
-
#1637
2dc380e
Thanks @mrlubos! - fix: update keywords in package.json -
#1649
603541e
Thanks @mrlubos! - fix: do not run validator and transformer when response is not ok -
#1649
603541e
Thanks @mrlubos! - fix: handle BigInt in JSON body serializer -
#1646
2cbffeb
Thanks @mrlubos! - fix: remove client from Options interface -
#1646
2cbffeb
Thanks @mrlubos! - fix: export TDataShape interface -
#1649
603541e
Thanks @mrlubos! - fix: handle reactive refs in Nuxt client body
@hey-api/client-next@0.1.0
@hey-api/client-fetch@0.7.3
Patch Changes
@hey-api/client-axios@0.5.3
Patch Changes
@hey-api/openapi-ts@0.63.0
Minor Changes
-
#1626
8eba19d
Thanks @mrlubos! - feat: move clients to pluginsClient plugins
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, moveclient
options toplugins
.export default { client: '@hey-api/client-fetch', // [!code --] input: 'path/to/openapi.json', output: 'src/client', plugins: ['@hey-api/client-fetch'], // [!code ++] };
Patch Changes
-
#1626
8eba19d
Thanks @mrlubos! - fix: move sdk.throwOnError option to client.throwOnErrorMoved
sdk.throwOnError
optionThis 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.
export default { input: 'path/to/openapi.json', output: 'src/client', plugins: [ { name: '@hey-api/client-fetch', throwOnError: true, // [!code ++] }, { name: '@hey-api/sdk', throwOnError: true, // [!code --] }, ], };
-
#1626
8eba19d
Thanks @mrlubos! - fix: sdks import client from client.gen.ts instead of defining it inside the fileAdded
client.gen.ts
fileThe internal
client
instance previously located insdk.gen.ts
is now defined inclient.gen.ts
. If you're importing it in your code, update the import module.import { client } from 'client/sdk.gen'; // [!code --] import { client } from 'client/client.gen'; // [!code ++]
-
#1626
8eba19d
Thanks @mrlubos! - fix: throw if inferred plugin not found