v1.0.1
This version changes a few things from v1.0.0, namely:
- Add a configurable
timeout
property to theAPI
class, which is used when doing a request withfetch()
(so on every request) (#32) - Make
API.createAsync()
always throw anAPIError
(instead of sometimes) - Add
original_error
toAPIError
, which is the error that has caused the program to throw anAPIError
(if there is one) - Add
status_code
toAPIError
, which is the status code given by the server (if there is one)
And also:
APIError
'sparameters
property is no longer marked as optional- A
Beatmapset
'ssource
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