prep for publishing protobuf 4.1.1, protoc_plugin 22.5.0 (#1025)
diff --git a/protobuf/CHANGELOG.md b/protobuf/CHANGELOG.md index d0580b2..1ec9d5f 100644 --- a/protobuf/CHANGELOG.md +++ b/protobuf/CHANGELOG.md
@@ -1,4 +1,4 @@ -## 4.1.1-wip +## 4.1.1 * Minimum SDK dependency bumped from 3.6.0 to 3.7.0. ([#1024])
diff --git a/protobuf/pubspec.yaml b/protobuf/pubspec.yaml index 9bdd790..0b3a610 100644 --- a/protobuf/pubspec.yaml +++ b/protobuf/pubspec.yaml
@@ -1,5 +1,5 @@ name: protobuf -version: 4.1.1-wip +version: 4.1.1 description: >- Runtime library for protocol buffers support. Use with package:protoc_plugin to generate Dart code for your '.proto' files.
diff --git a/protoc_plugin/CHANGELOG.md b/protoc_plugin/CHANGELOG.md index 46f367f..b12de70 100644 --- a/protoc_plugin/CHANGELOG.md +++ b/protoc_plugin/CHANGELOG.md
@@ -1,4 +1,4 @@ -## 22.5.0-wip +## 22.5.0 * 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`.
diff --git a/protoc_plugin/lib/src/formatter.dart b/protoc_plugin/lib/src/formatter.dart index 63db5e4..10afaea 100644 --- a/protoc_plugin/lib/src/formatter.dart +++ b/protoc_plugin/lib/src/formatter.dart
@@ -6,7 +6,7 @@ import 'package:pub_semver/pub_semver.dart'; // Note: keep this in sync with the SDK constraint in pubspec.yaml. -final Version formatUsingVersion = Version(3, 6, 0); +final Version formatUsingVersion = Version(3, 7, 0); final DartFormatter _formatter = DartFormatter( languageVersion: formatUsingVersion,
diff --git a/protoc_plugin/pubspec.yaml b/protoc_plugin/pubspec.yaml index f92a6f9..3f6fa26 100644 --- a/protoc_plugin/pubspec.yaml +++ b/protoc_plugin/pubspec.yaml
@@ -1,5 +1,5 @@ name: protoc_plugin -version: 22.5.0-wip +version: 22.5.0 description: A protobuf protoc compiler plugin used to generate Dart code. repository: https://github.com/google/protobuf.dart/tree/master/protoc_plugin
diff --git a/protoc_plugin/test/goldens/client.pb.dart b/protoc_plugin/test/goldens/client.pb.dart index f35cc45..7213346 100644 --- a/protoc_plugin/test/goldens/client.pb.dart +++ b/protoc_plugin/test/goldens/client.pb.dart
@@ -4,10 +4,17 @@ TestApi(this._client); $async.Future<SomeReply> aMethod( - $pb.ClientContext? ctx, SomeRequest request) => - _client.invoke<SomeReply>(ctx, 'Test', 'AMethod', request, SomeReply()); + $pb.ClientContext? ctx, + SomeRequest request, + ) => _client.invoke<SomeReply>(ctx, 'Test', 'AMethod', request, SomeReply()); $async.Future<$0.AnotherReply> anotherMethod( - $pb.ClientContext? ctx, $0.EmptyMessage request) => - _client.invoke<$0.AnotherReply>( - ctx, 'Test', 'AnotherMethod', request, $0.AnotherReply()); + $pb.ClientContext? ctx, + $0.EmptyMessage request, + ) => _client.invoke<$0.AnotherReply>( + ctx, + 'Test', + 'AnotherMethod', + request, + $0.AnotherReply(), + ); }
diff --git a/protoc_plugin/test/goldens/serviceGenerator.pb.dart b/protoc_plugin/test/goldens/serviceGenerator.pb.dart index d406ac7..067ea4f 100644 --- a/protoc_plugin/test/goldens/serviceGenerator.pb.dart +++ b/protoc_plugin/test/goldens/serviceGenerator.pb.dart
@@ -1,8 +1,12 @@ abstract class TestServiceBase extends $pb.GeneratedService { $async.Future<$0.SomeReply> aMethod( - $pb.ServerContext ctx, $0.SomeRequest request); + $pb.ServerContext ctx, + $0.SomeRequest request, + ); $async.Future<$1.AnotherReply> anotherMethod( - $pb.ServerContext ctx, $1.EmptyMessage request); + $pb.ServerContext ctx, + $1.EmptyMessage request, + ); $pb.GeneratedMessage createRequest($core.String methodName) { switch (methodName) { @@ -15,8 +19,11 @@ } } - $async.Future<$pb.GeneratedMessage> handleCall($pb.ServerContext ctx, - $core.String methodName, $pb.GeneratedMessage request) { + $async.Future<$pb.GeneratedMessage> handleCall( + $pb.ServerContext ctx, + $core.String methodName, + $pb.GeneratedMessage request, + ) { switch (methodName) { case 'AMethod': return aMethod(ctx, request as $0.SomeRequest); @@ -29,5 +36,5 @@ $core.Map<$core.String, $core.dynamic> get $json => TestServiceBase$json; $core.Map<$core.String, $core.Map<$core.String, $core.dynamic>> - get $messageJson => TestServiceBase$messageJson; + get $messageJson => TestServiceBase$messageJson; }