Skip to content

Commit

Permalink
Merge pull request #1393 from francescoberardi/feat/update-uuid
Browse files Browse the repository at this point in the history
fix(graphql): bump uuid dependency to ^4.0.0
  • Loading branch information
vincenzopalazzo authored Nov 23, 2023
2 parents 2c1601a + 4fa6dd6 commit 56d9a24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ import 'package:graphql/src/utilities/platform.dart';
import 'package:meta/meta.dart';
import 'package:rxdart/rxdart.dart';
import 'package:stream_channel/stream_channel.dart';
import 'package:uuid/data.dart';
import 'package:uuid/rng.dart';
import 'package:uuid/uuid.dart';
import 'package:uuid/uuid_util.dart';
import 'package:web_socket_channel/status.dart' as ws_status;
import 'package:web_socket_channel/web_socket_channel.dart';

Expand All @@ -26,7 +27,7 @@ typedef WebSocketConnect = FutureOr<WebSocketChannel> Function(
);

// create uuid generator
final _uuid = Uuid(options: {'grng': UuidUtil.cryptoRNG});
final _uuid = Uuid(goptions: GlobalOptions(CryptoRNG()));

class SubscriptionListener {
Function callback;
Expand Down Expand Up @@ -472,10 +473,8 @@ class SocketClient {
final bool waitForConnection,
) {
final String id = _uuid.v4(
options: {
'random': randomBytesForUuid,
},
).toString();
config: V4Options(randomBytesForUuid, null),
);
final StreamController<Response> response = StreamController<Response>();
StreamSubscription<SocketConnectionState>? sub;
final bool addTimeout =
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies:
web_socket_channel: ^2.3.0
stream_channel: ^2.1.0
rxdart: ^0.27.1
uuid: ^3.0.1
uuid: ^4.0.0

dev_dependencies:
async: ^2.5.0
Expand Down

0 comments on commit 56d9a24

Please sign in to comment.