This is a breaking change for users who used the encoding option with getStream() (not with getStreamAsBuffer()) except if they used encoding: undefined, encoding: null or encoding: 'utf8. For users who used encoding: 'hex', please convert to hexadecimal using Buffer.from(string).toString('hex'). For those who used encoding: 'base64', please convert to base64 using either Buffer.from(string).toString('base64') or (for better performance on big streams) with b64.
Fixes #67.
This removes the
encoding
option.This is a breaking change for users who used the
encoding
option withgetStream()
(not withgetStreamAsBuffer()
) except if they usedencoding: undefined
,encoding: null
orencoding: 'utf8
. For users who usedencoding: 'hex'
, please convert to hexadecimal usingBuffer.from(string).toString('hex')
. For those who usedencoding: 'base64'
, please convert to base64 using eitherBuffer.from(string).toString('base64')
or (for better performance on big streams) withb64
.