hono icon indicating copy to clipboard operation
hono copied to clipboard

feat(client): add buildSearchParams option to customize query serialization

Open bolasblack opened this issue 1 month ago • 3 comments

This allows users to customize how query parameters are serialized, for example using bracket notation (key[]=value) for arrays instead of the default behavior (key=value1&key=value2).

The author should do the following, if applicable

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

bolasblack avatar Nov 22 '25 09:11 bolasblack

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 91.57%. Comparing base (8fe7fee) to head (b86f78d).

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #4535      +/-   ##
==========================================
+ Coverage   91.52%   91.57%   +0.04%     
==========================================
  Files         172      172              
  Lines       11221    11251      +30     
  Branches     3255     3265      +10     
==========================================
+ Hits        10270    10303      +33     
+ Misses        950      947       -3     
  Partials        1        1              

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

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

codecov[bot] avatar Nov 22 '25 09:11 codecov[bot]

Hi @yusukebe @marceloverdijk, sorry to disturb you and hope you're doing well.

I noticed you're active project members and would like to ask if you could review this PR when you have a chance. This feature would be very helpful for my use case and doesn't appear to impact any existing code, so it might be a good candidate for the next release.

bolasblack avatar Dec 04 '25 20:12 bolasblack

@bolasblack that is in my backlog. Please wait a bit.

yusukebe avatar Dec 04 '25 21:12 yusukebe

@bolasblack

Looks good! I'll merge this to the next branch for the next minor version and release it soon. Thanks!

yusukebe avatar Dec 13 '25 08:12 yusukebe

@yusukebe Sorry for the late reply, and thank you so much for helping me fix the typo 🙇‍♂️. I really appreciate your great work!

bolasblack avatar Dec 15 '25 22:12 bolasblack