Previously, if you attempted to build/create an object whose properties contained Buffers, they would be converted from the native Buffer type into an array (and thus creating an incorrect value). This is caused by the use of lodash's merge implementation (see https://github.com/lodash/lodash/issues/2964).
The recommended solution from the lodash project is to define a merge customizer to specifically handle this situation, which is what we do here.
Previously, if you attempted to
build
/create
an object whose properties containedBuffer
s, they would be converted from the nativeBuffer
type into an array (and thus creating an incorrect value). This is caused by the use of lodash'smerge
implementation (see https://github.com/lodash/lodash/issues/2964).The recommended solution from the lodash project is to define a merge
customizer
to specifically handle this situation, which is what we do here.