A client-side JS wrapper for the Spotify Web API
This major version includes a breaking change to follow the new playlist uris.
In practice, this means that you don't pass the user id anymore when performing an operation on a playlist. For instance, to fetch a playlist you used to write:
spotifyApi.getPlaylist('jmperezperez', '4vHIKV7j4QcZwgzGQcZg1x')
.then(function(data) {
console.log('User playlist', data);
}, function(err) {
console.error(err);
});
after the change, you don't pass the user id (in this case jmperezperez
) anymore:
spotifyApi.getPlaylist('4vHIKV7j4QcZwgzGQcZg1x')
.then(function(data) {
console.log('User playlist', data);
}, function(err) {
console.error(err);
});
Thanks @jmfortunatojr for reporting the issue and fixing it.
This release fixes a bug in the play()
function. It now allows the function to not receive any parameters, since all of them are optional (see https://github.com/JMPerez/spotify-web-api-js/issues/97). It also adds support for position_ms
(see https://github.com/JMPerez/spotify-web-api-js/issues/104).
Thanks @Yarael-Poof and @UlysseM for reporting these issues.
This version adds more Typescript typings thanks to @cloughney.
Added a function to upload an image as a playlist cover. Thanks @lrholmes!
This version includes a fix for the "skip to next track" functionality. It also upgrades several dependencies.
Thanks @ikantspelgud for your contribution!
This release adds functions to make requests to Spotify's Connect endpoints. Note that these are still in beta and subject to changes.
This release includes a fix for an issue when adding lots of tracks to a playlist, which caused a "URI too long' error". Thanks @davejm!
In this release we have improved the TypeScript annotations: