7nohe / openapi-react-query-codegen

OpenAPI React Query Codegen is a code generator for creating React Query (also known as TanStack Query) hooks based on your OpenAPI schema.
https://openapi-react-query-codegen.vercel.app
MIT License
298 stars 30 forks source link

feat/new openapi client support 2 #131

Closed seriouslag closed 1 month ago

seriouslag commented 3 months ago
github-actions[bot] commented 3 months ago

Coverage Report

Status Category Percentage Covered / Total
πŸ”΄ Lines 93.19% (🎯 95%) 2040 / 2189
πŸ”΄ Statements 93.19% (🎯 95%) 2040 / 2189
πŸ”΄ Functions 93.61% (🎯 95%) 44 / 47
πŸ”΄ Branches 79.12% (🎯 85%) 144 / 182
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/common.mts 98.01% 95.23% 100% 98.01% 47-48, 50-51
src/createExports.mts 100% 100% 100% 100%
src/createImports.mts 96.18% 66.66% 100% 96.18% 20-23, 27
src/createPrefetchOrEnsure.mts 98.79% 75% 100% 98.79% 98, 130
src/createSource.mts 100% 100% 100% 100%
src/createUseMutation.mts 98.78% 71.42% 100% 98.78% 84, 184, 214
src/createUseQuery.mts 84.36% 63.46% 100% 84.36% 80-81, 249, 251-254, 274-286, 325, 350, 379, 388-403, 423-435, 445, 543-552, 558, 648, 665-710
src/format.mts 89.58% 80% 50% 89.58% 46-51, 86-89
src/generate.mts 100% 100% 100% 100%
src/service.mts 86.27% 65% 100% 86.27% 35-36, 39-40, 42-43, 46-47, 52-53, 57-58, 66-67
Generated in workflow #336 for commit 8377a0c by the Vitest Coverage Report Action
seriouslag commented 3 months ago

npm publish

omridevk commented 3 months ago

@seriouslag Do you recall how my commits got here? I am blanking here :P

7nohe commented 1 month ago

@seriouslag @omridevk Thank you for updating the client and making the necessary changes accordingly. I apologize for the delayed response. Since it’s not good to leave this unattended for too long, I will resolve the conflicts on my end, release it, and see how it is going in the real world.

7nohe commented 1 month ago

I'll merge this for now and manage it in the v2 branch. Since there are still tests to be added and some issues that need to be addressed, I plan to release it once everything is completed.