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

Releases: spec-tacles/rest.js

v0.8.3

08 Apr 22:50
Compare
Choose a tag to compare

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

05 Apr 21:10
Compare
Choose a tag to compare

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

04 Apr 18:01
Compare
Choose a tag to compare

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

03 Apr 15:31
Compare
Choose a tag to compare

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

02 Apr 23:20
Compare
Choose a tag to compare

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)