Skip to content

fix(optimize): support bytes() added in hono v4.13 - #79

Merged
yusukebe merged 1 commit into
mainfrom
fix/optimize-bytes
Aug 5, 2026
Merged

fix(optimize): support bytes() added in hono v4.13#79
yusukebe merged 1 commit into
mainfrom
fix/optimize-bytes

Conversation

@yusukebe

@yusukebe yusukebe commented Aug 5, 2026

Copy link
Copy Markdown
Member

hono v4.13 added bytes() to HonoRequest. It uses #cachedBody, so the request body API removal generated broken code. This adds bytes to the removal list.

Also moved removeApis to its own module and added a guard: if a removed private member is still referenced, skip the removal instead of generating broken code.

The author should do the following, if applicable

  • Add tests
  • Run tests
  • bun run format:fix && bun run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

@yusukebe
yusukebe merged commit 56c25bc into main Aug 5, 2026
4 checks passed
@yusukebe
yusukebe deleted the fix/optimize-bytes branch August 5, 2026 04:56
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.

1 participant