-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Changes in ProtoBuf.js 3.8
dcodeIO edited this page Oct 29, 2014
·
2 revisions
It has been requested to change the default representation of binary data when assigning strings to bytes fields respectively converting messages to raw JSON structures.
As of version 3.8.0, ProtoBuf.js uses base64 encoding by default:
-
Instead of returning buffers,
Message#toRaw([includeBinaryAsBase64=false])
now returns base64 encoded strings for binary data whenincludeBinaryAsBase64
is set totrue
(was:includeBuffers
). -
String assignments to bytes fields by default parse the string as base64.