Skip to content

@fuwa/rest@0.2.0

Compare
Choose a tag to compare
@splatterxl splatterxl released this 05 May 17:36
· 35 commits to rewrite since this release
5fd1fe2

This release adds a RequestManagerOptions interface and renames the previous _client parameter in RequestManager.

Notable changes

  • Specifying a debug()/trace() function (as well as passing colors) is now available with RequestManager.
  • You can now specify whether timings of requests (i.e. how long it took) is logged in aforementioned debug/trace functions.

Usage

new RequestManager(..., {
  timings: true,
  logger: {
    debug: console.log,
    trace: console.log,
  }
})

Full Changelog: https://github.com/fuwa-org/fuwa/compare/@fuwa/rest@0.1.1...@fuwa/rest@0.2.0