Skip to content

Releases: hey-api/openapi-ts

@hey-api/[email protected]

05 Feb 11:22
6787e25
Compare
Choose a tag to compare

Patch Changes

  • #1674 7f0f4a7 Thanks @ale18V! - Return a string from urlSearchParamsBodySerializer instead of a URLSearchParams object.
    This is due to some runtimes not being able to handle the URLSearchParams object as fetch body.

@hey-api/[email protected]

05 Feb 11:22
6787e25
Compare
Choose a tag to compare

Patch Changes

  • #1674 7f0f4a7 Thanks @ale18V! - Return a string from urlSearchParamsBodySerializer instead of a URLSearchParams object.
    This is due to some runtimes not being able to handle the URLSearchParams object as fetch body.

@hey-api/[email protected]

05 Feb 11:22
6787e25
Compare
Choose a tag to compare

Patch Changes

  • #1674 7f0f4a7 Thanks @ale18V! - Return a string from urlSearchParamsBodySerializer instead of a URLSearchParams object.
    This is due to some runtimes not being able to handle the URLSearchParams object as fetch body.

@hey-api/[email protected]

05 Feb 11:22
6787e25
Compare
Choose a tag to compare

Patch Changes

  • #1674 7f0f4a7 Thanks @ale18V! - Return a string from urlSearchParamsBodySerializer instead of a URLSearchParams object.
    This is due to some runtimes not being able to handle the URLSearchParams object as fetch body.

@hey-api/[email protected]

03 Feb 02:10
146dc3c
Compare
Choose a tag to compare

Patch Changes

@hey-api/[email protected]

02 Feb 10:37
d0af19e
Compare
Choose a tag to compare

Minor Changes

  • #1661 ccefe43 Thanks @mrlubos! - feat: added client.baseUrl option

    Added client.baseUrl option

    You can use this option to configure the default base URL for the generated client. By default, we will attempt to resolve the first defined server or infer the base URL from the input path. If you'd like to preserve the previous behavior, set baseUrl to false.

    export default {
      input: 'path/to/openapi.json',
      output: 'src/client',
      plugins: [
        {
          baseUrl: false, // [!code ++]
          name: '@hey-api/client-fetch',
        },
      ],
    };
  • #1661 bb6d46a Thanks @mrlubos! - fix: make createConfig, CreateClientConfig, and Config accept ClientOptions generic

    Added ClientOptions interface

    The Config interface now accepts an optional generic extending ClientOptions instead of boolean type ThrowOnError.

    type Foo = Config<false>; // [!code --]
    type Foo = Config<{ throwOnError: false }>; // [!code ++]

@hey-api/[email protected]

02 Feb 10:37
d0af19e
Compare
Choose a tag to compare

Minor Changes

  • #1661 bb6d46a Thanks @mrlubos! - fix: make createConfig, CreateClientConfig, and Config accept ClientOptions generic

    Added ClientOptions interface

    The Config interface now accepts an optional generic extending ClientOptions instead of boolean type ThrowOnError.

    type Foo = Config<false>; // [!code --]
    type Foo = Config<{ throwOnError: false }>; // [!code ++]

@hey-api/[email protected]

02 Feb 10:37
d0af19e
Compare
Choose a tag to compare

Minor Changes

  • #1661 bb6d46a Thanks @mrlubos! - fix: make createConfig, CreateClientConfig, and Config accept ClientOptions generic

    Added ClientOptions interface

    The Config interface now accepts an optional generic extending ClientOptions instead of boolean type ThrowOnError.

    type Foo = Config<false>; // [!code --]
    type Foo = Config<{ throwOnError: false }>; // [!code ++]

@hey-api/[email protected]

02 Feb 10:37
d0af19e
Compare
Choose a tag to compare

Minor Changes

  • #1661 bb6d46a Thanks @mrlubos! - fix: make createConfig, CreateClientConfig, and Config accept ClientOptions generic

    Added ClientOptions interface

    The Config interface now accepts an optional generic extending ClientOptions instead of boolean type ThrowOnError.

    type Foo = Config<false>; // [!code --]
    type Foo = Config<{ throwOnError: false }>; // [!code ++]

@hey-api/[email protected]

02 Feb 10:37
d0af19e
Compare
Choose a tag to compare

Minor Changes

  • #1661 bb6d46a Thanks @mrlubos! - fix: make createConfig, CreateClientConfig, and Config accept ClientOptions generic

    Added ClientOptions interface

    The Config interface now accepts an optional generic extending ClientOptions instead of boolean type ThrowOnError.

    type Foo = Config<false>; // [!code --]
    type Foo = Config<{ throwOnError: false }>; // [!code ++]