Skip to content

Commit

Permalink
Merge pull request flutter#6 from dart-lang/uuid-2.0
Browse files Browse the repository at this point in the history
update to uuid version 2.0
  • Loading branch information
grouma authored Mar 20, 2019
2 parents c7d4ecf + 8b54838 commit 887eec1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/client/sse_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class SseClient extends StreamChannelMixin<String> {
/// [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';
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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: >-
Expand All @@ -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
Expand Down

0 comments on commit 887eec1

Please sign in to comment.