Skip to content

Releases: google/protobuf.dart

package:protoc_plugin v25.0.0

26 Nov 08:42
9e30258

Choose a tag to compare

Note: this version requires protobuf 6.0.0.

package:protobuf v6.0.0

26 Nov 08:40
9e30258

Choose a tag to compare

  • New GeneratedMessage extension methods toTextFormat and writeTextFormat added to convert the message into the official protocol buffers text format. (#1080, #125)

  • Add well-known proto types as libraries. This change is required for protoc_plugin-25.0.0. (#1081)

  • Breaking: Hide PbList and PbMap constructors. It is not possible to construct these values correctly in user code, so the constructors are now private. Existing uses of PbList can be replaced by List and PbMap can be replaced by Map.

    For immutable lists and maps, you can use built_value. (#1072)

  • Map fields now check key and value validity when adding elements. (#1065, #1076)

package:protobuf v5.1.0

06 Nov 13:54
1ebb09c

Choose a tag to compare

  • Update default size limit of CodedBufferReader from 67,108,864 bytes to 2,147,483,647 bytes, and default recursion limit from 64 to 100.

    The new limits are consistent with the Java and C++ implementations. (#1060)

  • Fix GeneratedMessage.addExtension returning non-frozen and GeneratedMessage.getExtension allowing modifying an extension when the message is frozen before initializing the extension field set. (#1062)

  • Fix GeneratedMessage.getExtension returning differently typed lists when the message extension field set is initialized and frozen and initialized but not frozen. (#1062)

  • Fix PbList methods addAll, insertAll, replaceRange, setAll, setRange iterating the Iterable argument twice. (#730, #1070)

  • Fix GeneratedMessage.== throwing a type error when comparing map fields in some cases. (#1075, #1077)

    This bug was introduced with protobuf-5.0.0.

package:protoc_plugin v24.0.0

04 Nov 08:49
4dfedaf

Choose a tag to compare

  • Breaking: Don't generate createRepeated methods.

    These methods are not too useful as there isn't much you can do with a PbList that you can't do with a List.

    To migrate, replace MyMessage.createRepeated() with <MyMessage>[].

package:protoc_plugin v23.0.0

30 Sep 12:57
fb89979

Choose a tag to compare

Note: this version requires protobuf 5.0.0.

  • Support protobuf editions. (#1052)
  • Update generated code for protobuf 5.0.0.
  • Update generated clone members to take advantage of faster deepCopy implementation in protobuf 5.0.0. (#742)
  • Code size improvements for enum fields. (#1047)

package:protobuf v5.0.0

30 Sep 12:56
fb89979

Choose a tag to compare

  • Improve performance of GeneratedMessage.deepCopy. (#742)
  • Fix unknown enum handling in GeneratedMessage.mergeFromProto3Json when the ignoreUnknownFields optional argument is true. (#853)
  • Add BuilderInfo methods to support protoc-plugin 23.0.0. (#1047)
  • Generalize argument type of PbList.from from List<T> to Iterable<T>. (#1054)
  • Fix clearing oneof fields with GeneratedMessage.clear. (#1057)
  • Fix unknown JSON handling when using GeneratedMessage methods mergeFromJson, mergeFromJsonMap, writeToJson, writeToJsonMap. (#1058)

package:protoc_plugin v22.5.0

16 Jul 22:54
a9822d8

Choose a tag to compare

  • Generated files are now formatted using the Dart formatter. The code is
    formatted using the min. SDK for package:protoc_plugin; currently 3.7.0.
  • Minimum SDK dependency bumped from 3.6.0 to 3.7.0. (#1024)

package:protobuf v4.1.1

16 Jul 22:54
a9822d8

Choose a tag to compare

  • Minimum SDK dependency bumped from 3.6.0 to 3.7.0. ([#1024])
    [#1024]: #1024

package:protoc_plugin v22.4.0

24 Jun 21:15
bce362d

Choose a tag to compare

  • Update how we calculate import prefixes (#1010); import prefixes are now
    unique per-library instead of being unique across all generated libraries.
  • Ignore unused_import diagnostics for *.pbjson.dart files. (#1013)
  • Revert the change to not generate empty *.pbenum.dart files; these can be
    exported from other enum files. (#1016)
  • Improve the readablity of generated gRPC client files. (#1021)
  • Adjust the text of generated file headers ('This is a generated file...').
    (#1022)

package:protoc_plugin v22.3.0

28 May 17:12
60dfaed

Choose a tag to compare

  • Update the generated code to improve readability and to better follow common Dart patterns.
  • No longer generate empty enum (*.pbenum.dart) files.
  • No longer generate empty server (*.pbserver.dart) files.
  • Ignore implementation_imports for some generated files.