Skip to content

Releases: lavalibs/lavaqueue

v2.0.2

21 Nov 05:44
Compare
Choose a tag to compare

Fixes

  • Client is no longer abstract

v3.0.0-alpha.6

06 Nov 22:31
Compare
Choose a tag to compare
v3.0.0-alpha.6 Pre-release
Pre-release

Fixes

  • Queue now clears itself after the last song plays

v3.0.0-alpha.3

02 Oct 07:14
Compare
Choose a tag to compare
v3.0.0-alpha.3 Pre-release
Pre-release

Additions

  • License

Fixes

  • Queues will now properly restart a song when attempting to advance by 0
  • Dependencies have been updated; lavalink is now a hard dependency of the library rather than a peer dependency

v3.0.0-alpha.2

25 Sep 18:25
Compare
Choose a tag to compare
v3.0.0-alpha.2 Pre-release
Pre-release

Fixes

  • Published under next tag instead of latest on npm

v3.0.0-alpha.1

25 Sep 18:13
4baa3db
Compare
Choose a tag to compare
v3.0.0-alpha.1 Pre-release
Pre-release

Breaking changes

  • Update ioredis to 4.0.0
  • Client#advanceBy now accepts an info object as a second parameter
    • Signature: (queue: Queue, info: { previous: string, remaining: number }) => number
    • previous represents the track that just ended
    • remaining represents the number of songs left in the queue

Fixes

  • multirpoplpush now returns properly
    • When popping/pushing a single elements, the command now properly returns an empty table instead of a table with a single false value
    • It now properly exits early when the source list is emptied

v3.0.0-alpha.0

24 Sep 17:47
Compare
Choose a tag to compare
v3.0.0-alpha.0 Pre-release
Pre-release

Breaking changes

  • Reorganized Redis keys and key types: existing databases should be flushed
    • list has been renamed to next, np has been replaced with a simple pos indicator, and prev has been added to keep track of previous songs
  • Playlists will no longer advance when the player is stopped using the WebSocket

Additions

  • Queue#sort(predicate?: (a: string, b: string) => boolean): Promise<number> has been added; does not operate on previous songs; resolves with length of the list
  • Queue#move(from: number, to: number): Promise<string[]> has been added. Moves songs from one position to another by index; supports negative indices to wrap around list.; does not operate on previous songs Resolves with the new list.
  • Queue#shuffle(): Promise<string[]> has been added; resolves with the new list; does not operate on previous songs
  • Queue#clear now returns a native Promise instead of PromiseLike
  • Queue#tracks now returns a native Promise instead of PromiseLike
  • Queue#next now accepts negative numbers to advance the queue in reverse
  • NP typedef (represents a currently playing track) now will always have track and position properties.
  • QueueStore#redis has been extended to include new custom commands
    • lmove(key: string, from: number, to: number): Promise<string[]> moves elements in a list from one index to another
    • loverride(key: string, ...args: any[]): Promise<number> will override a key with new list data
    • lshuffle(key: string, seed: number): Promise<string[]> will shuffle elements of a list
    • multirpoplpush(source: string, dest: string, count: number): Promise<string[]> will rpoplpush multiple elements
  • Client now has an advanceBy(queue: Queue, endedTrack: string): number which will be called in any situation where a track is ended and an advancement count has not been provided. This is typically called when a track ends naturally and the queue needs to determine how many tracks to advance.
    • Client now accepts an advanceBy property in constructor options

v2.0.1

15 Aug 19:30
610d3be
Compare
Choose a tag to compare

Fixes

  • Queue#next now properly advances the specified count

v2.0.0

15 Aug 04:06
Compare
Choose a tag to compare

Breaking changes

  • Now requires lavalink ^2.0.0

v1.1.2

15 Aug 04:03
Compare
Choose a tag to compare

Fixes

  • Will no longer error if currently playing track is not specified

v1.1.1

28 Jul 23:55
Compare
Choose a tag to compare

Fixes

  • Using Queue#next now trims from the start of the list rather than the end