@cloudflare/sandbox@0.10.1
·
141 commits
to main
since this release
Patch Changes
-
#683
718d4e7Thanks @aron-cf! -readFilenow acceptsencoding: 'none'on therpctransport, returning a result whosecontentis aReadableStream<Uint8Array>of raw binary data with no base64 encoding or buffering. Mirrors the existingwriteFilesupport forReadableStreaminput.// Stream a binary file without buffering or base64 overhead (rpc transport only) const { content, size, mimeType } = await sandbox.readFile( '/workspace/image.png', { encoding: 'none' } );