-
Notifications
You must be signed in to change notification settings - Fork 24
Support for plain array buffer #33
Comments
@hugomrdias I'm willing to work on a pull request that removes dependency on buffer in favor of |
IMO, the APIs should accept any binary type or view and just convert to a I’d love it if we also never returned |
I actually would like to get rid off I'm also reluctant to accept any binary type proposition, it seems like a good idea but in practice it comes with mental overhead (requiring side trips) to know what's being passed around. I'd much rather choose canonical representation and point users to adapters if they happen to need different one. It is also not obvious to me what the desired behavior is if e.g.
I actually implied getting rid of For base64 conversion we could have separate module just like we do for base56 |
I like this approach, it lets us maintain compatibility while opening up a better option for people that want it. It doesn’t even need to be another module, it could just be something like |
The reason I thought it was better to go with separate package is so we can track how many packages still depending on buffer wrapped version (through npm stats). If it’s same package it would be a lot harder to tell / migrate. |
It would be very convenient to not have to convert everything into node style Buffer but rather allow use of
ArrayBuffer
The text was updated successfully, but these errors were encountered: