fix(deps): update dependency spotify-web-api-node to v5 #458
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:
4.0.0
->5.0.2
Release Notes
thelinmichael/spotify-web-api-node
v5.0.2
Compare Source
transferMyPlayback
not require theoptions
object, since it should be optional. Thanks for the heads-up @Simber1!v5.0.1
Compare Source
v5.0.0
Compare Source
Arguments for some API methods have changed, causing incorrect behaviour using argument order from version 4.x. See the
README.md
for examples of how the methods can be used.createPlaylist
) method no longer accepts auserId
string as its first argument.transferMyPlayback
) method takes adeviceIds
array as its first argument.skipToPrevious
) method takes anoptions
object as its first argument.skipToNext
) method takes anoptions
object as its first argument.setRepeat
) method takes astate
string as its first argument.setShuffle
) method takes astate
string as its first argument.Cheers @marinacrachi for the createPlaylist update.
Removed legacy support for not passing an
options
object 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.md
for examples on how these methods can be used if needed.Removed
options
argument 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-After
header. Thanks for the PRs @kauffecup, @lantelyes, @dkliemsch, and @erezny.Much appreciated @konstantinjdobler for updates to the Player API errors.
play
) method now supports theposition_ms
option. 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.
Configuration
📅 Schedule: Branch creation - "after 2am,before 4am" (UTC), 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.
This PR has been generated by Mend Renovate. View repository job log here.