Skip to content

Commit 5753cf1

Browse files
committed
code review updates
1 parent 30c58c7 commit 5753cf1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG.md

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

33
* Fix an issue with `JsonDocumentTransformer.bind` where it created an internal
44
stream channel which didn't get a properly inferred type for its `sink`.

lib/src/json_document_transformer.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class JsonDocumentTransformer
3838

3939
StreamChannel<Object> bind(StreamChannel<String> channel) {
4040
var stream = channel.stream.map(_codec.decode);
41-
var sink = new StreamSinkTransformer.fromHandlers(
42-
handleData: (Object data, EventSink<String> sink) {
41+
var sink = new StreamSinkTransformer<Object, String>.fromHandlers(
42+
handleData: (data, sink) {
4343
sink.add(_codec.encode(data));
4444
}).bind(channel.sink);
4545
return new StreamChannel.withCloseGuarantee(stream, sink);

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: stream_channel
2-
version: 1.6.4+1
2+
version: 1.6.5
33
description: An abstraction for two-way communication channels.
44
author: Dart Team <[email protected]>
55
homepage: https://github.com/dart-lang/stream_channel

0 commit comments

Comments
 (0)