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
1 change: 1 addition & 0 deletions .changepacks/changepack_log_9cW0V-lNDA7Tux1nIoFro.json
Original file line number Diff line number Diff line change
@@ -0,0 +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"}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
.DS_Store

.claude
.sisyphus
469 changes: 221 additions & 248 deletions bun.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/next-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"lint": "next lint"
},
"dependencies": {
"next": "^16.1.1",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"next": "^16.1.6",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"@devup-api/next-plugin": "workspace:*",
"@devup-api/fetch": "workspace:*",
"@devup-ui/react": "^1"
Expand Down
17 changes: 17 additions & 0 deletions examples/next/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ const api2 = createApi({
baseUrl: 'https://api.example2.com',
serverName: 'openapi2.json',
})
const api3 = createApi({
baseUrl: 'https://api.example2.com',
serverName: 'openapi3.json',
})

const queryClient = createQueryClient(api)

Expand Down Expand Up @@ -80,6 +84,19 @@ export default function Home() {
.then((res) => {
console.log(res)
})
api3.POST('/form', {
body: {
email: 'name',
name: 'John Doe',
},
})

api3.POST('/typed-form', {
body: {
name: 'John Doe',
tags: 'tag1,tag2',
},
})
}, [mutateAsync])
return (
<Box>
Expand Down
2 changes: 1 addition & 1 deletion examples/next/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const config = devupApi(
reactStrictMode: true,
},
{
openapiFiles: ['./openapi.json', './openapi2.json'],
openapiFiles: ['./openapi.json', './openapi2.json', './openapi3.json'],
},
)

Expand Down
Loading