Skip to content

Commit 8ecfcba

Browse files
committedApr 23, 2022
chore(release): 4.5.0
Diff: 4.4.1...4.5.0
1 parent 572133a commit 8ecfcba

11 files changed

+990
-756
lines changed
 

‎CHANGELOG.md

+46
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,49 @@
1+
# [4.5.0](https://github.com/socketio/socket.io/compare/4.4.1...4.5.0) (2022-04-23)
2+
3+
4+
### Bug Fixes
5+
6+
* **typings:** ensure compatibility with TypeScript 3.x ([#4259](https://github.com/socketio/socket.io/issues/4259)) ([02c87a8](https://github.com/socketio/socket.io/commit/02c87a85614e217b8e7b93753f315790ae9d99f6))
7+
8+
9+
### Features
10+
11+
* add support for catch-all listeners for outgoing packets ([531104d](https://github.com/socketio/socket.io/commit/531104d332690138b7aab84d5583d6204132c8b4))
12+
13+
This is similar to `onAny()`, but for outgoing packets.
14+
15+
Syntax:
16+
17+
```js
18+
socket.onAnyOutgoing((event, ...args) => {
19+
console.log(event);
20+
});
21+
```
22+
23+
* broadcast and expect multiple acks ([8b20457](https://github.com/socketio/socket.io/commit/8b204570a94979bbec307f23ca078f30f5cf07b0))
24+
25+
Syntax:
26+
27+
```js
28+
io.timeout(1000).emit("some-event", (err, responses) => {
29+
// ...
30+
});
31+
```
32+
33+
* add the "maxPayload" field in the handshake details ([088dcb4](https://github.com/socketio/engine.io/commit/088dcb4dff60df39785df13d0a33d3ceaa1dff38))
34+
35+
So that clients in HTTP long-polling can decide how many packets they have to send to stay under the maxHttpBufferSize
36+
value.
37+
38+
This is a backward compatible change which should not mandate a new major revision of the protocol (we stay in v4), as
39+
we only add a field in the JSON-encoded handshake data:
40+
41+
```
42+
0{"sid":"lv_VI97HAXpY6yYWAAAC","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":5000,"maxPayload":1000000}
43+
```
44+
45+
46+
147
## [4.4.1](https://github.com/socketio/socket.io/compare/4.4.0...4.4.1) (2022-01-06)
248

349

‎client-dist/socket.io.esm.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎client-dist/socket.io.esm.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎client-dist/socket.io.js

+891-691
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎client-dist/socket.io.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎client-dist/socket.io.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎client-dist/socket.io.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎client-dist/socket.io.msgpack.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎client-dist/socket.io.msgpack.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package-lock.json

+41-53
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "socket.io",
3-
"version": "4.4.1",
3+
"version": "4.5.0",
44
"description": "node.js realtime framework server",
55
"keywords": [
66
"realtime",
@@ -60,7 +60,7 @@
6060
"nyc": "^15.1.0",
6161
"prettier": "^2.3.2",
6262
"rimraf": "^3.0.2",
63-
"socket.io-client": "4.4.1",
63+
"socket.io-client": "4.5.0",
6464
"socket.io-client-v2": "npm:socket.io-client@^2.4.0",
6565
"superagent": "^6.1.0",
6666
"supertest": "^6.1.6",

0 commit comments

Comments
 (0)
Please sign in to comment.