package:protobuf v4.0.0
·
55 commits
to master
since this release
- Breaking: The following types and members are now removed:
PbEventMixin
PbFieldChange
EventBuffer
GeneratedMessage.createRepeatedField
GeneratedMessage.createMapField
These were used to implement events, which are unused internally. To keep API surface small (to make it easier to change the library or migrate to another library) these types and members are removed. (#738)
- Breaking:
CodedBufferWriter.writeRawBytes
now takes aUint8List
argument (instead ofTypedData
). GeneratedMessageGenericExtensions.deepCopy
is now annotated with@useResult
and will generate a warning when its result is not used. (#896)- Breaking:
PbMap.unmodifiable
now takes key and value field types as arguments, instead of anotherPbMap
.
To migrate, usePbMap.unmodifiable(map.keyFieldType, map.valueFieldType)
instead ofPbMap.unmodifiable(map)
. (#902) - Messages deserialized from JSON now generate the unknown fields when serialized as JSON. Note that, as before, unknown fields in JSON messages are not stored in the
unknownFields
of the message. They are only used by the JSON serializers to support roundtripping. (#49, #918) - Minimum SDK dependency bumped from 2.19.0 to 3.3.0. (#953)