Skip to content

Commit 7a55725

Browse files
committed
1. Fixed #393 Bug: type 'Null' is not a subtype of type 'bool'
2. Bump 3.0.0-beta.3
1 parent d91a970 commit 7a55725

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
## 3.0.0-beta.3
2+
3+
**Bug fix:**
4+
* [#393](https://github.com/rikulo/socket.io-client-dart/issues/393) Bug: type 'Null' is not a subtype of type 'bool'
5+
16
## 3.0.0-beta.2
27

38
**Bug fix:**
49
* [#373](https://github.com/rikulo/socket.io-client-dart/issues/373) hot restart error - Unhandled Exception: type 'Null' is not a subtype of type 'bool'
5-
*
10+
611
## 3.0.0-beta.1
712

813
**Bug fix:**

lib/src/socket.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ class Socket extends EventEmitter {
170170
var packet = {
171171
'type': EVENT,
172172
'data': sendData,
173-
'options': {'compress': flags.isNotEmpty == true && flags['compress']}
173+
'options': {
174+
'compress': flags.isNotEmpty == true && (flags['compress'] ?? false)
175+
}
174176
};
175177

176178
// event ack callback

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: socket_io_client
22
description: Dartlang port of socket.io-client for web, flutter, dartvm to use
3-
version: 3.0.0-beta.2
3+
version: 3.0.0-beta.3
44
homepage: https://www.zkoss.org
55
repository: https://github.com/rikulo/socket.io-client-dart
66
issue_tracker: https://github.com/rikulo/socket.io-client-dart/issues

0 commit comments

Comments
 (0)