From 8b5483874da500ea07cf1ea490061dffb44bb7f8 Mon Sep 17 00:00:00 2001 From: Jacob MacDonald Date: Wed, 20 Mar 2019 10:55:57 -0700 Subject: [PATCH] update to uuid version 2.0 --- CHANGELOG.md | 4 ++++ lib/client/sse_client.dart | 2 +- pubspec.yaml | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba13a265fa329..2ed8fb7fadda2 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 65bbbeec7323a..8e5db6ffb5d26 100644 --- a/lib/client/sse_client.dart +++ b/lib/client/sse_client.dart @@ -31,7 +31,7 @@ class SseClient extends StreamChannelMixin { /// [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 054332bf34796..c3abb41aa1bf2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: sse -version: 2.0.0 +version: 2.0.1 author: Dart Team homepage: https://github.com/dart-lang/sse description: >- @@ -17,7 +17,7 @@ dependencies: 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