Skip to content

Commit 2cab2e3

Browse files
chore(release): 6.0.0
Diff: 5.4.0...6.0.0
1 parent d9bcb19 commit 2cab2e3

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
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+
141
# [5.4.0](https://github.com/socketio/socket.io-redis/compare/5.3.0...5.4.0) (2020-09-02)
242

343

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "socket.io-redis",
3-
"version": "5.4.0",
3+
"version": "6.0.0",
44
"description": "",
55
"license": "MIT",
66
"repository": {

0 commit comments

Comments
 (0)