Merge pull request #6 from dart-lang/uuid-2.0
update to uuid version 2.0
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ba13a26..2ed8fb7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 2.0.1
+
+- Update to `package:uuid` version 2.0.
+
## 2.0.0
- No longer expose `close` and `onClose` on an `SseConnection`. This is simply
diff --git a/lib/client/sse_client.dart b/lib/client/sse_client.dart
index 65bbbee..8e5db6f 100644
--- a/lib/client/sse_client.dart
+++ b/lib/client/sse_client.dart
@@ -31,7 +31,7 @@
/// [serverUrl] is the URL under which the server is listening for
/// incoming bi-directional SSE connections.
SseClient(String serverUrl) {
- var clientId = '${Uuid().v1()}';
+ var clientId = Uuid().v1();
_eventSource = new EventSource('$serverUrl?sseClientId=$clientId',
withCredentials: true);
_serverUrl = '$serverUrl?sseClientId=$clientId';
diff --git a/pubspec.yaml b/pubspec.yaml
index 054332b..c3abb41 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: sse
-version: 2.0.0
+version: 2.0.1
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/dart-lang/sse
description: >-
@@ -17,7 +17,7 @@
pedantic: ^1.4.0
stream_channel: ^1.6.8
shelf: ^0.7.4
- uuid: ^1.0.3
+ uuid: ^2.0.0
dev_dependencies:
shelf_static: ^0.2.8