unstale

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

@unstale/cli on npm

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

    0.95.0release notes

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

    0.95.0release notes

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

    0.95.0release notes

New APIs and options 2

  • The plugin exports request body, path, query, and headers schemas.

    0.95.0release notes

  • The plugin exports request body, path, query, and headers schemas.

    0.95.0release notes

Fixes and other changes 7

@hey-api/openapi-ts 0.9430 changes

Breaking changes 3

  • buildUrl() includes baseUrl from config by default, changing the URLs it builds.

    0.94.0release notes

  • The reserved keyword set expands with more globals, affecting generated names.

    0.94.0release notes

  • Client serializer types change from any to unknown.

    0.94.0release notes

New APIs and options 11

  • The orpc plugin is released, making it available for developers to use with @hey-api/openapi-ts.

    0.94.4release notes

  • Expose $ in the transformer function context.

    0.94.3release notes

  • Add the module option to output configuration.

    0.94.3release notes

  • Expose plugin in the transformer function context.

    0.94.3release notes

  • The NestJS plugin is initially released, allowing developers to use it with @hey-api/openapi-ts.

    0.94.2release notes

  • The TypeScript, Zod, and Valibot plugins implement the getName() symbol hook.

    0.94.1release notes

  • The @hey-api/typescript plugin adds a Resolvers API.

    0.94.1release notes

  • The Valibot plugin provides more resolvers.

    0.94.1release notes

  • The Zod plugin provides more resolvers.

    0.94.1release notes

  • The TanStack Preact Query plugin is released.

    0.94.0release notes

  • The TanStack React Query plugin supports generating useMutation hooks.

    0.94.0release notes

Behavior and default changes 4

  • The DSL recognizes an expanded list of JavaScript globals.

    0.94.1release notes

  • A warning is shown when plugin inference fails.

    0.94.1release notes

  • The Zod plugin's metadata option now supports a function.

    0.94.0release notes

  • The Valibot plugin's metadata option now supports a function.

    0.94.0release notes

Tooling 2

  • The CLI shows the environment value in development.

    0.94.1release notes

  • The output header supports function signatures in client and core files.

    0.94.0release notes

Fixes and other changes 10

  • Pass context as the second argument to module.resolve().

    0.94.3release notes

  • Fix handling of self-referencing discriminators in the parser.

    0.94.3release notes

  • Preserve AbortSignal, FormData, and ReadableStream values in unwrapRefs.

    0.94.3release notes

  • The default value is now passed to the header function.

    0.94.2release notes

  • The Transformers plugin now supports anyOf schemas with null.

    0.94.1release notes

  • The Zod plugin handles the guid string format.

    0.94.1release notes

  • Generated Pinia Colada query options now pass the error type generic to defineQueryOptions.

    0.94.0release notes

  • Explicit discriminator mapping now wins over fallback in nested allOf.

    0.94.0release notes

  • Generated enum types now reference the enum object.

    0.94.0release notes

  • Leading characters are no longer sanitized twice.

    0.94.0release notes

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

    0.93.0release notes

  • The Zod plugin no longer exposes this resolver node; nullable values are handled outside of resolvers.

    0.93.0release notes

New APIs and options 6

  • Exposes onRequest in RequestOptions for SSE request interception.

    0.93.0release notes

  • Adds a shorthand option for full specification transformations.

    0.93.0release notes

  • Adds patch.input for full specification transformations.

    0.93.0release notes

  • Supports a callback for patch.operations.

    0.93.0release notes

  • Supports a callback for patch.schemas.

    0.93.0release notes

  • Adds the schemaName transform.

    0.93.0release notes

Behavior and default changes 3

  • createClientConfig can now be asynchronous.

    0.93.1release notes

  • The CLI no longer sets logs.file to true by default.

    0.93.1release notes

  • The parser prefers unprefixed schema names from external files.

    0.93.0release notes

Fixes and other changes 17

  • The nullable modifier is applied to additionalProperties schemas.

    0.93.1release notes

  • Blob values are no longer unwrapped by the Nuxt client.

    0.93.1release notes

  • Empty arrays are no longer removed from flat arguments.

    0.93.1release notes

  • Required flat parameters are set correctly.

    0.93.1release notes

  • Mutation queries are skipped for SSE endpoints.

    0.93.1release notes

  • Union types are simplified when a member is unknown.

    0.93.1release notes

  • Regex patterns with Unicode property escapes receive the u flag.

    0.93.1release notes

  • Regex patterns with Unicode property escapes receive the u flag.

    0.93.1release notes

  • The parser handles the OpenAPI 3.1 contentMediaType keyword as a binary format when file-like.

    0.93.0release notes

  • The parser supports non-string discriminator property types.

    0.93.0release notes

  • Resolves sibling schemas from external files during bundling.

    0.93.0release notes

  • Avoids prefixing sources when paths do not collide on operations.

    0.93.0release notes

  • The Zod plugin uses .nullable() and .nullish() methods.

    0.93.0release notes

  • The Valibot plugin uses .nullable() and .nullish() methods.

    0.93.0release notes

  • Applies output.header to bundled files.

    0.93.0release notes

  • Improves the returned status code when fetching a spec fails.

    0.93.0release notes

  • Preserves the unevaluatedProperties keyword in transforms.

    0.93.0release notes

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

    0.92.2release notes

  • Renames exportFromIndex to includeInEntry.

    0.92.2release notes

  • Renames output.indexFile to output.entryFile.

    0.92.2release notes

New APIs and options 2

Behavior and default changes 1

  • The option accepts a function in addition to a primitive value.

    0.92.2release notes

Tooling 2

Fixes and other changes 8

  • Handles $ref keywords in allOf compositions.

    0.92.4release notes

  • Forwards asyncDataOptions to useFetch and useLazyFetch.

    0.92.4release notes

  • Unwraps a ComputedRef body before initial serialization.

    0.92.4release notes

  • Deduplicates enum keys to avoid name collisions.

    0.92.4release notes

  • Detects importFileExtension from the tsconfig module option.

    0.92.4release notes

  • Fixes a false-positive warning for discriminated oneOf schemas.

    0.92.4release notes

  • The zod plugin uses a namespace import for zod v4.

    0.92.3release notes

  • Improves dev mode detection to prevent builds from failing.

    0.92.2release notes

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

    0.91.0release notes

@hey-api/openapi-ts 0.9026 changes

Breaking changes 2

  • The loadConfigFile function moved to @hey-api/codegen-core, changing where developers access it.

    0.90.9release notes

  • The Structure API changes are incompatible with some previous configurations, notably methodNameBuilder, which accepted the operation object as an argument.

    0.90.0release notes

New APIs and options 5

  • Adds an enum resolver to the Valibot plugin.

    0.90.4release notes

  • Adds an enum resolver to the Zod plugin.

    0.90.4release notes

  • Adds the oxfmt preset to output configuration.

    0.90.3release notes

  • Copies the input specification used to generate output, allowing documentation tools to use it or a stable snapshot to be persisted alongside generated files.

    0.90.1release notes

  • The SDK plugin can generate ready-to-use code examples for each operation, showing how to call SDK methods with proper parameters and setup.

    0.90.1release notes

Behavior and default changes 2

  • The generate command no longer shows the ASCII logo.

    0.90.8release notes

  • The Zod plugin expands its support for bigint types.

    0.90.0release notes

Fixes and other changes 17

  • The parser inlines deep path $ref references.

    0.90.10release notes

  • Correctly maps body keys in flat mode.

    0.90.10release notes

  • Indexes the mutation options symbol, making it accessible through the plugin.

    0.90.10release notes

  • Indexes the mutation options symbol, making it accessible through the plugin.

    0.90.10release notes

  • Indexes the mutation options symbol, making it accessible through the plugin.

    0.90.10release notes

  • Indexes the mutation options symbol, making it accessible through the plugin.

    0.90.10release notes

  • Indexes the mutation options symbol, making it accessible through the plugin.

    0.90.10release notes

  • The ts-dsl allows removing object properties by passing null.

    0.90.9release notes

  • The ts-dsl overrides object properties when called multiple times with the same name.

    0.90.9release notes

  • Moved to dependencies to fix broken types for package users.

    0.90.7release notes

  • The SDK plugin no longer warns on mutualTLS security schemes.

    0.90.6release notes

  • Fixes JSON parsing errors for empty response bodies when the response has no Content-Length header.

    0.90.4release notes

  • Fixes JSON parsing errors for empty response bodies when the response has no Content-Length header.

    0.90.4release notes

  • Fixes JSON parsing errors for empty response bodies when the response has no Content-Length header.

    0.90.4release notes

  • The SDK plugin no longer uses bodySerializer when the format is binary.

    0.90.2release notes

  • SSE requests use the serialized body across the Nuxt, Angular, Next, Axios, Fetch, and Ky clients.

    0.90.0release notes

  • The Nuxt client preserves null in the WithRefs type for nullable fields.

    0.90.0release notes

@hey-api/openapi-ts 0.8911 changes

Breaking changes 3

  • Generated reserved names are sanitized with an underscore suffix instead of a prefix.

    0.89.1release notes

  • Generated index.ts files now prefer named exports by default; set output.preferExportAll to true to use asterisk exports.

    0.89.0release notes

  • These parser events are removed in favor of node:set:* events.

    0.89.0release notes

New APIs and options 3

  • The parser exposes OpenAPI extension keywords for developers to use.

    0.89.1release notes

  • Adds the nameConflictResolver output option.

    0.89.0release notes

  • Adds an option to prefer asterisk exports in generated index.ts files.

    0.89.0release notes

Performance 1

  • SDK sub-resources are initialized lazily to improve performance.

    0.89.1release notes

Behavior and default changes 1

  • The output defaults to the .js extension when module resolution is set to node16.

    0.89.1release notes

Fixes and other changes 3

@hey-api/openapi-ts 0.886 changes

Breaking changes 4

  • A new TypeScript DSL is exposed under $, and all plugins now use this interface.

    0.88.0release notes

  • The compiler utility functions are removed.

    0.88.0release notes

  • Using the new TypeScript DSL may cause slight changes in generated output.

    0.88.0release notes

  • The tsc exports are removed.

    0.88.0release notes

Fixes and other changes 2

@hey-api/openapi-ts 0.8714 changes

Breaking changes 2

  • Legacy TypeScript options were removed.

    0.87.1release notes

  • Support for legacy clients and plugins is removed; migrate to the new clients.

    0.87.0release notes

New APIs and options 4

  • Validator resolvers are now exposed for Valibot.

    0.87.4release notes

  • Validator resolvers are now exposed for Zod.

    0.87.4release notes

  • Zod can generate custom chains with ~resolvers.

    0.87.3release notes

  • Adds support for the Ky client, allowing it to be used with generated SDKs.

    0.87.2release notes

Tooling 2

  • Generated queryOptions() now includes type annotations.

    0.87.3release notes

  • Valibot can generate custom pipes with ~resolvers.

    0.87.3release notes

Fixes and other changes 6

  • Fixes a FormData boundary mismatch in the client-ofetch package.

    0.87.5release notes

  • client-fetch now intercepts AbortError.

    0.87.3release notes

  • Corrects access to instantiated SDKs in the @pinia/colada integration.

    0.87.2release notes

  • In OpenAPI 3.1, the parser merges the default keyword with $ref.

    0.87.2release notes

  • Generated Valibot schemas use .strictObject() instead of .objectWithRest() when additional properties are not allowed.

    0.87.2release notes

  • TanStack Query now correctly accesses instantiated SDKs.

    0.87.1release notes

@hey-api/openapi-ts 0.8622 changes

Breaking changes 2

  • Reverts the behavior for returning errors when an Axios request fails.

    0.86.1release notes

  • The minimum Node version is now 20.19.0.

    0.86.0release notes

New APIs and options 2

Behavior and default changes 2

  • Adds a more granular strategy for serializing query parameters.

    0.86.4release notes

  • Tags are passed to symbol metadata, making them available to extensions that consume that metadata.

    0.86.4release notes

Fixes and other changes 16

  • Fixes bundled context types.

    0.86.12release notes

  • Handles conflicts between method names and subclasses in class-based SDKs.

    0.86.12release notes

  • Transformers are no longer referenced when undefined.

    0.86.12release notes

  • Uses unique generic names in PluginInstance to avoid typing issues.

    0.86.11release notes

  • OpenAPI 2.0 bodies are handled as JSON by default when their content type is not explicitly defined.

    0.86.10release notes

  • Errors in debug reports are now handled gracefully.

    0.86.9release notes

  • The Valibot integration now handles the time string format.

    0.86.9release notes

  • Improves how Valibot handles the additionalProperties type.

    0.86.8release notes

  • The Operation type is now exported, making it available to developers using the package.

    0.86.7release notes

  • Reverts function order to fix an infinite cycle regression.

    0.86.6release notes

  • Fixes the parser incorrectly using write-only schemas in response schemas.

    0.86.5release notes

  • Includes writeOnly schema properties in request types for nested schemas.

    0.86.3release notes

  • Duplicate names are allowed when one symbol is a type.

    0.86.2release notes

  • Validators no longer reference variables before they are declared.

    0.86.2release notes

  • Returns the error when an Axios request fails.

    0.86.0release notes

  • Error details are no longer printed when logs are set to silent.

    0.86.0release notes