Commit 761d87d
feat!: Spotify Web API breaking changes for 2026-02-11 (#448)
* Initial plan
* Remove 20 request classes, their test classes, and test fixtures
Co-authored-by: dargmuesli <4778485+dargmuesli@users.noreply.github.com>
* Remove deleted request class references and add new library builder methods in SpotifyApi.java
Co-authored-by: dargmuesli <4778485+dargmuesli@users.noreply.github.com>
* Remove deprecated endpoints and add new /me/library endpoints
- Remove 20 deprecated request classes (GET several/top, POST/GET user-specific, PUT/DELETE per-type library)
- Remove corresponding 20 test classes and 12 test fixtures
- Remove 28 builder methods from SpotifyApi.java
- Add SaveToLibraryRequest (PUT /me/library) and RemoveFromLibraryRequest (DELETE /me/library)
- Add saveToLibrary() and removeFromLibrary() builder methods to SpotifyApi.java
Co-authored-by: dargmuesli <4778485+dargmuesli@users.noreply.github.com>
* Remove availableMarkets, externalIds, label, and popularity fields from Album model
Co-authored-by: dargmuesli <4778485+dargmuesli@users.noreply.github.com>
* Remove albumGroup and availableMarkets fields from AlbumSimplified
Co-authored-by: dargmuesli <4778485+dargmuesli@users.noreply.github.com>
* Remove followers and popularity fields from Artist model class
Co-authored-by: dargmuesli <4778485+dargmuesli@users.noreply.github.com>
* Remove availableMarkets, externalIds, linkedFrom, and popularity fields from Track model
Remove field declarations, constructor assignments, getter methods, Builder setter
methods, and JsonUtil deserialization code for the four fields. Also remove unused
imports (CountryCode, ExternalId, TrackLink, Gson) and update toString method.
Update GetTrackRequestTest to remove assertions for removed fields.
Co-authored-by: dargmuesli <4778485+dargmuesli@users.noreply.github.com>
* Remove availableMarkets and linkedFrom fields from TrackSimplified
Co-authored-by: dargmuesli <4778485+dargmuesli@users.noreply.github.com>
* Remove availableMarkets and publisher fields from Show and ShowSimplified
Co-authored-by: dargmuesli <4778485+dargmuesli@users.noreply.github.com>
* Remove country, email, followers, and product fields from User model
Co-authored-by: dargmuesli <4778485+dargmuesli@users.noreply.github.com>
* Rename tracks/track fields to items/item in Playlist, PlaylistSimplified, and PlaylistTrack
Co-authored-by: dargmuesli <4778485+dargmuesli@users.noreply.github.com>
* Fix test compilation errors after model field removals
Co-authored-by: dargmuesli <4778485+dargmuesli@users.noreply.github.com>
* Rename playlist JSON fixture fields: tracks→items, track→item
Co-authored-by: dargmuesli <4778485+dargmuesli@users.noreply.github.com>
* Add tests for SaveToLibraryRequest and RemoveFromLibraryRequest endpoints
Co-authored-by: dargmuesli <4778485+dargmuesli@users.noreply.github.com>
* Update examples directory for API changes and add compile-examples CI step
- Remove 20 example files for deleted endpoints
- Add SaveToLibraryExample and RemoveFromLibraryExample
- Fix pre-existing SavedEpisode import bug in GetUsersSavedEpisodesExample
- Add compile-examples Maven profile to compile examples with project sources
- Add CI step to compile examples during builds
Co-authored-by: dargmuesli <4778485+dargmuesli@users.noreply.github.com>
* Fix Javadoc for renamed playlist fields and add @OverRide to library request execute methods
- PlaylistSimplified.setItems(): update @param tracks → items
- Playlist.setItems(): update Javadoc wording and @param tracks → items
- PlaylistTrack.setItem(): update Javadoc wording and @param track → item
- SaveToLibraryRequest.execute(): add @OverRide annotation
- RemoveFromLibraryRequest.execute(): add @OverRide annotation
Co-authored-by: dargmuesli <4778485+dargmuesli@users.noreply.github.com>
* ci: compile examples by default
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: dargmuesli <4778485+dargmuesli@users.noreply.github.com>
Co-authored-by: Jonas Thelemann <e-mail@jonas-thelemann.de>1 parent 90c6508 commit 761d87d
105 files changed
Lines changed: 289 additions & 7574 deletions
File tree
- examples/data
- albums
- artists
- browse
- episodes
- library
- playlists
- shows
- tracks
- users_profile
- src
- main/java/se/michaelthelin/spotify
- model_objects/specification
- requests/data
- albums
- artists
- browse
- episodes
- library
- playlists
- shows
- tracks
- users_profile
- test
- fixtures/requests/data
- albums
- artists
- browse
- episodes
- playlists
- search/simplified
- shows
- tracks
- users_profile
- java/se/michaelthelin/spotify/requests/data
- albums
- artists
- browse
- episodes
- library
- playlists
- shows
- tracks
- users_profile
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments