github hey-api/openapi-ts @hey-api/client-fetch@0.6.0

latest releases: @hey-api/openapi-ts@0.82.5, @hey-api/openapi-ts@0.82.4, @hey-api/nuxt@0.2.1...
8 months ago

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

Don't miss a new openapi-ts release

NewReleases is sending notifications on new releases.