Commit 7cdbcbb
Flip both of the Hono adapter's IHttpRequest.query construction sites — the
route-handler seam and the use() middleware seam — from c.req.query() (first
value per key) to c.req.queries() through one readQuery(c) helper that
normalises by length: a repeated key becomes an array, a single-valued key
stays a plain string.
This is #6878 route 2, adopted by the cli-lane seat on 2026-08-10. It removes
the divergence PR #6941 recorded: the reference NodeHttpServer already kept
arrays, so one request had two answers depending on which server booted, and
a handler could not refuse an ambiguity the transport had already collapsed.
The normalisation is load-bearing: c.req.queries() returns an array for EVERY
key, single-valued ones included, so a bare swap would have turned every
existing single-value read point on the production adapter into an array.
Also collapses #6941's divergence-recording conformance case into the single
expected shape, per that file's own header instructions, and adds a
middleware-seam case so a half-applied two-site change cannot pass.
Claude-Session: https://claude.ai/code/session_0158ZQo7LiHSxGWpYKuPq1wu
Co-authored-by: Claude <noreply@anthropic.com>
1 parent ef678d0 commit 7cdbcbb
3 files changed
Lines changed: 258 additions & 96 deletions
File tree
- .changeset
- packages
- plugins/plugin-hono-server/src
- qa/http-conformance/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
173 | 211 | | |
174 | 212 | | |
175 | 213 | | |
| |||
296 | 334 | | |
297 | 335 | | |
298 | 336 | | |
299 | | - | |
| 337 | + | |
300 | 338 | | |
301 | 339 | | |
302 | 340 | | |
| |||
740 | 778 | | |
741 | 779 | | |
742 | 780 | | |
743 | | - | |
| 781 | + | |
744 | 782 | | |
745 | 783 | | |
746 | 784 | | |
| |||
0 commit comments