diff --git a/protoc_plugin/CHANGELOG.md b/protoc_plugin/CHANGELOG.md index 71ba701e0..c5a0df6bd 100644 --- a/protoc_plugin/CHANGELOG.md +++ b/protoc_plugin/CHANGELOG.md @@ -1,3 +1,7 @@ +## 19.2.0+1 + +* Fix syntax error introduced by gRPC client interceptor changes. + ## 19.2.0 * Support client interceptors for gRPC. Requires grpc package 2.8.0 or newer. diff --git a/protoc_plugin/lib/grpc_generator.dart b/protoc_plugin/lib/grpc_generator.dart index 560c5cd34..1d67d724e 100644 --- a/protoc_plugin/lib/grpc_generator.dart +++ b/protoc_plugin/lib/grpc_generator.dart @@ -236,7 +236,7 @@ class _GrpcMethod { 'return \$createStreamingCall(_\$$_dartName, request, options: options).single;'); } else if (!_clientStreaming && _serverStreaming) { out.println( - 'return \$createStreamingCall(_\$$_dartName, Stream.fromIterable([request]), options: options);'); + 'return \$createStreamingCall(_\$$_dartName, $_stream.fromIterable([request]), options: options);'); } else { out.println( 'return \$createUnaryCall(_\$$_dartName, request, options: options);'); diff --git a/protoc_plugin/pubspec.yaml b/protoc_plugin/pubspec.yaml index 49eb0b8f5..a72497d70 100644 --- a/protoc_plugin/pubspec.yaml +++ b/protoc_plugin/pubspec.yaml @@ -1,5 +1,5 @@ name: protoc_plugin -version: 19.2.0 +version: 19.2.0+1 description: Protoc compiler plugin to generate Dart code homepage: https://github.com/dart-lang/protobuf diff --git a/protoc_plugin/test/goldens/grpc_service.pbgrpc b/protoc_plugin/test/goldens/grpc_service.pbgrpc index 5b7bdf13a..6cb00959d 100644 --- a/protoc_plugin/test/goldens/grpc_service.pbgrpc +++ b/protoc_plugin/test/goldens/grpc_service.pbgrpc @@ -51,7 +51,7 @@ class TestClient extends $grpc.Client { $grpc.ResponseStream<$0.Output> serverStreaming($0.Input request, {$grpc.CallOptions options}) { return $createStreamingCall( - _$serverStreaming, Stream.fromIterable([request]), + _$serverStreaming, $async.Stream.fromIterable([request]), options: options); }