This repository has been archived by the owner on Aug 9, 2020. It is now read-only.
Releases: spec-tacles/rest.js
Releases · spec-tacles/rest.js
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
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
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
v0.7.1
v0.7.0
Breaking changes
- All events and errors that include a
Response
are now emitted with a clonedResponse
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)