Skip to content

package:protobuf v4.0.0

Compare
Choose a tag to compare
@mraleph mraleph released this 28 Mar 09:31
· 55 commits to master since this release
3bffe4b
  • 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 a Uint8List argument (instead of TypedData).
  • 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 another PbMap.
    To migrate, use PbMap.unmodifiable(map.keyFieldType, map.valueFieldType) instead of PbMap.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)