Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/dry-jeans-ring.md

This file was deleted.

21 changes: 0 additions & 21 deletions .changeset/pretty-deers-change.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/red-bats-eat.md

This file was deleted.

50 changes: 0 additions & 50 deletions .changeset/refactor-pinia-colada-query.md

This file was deleted.

78 changes: 77 additions & 1 deletion packages/openapi-ts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,80 @@
# @hey-api/openapi-ts

## 0.85.0

### Minor Changes

- refactor(config): replace 'off' with null to disable options ([#2718](https://github.com/hey-api/openapi-ts/pull/2718)) ([`fcdd73b`](https://github.com/hey-api/openapi-ts/commit/fcdd73b816d74babf47e6a1f46032f5b8ebb4b48)) by [@mrlubos](https://github.com/mrlubos)

### Updated `output` options

We made the `output` configuration more consistent by using `null` to represent disabled options. [This change](https://heyapi.dev/openapi-ts/migrating#updated-output-options) does not affect boolean options.

```js
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](https://github.com/hey-api/openapi-ts/pull/2602)) ([`c84f10e`](https://github.com/hey-api/openapi-ts/commit/c84f10e5a1b7c54320e3ef5edfc9d2fffe5183e9)) by [@carson2222](https://github.com/carson2222)

- feat(config): add `output.importFileExtension` option ([#2718](https://github.com/hey-api/openapi-ts/pull/2718)) ([`fcdd73b`](https://github.com/hey-api/openapi-ts/commit/fcdd73b816d74babf47e6a1f46032f5b8ebb4b48)) by [@mrlubos](https://github.com/mrlubos)

- feat(pinia-colada): query options use `defineQueryOptions` ([#2610](https://github.com/hey-api/openapi-ts/pull/2610)) ([`33e6b31`](https://github.com/hey-api/openapi-ts/commit/33e6b31fa2ab840dd4e6e2e3e0fbc6e207ccdf7e)) by [@brolnickij](https://github.com/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](https://heyapi.dev/openapi-ts/migrating#updated-pinia-colada-query-options).

#### No params

```ts
useQuery(getPetsQuery);
```

#### Constant

```ts
useQuery(getPetByIdQuery, () => ({
path: {
petId: 1,
},
}));
```

#### Reactive

```ts
const petId = ref<number | null>(1);

useQuery(getPetByIdQuery, () => ({
path: {
petId: petId.value,
},
}));
```

#### Properties

```ts
const petId = ref<number | null>(1);

useQuery(() => ({
...getPetByIdQuery({
path: { petId: petId.value as number },
}),
enabled: () => petId.value != null,
}));
```

## 0.84.4

### Patch Changes
Expand Down Expand Up @@ -95,7 +170,8 @@ export default {
- fix(axios): remove duplicate `baseURL` when using relative values ([#2624](https://github.com/hey-api/openapi-ts/pull/2624)) ([`8ffceec`](https://github.com/hey-api/openapi-ts/commit/8ffceec89fe471d4e14df17a172f3d5a254eb819)) by [@Ben-Pfirsich](https://github.com/Ben-Pfirsich)

### Updated Dependencies:
- @hey-api/[email protected]

- @hey-api/[email protected]

## 0.83.1

Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hey-api/openapi-ts",
"version": "0.84.4",
"version": "0.85.0",
"description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
"homepage": "https://heyapi.dev/",
"repository": {
Expand Down