You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'am using avsc in node, but starting digging into new bun runtime and I tried to move some of my lib to bun, but avsc has error while using fromBuffer method.
error is:
1 | return function readTesJt(t) {
2 | return new TesJt(
3 |
4 | t0._read(t)
^
TypeError: Expected string
Note this error is from bun run test.js script, not node.
I tried to dig into the lib itself and try to find the issue, but it's too big for me :D without knowing context. So maybe it can be easy fix, maybe not. Maybe it's issue with bun and not with avsc.
I'm not familiar with Bun but it looks like the argument order here might not match the underlying implementation (which expects the encoding first, same as Node). Consider filing an issue there.
In the meantime, you may be able to work around this by patching the implementation:
Motivation
Support for new bun runtime
What's wrong
I'am using avsc in node, but starting digging into new bun runtime and I tried to move some of my lib to bun, but avsc has error while using
fromBuffer
method.error is:
Note this error is from
bun run test.js
script, not node.I tried to dig into the lib itself and try to find the issue, but it's too big for me :D without knowing context. So maybe it can be easy fix, maybe not. Maybe it's issue with bun and not with avsc.
If it's issue with bun itself, please close.
Code to reproduce
I found out it only happend on
string
type.The text was updated successfully, but these errors were encountered: