npm / @hey-api/openapi-ts
@hey-api/openapi-ts
What changed in @hey-api/openapi-ts 0.86 to 0.95, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
25 breaking35 new APIs and options1 performance13 behavior and defaults6 tooling86 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@hey-api/openapi-ts 0.9512 changes
Breaking changes 3
The function was removed; use plugin.querySymbol() instead, which accepts the same arguments and returns the same result.
The Valibot plugin no longer exports composite request Data schemas; it exports each layer separately. Set requests.shouldExtract to true to preserve composite schemas when using validators with SDKs.
The Zod plugin no longer exports composite request Data schemas; it exports each layer separately. Set requests.shouldExtract to true to preserve composite schemas when using validators with SDKs.
New APIs and options 2
The plugin exports request body, path, query, and headers schemas.
The plugin exports request body, path, query, and headers schemas.
Fixes and other changes 7
The beforeRequest typing was improved.
The beforeRequest typing was improved.
The beforeRequest typing was improved.
The beforeRequest typing was improved.
The beforeRequest typing was improved.
Types for server-sent event (SSE) events were improved.
The plugin's input shape was adjusted.
@hey-api/openapi-ts 0.9430 changes
Breaking changes 3
buildUrl() includes baseUrl from config by default, changing the URLs it builds.
The reserved keyword set expands with more globals, affecting generated names.
Client serializer types change from any to unknown.
New APIs and options 11
The orpc plugin is released, making it available for developers to use with @hey-api/openapi-ts.
Expose $ in the transformer function context.
Add the module option to output configuration.
Expose plugin in the transformer function context.
The NestJS plugin is initially released, allowing developers to use it with @hey-api/openapi-ts.
The TypeScript, Zod, and Valibot plugins implement the getName() symbol hook.
The @hey-api/typescript plugin adds a Resolvers API.
The Valibot plugin provides more resolvers.
The Zod plugin provides more resolvers.
The TanStack Preact Query plugin is released.
The TanStack React Query plugin supports generating useMutation hooks.
Behavior and default changes 4
The DSL recognizes an expanded list of JavaScript globals.
A warning is shown when plugin inference fails.
The Zod plugin's metadata option now supports a function.
The Valibot plugin's metadata option now supports a function.
Tooling 2
The CLI shows the environment value in development.
The output header supports function signatures in client and core files.
Fixes and other changes 10
Pass context as the second argument to module.resolve().
Fix handling of self-referencing discriminators in the parser.
Preserve AbortSignal, FormData, and ReadableStream values in unwrapRefs.
The default value is now passed to the header function.
The Transformers plugin now supports anyOf schemas with null.
The Zod plugin handles the guid string format.
Generated Pinia Colada query options now pass the error type generic to defineQueryOptions.
Explicit discriminator mapping now wins over fallback in nested allOf.
Generated enum types now reference the enum object.
Leading characters are no longer sanitized twice.
@hey-api/openapi-ts 0.9328 changes
Breaking changes 2
The Valibot plugin no longer exposes this resolver node; nullable values are handled outside of resolvers.
The Zod plugin no longer exposes this resolver node; nullable values are handled outside of resolvers.
New APIs and options 6
Exposes
onRequestin RequestOptions for SSE request interception.Adds a shorthand option for full specification transformations.
Adds
patch.inputfor full specification transformations.Supports a callback for
patch.operations.Supports a callback for
patch.schemas.Adds the
schemaNametransform.
Behavior and default changes 3
createClientConfig can now be asynchronous.
The CLI no longer sets logs.file to true by default.
The parser prefers unprefixed schema names from external files.
Fixes and other changes 17
The nullable modifier is applied to additionalProperties schemas.
Blob values are no longer unwrapped by the Nuxt client.
Empty arrays are no longer removed from flat arguments.
Required flat parameters are set correctly.
Mutation queries are skipped for SSE endpoints.
Union types are simplified when a member is unknown.
Regex patterns with Unicode property escapes receive the u flag.
Regex patterns with Unicode property escapes receive the u flag.
The parser handles the OpenAPI 3.1
contentMediaTypekeyword as a binary format when file-like.The parser supports non-string discriminator property types.
Resolves sibling schemas from external files during bundling.
Avoids prefixing sources when paths do not collide on operations.
The Zod plugin uses
.nullable()and.nullish()methods.The Valibot plugin uses
.nullable()and.nullish()methods.Applies
output.headerto bundled files.Improves the returned status code when fetching a spec fails.
Preserves the
unevaluatedPropertieskeyword in transforms.
@hey-api/openapi-ts 0.9216 changes
Breaking changes 3
Replaces the exportFrom array with a function that dynamically determines export paths based on symbol properties.
Renames exportFromIndex to includeInEntry.
Renames output.indexFile to output.entryFile.
New APIs and options 2
Adds a comments option to all plugins.
Adds a parser hook for determining export file paths.
Behavior and default changes 1
The option accepts a function in addition to a primitive value.
Tooling 2
Uses generics for HttpRequests.
Improves the types for defineConfig().
Fixes and other changes 8
Handles $ref keywords in allOf compositions.
Forwards asyncDataOptions to useFetch and useLazyFetch.
Unwraps a ComputedRef body before initial serialization.
Deduplicates enum keys to avoid name collisions.
Detects importFileExtension from the tsconfig module option.
Fixes a false-positive warning for discriminated oneOf schemas.
The zod plugin uses a namespace import for zod v4.
Improves dev mode detection to prevent builds from failing.
@hey-api/openapi-ts 0.911 changes
Breaking changes 1
CommonJS entry points such as require() and module.exports are no longer supported; the package is ESM-only.
@hey-api/openapi-ts 0.9026 changes
Breaking changes 2
The loadConfigFile function moved to @hey-api/codegen-core, changing where developers access it.
The Structure API changes are incompatible with some previous configurations, notably methodNameBuilder, which accepted the operation object as an argument.
New APIs and options 5
Adds an enum resolver to the Valibot plugin.
Adds an enum resolver to the Zod plugin.
Adds the oxfmt preset to output configuration.
Copies the input specification used to generate output, allowing documentation tools to use it or a stable snapshot to be persisted alongside generated files.
The SDK plugin can generate ready-to-use code examples for each operation, showing how to call SDK methods with proper parameters and setup.
Behavior and default changes 2
The generate command no longer shows the ASCII logo.
The Zod plugin expands its support for bigint types.
Fixes and other changes 17
The parser inlines deep path $ref references.
Correctly maps body keys in flat mode.
Indexes the mutation options symbol, making it accessible through the plugin.
Indexes the mutation options symbol, making it accessible through the plugin.
Indexes the mutation options symbol, making it accessible through the plugin.
Indexes the mutation options symbol, making it accessible through the plugin.
Indexes the mutation options symbol, making it accessible through the plugin.
The ts-dsl allows removing object properties by passing null.
The ts-dsl overrides object properties when called multiple times with the same name.
Moved to dependencies to fix broken types for package users.
The SDK plugin no longer warns on mutualTLS security schemes.
Fixes JSON parsing errors for empty response bodies when the response has no Content-Length header.
Fixes JSON parsing errors for empty response bodies when the response has no Content-Length header.
Fixes JSON parsing errors for empty response bodies when the response has no Content-Length header.
The SDK plugin no longer uses bodySerializer when the format is binary.
SSE requests use the serialized body across the Nuxt, Angular, Next, Axios, Fetch, and Ky clients.
The Nuxt client preserves null in the WithRefs type for nullable fields.
@hey-api/openapi-ts 0.8911 changes
Breaking changes 3
Generated reserved names are sanitized with an underscore suffix instead of a prefix.
Generated index.ts files now prefer named exports by default; set output.preferExportAll to true to use asterisk exports.
These parser events are removed in favor of node:set:* events.
New APIs and options 3
The parser exposes OpenAPI extension keywords for developers to use.
Adds the nameConflictResolver output option.
Adds an option to prefer asterisk exports in generated index.ts files.
Performance 1
SDK sub-resources are initialized lazily to improve performance.
Behavior and default changes 1
The output defaults to the .js extension when module resolution is set to node16.
Fixes and other changes 3
Type narrowing in discriminated types is improved.
Discriminator support is improved for nested allOf fields.
The Axios client uses the query option when no paramsSerializer is provided.
@hey-api/openapi-ts 0.886 changes
Breaking changes 4
A new TypeScript DSL is exposed under $, and all plugins now use this interface.
The compiler utility functions are removed.
Using the new TypeScript DSL may cause slight changes in generated output.
The tsc exports are removed.
Fixes and other changes 2
Clients now handle CR and CRLF line endings in SSE.
Correctly maps flat parameters.
@hey-api/openapi-ts 0.8714 changes
Breaking changes 2
Legacy TypeScript options were removed.
Support for legacy clients and plugins is removed; migrate to the new clients.
New APIs and options 4
Validator resolvers are now exposed for Valibot.
Validator resolvers are now exposed for Zod.
Zod can generate custom chains with ~resolvers.
Adds support for the Ky client, allowing it to be used with generated SDKs.
Tooling 2
Generated queryOptions() now includes type annotations.
Valibot can generate custom pipes with ~resolvers.
Fixes and other changes 6
Fixes a FormData boundary mismatch in the client-ofetch package.
client-fetch now intercepts AbortError.
Corrects access to instantiated SDKs in the @pinia/colada integration.
In OpenAPI 3.1, the parser merges the default keyword with $ref.
Generated Valibot schemas use
.strictObject()instead of.objectWithRest()when additional properties are not allowed.TanStack Query now correctly accesses instantiated SDKs.
@hey-api/openapi-ts 0.8622 changes
Breaking changes 2
Reverts the behavior for returning errors when an Axios request fails.
The minimum Node version is now 20.19.0.
New APIs and options 2
Adds the
paramsStructureoption to the SDK.Adds parser events hooks.
Behavior and default changes 2
Adds a more granular strategy for serializing query parameters.
Tags are passed to symbol metadata, making them available to extensions that consume that metadata.
Fixes and other changes 16
Fixes bundled context types.
Handles conflicts between method names and subclasses in class-based SDKs.
Transformers are no longer referenced when undefined.
Uses unique generic names in PluginInstance to avoid typing issues.
OpenAPI 2.0 bodies are handled as JSON by default when their content type is not explicitly defined.
Errors in debug reports are now handled gracefully.
The Valibot integration now handles the time string format.
Improves how Valibot handles the additionalProperties type.
The Operation type is now exported, making it available to developers using the package.
Reverts function order to fix an infinite cycle regression.
Fixes the parser incorrectly using write-only schemas in response schemas.
Includes writeOnly schema properties in request types for nested schemas.
Duplicate names are allowed when one symbol is a type.
Validators no longer reference variables before they are declared.
Returns the error when an Axios request fails.
Error details are no longer printed when logs are set to silent.