Minor Changes
-
#1324
4e62378Thanks @mrlubos! - feat: rename Hey API pluginsRenamed
@hey-api/servicespluginThis plugin has been renamed to
@hey-api/sdk.Changed
sdk.outputvalueTo align with the updated name, the
@hey-api/sdkplugin will generate ansdk.gen.tsfile. 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/typespluginThis plugin has been renamed to
@hey-api/typescript. -
#1327
62e37d5Thanks @mrlubos! - feat: add typescript.exportInlineEnums optionAdded
typescript.exportInlineEnumsoptionBy default, inline enums (enums not defined as reusable components in the input file) will be generated only as inlined union types. You can set
exportInlineEnumstotrueto 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
exportInlineEnumstotrue. 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', }, ], };