File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.6.5
2
+
3
+ * Fix an issue with ` JsonDocumentTransformer.bind ` where it created an internal
4
+ stream channel which didn't get a properly inferred type for its ` sink ` .
5
+
1
6
## 1.6.4
2
7
3
8
* Fix a race condition in ` MultiChannel ` where messages from a remote virtual
Original file line number Diff line number Diff line change 2
2
// for details. All rights reserved. Use of this source code is governed by a
3
3
// BSD-style license that can be found in the LICENSE file.
4
4
5
+ import 'dart:async' ;
5
6
import 'dart:convert' ;
6
7
7
8
import 'package:async/async.dart' ;
@@ -35,9 +36,10 @@ class JsonDocumentTransformer
35
36
36
37
JsonDocumentTransformer ._(this ._codec);
37
38
38
- StreamChannel bind (StreamChannel <String > channel) {
39
+ StreamChannel < Object > bind (StreamChannel <String > channel) {
39
40
var stream = channel.stream.map (_codec.decode);
40
- var sink = new StreamSinkTransformer .fromHandlers (handleData: (data, sink) {
41
+ var sink = new StreamSinkTransformer <Object , String >.fromHandlers (
42
+ handleData: (data, sink) {
41
43
sink.add (_codec.encode (data));
42
44
}).bind (channel.sink);
43
45
return new StreamChannel .withCloseGuarantee (stream, sink);
Original file line number Diff line number Diff line change 1
1
name : stream_channel
2
- version : 1.6.4
2
+ version : 1.6.5
3
3
description : An abstraction for two-way communication channels.
4
4
author :
Dart Team <[email protected] >
5
5
homepage : https://github.com/dart-lang/stream_channel
You can’t perform that action at this time.
0 commit comments