Skip to content

Commit c9afeaf

Browse files
authored
Merge pull request #48 from dev-five-git/support-form
Support form
2 parents c8fa5e7 + b1494b6 commit c9afeaf

Some content is hidden

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

52 files changed

+6608
-1186
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"packages/ui/package.json":"Patch","packages/vite-plugin/package.json":"Patch","packages/webpack-plugin/package.json":"Patch","packages/utils/package.json":"Patch","packages/next-plugin/package.json":"Patch","packages/zod/package.json":"Patch","packages/fetch/package.json":"Patch","packages/generator/package.json":"Patch","packages/core/package.json":"Patch","packages/hookform/package.json":"Patch","packages/react-query/package.json":"Patch","packages/rsbuild-plugin/package.json":"Patch"},"note":"Support form and Refactor","date":"2026-02-13T18:20:24.793922700Z"}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
3434
.DS_Store
3535

3636
.claude
37+
.sisyphus

bun.lock

Lines changed: 221 additions & 248 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/next-webpack/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"next": "^16.1.1",
13-
"react": "^19.2.3",
14-
"react-dom": "^19.2.3",
12+
"next": "^16.1.6",
13+
"react": "^19.2.4",
14+
"react-dom": "^19.2.4",
1515
"@devup-api/next-plugin": "workspace:*",
1616
"@devup-api/fetch": "workspace:*",
1717
"@devup-ui/react": "^1"

examples/next/app/page.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ const api2 = createApi({
1414
baseUrl: 'https://api.example2.com',
1515
serverName: 'openapi2.json',
1616
})
17+
const api3 = createApi({
18+
baseUrl: 'https://api.example2.com',
19+
serverName: 'openapi3.json',
20+
})
1721

1822
const queryClient = createQueryClient(api)
1923

@@ -80,6 +84,19 @@ export default function Home() {
8084
.then((res) => {
8185
console.log(res)
8286
})
87+
api3.POST('/form', {
88+
body: {
89+
email: 'name',
90+
name: 'John Doe',
91+
},
92+
})
93+
94+
api3.POST('/typed-form', {
95+
body: {
96+
name: 'John Doe',
97+
tags: 'tag1,tag2',
98+
},
99+
})
83100
}, [mutateAsync])
84101
return (
85102
<Box>

examples/next/next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const config = devupApi(
66
reactStrictMode: true,
77
},
88
{
9-
openapiFiles: ['./openapi.json', './openapi2.json'],
9+
openapiFiles: ['./openapi.json', './openapi2.json', './openapi3.json'],
1010
},
1111
)
1212

0 commit comments

Comments
 (0)