Releases: brussell98/node-osu
Releases · brussell98/node-osu
2.2.0
2.1.1
Bugfixes for completeScores
and getUserX
methods.
Fixes
- Fixed completeScores not working right in
getUserX
methods - Fixed manually setting
score.beatmap
not updating all needed properties - Noted that
getUserRecent
can return "Not found" for a valid user - Noted that
score.user.name
can be null - Added eslint to dev dependencies, since it was missing
2.1.0
Adds the option to parse numeric values into numbers from the original strings.
Changes
- Added
parseNumeric
to theosu.Api
options. It defaults tofalse
- This excludes parsing ids
- Converted
raw_mods
properties to numbers, as they should be - Fixed and updated JSDoc comments, and added them to
Constants.js
- The constructor of all objects now needs to be passed
config
. This only matters if you are directly creating objects instead of usingosu.Api
- Updated README and tests
2.0.0
This release updates and modernizes the library.
Breaking Changes
- Switched from promises to async/await. Your node version needs to support this
- When using
completeScores
, methods will still return just scores. The beatmap will be in the score object - Fixed date getters. They now return the correct date
- Many changes have been made to objects, see below
Minor Changes
- Added/updated JSDoc comments
- Updated to superagent 5
- Changed the message passed in not found errors to always be "Not found"
- API errors now return the error response instead of the status, or the error if not a request error
Other
- Updated Eslint and codeclimate configs
- Updated README and updated documentation in it
- Changed code style and removed
"use strict"
Object changes
- Beatmap
- Added
rating
- Added
raw_submitDate
andsubmitDate
getter - Added
objects
, containingnormal
,sliders
, andspinners
- Added
aim
andspeed
todifficulty
object - Renamed
time
tolength
- Added
hasDownload
andhasAudio
- Added
- MultiplayerScore
- Added
raw_mods
andmods
getter
- Added
- Score
- Set
beatmapId
whencompleteScores
is enabled - Added
hasReplay
- Added
beatmap
which is set whencompleteScores
is enabled - Changed the
getAccuracyFromBeatmap
function to anaccuracy
getter that works whenbeatmap
is defined
- Set
- User
- Added
secondsPlayed
- Added
raw_joinDate
andjoinDate
getter
- Added