v2.0.0
New major update for osu-api-v2-js! It has many breaking changes, so if you are updating from a previous version, please carefully review the changelog below for a good understanding of changes and additions
General and API object
- Node 18 is no longer supported, Node 20 is now the oldest supported version
- All deprecated methods and properties have been removed (
getBeatmapSoloScores()
, User'sglobal_rank_exp
&pp_exp
) - The API's routes (
route_api
,route_token
,request()
andAPIError
's endpoint) are now Arrays instead of Strings - The headers are now exposed under the
headers
property - Some methods have been renamed, read below for more details
Beatmap namespace
current_user_playcount
is now a thing for some BeatmapsgetBeatmapUserScore()
's config doesn't allow to specify unsupported properties anymore- Same for
getBeatmapUserScores()
's config
Beatmapset namespace
- All Beatmapsets should now have a
genre_id
and alanguage_id
Chat namespace
- Websocket stuff is now under that namespace
generateWebSocket()
has been renamed togenerateChatWebsocket()
- The generated Websocket by
generateChatWebsocket()
is no longer generated by thews
dependency getChatWebsocketHeaders()
has been added to help you generate Websockets your own way!
Event namespace
getEvents()
's arguments have merged (sort
&cursor_string
intoconfig
)
Forum namespace
- Methods that asked you for a
forum_id
now also support getting Forum objects instead getForumTopicAndPosts()
has been renamed togetForumTopic()
Match namespace
- This namespace has been made independent from the Multiplayer namespace
- The
scores
ofMatch.Event.game
have been completely changed by the API server, changes to interfaces have been made to reflect that
Miscellaneous namespace
- This namespace is a new addition, holding shared concepts and methods that would feel out of place elsewhere
getSeasonalBackgrounds()
is now accessible from there as wellgetCountryRanking()
has been moved there, away from the Ranking namespace
Multiplayer namespace
getRoomLeaderboard()
is no longer locked behind any Scopes, documentation has been udpated to reflect thatgetRoomEvents()
has been added, although its response is currently subject to change by the API server- Add a
freestyle
property toRoom.PlaylistItem
Score namespace
- Added a
Grade
type getScores()
has been added
Spotlight namespace
getSpotlightRanking()
has been moved there, away from the Ranking namespace
Ranking namespace
- This namespace has been removed, its contents have been split between the following namespaces: Miscellaneous, Spotlight, User
User namespace
getUserKudosu()
has been renamed togetUserKudosuHistory()
getUserRanking()
has been moved there, away from the Ranking namespace- Same for
getKudosuRanking()
There are a lot of changes, some of them are actually from a couple of months, this changelog doesn't even mention internal changes that shouldn't impact you, so it is definitely possible that I may have forgotten to mention something important. Regardless, I'm ready to help you upgrade from v1.1.3 if you ever find yourself struggling with that!
If you find something that doesn't work as expected, please open an issue!
Thank you very much for using osu-api-v2-js!!
Full Changelog: v1.1.3...v2.0.0