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 #1497

Merged
merged 1 commit into from
Jan 6, 2025
Merged

Version Packages #1497

merged 1 commit into from
Jan 6, 2025

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Dec 20, 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

  • 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.

@hey-api/[email protected]

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/[email protected]

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/[email protected]

Minor Changes

  • #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

Patch Changes

@example/[email protected]

Patch Changes

@example/[email protected]

Patch Changes

@example/[email protected]

Patch Changes

@example/[email protected]

Patch Changes

@example/[email protected]

Patch Changes

@example/[email protected]

Patch Changes

@example/[email protected]

Patch Changes

Copy link

vercel bot commented Dec 20, 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 Jan 6, 2025 9:55am

Copy link

stackblitz bot commented Dec 20, 2024

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

@github-actions github-actions bot force-pushed the changeset-release/main branch from 5781a3b to 819c2cb Compare December 21, 2024 20:28
@github-actions github-actions bot force-pushed the changeset-release/main branch from 819c2cb to dc17034 Compare December 21, 2024 20:34
@github-actions github-actions bot force-pushed the changeset-release/main branch from dc17034 to 7464dd0 Compare December 24, 2024 19:50
@github-actions github-actions bot force-pushed the changeset-release/main branch from 7464dd0 to 59a6b5f Compare December 25, 2024 04:23
@github-actions github-actions bot force-pushed the changeset-release/main branch from 59a6b5f to 09fb56f Compare December 25, 2024 09:17
@github-actions github-actions bot force-pushed the changeset-release/main branch from 09fb56f to bf7610c Compare December 26, 2024 01:09
@github-actions github-actions bot force-pushed the changeset-release/main branch from bf7610c to ac4480e Compare December 26, 2024 23:04
@github-actions github-actions bot force-pushed the changeset-release/main branch from ac4480e to 62ebc53 Compare December 27, 2024 21:59
@github-actions github-actions bot force-pushed the changeset-release/main branch from 62ebc53 to b090d39 Compare January 1, 2025 00:30
@github-actions github-actions bot force-pushed the changeset-release/main branch from b090d39 to 733a111 Compare January 1, 2025 00:32
@github-actions github-actions bot force-pushed the changeset-release/main branch from 733a111 to e29c10c Compare January 1, 2025 01:53
@github-actions github-actions bot force-pushed the changeset-release/main branch from e29c10c to 09926da Compare January 6, 2025 03:38
@github-actions github-actions bot force-pushed the changeset-release/main branch from 09926da to 5479c20 Compare January 6, 2025 08:19
@github-actions github-actions bot force-pushed the changeset-release/main branch from 5479c20 to 2c9c8e6 Compare January 6, 2025 09:54
@mrlubos mrlubos merged commit ec0080d into main Jan 6, 2025
2 checks passed
@mrlubos mrlubos deleted the changeset-release/main branch January 6, 2025 09:59
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