Closed cinnamon-bun closed 2 years ago
This is mostly done now, but there are still 2 functions in bytes.ts
that use Buffers:
We need to reimplement these without Buffers, in a platform-neutral way (no atob or btoa either)... that's still efficient. Hmmm.
What's the problem you want solved?
We want to isolate the Buffer-using code as much as possible
Is there a solution you'd like to recommend?
Move all the functions that mention Buffer into a separate file,
buffers.ts
, so we're less likely to end up with the Buffer polyfill included in our bundles.bytes.ts
will still have helper functions for using UInt8Arrays.