Skip to content

Commit

Permalink
chore(release): 3.0.0-rc3
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Oct 26, 2020
1 parent d16c035 commit cacad70
Show file tree
Hide file tree
Showing 9 changed files with 189 additions and 70 deletions.
34 changes: 34 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,37 @@
# [3.0.0-rc3](https://github.com/socketio/socket.io/compare/3.0.0-rc2...3.0.0-rc3) (2020-10-26)


### Features

* add support for catch-all listeners ([5c73733](https://github.com/socketio/socket.io/commit/5c737339858d59eab4b5ee2dd6feff0e82c4fe5a))
* make Socket#join() and Socket#leave() synchronous ([129c641](https://github.com/socketio/socket.io/commit/129c6417bd818bc8b4e1b831644323876e627c13))
* remove prod dependency to socket.io-client ([7603da7](https://github.com/socketio/socket.io/commit/7603da71a535481e3fc60e38b013abf78516d322))


### BREAKING CHANGES

* the Socket#use() method is removed (see [5c73733](https://github.com/socketio/socket.io/commit/5c737339858d59eab4b5ee2dd6feff0e82c4fe5a))

* Socket#join() and Socket#leave() do not accept a callback argument anymore.

Before:

```js
socket.join("room1", () => {
io.to("room1").emit("hello");
});
```

After:

```js
socket.join("room1");
io.to("room1").emit("hello");
// or await socket.join("room1"); for custom adapters
```



# [3.0.0-rc2](https://github.com/socketio/socket.io/compare/3.0.0-rc1...3.0.0-rc2) (2020-10-15)


Expand Down
197 changes: 137 additions & 60 deletions client-dist/socket.io.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client-dist/socket.io.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions client-dist/socket.io.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client-dist/socket.io.min.js.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions client-dist/socket.io.msgpack.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions client-dist/socket.io.msgpack.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "socket.io",
"version": "3.0.0-rc2",
"version": "3.0.0-rc3",
"description": "node.js realtime framework server",
"keywords": [
"realtime",
Expand Down Expand Up @@ -53,7 +53,7 @@
"mocha": "^3.5.3",
"nyc": "^11.2.1",
"prettier": "^1.19.1",
"socket.io-client": "3.0.0-rc2",
"socket.io-client": "3.0.0-rc3",
"superagent": "^3.8.2",
"supertest": "^3.0.0",
"ts-node": "^9.0.0",
Expand Down
8 changes: 4 additions & 4 deletions test/socket.io.ts
Expand Up @@ -511,7 +511,7 @@ describe("socket.io", () => {
const sio = new Server(srv);
srv.listen(() => {
const socket = client(srv, "/doesnotexist");
socket.on("error", err => {
socket.on("connect_error", err => {
expect(err).to.be("Invalid namespace");
done();
});
Expand Down Expand Up @@ -771,7 +771,7 @@ describe("socket.io", () => {
next();
if (++count === 4) done();
});
socket.on("error", err => {
socket.on("connect_error", err => {
expect().fail();
});
socket.on("connect", () => {
Expand Down Expand Up @@ -803,7 +803,7 @@ describe("socket.io", () => {
const socket = client(srv, "/abc");
sio.of(/^\/dynamic-\d+$/);
sio.of((name, query, next) => next(null, "/dynamic-101" === name));
socket.on("error", err => {
socket.on("connect_error", err => {
expect(err).to.be("Invalid namespace");
done();
});
Expand Down Expand Up @@ -2174,7 +2174,7 @@ describe("socket.io", () => {
socket.on("connect", () => {
done(new Error("nope"));
});
socket.on("error", err => {
socket.on("connect_error", err => {
expect(err).to.be("Authentication error");
done();
});
Expand Down

0 comments on commit cacad70

Please sign in to comment.