github hey-api/openapi-ts @hey-api/openapi-ts@0.80.0

latest releases: @hey-api/openapi-ts@0.82.4, @hey-api/nuxt@0.2.1, @hey-api/openapi-ts@0.82.1...
one month ago

Minor Changes

  • #2341 9954bcf Thanks @mrlubos! - feat(zod): add support for Zod 4 and Zod Mini

    Added Zod 4 and Zod Mini

    This release adds support for Zod 4 and Zod Mini. By default, the zod plugin will generate output for Zod 4. If you want to preserve the previous output for Zod 3 or use Zod Mini, set compatibilityVersion to 3 or mini.

    export default {
      input: 'https://get.heyapi.dev/hey-api/backend',
      output: 'src/client',
      plugins: [
        // ...other plugins
        {
          name: 'zod',
          compatibilityVersion: 3,
        },
      ],
    };
    export default {
      input: 'https://get.heyapi.dev/hey-api/backend',
      output: 'src/client',
      plugins: [
        // ...other plugins
        {
          name: 'zod',
          compatibilityVersion: 'mini',
        },
      ],
    };

Don't miss a new openapi-ts release

NewReleases is sending notifications on new releases.