AppView in a box as a Vite plugin thing hatk.dev

fix(xrpc): hand an array parameter to the handler as a list

The query string was collected one value per key, so `?dids=a&dids=b` kept only `b`, and a single `?dids=a` reached the handler as the string `a`. A handler that spread it, as the lexicon's `string[]` type invites, spread the characters of a DID and looked up twenty-two one-letter actors. The community site showed every member as a truncated DID. Repeated keys are now kept, and a parameter the lexicon declares as an array always arrives as one, its items coerced like any scalar. A scalar sent twice takes the last value, as a form submission would. Booleans still arrive as strings, as before, so handlers written against that keep working. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>


Author chadtmiller.com
Co-author Claude Fable 5.1 Date Commit Parent fcebf633
+118 -43
3 changed files
+118 -43
3 changed files