Releases: hey-api/openapi-ts
@hey-api/openapi-ts@0.84.0
Minor Changes
- feat: Symbol API
Symbol API
This release improves the Symbol API, which adds the capability to place symbols in arbitrary files. We preserved the previous output structure for all plugins except Angular.
You can preserve the previous Angular output by writing your own placement function.
Removed output plugin option
Due to the Symbol API release, this option has been removed from the Plugin API. (#2664) (e1ede9c) by @mrlubos
Patch Changes
-
fix(plugin): every plugin extends Plugin.Hooks interface (#2664) (
e1ede9c) by @mrlubos -
fix(renderer): group and sort imported modules
TypeScript renderer
We ship a dedicated TypeScript renderer for .ts files. This release improves the renderer's ability to group and sort imported modules, resulting in a more polished output. (#2664) (e1ede9c) by @mrlubos
@hey-api/codegen-core@0.2.0
@hey-api/openapi-ts@0.83.1
Patch Changes
-
feat(typescript): add
topTypeoption allowing to chooseanyoverunknown(#2629) (444a49a) by @mrlubos -
fix(client): expose all interceptor methods (#2627) (
5a74da0) by @mrlubos -
fix(config): correctly load user-defined hooks (#2623) (
1193c4d) by @mrlubos -
fix(typescript): handle string and binary string in composite keywords (#2630) (
43a0661) by @mrlubos
@hey-api/openapi-ts@0.83.0
Minor Changes
- feat: Symbol API
Symbol API
This release adds the Symbol API, which significantly reduces the risk of naming collisions. While the generated output should only include formatting changes, this feature introduces breaking changes to the Plugin API that affect custom plugins.
We will update the custom plugin guide once the Plugin API becomes more stable. (#2582) (10aea89) by @mrlubos
- feat(pinia-colada): remove
groupByTagoption
Removed groupByTag Pinia Colada option
This option has been removed to provide a more consistent API across plugins. We plan to bring it back in a future release. (#2582) (10aea89) by @mrlubos
Patch Changes
Updated Dependencies:
- @hey-api/codegen-core@0.1.0
@hey-api/codegen-core@0.1.0
@hey-api/openapi-ts@0.82.5
@hey-api/openapi-ts@0.82.4
Patch Changes
-
fix(client): improve handling of plain text, falsy, and unserialized request bodies (#2564) (
074a459) by @franworks -
feat(pinia-colada): implicit
$fetchforclient-nuxt(hidecomposable) (#2598) (7143078) by @brolnickij -
fix(pinia-colada): optional
optionsin mutation factory (#2593) (4137445) by @brolnickij -
fix(parser): improve $ref handling (#2588) (
c97e7a8) by @carson2222
@hey-api/nuxt@0.2.1
@hey-api/openapi-ts@0.82.1
Patch Changes
-
#2541
ad3c633Thanks @ixnas! - feat(typescript): addtypescript-consttoenums.modefor generating TypeScript enums as constants -
#2556
74c16f2Thanks @carson2222! - fix(parser): prunerequiredarray after removing properties -
#2559
5012a72Thanks @jgoz! - fix(output): avoid appending.gento file names multiple times whenoutput.cleanisfalse
@hey-api/openapi-ts@0.82.0
Minor Changes
-
#2505
97c57f6Thanks @SebastiaanWouters! - feat(parser): add Hooks APIAdded Hooks API
This release adds the Hooks API, giving you granular control over which operations generate queries and mutations. As a result, we tightened the previous behavior and POST operations no longer generate queries by default. To preserve the old behavior, add a custom matcher.
export default { input: 'hey-api/backend', // sign up at app.heyapi.dev output: 'src/client', parser: { hooks: { operations: { isQuery: (op) => (op.method === 'post' ? true : undefined), }, }, }, };
Patch Changes
-
#2542
c12f7c7Thanks @mrlubos! - fix(client): pass fetch option to sse client -
#2505
80dc015Thanks @SebastiaanWouters! - feat(plugin): add@pinia/coladaplugin -
#2535
efdeedcThanks @alexedme! - feat(client): added angular, axios, fetch, next & nuxt client type export for external typing purposes. -
#2544
d4cd30eThanks @carson2222! - fix(parser): improve handling multiple references to shared external variable -
#2519
95f00faThanks @volesen! - fix(client): improve empty response body handling -
#1680
9e4cc3dThanks @josh-hemphill! - feat(plugin): add@pinia/coladaplugin -
#2530
8d1cfc4Thanks @carson2222! - fix(parser): improvereadWritetransformer splitting logic -
#2523
7f6de44Thanks @carson2222! - fix(parser): handlepatternPropertiesin OpenAPI 3.1