Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #1357

Merged
merged 1 commit into from
Dec 2, 2024
Merged

Version Packages #1357

merged 1 commit into from
Dec 2, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 28, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@hey-api/[email protected]

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

Copy link

stackblitz bot commented Nov 28, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

vercel bot commented Nov 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hey-api-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 2, 2024 3:31am

@github-actions github-actions bot force-pushed the changeset-release/main branch from fd8037a to 8e4f467 Compare December 2, 2024 03:30
@mrlubos mrlubos merged commit df7618a into main Dec 2, 2024
2 checks passed
@mrlubos mrlubos deleted the changeset-release/main branch December 2, 2024 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant