Update dependency spotify-web-api-node to v5 #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.0.0->^5.0.0Release Notes
thelinmichael/spotify-web-api-node
v5.0.2Compare Source
transferMyPlaybacknot require theoptionsobject, since it should be optional. Thanks for the heads-up @Simber1!v5.0.1Compare Source
v5.0.0Compare Source
Arguments for some API methods have changed, causing incorrect behaviour using argument order from version 4.x. See the
README.mdfor examples of how the methods can be used.createPlaylist) method no longer accepts auserIdstring as its first argument.transferMyPlayback) method takes adeviceIdsarray as its first argument.skipToPrevious) method takes anoptionsobject as its first argument.skipToNext) method takes anoptionsobject as its first argument.setRepeat) method takes astatestring as its first argument.setShuffle) method takes astatestring as its first argument.Cheers @marinacrachi for the createPlaylist update.
Removed legacy support for not passing an
optionsobject while providing a callback method. This was only supported on a few of the older endpoints, and could lead to tricky bugs. The affected endpoints aregetTrack,getTracks,getAlbum,getAlbums, andcreatePlaylist. Again, check theREADME.mdfor examples on how these methods can be used if needed.Removed
optionsargument for retrieving an access token using the Client Credentials flow,clientCredentialsGrant.API errors come in five different flavours.
More importantly, errors now contain the response body, headers, and status code. One side-effect of this is that rate limited requests can be handled by checking the
Retry-Afterheader. Thanks for the PRs @kauffecup, @lantelyes, @dkliemsch, and @erezny.Much appreciated @konstantinjdobler for updates to the Player API errors.
play) method now supports theposition_msoption. Thanks @alqubo, @koflin, @DoctorFishy. Thanks @carmilso for general improvements to the Player API methods.Likely more changes coming before release to npm, which will happen shortly.
v4.0.0Compare Source
Configuration
📅 Schedule: 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.
This PR has been generated by WhiteSource Renovate. View repository job log here.