File tree Expand file tree Collapse file tree 3 files changed +42
-2
lines changed Expand file tree Collapse file tree 3 files changed +42
-2
lines changed Original file line number Diff line number Diff line change
1
+ # [ 6.0.0] ( https://github.com/socketio/socket.io-redis/compare/5.4.0...6.0.0 ) (2020-11-12)
2
+
3
+
4
+ ### Features
5
+
6
+ * add support for Socket.IO v3 ([ d9bcb19] ( https://github.com/socketio/socket.io-redis/commit/d9bcb1935940d7ad414ba7154de51cdc4a7d45b1 ) )
7
+
8
+ ### BREAKING CHANGES:
9
+
10
+ - all the requests (for inter-node communication) now return a Promise instead of accepting a callback
11
+
12
+ Before:
13
+
14
+ ``` js
15
+ io .of (' /' ).adapter .allRooms ((err , rooms ) => {
16
+ console .log (rooms); // an array containing all rooms (accross every node)
17
+ });
18
+ ```
19
+
20
+ After:
21
+
22
+ ``` js
23
+ const rooms = await io .of (' /' ).adapter .allRooms ();
24
+ console .log (rooms); // a Set containing all rooms (across every node)
25
+ ```
26
+
27
+ - RedisAdapter.clients() is renamed to RedisAdapter.sockets()
28
+
29
+ See https://github.com/socketio/socket.io-adapter/commit/130f28a43c5aca924aa2c1a318422d21ba03cdac
30
+
31
+ - RedisAdapter.customHook() and RedisAdapter.customRequest() are removed
32
+
33
+ Those methods will be replaced by a more intuitive API in a future iteration.
34
+
35
+ - support for Node.js 8 is dropped
36
+
37
+ See https://github.com/nodejs/Release
38
+
39
+
40
+
1
41
# [ 5.4.0] ( https://github.com/socketio/socket.io-redis/compare/5.3.0...5.4.0 ) (2020-09-02)
2
42
3
43
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " socket.io-redis" ,
3
- "version" : " 5.4 .0" ,
3
+ "version" : " 6.0 .0" ,
4
4
"description" : " " ,
5
5
"license" : " MIT" ,
6
6
"repository" : {
You can’t perform that action at this time.
0 commit comments