Releases: socketio/socket.io
Releases · socketio/socket.io
4.2.0
4.1.3
Bug Fixes
Links:
- Diff: 4.1.2...4.1.3
- Client release: 4.1.3
- engine.io version:
~5.1.0
- ws version:
~7.4.2
4.1.2
Bug Fixes
- typings: ensure compatibility with TypeScript 3.x (0cb6ac9)
- ensure compatibility with previous versions of the adapter (a2cf248)
Links:
- Diff: 4.1.1...4.1.2
- Client release: 4.1.2
- engine.io version:
~5.1.0
- ws version:
~7.4.2
4.1.1
Bug Fixes
- typings: properly type server-side events (b84ed1e)
- typings: properly type the adapter attribute (891b187)
Links:
- Diff: 4.1.0...4.1.1
- Client release: 4.1.1
- engine.io version:
~5.1.0
- ws version:
~7.4.2
4.1.0
Blog post: https://socket.io/blog/socket-io-4-1-0/
Features
- add support for inter-server communication (93cce05)
- notify upon namespace creation (499c892)
- add a "connection_error" event (7096e98, from
engine.io
) - add the "initial_headers" and "headers" events (2527543, from
engine.io
)
Links:
- Diff: 4.0.2...4.1.0
- Client release: 4.1.0
- engine.io version:
~5.1.0
- ws version:
~7.4.2
4.0.2
Bug Fixes
Links:
- Diff: 4.0.1...4.0.2
- Client release: 4.0.2
- engine.io version:
~5.0.0
- ws version:
~7.4.2
4.0.1
4.0.0
Blog post: https://socket.io/blog/socket-io-4-release/
Migration guide: https://socket.io/docs/v3/migrating-from-3-x-to-4-0/
Bug Fixes
- make io.to(...) immutable (ac9e8ca)
Features
- add some utility methods (b25495c)
- add support for typed events (#3822) (0107510)
- allow to exclude specific rooms when broadcasting (#3789) (7de2e87)
- allow to pass an array to io.to(...) (085d1de)
BREAKING CHANGES
io.to(...)
now returns an immutable operator
Previously, broadcasting to a given room (by calling io.to()
) would mutate the io instance, which could lead to surprising behaviors, like:
io.to("room1");
io.to("room2").emit(/* ... */); // also sent to room1
// or with async/await
io.to("room3").emit("details", await fetchDetails()); // random behavior: maybe in room3, maybe to all clients
Calling io.to()
(or any other broadcast modifier) will now return an immutable instance.
Links:
- Diff: 3.1.2...4.0.0
- Client release: 4.0.0
- engine.io version:
~5.0.0
- ws version:
~7.4.2
3.1.2
Bug Fixes
- ignore packets received after disconnection (494c64e)
Links:
- Diff: 3.1.1...3.1.2
- Client release: 3.1.2
- engine.io version:
~4.1.0
- ws version:
~7.4.2
3.1.1
Bug Fixes
- properly parse the CONNECT packet in v2 compatibility mode (6f4bd7f)
- typings: add return types and general-case overload signatures (#3776) (9e8f288)
- typings: update the types of "query", "auth" and "headers" (4f2e9a7)
Links:
- Diff: 3.1.0...3.1.1
- Client release: 3.1.1
- engine.io version:
~4.1.0
- ws version:
~7.4.2