Skip to content

Releases: brussell98/node-osu

2.2.0

19 Jan 20:51
Compare
Choose a tag to compare

Updates the constants for mods to what the API now uses

Changes

  • Updated Constants.Mods
  • Upgraded superagent to v5.2
  • Applied ESLint fixes

2.1.1

13 Jan 19:31
Compare
Choose a tag to compare

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

08 Jan 21:11
Compare
Choose a tag to compare

Adds the option to parse numeric values into numbers from the original strings.

Changes

  • Added parseNumeric to the osu.Api options. It defaults to false
    • 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 using osu.Api
  • Updated README and tests

2.0.0

05 Jan 02:43
Compare
Choose a tag to compare

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 and submitDate getter
    • Added objects, containing normal, sliders, and spinners
    • Added aim and speed to difficulty object
    • Renamed time to length
    • Added hasDownload and hasAudio
  • MultiplayerScore
    • Added raw_mods and mods getter
  • Score
    • Set beatmapId when completeScores is enabled
    • Added hasReplay
    • Added beatmap which is set when completeScores is enabled
    • Changed the getAccuracyFromBeatmap function to an accuracy getter that works when beatmap is defined
  • User
    • Added secondsPlayed
    • Added raw_joinDate and joinDate getter