Change in the returned class of GRVASTUtf8Codec>>#encode:
The GRVASTUtf8Codec>>#encode: has undergone a change which now returns a ByteArray instead of a String. This change was made to align with the canonical implementation and to gradually move binary data to use ByteArrays instead of using Strings as byte containers.
Reason for Change
The main reason for this change is that the canonical implementation of GRCodec returns a ByteArray instead of a String, and we wanted to follow this convention in our codebase. Additionally, returning a ByteArray reduces misleading representations that "look like" a codepage dependent string.
Action Required
If your system uses the #encode: method from GRVASTUtf8Codec to encode Strings, you should update your code to use the new return type of ByteArray. You can do this by just sending an #asString message to the returned object if your existing code expects it to be a String, or to adapt your code to follow the convention that binary data is represented with ByteArrays.
Last modified date: 05/02/2025