Changelog History
Page 3
-
v3.0.5 Changes
January 05, 2021 -
v3.0.4 Changes
December 07, 2020๐ Links:
- Milestone: -
- Diff: 3.0.3...3.0.4
- ๐ Client release: 3.0.4
- engine.io version:
~4.0.0
- ws version:
^7.1.2
-
v3.0.3 Changes
November 19, 2020๐ Links:
- Milestone: -
- Diff: 3.0.2...3.0.3
- ๐ Client release: 3.0.3
- engine.io version:
~4.0.0
- ws version:
^7.1.2
-
v3.0.2 Changes
November 17, 2020๐ Bug Fixes
- ๐ merge Engine.IO options (43705d7)
๐ Links:
- Milestone: 3.0.2
- Diff: 3.0.1...3.0.2
- ๐ Client release: 3.0.2
- engine.io version:
~4.0.0
- ws version:
^7.1.2
-
v3.0.1 Changes
November 09, 2020 -
v3.0.0 Changes
November 05, 2020๐ More details about this release in the blog post: https://socket.io/blog/socket-io-3-release/
๐ Dedicated migration guide: https://socket.io/docs/migrating-from-2-x-to-3-0/
๐ Bug Fixes
- close clients with no namespace (91cd255)
๐ Features
- emit an Error object upon middleware error (54bf4a4)
- serve msgpack bundle (aa7574f)
- โ add support for catch-all listeners (5c73733)
- ๐ make Socket#join() and Socket#leave() synchronous (129c641)
- โ remove prod dependency to socket.io-client (7603da7)
- ๐ move binary detection back to the parser (669592d)
- โ add ES6 module export (8b6b100)
- do not reuse the Engine.IO id (2875d2c)
- โ remove Server#set() method (029f478)
- โ remove Socket#rooms object (1507b41)
- โ remove the 'origins' option (a8c0600)
- โ remove the implicit connection to the default namespace (3289f7e)
- throw upon reserved event names (4bd5b23)
๐ฅ BREAKING CHANGES
๐ the Socket#use() method is removed (see 5c73733)
Socket#join() and Socket#leave() do not accept a callback argument anymore.
Before:
socket.join("room1", () =\> {io.to("room1").emit("hello");});
After:
socket.join("room1");io.to("room1").emit("hello");// or await socket.join("room1"); for custom adapters
- the "connected" map is renamed to "sockets"
- ๐ the Socket#binary() method is removed, as this use case is now covered by the ability to provide your own parser.
- ๐ the 'origins' option is removed
Before:
new Server(3000, {origins: ["https://example.com"]});
The 'origins' option was used in the allowRequest method, in order to
determine whether the request should pass or not. And the Engine.IO
server would implicitly add the necessary Access-Control-Allow-xxx
headers.After:
new Server(3000, {cors: {origin: "https://example.com",methods: ["GET", "POST"],allowedHeaders: ["content-type"]}});
The already existing 'allowRequest' option can be used for validation:
new Server(3000, {allowRequest: (req, callback) =\> {callback(null, req.headers.referer.startsWith("https://example.com"));}});
Socket#rooms is now a Set instead of an object
Namespace#connected is now a Map instead of an object
0๏ธโฃ there is no more implicit connection to the default namespace:
// client-sideconst socket = io("/admin");// server-sideio.on("connect", socket =\> {// not triggered anymore})io.use((socket, next) =\> {// not triggered anymore});io.of("/admin").use((socket, next) =\> {// triggered});
- ๐ the Server#set() method was removed
This method was kept for backward-compatibility with pre-1.0 versions.
๐ Links:
- Milestone: 3.0.0
- Diff: 2.3.0...3.0.0
- ๐ Client release: 3.0.0
- engine.io version:
~4.0.0
- ws version:
^7.1.2
-
v3.0.0-rc4 Changes
October 30, 2020๐ Features
๐ Links:
- Milestone: 3.0.0
- Diff: 3.0.0-rc3...3.0.0-rc4
- ๐ Client release: 3.0.0-rc4
- engine.io version:
~4.0.0
- ws version:
^7.1.2
-
v3.0.0-rc3 Changes
October 26, 2020๐ Features
- โ add support for catch-all listeners (5c73733)
- ๐ make Socket#join() and Socket#leave() synchronous (129c641)
- โ remove prod dependency to socket.io-client (7603da7)
๐ฅ BREAKING CHANGES
๐ the Socket#use() method is removed (see 5c73733)
Socket#join() and Socket#leave() do not accept a callback argument anymore.
Before:
socket.join("room1", () =\> {io.to("room1").emit("hello");});
After:
socket.join("room1");io.to("room1").emit("hello");// or await socket.join("room1"); for custom adapters
๐ Links:
- Milestone: 3.0.0
- Diff: 3.0.0-rc2...3.0.0-rc3
- ๐ Client release: 3.0.0-rc3
- engine.io version:
~4.0.0
- ws version:
^7.1.2
-
v3.0.0-rc2 Changes
October 15, 2020๐ Bug Fixes
- close clients with no namespace (91cd255)
๐จ Code Refactoring
- โ remove duplicate _sockets map (8a5db7f)
๐ Features
- ๐ move binary detection back to the parser (669592d)
๐ฅ BREAKING CHANGES
- the "connected" map is renamed to "sockets"
- ๐ the Socket#binary() method is removed, as this use case is now covered by the ability to provide your own parser.
๐ Links:
- Milestone: 3.0.0
- Diff: 3.0.0-rc1...3.0.0-rc2
- ๐ Client release: 3.0.0-rc2
- engine.io version:
~4.0.0
- ws version:
^7.1.2