Skip to content

Releases: google/protobuf.dart

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.

package:protoc_plugin v22.2.0

19 May 18:43
deda288

Choose a tag to compare

  • Bump protobuf constraint to ^4.1.0

  • Read default_host and oauth_scopes options from gRPC service definitions
    and write that information to the generated gRPC clients.

  • Adjust the deprecation messages for the message clone() and copyWith()
    methods (#998).

  • Generate dartdocs for grpc services (#973).
    We now parse and generate code cooresponding to the proto options
    google.api.default_host and google.api.oauth_scopes:

    service Firestore {
      option (google.api.default_host) = "firestore.googleapis.com";
      option (google.api.oauth_scopes) =
          "https://www.googleapis.com/auth/cloud-platform,"
          "https://www.googleapis.com/auth/datastore";
    
      ...

    Will generate as:

    class FirestoreClient extends $grpc.Client {
      /// The hostname for this service.
      static const $core.String defaultHost = 'firestore.googleapis.com';
    
      /// OAuth scopes needed for the client.
      static const $core.List<$core.String> oauthScopes = [
        'https://www.googleapis.com/auth/cloud-platform',
        'https://www.googleapis.com/auth/datastore',
      ];
    
      ...
  • Minimum SDK dependency bumped from 3.3.0 to 3.6.0. (#1001)

package:protobuf v4.1.0

19 May 18:43
deda288

Choose a tag to compare

  • Improve packed field decoding performance. (#959, #981)
  • Minimum SDK dependency bumped from 3.3.0 to 3.6.0. (#1001)

package:protoc_plugin v22.1.0

13 May 20:08
d5906e7

Choose a tag to compare

  • Fix factory argument types for protobuf Map fields. (#975)
  • Fix import order changes when files are passed in different order to protoc. (#952)
  • Add fromDart() and toDart() methods to convert between core Duration and proto Duration (#986)
  • Update the GRPC service generator to emit constructors that use super parameters.

package:protoc_plugin v22.0.1

28 Mar 14:00
cf4f3a8

Choose a tag to compare

  • Bump protobuf constraint to ^4.0.0