From a4976ae5668989e80824a6ae087ed5d6172c6c95 Mon Sep 17 00:00:00 2001 From: "Lasse R.H. Nielsen" Date: Fri, 1 Jun 2018 14:57:12 +0200 Subject: [PATCH] Remove upper case constants (#17) * Remove usage of upper-case constants. * update SDK version * remove stable from Travis config --- .travis.yml | 2 -- CHANGELOG.md | 4 ++++ pubspec.yaml | 4 ++-- test/json_document_transformer_test.dart | 2 +- test/stream_channel_test.dart | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index a9510326d2122..45359fb404889 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,8 +2,6 @@ language: dart dart: - dev - - stable - dart_task: - test: --platform vm - test: --platform firefox -j 1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 014b2fcc351a7..eafdb81223f78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.6.7 + +* Update SDK version to 2.0.0-dev.17.0. + ## 1.6.6 * Fix a Dart 2 issue with inner stream transformation in `GuaranteeChannel`. diff --git a/pubspec.yaml b/pubspec.yaml index c121f5f132052..47e24c2f753ec 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,10 +1,10 @@ name: stream_channel -version: 1.6.6 +version: 1.6.7-dev description: An abstraction for two-way communication channels. author: Dart Team homepage: https://github.com/dart-lang/stream_channel environment: - sdk: '>=1.21.0 <2.0.0' + sdk: '>=2.0.0-dev.17.0 <2.0.0' dependencies: async: '>=1.11.0 <3.0.0' stack_trace: '^1.0.0' diff --git a/test/json_document_transformer_test.dart b/test/json_document_transformer_test.dart index b55a118879380..d6fd72b965e4a 100644 --- a/test/json_document_transformer_test.dart +++ b/test/json_document_transformer_test.dart @@ -29,7 +29,7 @@ void main() { var transformed = channel.transform(jsonDocument); transformed.sink.add({"foo": "bar"}); expect(sinkController.stream.first, - completion(equals(JSON.encode({"foo": "bar"})))); + completion(equals(jsonEncode({"foo": "bar"})))); }); test("supports the reviver function", () { diff --git a/test/stream_channel_test.dart b/test/stream_channel_test.dart index 4ec84bc26424e..dbe4211956e48 100644 --- a/test/stream_channel_test.dart +++ b/test/stream_channel_test.dart @@ -43,7 +43,7 @@ void main() { test("transform() transforms the channel", () async { var transformed = channel .cast>() - .transform(new StreamChannelTransformer.fromCodec(UTF8)); + .transform(new StreamChannelTransformer.fromCodec(utf8)); streamController.add([102, 111, 111, 98, 97, 114]); streamController.close();