Remove usage of deprecated constants. (#20)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d50f8d0..e621d98 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 1.0.8
+
+* Remove use of deprecated constant name.
+
## 1.0.7
* Support the latest dev SDK.
diff --git a/lib/src/channel.dart b/lib/src/channel.dart
index 4cd368c..c62fd44 100644
--- a/lib/src/channel.dart
+++ b/lib/src/channel.dart
@@ -65,7 +65,7 @@
static String signKey(String key) {
// We use [codeUnits] here rather than UTF-8-decoding the string because
// [key] is expected to be base64 encoded, and so will be pure ASCII.
- return convert.BASE64
+ return convert.base64
.encode(sha1.convert((key + webSocketGUID).codeUnits).bytes);
}
diff --git a/pubspec.yaml b/pubspec.yaml
index dd70f7e..32252a0 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: web_socket_channel
-version: 1.0.7
+version: 1.0.8
description: StreamChannel wrappers for WebSockets.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/dart-lang/web_socket_channel