Skip to content

Releases: google/protobuf.dart

protoc_plugin-19.2.0+1

12 Nov 09:42
f06208e
Compare
Choose a tag to compare

19.2.0+1

  • Fix syntax error introduced by gRPC client interceptor changes.

protoc_plugin-19.2.0

12 Nov 08:45
0806fd7
Compare
Choose a tag to compare

19.2.0

  • Support client interceptors for gRPC. Requires grpc package 2.8.0 or newer.

protoc_plugin-19.1.0

12 Nov 08:44
d428804
Compare
Choose a tag to compare

19.1.0

  • Emit depreciation of generated copyWith and clone methods.

  • Emit exports of GeneratedMessageGenericExtensions from pb.dart files.

  • Make protobuf enum names dependent on a fromEnvironment constant.

    This will allow configuring the omission of the names in the final build.

    If a target is built with dart_env = {"protobuf.omit_enum_names": "true"}
    enum names will not be present in the compiled binary.

  • Make message and field names dependenc on a fromEnvironment constants
    protobuf.omit_message_names and protobuf.omit_field_names respectively.

  • Omit type on a left hand side of generated static fields for extensions,
    which results in stricter type (Extension<ExtensionType> instead of just
    Extension).

  • Fix escaping of string default values.

19.0.3-dev

  • Ignore annotate_overrides in generated files.
  • Requires sdk 2.3.0
  • Update pedantic to 1.9.2

19.0.2

  • Fix: escape the special character $ in descriptor's json_name.

protobuf-1.0.1

28 Oct 14:29
d428804
Compare
Choose a tag to compare

This releases bundles together a bunch of changes since 1.0.1:

1.1.0

  • Require at least Dart SDK 2.7.0 to enable usage of extension methods.
  • Introduce extension methods GeneratedMessage.rebuild and
    GeneratedMessage.deepCopy replacing copyWith and clone. Using these
    alternatives can result in smaller binaries, because it is defined once
    instead of once per class. Use protoc_plugin from 19.1.0 to generate
    deprecation warnings for copyWith and clone methods.
  • GeneratedMessage.getExtension throws when reading trying to read an
    extension that is present in the unknown fields.
    We consider this change a bug-fix because depending on the old behavior is
    indicative of a bug in your program.

1.0.4

  • Requires sdk 2.3.0
  • Update pedantic to 1.9.2

1.0.3

  • Enable hashCode memoization for frozen protos.
  • Add timeout to ClientContext

1.0.2

  • Fix hashcode of bytes fields.
  • Fix issue with the permissiveEnums option to mergeFromProto3Json.
    The comparison did not work properly.
  • Fix binary representation of negative int32 values.

Dart 2 fixes

17 May 10:37
4c9f987
Compare
Choose a tag to compare
  • Breaking change: Added generics to RpcClient.invoke(). Proto files must be rebuilt using Dart protoc_plugin version 0.8.0 or newer to match.
  • Dart 2 fixes.

Better hashing for lists

09 Apr 11:12
890446f
Compare
Choose a tag to compare
  • Fix hashing for PbList.

More Dart 2

22 Feb 12:19
3e2a439
Compare
Choose a tag to compare
  • Fix type in PbList.fold() for Dart 2.
  • Small performance tweaks for DDC.

Performance and Dart 2.0

12 Jan 11:12
Compare
Choose a tag to compare
  • Added fast getters for common types.
  • Only pass index instead of both tag and index to accessors.
  • Delegate more methods to underlying list in PbList.
  • Small fixes for Dart 2.0.

Enum values

25 Oct 10:38
Compare
Choose a tag to compare
  • Added enumValues to FieldInfo. Fixes #63.
  • Small performance optimization when deserializing repeated messages from JSON.
  • Type annotations for strong mode.

Prepare for Dart 2

14 Aug 12:04
Compare
Choose a tag to compare
  • Use real generic syntax instead of comment-based.
  • Support v2 dev SDKs.