Skip to content

revert(zod-openapi): export local z binding - #2084

Merged
yusukebe merged 2 commits into
honojs:mainfrom
kamaal111:revert-zod-openapi-z-reexport
Aug 13, 2026
Merged

yusukebe merged 2 commits into
honojs:mainfrom
kamaal111:revert-zod-openapi-z-reexport

Conversation

@kamaal111

@kamaal111 kamaal111 commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #2078

This reverts commit https://github.com/kamaal111/hono-middleware/commit/fc0377c5595bde3147d181e5013a3fc710175e40.

Original commit title that has been reverted:
fix(zod-openapi): export local z binding so OpenAPI patch is not tree-shaken (#2069)

This commit is being reverted because its use-case is not yet supported
by rolldown-plugin-dts which is a subdependency of tsdown in this
project. Its impact is that the zod types have decraded and is resulting
in types resulting in any which causes the typescript compiler to
error in strict mode

The author should do the following, if applicable

  • Add tests not relevant
  • Run tests
  • pnpm changeset at the top of this repo and push the changeset
  • Follow the contribution guide

@changeset-bot

changeset-bot Bot commented Aug 13, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1f33a27

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hono/zod-openapi Patch

Not sure what this means? Click here to learn what changesets are.

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

@kamaal111
kamaal111 marked this pull request as ready for review August 13, 2026 05:41
@kamaal111
kamaal111 force-pushed the revert-zod-openapi-z-reexport branch from 2f78a94 to 29d283e Compare August 13, 2026 05:44
Fixes #2078

This reverts commit fc0377c.

Original commit title that has been reverted:
fix(zod-openapi): export local z binding so OpenAPI patch is not tree-shaken (#2069)

This commit is being reverted because its use-case is not yet supported
by `rolldown-plugin-dts` which is a subdependency of `tsdown` in this
project. Its impact is that the zod types have decraded and is resulting
in types resulting in `any` which causes the typescript compiler to
error in strict mode

Signed-off-by: Kamaal Farah <[email protected]>
**Summary**
Prepare a patch release for the reverted local z binding export.

**Changes**
Record the zod-openapi revert for a patch release because the local
binding degrades zod types to any when tsdown builds the package.

Signed-off-by: Kamaal Farah <[email protected]>
@kamaal111
kamaal111 force-pushed the revert-zod-openapi-z-reexport branch from 29d283e to 1f33a27 Compare August 13, 2026 05:49
@codecov

codecov Bot commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.22%. Comparing base (ee89c13) to head (1f33a27).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2084      +/-   ##
==========================================
- Coverage   92.23%   92.22%   -0.01%     
==========================================
  Files         116      116              
  Lines        4119     4118       -1     
  Branches     1076     1076              
==========================================
- Hits         3799     3798       -1     
  Misses        285      285              
  Partials       35       35              
Flag Coverage Δ
zod-openapi 95.53% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yusukebe yusukebe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yusukebe

Copy link
Copy Markdown
Member

@kamaal111 Thank you for the quick fix!

@yusukebe
yusukebe merged commit 9a93249 into honojs:main Aug 13, 2026
98 checks passed
@github-actions github-actions Bot mentioned this pull request Aug 13, 2026
@kamaal111
kamaal111 deleted the revert-zod-openapi-z-reexport branch August 13, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@hono/[email protected]: generated declarations reference zodModule without importing it

2 participants