Skip to content

Commit a9822d8

Browse files
authored
prep for publishing protobuf 4.1.1, protoc_plugin 22.5.0 (#1025)
1 parent 38f1549 commit a9822d8

File tree

7 files changed

+29
-15
lines changed

7 files changed

+29
-15
lines changed

protobuf/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 4.1.1-wip
1+
## 4.1.1
22

33
* Minimum SDK dependency bumped from 3.6.0 to 3.7.0. ([#1024])
44

protobuf/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: protobuf
2-
version: 4.1.1-wip
2+
version: 4.1.1
33
description: >-
44
Runtime library for protocol buffers support. Use with package:protoc_plugin
55
to generate Dart code for your '.proto' files.

protoc_plugin/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 22.5.0-wip
1+
## 22.5.0
22

33
* Generated files are now formatted using the Dart formatter. The code is
44
formatted using the min. SDK for `package:protoc_plugin`; currently `3.7.0`.

protoc_plugin/lib/src/formatter.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'package:dart_style/dart_style.dart';
66
import 'package:pub_semver/pub_semver.dart';
77

88
// Note: keep this in sync with the SDK constraint in pubspec.yaml.
9-
final Version formatUsingVersion = Version(3, 6, 0);
9+
final Version formatUsingVersion = Version(3, 7, 0);
1010

1111
final DartFormatter _formatter = DartFormatter(
1212
languageVersion: formatUsingVersion,

protoc_plugin/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: protoc_plugin
2-
version: 22.5.0-wip
2+
version: 22.5.0
33
description: A protobuf protoc compiler plugin used to generate Dart code.
44
repository: https://github.com/google/protobuf.dart/tree/master/protoc_plugin
55

protoc_plugin/test/goldens/client.pb.dart

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,17 @@ class TestApi {
44
TestApi(this._client);
55

66
$async.Future<SomeReply> aMethod(
7-
$pb.ClientContext? ctx, SomeRequest request) =>
8-
_client.invoke<SomeReply>(ctx, 'Test', 'AMethod', request, SomeReply());
7+
$pb.ClientContext? ctx,
8+
SomeRequest request,
9+
) => _client.invoke<SomeReply>(ctx, 'Test', 'AMethod', request, SomeReply());
910
$async.Future<$0.AnotherReply> anotherMethod(
10-
$pb.ClientContext? ctx, $0.EmptyMessage request) =>
11-
_client.invoke<$0.AnotherReply>(
12-
ctx, 'Test', 'AnotherMethod', request, $0.AnotherReply());
11+
$pb.ClientContext? ctx,
12+
$0.EmptyMessage request,
13+
) => _client.invoke<$0.AnotherReply>(
14+
ctx,
15+
'Test',
16+
'AnotherMethod',
17+
request,
18+
$0.AnotherReply(),
19+
);
1320
}

protoc_plugin/test/goldens/serviceGenerator.pb.dart

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
abstract class TestServiceBase extends $pb.GeneratedService {
22
$async.Future<$0.SomeReply> aMethod(
3-
$pb.ServerContext ctx, $0.SomeRequest request);
3+
$pb.ServerContext ctx,
4+
$0.SomeRequest request,
5+
);
46
$async.Future<$1.AnotherReply> anotherMethod(
5-
$pb.ServerContext ctx, $1.EmptyMessage request);
7+
$pb.ServerContext ctx,
8+
$1.EmptyMessage request,
9+
);
610

711
$pb.GeneratedMessage createRequest($core.String methodName) {
812
switch (methodName) {
@@ -15,8 +19,11 @@ abstract class TestServiceBase extends $pb.GeneratedService {
1519
}
1620
}
1721

18-
$async.Future<$pb.GeneratedMessage> handleCall($pb.ServerContext ctx,
19-
$core.String methodName, $pb.GeneratedMessage request) {
22+
$async.Future<$pb.GeneratedMessage> handleCall(
23+
$pb.ServerContext ctx,
24+
$core.String methodName,
25+
$pb.GeneratedMessage request,
26+
) {
2027
switch (methodName) {
2128
case 'AMethod':
2229
return aMethod(ctx, request as $0.SomeRequest);
@@ -29,5 +36,5 @@ abstract class TestServiceBase extends $pb.GeneratedService {
2936

3037
$core.Map<$core.String, $core.dynamic> get $json => TestServiceBase$json;
3138
$core.Map<$core.String, $core.Map<$core.String, $core.dynamic>>
32-
get $messageJson => TestServiceBase$messageJson;
39+
get $messageJson => TestServiceBase$messageJson;
3340
}

0 commit comments

Comments
 (0)