Skip to content

v1.0.1

Compare
Choose a tag to compare
@TTTaevas TTTaevas released this 13 Apr 16:41
· 16 commits to master since this release

This version changes a few things from v1.0.0, namely:

  • Add a configurable timeout property to the API class, which is used when doing a request with fetch() (so on every request) (#32)
  • Make API.createAsync() always throw an APIError (instead of sometimes)
  • Add original_error to APIError, which is the error that has caused the program to throw an APIError (if there is one)
  • Add status_code to APIError, which is the status code given by the server (if there is one)

And also:

  • APIError's parameters property is no longer marked as optional
  • A Beatmapset's source may no longer be a number (it'll now always be a string, as written in the interface)

Full Changelog: v1.0.0...v1.0.1