Skip to content

Releases: lavalibs/lavalink.js

v2.7.0

05 Jul 15:29

Choose a tag to compare

Additions

  • Player#join now takes a null channel ID to leave the channel
  • BaseNodeOptions now allows a single protocol-less host 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

09 Apr 18:35

Choose a tag to compare

Fixes

  • Typings directory is properly specified in the package.json

v2.6.0

30 Mar 05:48

Choose a tag to compare

Additions

  • Node#connected getter to determine if the node is currently connected to the WebSocket
  • Connection#backoff to allow more customizable backoff strategies
  • Node#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

15 Mar 06:41

Choose a tag to compare

Additions

  • More backoff configuration options
  • close and open events are forwarded to the node

Fixes

  • Nodes now reconnect on error

v2.4.1

06 Mar 18:56

Choose a tag to compare

Fixes

v2.4.0

25 Feb 17:47

Choose a tag to compare

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

13 Dec 23:41

Choose a tag to compare

Fixes

  • Library now sends voice_update packets as expected (#14, a1ba48b)

v2.3.0

27 Oct 16:20

Choose a tag to compare

Additions

  • Support for the new equalizer OP code

v2.2.3

16 Oct 16:30

Choose a tag to compare

Fixes

  • filter option for clusters is optional again

v2.2.2

02 Oct 19:19

Choose a tag to compare

Fixes

  • Errored connections will no longer reconnect twice, causing an infinite loop of connection failures