Releases: hey-api/openapi-ts
@hey-api/codegen-core@0.5.1
@hey-api/openapi-ts@0.90.0
Minor Changes
The Resolvers API has been simplified and expanded to provide a more consistent behavior across plugins. You can view a few common examples on the Resolvers page.
Structure API
The SDK plugin now implements the Structure API, enabling more complex structures and fixing several known issues.
Some Structure APIs are incompatible with the previous configuration, most notably the methodNameBuilder function, which accepted the operation object as an argument. You can read the SDK Output section to familiarize yourself with the Structure API.
Please open an issue if you're unable to migrate your configuration to the new syntax.
The Resolvers API has been simplified and expanded to provide a more consistent behavior across plugins. You can view a few common examples on the Resolvers page.
Structure API
The Angular plugin now implements the Structure API, enabling more complex structures and fixing several known issues.
Some Structure APIs are incompatible with the previous configuration, most notably the methodNameBuilder function, which accepted the operation object as an argument. You can read the SDK Output section to familiarize yourself with the Structure API.
Please open an issue if you're unable to migrate your configuration to the new syntax.
Patch Changes
-
plugin(@hey-api/client-nuxt): use serialized body in SSE requests (#3123) (
6505659) by @bilby91 -
plugin(zod): expand support for bigint types (#3145) (
4a32dcf) by @mrlubos -
plugin(@hey-api/client-angular): use serialized body in SSE requests (#3171) (
e63f0cf) by @mrlubos -
plugin(@hey-api/client-next): use serialized body in SSE requests (#3171) (
e63f0cf) by @mrlubos -
plugin(@hey-api/client-axios): use serialized body in SSE requests (#3171) (
e63f0cf) by @mrlubos -
plugin(@hey-api/client-fetch): use serialized body in SSE requests (#3171) (
e63f0cf) by @mrlubos -
plugin(@hey-api/client-nuxt): preserve null in
WithRefstype for nullable fields (#3131) (3935034) by @rigtigeEmil -
renderer: correctly render default import (#3109) (
815a3de) by @mrlubos -
plugin(@hey-api/client-ky): use serialized body in SSE requests (#3171) (
e63f0cf) by @mrlubos
Updated Dependencies:
- @hey-api/codegen-core@0.5.0
@hey-api/codegen-core@0.5.0
@hey-api/openapi-ts@0.89.2
@hey-api/openapi-ts@0.89.1
Patch Changes
-
parser: expose OpenAPI extension keywords (#3119) (
c50190b) by @copilot-swe-agent -
plugin(@hey-api/client-axios): use
queryoption when noparamsSerializeris provided (#3062) (4dcc210) by @JanST123GS -
plugin(@hey-api/sdk): lazily initialize sub-resources to improve performance (#3099) (
f481f5c) by @mrlubos -
output: sanitize reserved names with underscore suffix instead of prefix (#3102) (
9116082) by @mrlubos -
parser: improve discriminator support in nested
allOffields (#3117) (ec1224d) by @copilot-swe-agent -
output: default to
.jsextension when module resolution is set tonode16(#3115) (18d218a) by @copilot-swe-agent
@hey-api/openapi-ts@0.89.0
Minor Changes
Prefer named exports
This release changes the default for index.ts to prefer named exports. Named exports may lead to better IDE and bundler performance compared to asterisk (*) as your tooling doesn't have to inspect the underlying module to discover exports.
While this change is merely cosmetic, you can set output.preferExportAll to true if you prefer to use the asterisk.
export default {
input: 'hey-api/backend', // sign up at app.heyapi.dev
output: {
path: 'src/client',
preferExportAll: true,
},
};Removed symbol:setValue:* events
These events have been removed in favor of node:set:* events.
Patch Changes
@hey-api/codegen-core@0.4.0
@hey-api/openapi-ts@0.88.2
Patch Changes
- clients: handle CR and CRLF line endings in SSE (#3055) (
d663232) by @nachogarcia
@hey-api/openapi-ts@0.88.1
@hey-api/openapi-ts@0.88.0
Minor Changes
Removed compiler and tsc exports
This release removes the compiler utility functions. Instead, it introduces a new TypeScript DSL exposed under the $ symbol. All plugins now use this interface, so you may notice slight changes in the generated output.