hey-api / openapi-ts

🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more. Support: @mrlubos
https://heyapi.dev
Other
1.39k stars 107 forks source link

feat: rewrite tanstack query plugin to new parser #1178

Closed mrlubos closed 1 month ago

stackblitz[bot] commented 1 month ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

changeset-bot[bot] commented 1 month ago

⚠️ No Changeset found

Latest commit: 988574380b7053df3d36e98f600ccc15a3f57c2a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hey-api-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 21, 2024 11:31am
codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 14.59732% with 1527 lines in your changes missing coverage. Please review.

Project coverage is 74.86%. Comparing base (11480cc) to head (9885743). Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
.../src/plugins/@tanstack/query-core/plugin-legacy.ts 6.26% 1227 Missing :warning:
...napi-ts/src/plugins/@tanstack/query-core/plugin.ts 15.59% 184 Missing :warning:
packages/openapi-ts/src/ir/parameter.ts 3.89% 74 Missing :warning:
.../openapi-ts/src/openApi/3.1.0/parser/pagination.ts 69.87% 25 Missing :warning:
packages/openapi-ts/src/ir/operation.ts 30.43% 16 Missing :warning:
packages/openapi-ts/src/generate/services.ts 83.33% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1178 +/- ## ========================================== - Coverage 79.33% 74.86% -4.48% ========================================== Files 117 120 +3 Lines 15781 16975 +1194 Branches 1669 1679 +10 ========================================== + Hits 12520 12708 +188 - Misses 3258 4264 +1006 Partials 3 3 ``` | [Flag](https://app.codecov.io/gh/hey-api/openapi-ts/pull/1178/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/hey-api/openapi-ts/pull/1178/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api) | `74.86% <14.59%> (-4.48%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

pkg-pr-new[bot] commented 1 month ago

Open in Stackblitz

pnpm add https://pkg.pr.new/@hey-api/client-axios@1178
pnpm add https://pkg.pr.new/@hey-api/client-fetch@1178
pnpm add https://pkg.pr.new/@hey-api/openapi-ts@1178

commit: 9885743