Releases: zishang520/socket.io
v2.1.0
Bug Fixes
- fix: Use
sync.atomic
instead of somesync.RWMutex
andsync.Mutex
.
Destructive update
- no yet.
Features
- no yet.
Links:
- Diff: v2.0.6...v2.1.0
- socket.io for nodejs: 4.7.5 (mark it)
v2.0.6
Bug Fixes
- Bump golang.org/x/crypto from 0.14.0 to 0.17.0 by @dependabot in #35
- Bump github.com/quic-go/quic-go from 0.40.0 to 0.40.1 by @dependabot in #39
Destructive update
- calling
Emit()
without callingTimeout()
first is now only available for events without acknowledgement - calling
Emit()
after callingTimeout()
is now only available for events with an acknowledgement - calling
EmitWithAck()
is now only available for events with an acknowledgement Timeout()
must be called before callingEmitWithAck()
Features
- no yet.
Links:
- Diff: v2.0.5...v2.0.6
- socket.io for nodejs: 4.7.5 (mark it)
v2.0.5
Bug Fixes
- no yet.
Destructive update
- To be compatible with the
Redis adapter
, theAdapter.FetchSockets
interface has been updated from its originalFetchSockets(*BroadcastOptions) ([]SocketDetails)
toFetchSockets(*BroadcastOptions) func(func([]SocketDetails, error))
. (28960a1) - To be compatible with the
Redis adapter
, theNamespaceInterface.FetchSockets
interface has been updated from its originalFetchSockets() ([]*RemoteSocket, error)
toFetchSockets() func(func([]*RemoteSocket, error))
. (28960a1)
Features
- (refactor): Refactor all
FetchSockets
methods into curried functions to enable asynchronous processing (compatible withRedis adapter
). (28960a1) - update: Update version to v2, dependent component version updates. (27fce92)
Links:
- Diff: v1.3.1...v2.0.5
- socket.io for nodejs: 4.7.2 (mark it)
v1.3.1
Bug Fixes
- fix: Use case updates in comments. (0e65bc9)
- fix: Add missing EventEmitter interface for Adapter interface. (f361a71)
Destructive update
- no yet.
Features
- no yet.
Links:
- Diff: v1.3.0...v1.3.1
- socket.io for nodejs: 4.5.4 (mark it)
v1.3.0
Bug Fixes
- fix: Handle exception thrown due to pointer value being nil. (8ccc215)
- fix: Fixed that the
Map
initializationentry
did not set theexpunged
value correctly. (47dc0be) - fix: fix the problem that the return value of the
Len
method ofMap
is incorrect. (29a012b)
Destructive update
Ack
-related functions are changed from the originalfunc(...any)
function tofunc([]any, error)
, (6da0f35)
Features
- refactor: Refactor the Map structure, replacing the original
sync.Map
withtypes.Map
. (2cc40fe) - (refactor):
Ack
-related functions are changed from the originalfunc(...any)
function tofunc([]any, error)
, and the remaining problems of ack are fixed. (6da0f35)
Links:
- Diff: v1.2.4...v1.3.0
- socket.io for nodejs: 4.5.4 (mark it)
v1.2.4
Bug Fixes
- no yet.
Destructive update
- no yet.
Features
- refactor: Refactor the Map structure, replacing the original
sync.Map
withtypes.Map
.(52e2b27)
Links:
- Diff: v1.2.3...v1.2.4
- socket.io for nodejs: 4.5.4 (mark it)
v1.2.3
Bug Fixes
- no yet.
Destructive update
- no yet.
Features
- refactor: Customize the json field name of
*Handshake
.(7c47c89) - refactor:
FetchSockets(*BroadcastOptions)
interface to return[]SocketDetails
instead of[]any
".(7c47c89)
Links:
- Diff: v1.2.2...v1.2.3
- socket.io for nodejs: 4.5.4 (mark it)
v1.2.2
Bug Fixes
- Update: update dependency package version.
Destructive update
- no yet.
Features
- refactor: parser module separated into independent modules: socket.io-go-parser (fd15cc5).
Links:
- Diff: v1.2.1...v1.2.2
- socket.io for nodejs: 4.5.4 (mark it)
v1.2.1
Bug Fixes
- fix: Multiple invocations of ServeHandler result in the reinitialization of the engine server. #23
Destructive update
- no yet.
Features
- no yet.
Links:
- Diff: v1.2.0...v1.2.1
- socket.io for nodejs: 4.5.4 (mark it)
v1.2.0
Bug Fixes
- fix: Data race. 4af4624
Destructive update
-
Due to module refactoring, import needs to do the following replacement operations:
Changed from
"github.com/zishang520/engine.io/packet"
to"github.com/zishang520/engine.io-go-parser/packet"
;
Changed from"github.com/zishang520/engine.io/parser"
to"github.com/zishang520/engine.io-go-parser/parser"
;Due to the migration of the original
types.BufferInterface
to the new module, it is necessary to manually update thetypes.BufferInterface
interface introduced by the relevant module, from"github.com/zishang520/engine.io/types"
to"github.com/zishang520/engine. io-go-parser//types"
(note: this step is not recommended for batch replacement);If you use the related capabilities of utf8.go in the utils module, you need to replace it with the
"github.com/zishang520/engine.io-go-parser/utils"
package.
Features
- refactor: packet and parser modules independent. 0965af9
engine.io-go-parser
Links:
- Diff: v1.1.1...v1.2.0
- socket.io for nodejs: 4.5.4 (mark it)