Releases: spotify-api/spotify-api.js
Releases · spotify-api/spotify-api.js
v9.2.5
v9.2.5
- Properly reject the promise in client initialisation. #167
- Handle The access token expired api error and refresh token. #189 #190
- Add a parameter to
UserClient.getPlaylists
to fetch all playlists at once. #168
const { Client } = require('spotify-api.js');
const client = await Client.create({
onFail(error) {
console.log(error);
},
token: {
clientID: 'id', // Your spotify application client id.
clientSecret: 'secret', // Your spotify application client secret.
...
}
});
Released: 11th November 2022
v9.2.3
v9.2.2
v9.2.1
v9.2.0
v9.1.0
v9.1.0
- Added TokenWithRefreshOptions to supply access token with refresh token options in
token
field of ClientOptions. Here is an example:
const client = await Client.create({
userAuthorizedToken: true,
refreshToken: true,
token: {
token: "access token here",
// other details required to refresh the token...
clientID: "client id",
clientSecret: "client secret",
redirectURL: "redirect url here"
}
});
Released: 9th May 2022
v9.0.3
v9.0.3
- Fixed the undefined error while creating [CurrentlyPlaying] struct. #107
- The value for CurrentlyPlaying.context may be null.
Released: 31st December 2021
v9.0.2
v9.0.1
v9.0.0
v9.0.0
- Now can run on browser and deno.
- Added options to surpass ratelimits with better error handlers.
- Added methods to automatically refresh token when a 401 request is received.
- Removed
client
property from all structures so no more methods will be in the structures. - Added one global cache for all spotify clients.
- Removed unwanted getters in structures and made them readonly properties.
- Rewrote docs to https://spotify-api.js.org/
- Added accurate types from the spotify api and a separate typings module.
Released: 26th August 2021
Root PR: #56