Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 02 Dec 07:15
· 220 commits to main since this release
df7618a

Minor Changes

  • #1353 efd3e54 Thanks @mrlubos! - feat: add typescript.identifierCase option

    Added typescript.identifierCase option

    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.

    export default {
      client: '@hey-api/client-fetch',
      experimentalParser: true,
      input: 'path/to/openapi.json',
      output: 'src/client',
      plugins: [
        // ...other plugins
        {
          identifierCase: 'preserve', // [!code ++]
          name: '@hey-api/typescript',
        },
      ],
    };
  • #1360 5f6ddd7 Thanks @mrlubos! - fix: remove schemas and transformers re-exports from index.ts

    Removed schemas.gen.ts re-export

    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.

    import { mySchema } from 'client'; // [!code --]
    import { mySchema } from 'client/schemas.gen'; // [!code ++]

    Removed transformers.gen.ts re-export

    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.

    import { myTransformer } from 'client'; // [!code --]
    import { myTransformer } from 'client/transformers.gen'; // [!code ++]
  • #1360 5f6ddd7 Thanks @mrlubos! - feat: add output.clean option

    Added output.clean option

    By default, the output.path folder will be emptied on every run. To preserve the previous behavior, set output.clean to false.

    export default {
      client: '@hey-api/client-fetch',
      input: 'path/to/openapi.json',
      output: {
        clean: false, // [!code ++]
        path: 'src/client',
      },
    };
  • #1362 3bf7169 Thanks @mrlubos! - feat: add typescript.enumsCase option

Patch Changes