Skip to content

Commit 4f483c6

Browse files
Version Packages
1 parent 533e44b commit 4f483c6

File tree

5 files changed

+31
-34
lines changed

5 files changed

+31
-34
lines changed

.changeset/modern-colts-hang.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/olive-pots-rest.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

.changeset/smooth-ties-brush.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/openapi-ts/CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
# @hey-api/openapi-ts
22

3+
## 0.82.0
4+
5+
### Minor Changes
6+
7+
- [#2505](https://github.com/hey-api/openapi-ts/pull/2505) [`97c57f6`](https://github.com/hey-api/openapi-ts/commit/97c57f68af1f907f278707fb526289c73b33ea89) Thanks [@SebastiaanWouters](https://github.com/SebastiaanWouters)! - feat(parser): add Hooks API
8+
9+
### Added Hooks API
10+
11+
This release adds the [Hooks API](https://heyapi.dev/openapi-ts/configuration/parser#hooks), 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.
12+
13+
```js
14+
export default {
15+
input: 'hey-api/backend', // sign up at app.heyapi.dev
16+
output: 'src/client',
17+
parser: {
18+
hooks: {
19+
operations: {
20+
isQuery: (op) => (op.method === 'post' ? true : undefined),
21+
},
22+
},
23+
},
24+
};
25+
```
26+
27+
### Patch Changes
28+
29+
- [#2505](https://github.com/hey-api/openapi-ts/pull/2505) [`80dc015`](https://github.com/hey-api/openapi-ts/commit/80dc01515d67bd335427af3dc9be0d49a417b9e3) Thanks [@SebastiaanWouters](https://github.com/SebastiaanWouters)! - feat(plugin): add `@pinia/colada` plugin
30+
31+
- [#1680](https://github.com/hey-api/openapi-ts/pull/1680) [`9e4cc3d`](https://github.com/hey-api/openapi-ts/commit/9e4cc3df784999ead1691848a4db0b7238e45809) Thanks [@josh-hemphill](https://github.com/josh-hemphill)! - feat(plugin): add `@pinia/colada` plugin
32+
333
## 0.81.1
434

535
### Patch Changes

packages/openapi-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hey-api/openapi-ts",
3-
"version": "0.81.1",
3+
"version": "0.82.0",
44
"description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
55
"homepage": "https://heyapi.dev/",
66
"repository": {

0 commit comments

Comments
 (0)