Updates for Dart 2.0 corelib changes (wave 2.2)
diff --git a/pkgs/web_socket_channel/CHANGELOG.md b/pkgs/web_socket_channel/CHANGELOG.md index f29baf9..49b2eec 100644 --- a/pkgs/web_socket_channel/CHANGELOG.md +++ b/pkgs/web_socket_channel/CHANGELOG.md
@@ -1,3 +1,10 @@ +## 1.0.7 + +* Updates to support Dart 2.0 core library changes (wave 2.2). + See [issue 31847][sdk#31847] for details. + + [sdk#31847]: https://github.com/dart-lang/sdk/issues/31847 + ## 1.0.6 * Declare support for `async` 2.0.0.
diff --git a/pkgs/web_socket_channel/lib/src/copy/web_socket_impl.dart b/pkgs/web_socket_channel/lib/src/copy/web_socket_impl.dart index 8996619..5c8e1b3 100644 --- a/pkgs/web_socket_channel/lib/src/copy/web_socket_impl.dart +++ b/pkgs/web_socket_channel/lib/src/copy/web_socket_impl.dart
@@ -66,7 +66,8 @@ /// will lead to undefined behaviour. // TODO(ajohnsen): make this transformer reusable? class _WebSocketProtocolTransformer - implements StreamTransformer<List<int>, dynamic>, EventSink<List<int>> { + extends StreamTransformerBase<List<int>, dynamic> + implements EventSink<List<int>> { static const int START = 0; static const int LEN_FIRST = 1; static const int LEN_REST = 2; @@ -392,7 +393,7 @@ // TODO(ajohnsen): Make this transformer reusable. class _WebSocketOutgoingTransformer - implements StreamTransformer<dynamic, List<int>>, EventSink { + extends StreamTransformerBase<dynamic, List<int>> implements EventSink { final WebSocketImpl webSocket; EventSink<List<int>> _eventSink;
diff --git a/pkgs/web_socket_channel/pubspec.yaml b/pkgs/web_socket_channel/pubspec.yaml index 48f3bce..08dde58 100644 --- a/pkgs/web_socket_channel/pubspec.yaml +++ b/pkgs/web_socket_channel/pubspec.yaml
@@ -1,11 +1,11 @@ name: web_socket_channel -version: 1.0.6 +version: 1.0.7 description: StreamChannel wrappers for WebSockets. author: Dart Team <misc@dartlang.org> homepage: https://github.com/dart-lang/web_socket_channel environment: - sdk: '>=1.13.0 <2.0.0' + sdk: '>=2.0.0-dev.20.0 <2.0.0' dependencies: async: '>=1.3.0 <3.0.0'