Releases: zmb3/spotify
v2.4.3
What's Changed
- fix: add client_id field to pkce auth example. by @ErichKramer in #264
- Add TotalTracks to SimpleAlbum struct by @flimzy in #267
New Contributors
- @ErichKramer made their first contribution in #264
- @flimzy made their first contribution in #267
Full Changelog: v2.4.2...v2.4.3
v2.4.2
What's Changed
- Update the link to information on rate limits by @oifj34f34f in #245
- Enable race detection in CI testing by @strideynet in #252
- Update CI test steps by @strideynet in #253
- Update Lint CI action by @strideynet in #254
- build(deps): bump google.golang.org/protobuf from 1.27.1 to 1.33.0 by @dependabot in #255
- fix: unmarshal numeric fields regardless of them being int or float by @wernerdweight in #251
- build(deps): bump golang.org/x/net from 0.17.0 to 0.23.0 by @dependabot in #259
New Contributors
- @oifj34f34f made their first contribution in #245
- @wernerdweight made their first contribution in #251
Full Changelog: v2.4.1...v2.4.2
v2.4.1
What's Changed
- Recommendation example by @ahmed-deftoner in #223
- add RefreshToken method for Authenticator by @JunNishimura in #233
- build(deps): bump golang.org/x/net from 0.7.0 to 0.17.0 by @dependabot in #240
New Contributors
- @JunNishimura made their first contribution in #233
Full Changelog: v2.4.0...v2.4.1
v2.4.0
What's Changed
- Added Album member to SimpleTrack struct by @obrhoff in #184
- build(deps): bump golang.org/x/net from 0.0.0-20210813160813-60bc85c4be6d to 0.7.0 by @dependabot in #214
- fix: support HTTP status 202 by @rmillet42 in #215
- Change incorrect player repeat options by @beatzzz in #216
- add features example by @ahmed-deftoner in #222
- Make spotify.PlaybackOffset.Position an *int by @aditya-K2 in #220
- Add episode endpoint by @coolbaluk in #234
New Contributors
- @obrhoff made their first contribution in #184
- @dependabot made their first contribution in #214
- @rmillet42 made their first contribution in #215
- @beatzzz made their first contribution in #216
- @ahmed-deftoner made their first contribution in #222
- @aditya-K2 made their first contribution in #220
- @coolbaluk made their first contribution in #234
Full Changelog: v2.3.1...v2.4.0
Breaking Changes
PlaybackOffset.Position
has changed from int
to *int
. This is to account for a behaviour in the Spotify API where the position can be specified separately inside the URI. See https://github.com/zmb3/spotify/pull/220/files for specific details.
V2.3.1
What's Changed
- fix: description field in FullPlaylist was shadowing the one from SimplePlaylist by @Sundava in #203
- Add SaveShowsForCurrentUser endpoint by @elliotwms in #204
- Pass context to modifyLibrary calls by @elliotwms in #205
- Allow retry period to be cancelled by context by @rtrox in #212
- [Fix #182] Test success before retrying request by @rtrox in #213
- Adding "GetQueue" Function to player.go. by @R0qs3T in #211
- Added support for the ExternalIDs field on Tracks by @strideynet
New Contributors
- @elliotwms made their first contribution in #204
- @rtrox made their first contribution in #212
- @R0qs3T made their first contribution in #211
Full Changelog: v2.3.0...v2.3.1
V2.3.0
This release includes no breaking API changes.
What's Changed
- Add Description field to SimplePlaylist by @Sundava in #202
- add shows and episodes in search results by @manland in #188
New Contributors
Full Changelog: v2.2.1...v2.3.0
V2.2.1: Minor fixes
Fixes GetPlaylistItems
to better handle local tracks.
Also includes additional notes in README re: markets, and expands one of the example scripts.
V2.1.0: Add GetPlaylistItems
This release includes no breaking API changes. It does however deprecate GetPlaylistTracks
in favour of GetPlaylistItems
, as per changes to the Spotify API that this endpoint can now return tracks or episodes. Please switch to this new method where possible.
Many thanks to @xonstone for this change.
V2.0.1: Auth Tweaks
This release includes no breaking API changes. There is 1 change that users should be aware of, and let me know if they experience any changes in behaviour (#179). We no longer override the HTTP client used for oauth, and this means it will now use the default Go HTTP client. If you environment includes variables that control the configuration of this client, you may experience changes in behaviour.
Changes
Revert to default HTTP client for oauth
Originally, Spotify's API did not work properly with HTTP/2, so we overrode the client here to ensure that we would not attempt to use HTTP/2. It appears this is now correctly supported, so this override is redundant.
Many thanks to @StalkR for this change.
Introduce a method for getting the current API token
The client now includes a .Token()
method for returning the current token being used.
Many thanks to @elivlo for this change.
V2: Significant refactor
It's been a while since the Library has had a significant overhaul.
V2 brings:
- Support for
context.Context
across all actions - Functional options for the creation of the Client
- More modular auth support, allowing users to inject a HTTP client that meets their authentication needs.