Skip to content

Commit 533e44b

Browse files
authored
Merge pull request #2505 from SebastiaanWouters/feat/pinia-colada-plugin
feat: add Pinia Colada plugin support
2 parents c9aa390 + 97c57f6 commit 533e44b

File tree

158 files changed

+9332
-13859
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+9332
-13859
lines changed

.changeset/modern-colts-hang.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@hey-api/openapi-ts': patch
3+
---
4+
5+
feat(plugin): add `@pinia/colada` plugin

.changeset/olive-pots-rest.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
'@hey-api/openapi-ts': minor
3+
---
4+
5+
feat(parser): add Hooks API
6+
7+
### Added Hooks API
8+
9+
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.
10+
11+
```js
12+
export default {
13+
input: 'hey-api/backend', // sign up at app.heyapi.dev
14+
output: 'src/client',
15+
parser: {
16+
hooks: {
17+
operations: {
18+
isQuery: (op) => (op.method === 'post' ? true : undefined),
19+
},
20+
},
21+
},
22+
};
23+
```

docs/.vitepress/config/en.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ export default defineConfig({
173173
collapsed: true,
174174
items: [
175175
{
176-
link: '/openapi-ts/plugins/tanstack-query',
177-
text: 'TanStack Query',
176+
link: '/openapi-ts/plugins/pinia-colada',
177+
text: 'Pinia Colada',
178178
},
179179
{
180-
link: '/openapi-ts/plugins/pinia-colada',
181-
text: 'Pinia Colada <span data-soon>soon</span>',
180+
link: '/openapi-ts/plugins/tanstack-query',
181+
text: 'TanStack Query',
182182
},
183183
{
184184
link: '/openapi-ts/plugins/swr',

docs/data/people.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@ export const jacobCohen: Person = {
88
name: 'Jacob Cohen',
99
};
1010

11+
export const joshHemphill: Person = {
12+
github: 'https://github.com/josh-hemphill',
13+
name: 'Josh Hemphill',
14+
};
15+
1116
export const maxScopp: Person = {
1217
github: 'https://github.com/max-scopp',
1318
name: 'Max Scopp',
1419
};
20+
21+
export const sebastiaanWouters: Person = {
22+
github: 'https://github.com/SebastiaanWouters',
23+
name: 'Sebastiaan Wouters',
24+
};

0 commit comments

Comments
 (0)