Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

update to uuid version 2.0 #6

Merged
merged 1 commit into from
Mar 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>
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