Skip to content
This repository was archived by the owner on Aug 9, 2020. It is now read-only.

Releases: spec-tacles/rest.js

v0.8.3

Choose a tag to compare

@appellation appellation released this 08 Apr 22:50

Thanks to @itslukej and #8 for the entirety of this release.

Additions

  • Per-request authorization headers
  • Construction with optional token
  • Token provided in options rather than as a separate string
  • Add missing Basic token type
  • Rest.hasHeader added to check if a request has a header

Fixes

  • Content-Type header conflicts for form data request payloads are now normalized to Title Case form

v0.8.2

Choose a tag to compare

@appellation appellation released this 05 Apr 21:10

Fixes

  • Limiter incorrectly blocked requests when there was no ratelimit data available. The limiter now correctly assumes that it can continue indefinitely until it receives information about how many requests are remaining.

v0.8.0

Choose a tag to compare

@appellation appellation released this 04 Apr 18:01

Most users can and should upgrade to this version without any breakage.

Breaking changes

  • Address significant bug in ratelimiting code that caused requests to hang for much longer than necessary. Mutex behavior is now significantly different to resolve this issue. (556f840)

v0.7.1

Choose a tag to compare

@appellation appellation released this 03 Apr 15:31

Fixes

  • ES Modules were being incorrectly resolved using allowSyntheticDefaultImports. This flag was removed and modules are imported normally. (dee3705)
  • Excess files were included in the NPM tarball. These are now removed. (edd1287)

v0.7.0

Choose a tag to compare

@appellation appellation released this 02 Apr 23:20

Breaking changes

  • All events and errors that include a Response are now emitted with a cloned Response

Fixes

  • Ratelimits that do not include a Via header are treated as CloudFlare ratelimits and therefore are expected to be specified in either seconds or an HTTP date (discord/discord-api-docs#1463)