NeatZ
NeatZ4w ago

trpc 11 superjson transformer not working with unstable_httpBatchStreamLink

Hello! I have been using httpBatchLink for quite a while but wanted to swap to unstable_httpBatchStreamLink. However, I noticed that any procedure returning a Map isn't being converted correctly. It is only an issue when using unstable_httpBatchStreamLink. Is this a known issue?
6 Replies
Nick
Nick3w ago
I’d raise a bug issue with a reproduction if you can, transformers should work
Cattpot
Cattpot3w ago
i have the same problem if I use superjson with formData
Alex / KATT 🐱
cannot reproduce https://github.com/trpc/trpc/pull/6457 can you elaborate?
Alex / KATT 🐱
GitHub
bug: unstable_httpBatchStreamLink breaks serialization of Decimal (...
Provide environment information System: OS: macOS 15.3 CPU: (10) arm64 Apple M2 Pro Memory: 102.56 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.9.0 - ~/.volta/tools/image/node/22.9.0/bin/...
Nick
Nick3w ago
So fast to the fix!
NeatZ
NeatZOP2w ago
I’ll give the fix a shot myself and let you know, but appreciate the quick response and fix!

Did you find this page helpful?