Skip to content

Commit

Permalink
feat: remove compatibility track property (#2695)
Browse files Browse the repository at this point in the history
  • Loading branch information
rxri authored Dec 5, 2023
1 parent 89d49d7 commit 5745752
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,6 @@ declare namespace Spicetify {
playbackId: string;
sessionId: string;
signals?: any[];
/**
* @deprecated Use `item` instead. This will be removed in the future.
*/
track: PlayerTrack;
};
type PlayerContext = {
uri: string;
Expand Down
4 changes: 0 additions & 4 deletions jsHelper/spicetifyWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -705,10 +705,6 @@ window.Spicetify = {
playerState.current = Spicetify.Platform.PlayerAPI._state;
Spicetify.Player.data = playerState.current;

// for compatibility reasons
// TODO: remove in the future
Spicetify.Player.data["track"] = Spicetify.Player.data.item;

if (playerState.cache?.item.uri !== playerState.current?.item?.uri) {
const event = new Event("songchange");
event.data = Spicetify.Player.data;
Expand Down

0 comments on commit 5745752

Please sign in to comment.