This repository has been archived by the owner on Jan 13, 2023. It is now read-only.
Breaking Changes
- Removed most helper methods. This module is now just a thin wrapper around the API so the instance exposes
get
,post
,put
, anddel
methods. Theregister
method still exists. login
renamed tolocalLogin
- Requires
Promise
object. If using in an environment that does not have aPromise
object, it must be polyfilled - Drop support for Node < v4
Features
- Errors are handled more sanely
- Can set platform (defaults to Habitica-Node)
- Can set a universal error handler for all requests
- Top level routes now supported. IE, hitting the /export endpoint will not automatically prefix /api/v3 to the request