Minor Changes
-
#1324
4e62378
Thanks @mrlubos! - feat: rename Hey API pluginsRenamed
@hey-api/services
pluginThis plugin has been renamed to
@hey-api/sdk
.Changed
sdk.output
valueTo align with the updated name, the
@hey-api/sdk
plugin will generate ansdk.gen.ts
file. This will result in a breaking change if you're importing fromservices.gen.ts
. Please update your imports to reflect this change.import { client } from 'client/services.gen'; // [!code --] import { client } from 'client/sdk.gen'; // [!code ++]
Renamed
@hey-api/types
pluginThis plugin has been renamed to
@hey-api/typescript
. -
#1327
62e37d5
Thanks @mrlubos! - feat: add typescript.exportInlineEnums optionAdded
typescript.exportInlineEnums
optionBy 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
totrue
to treat inline enums as reusable components. Whentrue
, the exported enums will follow the style defined inenums
.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
totrue
. This feature works only with the experimental parser.export default { client: '@hey-api/client-fetch', experimentalParser: true, input: 'path/to/openapi.json', output: 'src/client', plugins: [ // ...other plugins { exportInlineEnums: true, // [!code ++] name: '@hey-api/typescript', }, ], };