Breaking change
api.getUserScores
has been removed in favour of api.getUserBestScores()
and api.getUserRecentScores()
, please use those instead! They work pretty much the same way, with increased type safety!
Changes and fixes
- Some of
getURL()
's functions now support setting a custom server if you want, just in case - A Beatmap's
source
can no longer be 0, it'll now always be a string - A User's
events
could be 0 despite the interface saying otherwise, it'll now always be an array - A Match's
game
could have anend_time
that is null despite the interface saying otherwise, the interface now specifies that - Some Scores (recent user scores)'s
score_id
could be null despite the interface saying otherwise, the interface now specifies that - More about Scores below
Scores have been split into multiple interfaces for the different functions that return them, all extending the Score
interface
This means that Scores from recent user scores no longer have a replay_available
or pp
property
This means that Scores from beatmap scores must have a replay_available
and a pp
property, although pp
may be null
This means that Scores from best user scores must have a replay_available
and a pp
property
Similarly, those last two types of Scores guarantee that its score_id
will not be null
The documentation has been updated to reflect these changes
Have fun using osu-api-v1-js!