@hey-api/openapi-ts
0.99.0 · 22 Jun 2026MIT8.3M / weekRepositoryHomepagenpmAtom feed
271 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 0.79.x
0.79.1
20 Jul 2025Respect NO_INTERACTIVE and NO_INTERACTION environment variables
client: Update Axios headers types
Improve handlebars types for jsr compliance
Patch Changes
Respect NO_INTERACTIVE and NO_INTERACTION environment variables
client: Update Axios headers types
Improve handlebars types for jsr compliance
tanstack-query: Set query key base url from options if defined
0.79.0
20 Jul 2025typescript: Removed
typescript+namespaceenums mode
- 0.78.x
0.78.3
9 Jul 2025client: Improve types to pass
@total-typescript/ts-resetrules
0.78.2
7 Jul 2025transformers: Add
transformersoption allowing passing custom transform functions
0.78.1
5 Jul 2025valibot: Properly handle array minLength and maxLength
typescript: Handle additionalProperties in propertyNames
clients: Annotate serializer return types
Patch Changes
valibot: Properly handle array minLength and maxLength
typescript: Handle additionalProperties in propertyNames
clients: Annotate serializer return types
zod: Add
dates.offsetoption
0.78.0
4 Jul 2025config: Add
parseroptionsconfig: Add
operationsoption toparser.patch
- 0.77.x
0.77.0
24 Jun 2025sdk: Update
validatoroptionclient: Add requestValidator option
Updated Plugin API
Please refer to the [custom plugin](https://heyapi.dev/openapi-ts/plugins/custom) tutorial for the latest guide.
sdk: Update
validatoroption
Updated
sdk.validatoroptionClients can now validate both request and response data. As a result, passing a boolean or string to `validator` will control both of these options. To preserve the previous behavior, set `validator.request` to `false` and `validator.response` to your previous configuration. ```js export default { input: 'https://get.heyapi.dev/hey-api/backend', output: 'src/client', plugins: [ // ...other plugins { name: '@hey-api/sdk', validator: { request: false, response: true, }, }, ], }; ```Patch Changes
client: Add requestValidator option
- 0.76.x
0.76.0
22 Jun 2025valibot: Generate a single schema for requests
parser: Prefer JSON media type
valibot: Add
metadataoption to generate additional metadata for documentation, code generation, AI structured outputs, form validation, and other purposes
- 0.75.x
0.75.0
21 Jun 2025parser: Replace
plugin.subscribe()withplugin.forEach()tanstack-query: Add name and case options
Make output pass stricter tsconfig configurations"
Minor Changes
parser: Replace
plugin.subscribe()withplugin.forEach()
Added
plugin.forEach()methodThis method replaces the `.subscribe()` method. Additionally, `.forEach()` is executed immediately, which means we don't need the `before` and `after` events – simply move your code before and after the `.forEach()` block. ```ts plugin.forEach('operation', 'schema', (event) => { // do something with event }); ```tanstack-query: Add name and case options
Updated TanStack Query options
The TanStack Query plugin options have been expanded to support more naming and casing patterns. As a result, the following options have been renamed. - `queryOptionsNameBuilder` renamed to `queryOptions` - `infiniteQueryOptionsNameBuilder` renamed to `infiniteQueryOptions` - `mutationOptionsNameBuilder` renamed to `mutationOptions` - `queryKeyNameBuilder` renamed to `queryKeys` - `infiniteQueryKeyNameBuilder` renamed to `infiniteQueryKeys`
Patch Changes
Make output pass stricter tsconfig configurations"
validators: Handle additional properties object when no other properties are defined
parser: Add
metaandversionoptions to input.patchcli: Correctly detect watch mode
- 0.74.x
0.74.0
19 Jun 2025zod: Generate a single schema for requests
valibot: Use
isoTimestampinstead ofisoDateTimefor date-time formatparser: Do not mark schemas as duplicate if they have different format
- 0.73.x
0.73.0
14 Jun 2025Bundle
@hey-api/client-*pluginsRespect logs setting if initialization fails
Export default pagination keywords
- 0.72.x
0.72.2
12 Jun 2025zod: Add
metadataoption to generate additional metadata for documentation, code generation, AI structured outputs, form validation, and other purposestanstack-query: Add name builder options for all generated artifacts
parser: Filter orphans only when there are some operations
Patch Changes
zod: Add
metadataoption to generate additional metadata for documentation, code generation, AI structured outputs, form validation, and other purposestanstack-query: Add name builder options for all generated artifacts
parser: Filter orphans only when there are some operations
zod: Support tuple types
parser: Set correct subscription context for plugins
0.72.1
11 Jun 2025zod: Handle array union types
0.72.0
10 Jun 2025sdk: Add
classStructureoption supporting dot or slashoperationIdnotation when generating class-based SDKsAdd crash report prompt
parser: Handle
propertyNameskeyword
Minor Changes
sdk: Add
classStructureoption supporting dot or slashoperationIdnotation when generating class-based SDKs
Added
sdk.classStructureoptionWhen generating class-based SDKs, we now try to infer the ideal structure using `operationId` keywords. If you'd like to preserve the previous behavior, set `classStructure` to `off`. ```js export default { input: 'https://get.heyapi.dev/hey-api/backend', output: 'src/client', plugins: [ // ...other plugins { classStructure: 'off', name: '@hey-api/sdk', }, ], }; ```Patch Changes
Add crash report prompt
parser: Handle
propertyNameskeywordvalidators: Correctly generate default value for
BigInttypescript: Handle nested inline objects with write/read only fields
- 0.71.x
0.71.1
6 Jun 2025parser: Skip schema if it's an array or tuple and its items don't have any matching readable or writable scopes
parser: Validate operationId keyword
parser: Respect exportFromIndex option when using legacy clients
0.71.0
5 Jun 2025sdk: Rename
serviceNameBuildertoclassNameBuilderparser: Allow patching specs with
input.patchtypescript: Better detect enum namespace
Minor Changes
sdk: Rename
serviceNameBuildertoclassNameBuilder
Patch Changes
parser: Allow patching specs with
input.patchtypescript: Better detect enum namespace
sdk: Add
instanceoption for instantiable SDKs
- 0.70.x
0.70.0
4 Jun 2025sdk: Add responseStyle option
BREAKING: Update your client to the latest version.
typescript: Ensure generated enum uses unique namespace to avoid conflicts with non-enum declarations
typescript: Handle duplicate inline enum names
- 0.69.x
0.69.2
2 Jun 2025parser: Add validate_EXPERIMENTAL option
validators: Do not wrap regular expression in slashes if the pattern is already wrapped
tanstack-query: Create a shallow copy of queryKey in createInfiniteParams function
0.69.1
31 May 2025valibot: Use isoDate instead of date for date strings
typescript: Generates union of arrays when items use nested oneOf
schema: nameBuilder can be a string
Patch Changes
valibot: Use isoDate instead of date for date strings
typescript: Generates union of arrays when items use nested oneOf
schema: nameBuilder can be a string
sdk: serviceNameBuilder can be a function
0.69.0
30 May 2025sdk: Use responses/errors map instead of union
BREAKING: Update your client to the latest version.
validators: Generate schemas for request parameters
validators: Generate schemas for request bodies
Minor Changes
sdk: Use responses/errors map instead of union
BREAKING: Update your client to the latest version.
Patch Changes
validators: Generate schemas for request parameters
validators: Generate schemas for request bodies
sdk: Skip spreading required headers when there are conflicting Content-Type headers
pagination: Improved schema resolver for parameters
- 0.68.x
0.68.1
28 May 2025parser: Add back support for regular expressions in input filters
parser: Extend input filters to handle reusable parameters and responses
0.68.0
28 May 2025Upgraded input filters
- 0.67.x
0.67.6
23 May 2025tanstack-query: Require options when sdk client is set to false
valibot: Add valibot plugin
0.67.5
19 May 2025tanstack-query: Add SDK function comments to TanStack Query output
typescript: Exclude $refs in readable/writable schemas when referenced schemas don't contain any readable/writable fields
typescript: Add enumsConstantsIgnoreNull option to skip nulls from generated JavaScript objects
0.67.4
14 May 2025Handle enum keyword with array type
0.67.3
7 May 2025Handle references to properties
0.67.2
7 May 2025Handle relative paths in client's
baseUrlfield
0.67.1
4 May 2025Do not use named imports from typescript module
0.67.0
4 May 2025Respect
moduleResolutionvalue intsconfig.jsonMake discriminator field required when used with
oneOfkeywordAvoid including underscore for appended types (e.g. data, error, response) when preserving identifier case
- 0.66.x
0.66.7
28 Apr 2025Handle schemas with all write-only or read-only fields
Avoid generating duplicate operation ids when sanitizing input
Zod schemas use .and() instead of .merge()
Patch Changes
Handle schemas with all write-only or read-only fields
Avoid generating duplicate operation ids when sanitizing input
Zod schemas use .and() instead of .merge()
Correctly handle numeric property names with signs
Zod plugin handles nullable enums
Handle discriminator with multiple mappings to the same schema
Zod schemas with BigInt and min/max constraints
Correct path to nested plugin files when using exportFromIndex
Handle extended
$refwithtypekeyword in OpenAPI 3.1Handle additionalProperties empty object as unknown instead of preserving an empty interface
0.66.6
23 Apr 2025Handle Zod circular reference
0.66.5
17 Apr 2025Don't use JSON serializer for
application/octet-streamRepeat tuple type
maxItemstimes
0.66.4
13 Apr 2025Add return type to TanStack Query mutations
Export some internal functions
0.66.3
4 Apr 2025Handle nullable dates in transformers
0.66.2
3 Apr 2025Prevent crash when optional pagination field is missing
0.66.1
2 Apr 2025- Deprecated
Support excluding deprecated fields with '@deprecated'
Exclude and include expressions can be an array
0.66.0
1 Apr 2025Support read-only and write-only properties
- 0.65.x
0.65.0
31 Mar 2025Support custom clients
Allow passing fetch options to the request resolving a specification
Ability to disable writing a log file via a
--no-log-fileflag orlogs.file=false
- 0.64.x
0.64.15
26 Mar 2025Add support for cookies auth
0.64.14
26 Mar 2025Allow customizing pagination keywords using
input.pagination.keywords
0.64.13
18 Mar 2025Bump json-schema-ref-parser package
Allow config to be a function
0.64.12
13 Mar 2025Allow
schemeproperty to be case-insensitive
0.64.11
12 Mar 2025Support Hey API platform input arguments
Handle raw OpenAPI specification input
0.64.10
4 Mar 2025Don't throw on missing performance marks
Handle nested dates in transformers
0.64.9
3 Mar 2025Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.
0.64.8
1 Mar 2025Reduce minimum Node.js 22 version to 22.10.0
0.64.7
27 Feb 2025Wrap the GET request in watch mode with try-catch to prevent crashes on no-head watch targets
0.64.6
26 Feb 2025Wrap HEAD request in a try-catch to prevent watch mode crashes on server reloads
0.64.5
19 Feb 2025Correctly generate zod regex expressions when using patterns
0.64.4
13 Feb 2025Use relative path to custom config file if provided when resolving relative paths
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.