Releases: lavalibs/lavalink.js
Releases · lavalibs/lavalink.js
v2.7.0
Additions
Player#join
now takes a null channel ID to leave the channelBaseNodeOptions
now allows a single protocol-lesshost
property to connect to both HTTP and WS automatically
Fixes
- Queued WebSocket messages are now flushed properly after being sent and won't continually be replayed
Cluster#sort
now eliminates disconnected nodes before sorting
v2.6.1
Fixes
- Typings directory is properly specified in the package.json
v2.6.0
Additions
Node#connected
getter to determine if the node is currently connected to the WebSocketConnection#backoff
to allow more customizable backoff strategiesNode#upgrade
event, forwarded from the WebSocket with the HTTP request has been upgraded- Player
Status.UNKNOWN
to handle any future player statuses that may be added - Support for the
websocketClosed
player event (status is set to ENDED) - New enums for many player method options (PlayerOptions, EqualizerBand, JoinOptions)
- Voice servers are now preserved in memory, allowing
Player#moveTo
to be used as intended
Fixes
- Disconnected nodes will no longer attempt to send a destroy packet to Lavalink
Player#moveTo
can now be used with the preservation of voice server state- New player events are now properly applied to UNKNOWN status rather than stuck
Tooling
- Switch away from Gulp and rely on tsc for compilation
v2.5.0
Additions
- More backoff configuration options
close
andopen
events are forwarded to the node
Fixes
- Nodes now reconnect on error
v2.4.1
v2.4.0
Additions
Cluster#getNode(guildID: string)
gets the node for a given guild ID; throws if the node doesn't already exist and the cluster's filter never returns true (a133022)- Support for session resuming (fa126d9)
send
method signature now accepts any return type (fa126d9)
Fixes
- Memory leak caused by creating dead players on every voice state update to a cluster (a133022)
v2.3.1
v2.3.0
Additions
- Support for the new equalizer OP code
v2.2.3
Fixes
filter
option for clusters is optional again
v2.2.2
Fixes
- Errored connections will no longer reconnect twice, causing an infinite loop of connection failures