Packages

@hey-api/openapi-ts

0.99.0 · 22 Jun 2026MIT8.3M / weekRepositoryHomepagenpmAtom feed

Your version

271 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 0.64.x
  2. 0.64.3

    10 Feb 2025
    • Correctly type default value for Nuxt client

  3. 0.64.2

    10 Feb 2025
    • Add exportFromIndex option to all plugins

    • Allow passing arbitrary values to SDK functions via meta field

    • Sanitize "+" in uri to avoid plus in function name

  4. 0.64.1

    3 Feb 2025
    • Watch mode handles servers not exposing HEAD method for spec

    • Add watch.timeout option

  5. 0.64.0

    2 Feb 2025
    • Added client.baseUrl option

    • Make createConfig, CreateClientConfig, and Config accept ClientOptions generic

  6. 0.63.x
  7. 0.63.2

    30 Jan 2025
    • Lower Node version requirements

  8. 0.63.1

    30 Jan 2025
    • Update keywords in package.json

    • Add Next.js client

    • Support required client in SDK using sdk.client = false

  9. 0.63.0

    27 Jan 2025
    • Move clients to plugins

    • Move sdk.throwOnError option to client.throwOnError

    • Sdks import client from client.gen.ts instead of defining it inside the file

  10. 0.62.x
  11. 0.62.3

    21 Jan 2025
    • Bundle clients from compiled index file

    • Generate correct response for text/plain content type

    • Do not use a body serializer on text/plain sdks

  12. 0.62.2

    20 Jan 2025
    • Add support for Nuxt client

  13. 0.62.1

    15 Jan 2025
    • Generate bigint type instead of BigInt

    • Add ability to skip generating index file with output.indexFile

  14. 0.62.0

    14 Jan 2025
    • Change the default parser

    • Spread sdk options at the end to allow overriding generated values

  15. 0.61.x
  16. 0.61.3

    13 Jan 2025
    • Use z.coerce before calling z.bigint

  17. 0.61.2

    9 Jan 2025
    • Send GET request only on first spec fetch

  18. 0.61.1

    8 Jan 2025
    • Detect pagination in composite schemas with null type

    • Handle primitive constants in Zod and types

  19. 0.61.0

    6 Jan 2025
    • Breaking

      Please update @hey-api/client-* packages to the latest version

      feat: add support for basic http auth

    • Add support for HTTP Bearer Authentication Scheme

    • Add OpenAPI 2.0 support to experimental parser

  20. 0.60.x
  21. 0.60.1

    19 Dec 2024
    • Handle indexed access checks

    • zod: generate patterns and improve plain schemas

    • Add links to the experimental parser callouts

  22. 0.60.0

    17 Dec 2024
    • Require sdk.transformer to use generated transformers

    • Revert license to MIT

    • Zod plugin generates response schemas

  23. 0.59.x
  24. 0.59.2

    12 Dec 2024
    • Generate querySerializer options for Axios client

    • Infer responseType in SDKs for axios client

    • Support oauth2 and apiKey security schemes

  25. 0.59.1

    6 Dec 2024
    • Prefix restricted identifier names with underscore

    • Disallow additional query parameters in experimental parser output

  26. 0.59.0

    5 Dec 2024
    • Removed

      Remove @hey-api/schemas from default plugins

    • Add logs.level option

    • Correctly resolve required properties in nested allOf composition

  27. 0.58.x
  28. 0.58.0

    2 Dec 2024
    • Removed

      Remove schemas and transformers re-exports from index.ts

    • Removed

      Add output.clean option

    • Add typescript.identifierCase option

  29. 0.57.x
  30. 0.57.1

    25 Nov 2024
    • Transformers correctly handle an array

    • Improve camelcase with abbreviated plurals

    • Experimental parser generates url inside data types

  31. 0.57.0

    22 Nov 2024
    • Rename Hey API plugins

    • Add typescript.exportInlineEnums option

    • Improve generated enum keys in experimental parser

  32. 0.56.x
  33. 0.56.3

    21 Nov 2024
    • Zod plugin handles value constraints and defaults

  34. 0.56.2

    20 Nov 2024
    • Add input.exclude option

    • Make Zod plugin available in plugins options

  35. 0.56.1

    18 Nov 2024
    • Gracefully handle invalid schema type in experimental parser

  36. 0.56.0

    18 Nov 2024
    • Deprecated

      Deprecate types.tree option

    • Add fastify plugin

    • Export a map of error and response types by status code

  37. 0.55.x
  38. 0.55.3

    13 Nov 2024
    • Add support for oxlint as linter

  39. 0.55.2

    10 Nov 2024
    • Update sponsorship links

    • Correctly generate array when items are a oneOf array with length 1

    • Handle non-exploded array query parameters

  40. 0.55.1

    8 Nov 2024
    • Handle nullable enums in experimental parser

    • Add support for custom plugins

    • Render void for empty response status codes in experimental parser

  41. 0.55.0

    7 Nov 2024
    • Add input.include option

    • Handle pagination with basic refs

  42. 0.54.x
  43. 0.54.4

    6 Nov 2024
    • Forbid any body, path, or query parameters if not defined in spec

    • Handle additionalProperties: boolean in experimental parser

    • Update schemas plugin to handle experimental 3.0.x parser

      This release adds an experimental parser for OpenAPI versions 3.0.x. In the future, this will become the default parser. If you're using OpenAPI 3.0 or newer, we encourage you to try it out today.

      You can enable the experimental parser by setting the experimentalParser boolean flag to true in your configuration file or CLI.

      export default {
        client: '@hey-api/client-fetch',
        input: 'path/to/openapi.json',
        output: 'src/client',
        experimentalParser: true,
      };
      npx @hey-api/openapi-ts -i path/to/openapi.json -o src/client -c @hey-api/client-fetch -e

      The generated output should not structurally change, despite few things being generated in a different order. In fact, the output should be cleaner! That's the immediate side effect you should notice. If that's not true, please leave feedback in GitHub issues.

      Hey API parser marks an important milestone towards v1 of @hey-api/openapi-ts. More features will be added to the parser in the future and the original parser from openapi-typescript-codegen will be deprecated and used only for generating legacy clients.

      If you'd like to work with the parser more closely (e.g. to generate code not natively supported by this package), feel free to reach out with any feedback or suggestions. Happy parsing! 🎉

  44. 0.54.3

    5 Nov 2024
    • Add OpenAPI 3.0.x experimental parser

      This release adds an experimental parser for OpenAPI versions 3.0.x. In the future, this will become the default parser. If you're using OpenAPI 3.0 or newer, we encourage you to try it out today.

      You can enable the experimental parser by setting the experimentalParser boolean flag to true in your configuration file or CLI.

      export default {
        client: '@hey-api/client-fetch',
        input: 'path/to/openapi.json',
        output: 'src/client',
        experimentalParser: true,
      };
      npx @hey-api/openapi-ts -i path/to/openapi.json -o src/client -c @hey-api/client-fetch -e

      The generated output should not structurally change, despite few things being generated in a different order. In fact, the output should be cleaner! That's the immediate side effect you should notice. If that's not true, please leave feedback in GitHub issues.

      Hey API parser marks an important milestone towards v1 of @hey-api/openapi-ts. More features will be added to the parser in the future and the original parser from openapi-typescript-codegen will be deprecated and used only for generating legacy clients.

      If you'd like to work with the parser more closely (e.g. to generate code not natively supported by this package), feel free to reach out with any feedback or suggestions. Happy parsing! 🎉

  45. 0.54.2

    1 Nov 2024
    • Add support for @tanstack/angular-query-experimental package

  46. 0.54.1

    29 Oct 2024
    • Ignore name option when not used with legacy clients to avoid producing broken output

    • Add support for OpenAPI 3.1.1 to experimental parser

  47. 0.54.0

    28 Oct 2024
    • Make plugins first-class citizens

      This release makes plugins first-class citizens. In order to achieve that, the following breaking changes were introduced.

  48. 0.53.x
  49. 0.53.12

    25 Oct 2024
    • TanStack Query plugin using missing import for infinite query

    • Pass TanStack query signal to client call

  50. 0.53.11

    13 Oct 2024
    • Update website domain, add license documentation

  51. 0.53.10

    11 Oct 2024
    • Update license field in package.json to match the license, revert client packages license to MIT

  52. 0.53.9

    10 Oct 2024
    • Add support for passing mutation specific options to <operation_id>Mutation(options)

  53. 0.53.8

    6 Oct 2024
    • Use correct relative path to bundled client when imported from nested module

  54. 0.53.7

    3 Oct 2024
    • Skip nested properties in oneOf and anyOf compositions

    • Abstract page params logic in TanStack Query plugin

  55. 0.53.6

    30 Sep 2024
    • Export spec-compliant OpenAPI 3.1 interface

    • Handle multiple form-data parameters in Swagger 2.0

  56. 0.53.5

    26 Sep 2024
    • Make TanStack Query plugin work with class-based services

    • Avoid printing duplicate null nodes

    • Attach TanStack Query infinite page params only if they exist

  57. 0.53.4

    25 Sep 2024
    • Import handlebars instead of runtime

    • Support dynamic require in child_process

  58. 0.53.3

    22 Sep 2024
    • Properly handle dual publishing and type generation

  59. 0.53.2

    19 Sep 2024
    • Handle colon in operation path

    • Allow overriding generated headers from options

    • Export Operation interface

  60. 0.53.1

    17 Sep 2024
    • Throw error on invalid client value

  61. 0.53.0

    4 Sep 2024
    • Rename legacy clients with 'legacy/' prefix

    • Change schemas name pattern, add schemas.name option

    • Make UserConfig interface instead of type

  62. 0.52.x
  63. 0.52.11

    27 Aug 2024
    • Export query key functions from TanStack Query plugin

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.