This repository was archived by the owner on Aug 9, 2020. It is now read-only.
Releases: spec-tacles/rest.js
Releases · spec-tacles/rest.js
Release list
v0.8.3
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
Basictoken type Rest.hasHeaderadded to check if a request has a header
Fixes
Content-Typeheader conflicts for form data request payloads are now normalized to Title Case form
v0.8.2
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
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
v0.7.0
Breaking changes
- All events and errors that include a
Responseare now emitted with a clonedResponse
Fixes
- Ratelimits that do not include a
Viaheader are treated as CloudFlare ratelimits and therefore are expected to be specified in either seconds or an HTTP date (discord/discord-api-docs#1463)