Skip to content

Releases: socketio/socket.io

4.2.0

30 Aug 07:26
c100b7b
Compare
Choose a tag to compare

Bug Fixes

  • typings: allow async listener in typed events (ccfd8ca)

Features

  • ignore the query string when serving client JavaScript (#4024) (24fee27)

Links:

4.1.3

30 Aug 07:25
dbd2a07
Compare
Choose a tag to compare

Bug Fixes

  • fix io.except() method (94e27cd)
  • remove x-sourcemap header (a4dffc6)

Links:

4.1.2

17 May 21:22
1633150
Compare
Choose a tag to compare

Bug Fixes

  • typings: ensure compatibility with TypeScript 3.x (0cb6ac9)
  • ensure compatibility with previous versions of the adapter (a2cf248)

Links:

4.1.1

11 May 22:09
995f38f
Compare
Choose a tag to compare

Bug Fixes

  • typings: properly type server-side events (b84ed1e)
  • typings: properly type the adapter attribute (891b187)

Links:

4.1.0

11 May 07:32
fb6b0ef
Compare
Choose a tag to compare

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:

4.0.2

06 May 12:48
9fff034
Compare
Choose a tag to compare

Bug Fixes

  • typings: make "engine" attribute public (b81ce4c)
  • properly export the Socket class (d65b6ee)

Links:

4.0.1

31 Mar 23:29
1faa7e3
Compare
Choose a tag to compare

Bug Fixes

  • typings: add fallback to untyped event listener (#3834) (a11152f)
  • typings: update return type from emit (#3843) (1a72ae4)

Links:

4.0.0

10 Mar 11:49
5eaeffc
Compare
Choose a tag to compare

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:

3.1.2

26 Feb 00:22
225ade0
Compare
Choose a tag to compare

Bug Fixes

  • ignore packets received after disconnection (494c64e)

Links:

3.1.1

03 Feb 22:20
12221f2
Compare
Choose a tag to compare

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: