Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency discord-player to v5 - abandoned - autoclosed #7

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Mar 11, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
discord-player (source) ^3.3.2 -> ^5.0.0 age adoption passing confidence

Release Notes

Androz2091/discord-player

v5.3.2: 5.3.2

Compare Source

What's Changed

  • fix(Queue): shuffle all tracks
  • fix(AudioFilters): properly get filters
  • feat(Queue): add leaveOnEndCooldown
  • fix(Player): rewrite spotify metadata parser
  • fix(StreamDispatcher): skip the track if it has already ended
  • fix(Queue): volume state should persist
  • feat: show warning message on incompatible discord.js versions
  • fix(AudioFilters): remove filters getter
  • feat(Player): add generateStatistics method
  • feat(Player): add eventLoopLag getter
  • feat(Queue): add generateStatistics method
  • feat(Queue): add ping getter
  • feat(Queue): add forceNext method
  • chore(deps): move ytdl-core, soundcloud-scraper, youtube-sr, spotify-url-info to peerDependencies

Full Changelog: Androz2091/discord-player@v5.3.1...v5.3.2

v5.3.1: 5.3.1

Compare Source

What's Changed

Full Changelog: Androz2091/discord-player@v5.3.0...v5.3.1

v5.3.0: 5.3.0

Compare Source

What's Changed

Full Changelog: Androz2091/discord-player@v5.2.2...v5.3.0

v5.2.2: 5.2.2

Compare Source

Updates

  • 💉Try auto smoothVolume injection on startup
  • 🦥Lazily create voice connection
  • 🔨Check voice intents properly

Full Changelog: Androz2091/discord-player@v5.2.1...v5.2.2

v5.2.1: 5.2.1

Compare Source

What's Changed

Full Changelog: Androz2091/discord-player@v5.2.0...v5.2.1

v5.2.0: 5.2.0

Compare Source

Features

  • feat(Queue): add onBeforeCreateStream to Queue instance and queue init options
    • See below for example.
  • feat(Queue): add skipTo method (https://github.com/Androz2091/discord-player/pull/806/commits/751ce122bc29a8c19d0256b52759b73d77997229)
    • Skips to the given position in the queue.
  • feat(Queue): add spotifyBridge option (edb517c)
    • This option is by default enabled and it basically resolves spotify tracks from youtube automatically. You can disable this by using spotifyBridge: false on createQueue options
  • feat(Queue): add disableVolume option (87d49c6)
    • Player volume controls are available on-the-fly by default. If you don't need this, you can disable volume controls by simply passing disableVolume: true on createQueue options
  • feat(Queue): handle error events by default (3185557)
    • This will by default emit a warning and log the error if there are no error listeners registered.

Fixes

Queue.onBeforeCreateStream

This method traps the stream downloader. This is not related to extractors api though, since it can bypass those. This could also be used to block certain source like youtube. You can disable spotifyBridge to block spotify<->youtube bridge.

Note: this method may not work properly if spotifyBridge is enabled.

Discord Player won't switch to anything else from ytdl-core at the moment.

const playdl = require("play-dl");

// other code
const queue = player.createQueue(..., {
    ...,,
    spotifyBridge: false, // set this to true if you need spotify<->youtube bridge.
    // setting the bridge to true (which is set to true by default) sets the source to "youtube" for onBeforeCreateStream
    async onBeforeCreateStream(track, source, _queue) {
        // only trap youtube source
        if (source === "youtube") {
            // track here would be youtube track
            return (await playdl.stream(track.url)).stream;
            // we must return readable stream or void (returning void means telling discord-player to look for default extractor)
        } else if (source === "spotify") { // trap spotify
            // resolve spotify stream here
        }
    }
});

Changelog

New Contributors

Full Changelog: Androz2091/discord-player@v5.1.0...v5.2.0

v5.1.0: 5.1.0

Compare Source

Breaking

  • Remove useless mute/unmute methods on Queue. (6439590)
    Queue.setVolume() method should now be used instead.

Added

  • Add source info to extractor model. (53d711b)

Fixed

Credits

Thanks to @​DevAndromeda, @​joshuayuen99, @​aiko-chan-ai, @​Yan-Jobs, @​ConnorDoesDev, @​Klairm for their help!

v5.0.2: 5.0.2

Compare Source

Updates

  • fix(Player): add intents checking (#​675)

v5.0.1: 5.0.1

Compare Source

Changelog

  • feat: expose library version
  • fix: get correct info for youtube video links (#​664)

v5.0.0: 5.0.0

Compare Source

v4.x to v5.x migration guide

This version of discord-player has been rewritten using @​discordjs/voice, for better performance. It also now supports Discord.js v13 and Slash Commands. An important part of the core of discord-player has been rebuilt and this leads to many breaking changes. This is something we can't escape if we want to add major improvements to the library.

Thank you for using discord-player, we look forward to your feedback! If you have any questions, feel free to join our Discord server.

Breaking ⚠️

  • Discord.js v13 is required.
  • Node.js v16 is required.
  • All the methods are no longer based on message
  • ytdlDownloadOptions has been renamed to ytdlOptions.
  • Most of the options from Player class has been moved to Queue.
  • All the event parameters have been changed.
  • Provides cleaner API
  • ESM support
  • Each player methods are now handled by individual queues
  • leaveOnEndCooldown option has been removed
  • leaveOnStopCooldown option has been removed

Added

  • New metadata option to all the Queue instances
  • New initialVolume option to all the Queue instances
  • New bufferingTimeout option for Player
  • New connectionTimeout option for voice connections
  • New audio filters
  • Support for Slash Commands (/)
  • Support for Stage channels
  • New Playlist structure

Improved

  • Better error handling
  • Better tracks search
  • Better voice state handling
  • Better queue management

Thanks to @​DevAndromeda for this release! ❤️

v4.1.4

Compare Source

v4.1.3

Compare Source

Fixes

  • Error: Status code 404

v4.1.2

Compare Source

updates

Extractor compatibility

v4.1.1

Compare Source

  • basic changes

v4.1.0: 4.1.0

Compare Source

Changelog

v4.0.9: 4.0.9

Compare Source

Updates

  • Fixed spotify thumbnails not loading

v4.0.8: 4.0.8

Compare Source

Changelogs

  • Spotify handler is completely rewritten
  • Added queue.destroy() method
  • Fixed repl.it volume not working (#​406)
  • Fixed spotify bugs
  • All spotify tracks now have the spotify data instead of youtube
  • Playlist add event for spotify now includes Discord Player track object
  • Fixed playlists having one less track in playlist add event
  • Extractors can now specify source type (youtube/soundcloud/spotify/arbitrary)
  • Fixed soundcloud playlist links generated by mobile apps not working (#​408)
  • Support for @​discord-player/extractor v3

v4.0.7: 4.0.7

Compare Source

Changes

  • Fixed Spotify playlist bug (#​402)
  • Fixed YouTube playlist tracks being undefined
  • Fixed the bug of soundcloud links generated by apk (#​391)
  • Better stream time calculation when nightcore and vaporwave are enabled
  • Fixed spotify playlist title being undefined
  • Fixed playlistAdd event not emitting for spotify playlists
  • Fixed soundcloud durations being invalid

v4.0.6: 4.0.6

Compare Source

Changes

v4.0.5: 4.0.5

Compare Source

Fixed

  • Fix github workflow to publish the package on npm. (f1e6dd4)
  • Remove version export. (f1e6dd4)

v4.0.4: 4.0.4

Compare Source

Fixed

  • Fix a mistake in filters length. (367)

v4.0.3: 4.0.3

Compare Source

Fixed

  • Use yarn instead of npm for gh workflow.

v4.0.2: 4.0.2

Compare Source

Fixed

  • Fix github workflow to publish the package automatically on npmjs.com. (15b09d9)

v4.0.0: 4.0.0

Compare Source

⚠️ No breaking changes --but as everything has been rewritten using TypeScript we decided to release this update as a major version.

Changelogs


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title Update dependency discord-player to v5 Update dependency discord-player to v5 - abandoned Mar 12, 2023
@renovate
Copy link
Author

renovate bot commented Mar 12, 2023

Autoclosing Skipped

This PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.

@renovate renovate bot changed the title Update dependency discord-player to v5 - abandoned Update dependency discord-player to v5 - abandoned - autoclosed Mar 16, 2023
@renovate renovate bot closed this Mar 16, 2023
@renovate renovate bot deleted the renovate/discord-player-5.x branch March 16, 2023 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant