Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

v4.0.0

Latest
Compare
Choose a tag to compare
@crookedneighbor crookedneighbor released this 24 Jan 14:41
· 9 commits to master since this release

Breaking Changes

  • Removed most helper methods. This module is now just a thin wrapper around the API so the instance exposes get, post, put, and del methods. The register method still exists.
  • login renamed to localLogin
  • Requires Promise object. If using in an environment that does not have a Promise 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