Releases: google/protobuf.dart
Releases ยท google/protobuf.dart
package:protoc_plugin v23.0.0
package:protobuf v5.0.0
- Improve performance of
GeneratedMessage.deepCopy. (#742) - Fix unknown enum handling in
GeneratedMessage.mergeFromProto3Jsonwhen theignoreUnknownFieldsoptional argument istrue. (#853) - Add
BuilderInfomethods to support protoc-plugin 23.0.0. (#1047) - Generalize argument type of
PbList.fromfromList<T>toIterable<T>. (#1054) - Fix clearing oneof fields with
GeneratedMessage.clear. (#1057) - Fix unknown JSON handling when using
GeneratedMessagemethodsmergeFromJson,mergeFromJsonMap,writeToJson,writeToJsonMap. (#1058)
package:protoc_plugin v22.5.0
- Generated files are now formatted using the Dart formatter. The code is
formatted using the min. SDK forpackage:protoc_plugin; currently3.7.0. - Minimum SDK dependency bumped from 3.6.0 to 3.7.0. (#1024)
package:protobuf v4.1.1
package:protoc_plugin v22.4.0
- Update how we calculate import prefixes (#1010); import prefixes are now
unique per-library instead of being unique across all generated libraries. - Ignore
unused_importdiagnostics for*.pbjson.dartfiles. (#1013) - Revert the change to not generate empty
*.pbenum.dartfiles; 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
- 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_importsfor some generated files.
package:protoc_plugin v22.2.0
-
Bump
protobufconstraint to^4.1.0 -
Read
default_hostandoauth_scopesoptions from gRPC service definitions
and write that information to the generated gRPC clients. -
Adjust the deprecation messages for the message
clone()andcopyWith()
methods (#998). -
Generate dartdocs for grpc services (#973).
We now parse and generate code cooresponding to the proto options
google.api.default_hostandgoogle.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
package:protoc_plugin v22.1.0
- Fix factory argument types for protobuf
Mapfields. (#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
- Bump
protobufconstraint to^4.0.0