Releases: hey-api/openapi-ts
@hey-api/openapi-ts@0.86.1
@hey-api/openapi-ts@0.86.0
@hey-api/codegen-core@0.3.0
@hey-api/openapi-ts@0.85.2
@hey-api/openapi-ts@0.85.1
Patch Changes
- fix(zod): allOf in array items being generated as union instead of intersection (#2736) (
078face) by @copilot-swe-agent
@hey-api/openapi-ts@0.85.0
Minor Changes
Updated output options
We made the output configuration more consistent by using null to represent disabled options. This change does not affect boolean options.
export default {
input: 'hey-api/backend', // sign up at app.heyapi.dev
output: {
format: null,
lint: null,
path: 'src/client',
tsConfigPath: null,
},
};Patch Changes
-
feat: support multiple configurations (#2602) (
c84f10e) by @carson2222 -
feat(config): add
output.importFileExtensionoption (#2718) (fcdd73b) by @mrlubos -
feat(pinia-colada): query options use
defineQueryOptions(#2610) (33e6b31) by @brolnickij
Updated Pinia Colada query options
Pinia Colada query options now use defineQueryOptions to improve reactivity support. Instead of calling the query options function, you can use one of the following approaches.
No params
useQuery(getPetsQuery);Constant
useQuery(getPetByIdQuery, () => ({
path: {
petId: 1,
},
}));Reactive
const petId = ref<number | null>(1);
useQuery(getPetByIdQuery, () => ({
path: {
petId: petId.value,
},
}));Properties
const petId = ref<number | null>(1);
useQuery(() => ({
...getPetByIdQuery({
path: { petId: petId.value as number },
}),
enabled: () => petId.value != null,
}));@hey-api/openapi-ts@0.84.4
Patch Changes
-
fix(client-ofetch): add missing credentials property support (#2710) (
ba7e6dc) by @copilot-swe-agent -
fix(config): do not override interactive config from CLI if defined in config file (#2708) (
21e9fa0) by @copilot-swe-agent -
fix(zod): correct schemas for numeric and boolean enums (#2704) (
59ea38e) by @copilot-swe-agent
@hey-api/openapi-ts@0.84.3
Patch Changes
- fix(validators): escaping slashes in regular expressions (#2692) (
dba81bc) by @copilot-swe-agent
@hey-api/openapi-ts@0.84.2
@hey-api/openapi-ts@0.84.1
Patch Changes
-
feat: add
ofetchclient available as@hey-api/client-ofetch(#2642) (da9e05f) by @brolnickij -
fix(renderer): replace default import placeholder (#2674) (
762b20e) by @copilot-swe-agent