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
I’d raise a bug issue with a reproduction if you can, transformers should work
i have the same problem if I use superjson with formData
ah, it's a valid bug
https://github.com/trpc/trpc/issues/6464
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/...
So fast to the fix!
I’ll give the fix a shot myself and let you know, but appreciate the quick response and fix!