Big new release for osu-api-v2-js! It comes with breaking changes, so please keep on reading to see what has changed and how that will affect you!
The more important changes
- Node 16 is no longer supported, Node 18 is now the oldest supported version
API.createAsync()
now doesn't want your client details in an object, it wants the id and secret separatelyAPI.createAsync()
now allows you to specify settings other thanverbose
,timeout
orserver
, but regardless of what you specify, it wants them all in an object- The
API
'sretry
accessor has been split into multiple accessors; makeretry_maximum_amount
0
if you hadretry.disabled
ontrue
- Similarly, the
API
'sclient
androutes
were also split - As a consequence of dropping
node-fetch
for the built-in implementation offetch
, what's expected from you when usingAPI.withSettings()
may be a little different
The still somewhat important changes
- As is tradition with this package,
Beatmapset.Event
has been adjusted in hopes of avoiding bad surprises - As a consequence of the package now using the
x-api-version
header in most of its requests, anything that relates toScore
s has seen at least some kind of change, I'm pretty sure almost everything uses the more modern format now (the so-called "solo_score") - As another consequence,
API.getFriends()
now returns an object with the relation with theUser
, with the unchangedUser
in the object (astarget
) - The previously-deprecated
cover_url
ofUser
is now gone API.revokeToken()
now doesn't returntrue
for literally no reason anymore (now typed tovoid
)
The changes that are kinda whatever
- License change, switched from WTFPL to Unlicense, they're basically the same thing so that shouldn't affect you, lemme know if it does though
API.lookupUsers()
now exists- The code is now compiled to a modern version of ECMAScript, please check out the history of the
tsconfig.json
file for more details on that change, this change shouldn't affect you but absolutely let me know if that change screws with anything on your side
Please, as always, feel free to contact me or to open up an issue if you encounter anything that's bothering you or that you find too complicated, I am here to help!
Thank you very much for using osu-api-v2-js! <3
Full Changelog: v1.0.5...v1.1.0