Skip to content

Releases: hey-api/openapi-ts

@hey-api/openapi-ts@0.62.1

15 Jan 18:52
7098555
Compare
Choose a tag to compare

Patch Changes

@hey-api/openapi-ts@0.62.0

14 Jan 19:49
55f27bf
Compare
Choose a tag to compare

Minor Changes

Patch Changes

  • #1566 39d558a Thanks @mrlubos! - fix: spread sdk options at the end to allow overriding generated values

@hey-api/client-fetch@0.7.0

14 Jan 19:49
55f27bf
Compare
Choose a tag to compare

Minor Changes

@hey-api/client-axios@0.5.0

14 Jan 19:49
55f27bf
Compare
Choose a tag to compare

Minor Changes

@hey-api/openapi-ts@0.61.3

13 Jan 16:39
fc7ebbd
Compare
Choose a tag to compare

Patch Changes

@hey-api/openapi-ts@0.61.2

09 Jan 16:53
836d8a9
Compare
Choose a tag to compare

Patch Changes

@hey-api/openapi-ts@0.61.1

08 Jan 10:45
0270ac8
Compare
Choose a tag to compare

Patch Changes

@hey-api/openapi-ts@0.61.0

06 Jan 10:01
ec0080d
Compare
Choose a tag to compare

Minor Changes

  • #1520 b3c23ba Thanks @chriswiggins! - Add support for HTTP Bearer Authentication Scheme

  • #1525 7b7313e Thanks @mrlubos! - feat: add OpenAPI 2.0 support to experimental parser

  • #1511 4e8064d Thanks @mrlubos! - feat: add watch mode

    Watch Mode

    ::: warning
    Watch mode currently supports only remote files via URL.
    :::

    If your schema changes frequently, you may want to automatically regenerate the output during development. To watch your input file for changes, enable watch mode in your configuration or pass the --watch flag to the CLI.

    Config

    export default {
      client: '@hey-api/client-fetch',
      input: 'path/to/openapi.json',
      output: 'src/client',
      watch: true,
    };

    CLI

    npx @hey-api/openapi-ts \
      -c @hey-api/client-fetch \
      -i path/to/openapi.json \
      -o src/client \
      -w
  • BREAKING: please update @hey-api/client-* packages to the latest version

    feat: add support for basic http auth

Patch Changes

@hey-api/client-fetch@0.6.0

06 Jan 10:01
ec0080d
Compare
Choose a tag to compare

Minor Changes

  • BREAKING: please update @hey-api/openapi-ts to the latest version

    feat: replace accessToken and apiKey functions with auth

    Added auth option

    Client package functions accessToken and apiKey were replaced with a single auth function for fetching auth tokens. If your API supports multiple auth mechanisms, you can use the auth argument to return the appropriate token.

    import { client } from 'client/sdk.gen';
    
    client.setConfig({
      accessToken: () => '<my_token>', // [!code --]
      apiKey: () => '<my_token>', // [!code --]
      auth: (auth) => '<my_token>', // [!code ++]
    });
  • BREAKING: rename exported Security interface to Auth

  • #1507 e2e1410 Thanks @nimobeeren! - BREAKING: return raw response body (of type ReadableStream) when Content-Type response header is not provided and parseAs is set to auto

@hey-api/client-axios@0.4.0

06 Jan 10:01
ec0080d
Compare
Choose a tag to compare

Minor Changes

  • BREAKING: rename exported Security interface to Auth

  • BREAKING: remove support for passing auth to Axios instance

  • BREAKING: please update @hey-api/openapi-ts to the latest version

    feat: replace accessToken and apiKey functions with auth

    Added auth option

    Client package functions accessToken and apiKey were replaced with a single auth function for fetching auth tokens. If your API supports multiple auth mechanisms, you can use the auth argument to return the appropriate token.

    import { client } from 'client/sdk.gen';
    
    client.setConfig({
      accessToken: () => '<my_token>', // [!code --]
      apiKey: () => '<my_token>', // [!code --]
      auth: (auth) => '<my_token>', // [!code ++]
    });

    Due to conflict with the Axios native auth option, we removed support for configuring Axios auth. Please let us know if you require this feature added back.