Skip to content

Releases: spotify-api/spotify-api.js

v9.2.5

11 Nov 13:20
Compare
Choose a tag to compare

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

31 Jul 10:31
Compare
Choose a tag to compare

v9.2.3

  • Fixed reorderItems function for playlists #158.

Released: 31st July 2022

v9.2.2

14 Jul 08:12
Compare
Choose a tag to compare

v9.2.2

  • Fix several playlist create/edit API by using request body [#149]

Released: 14th July 2022

v9.2.1

31 May 15:46
Compare
Choose a tag to compare

v9.2.1

  • Allowed token regeneration using only refreshToken field. #83

Released: 31st May 2022

v9.2.0

10 May 17:43
Compare
Choose a tag to compare

v9.2.0

  • Fixed error caused due to refreshing tokens through refreshToken method. #83

Released: 10th May 2022

v9.1.0

09 May 13:42
Compare
Choose a tag to compare

v9.1.0

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

31 Dec 06:56
Compare
Choose a tag to compare

v9.0.3

Released: 31st December 2021

v9.0.2

26 Dec 15:44
Compare
Choose a tag to compare

v9.0.2

  • Made [Client.create] function a static function #102.

Released: 26th December 2021

v9.0.1

02 Sep 13:20
Compare
Choose a tag to compare

v9.0.1

  • Fixed a security vulnerability on exposing the credentials in Client.refreshMeta which is only an issue for browser clients. #68.

Released: 2nd September 2021

v9.0.0

26 Aug 11:33
Compare
Choose a tag to compare

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