All notable changes to this project will be documented in this file.
@discordjs/rest@2.4.0 - (2024-09-01)
- Correct base path for GIF stickers (#10330) (599ad3e)
- User: Add
avatarDecorationData
(#9888) (3b5c600)
@discordjs/rest@2.3.0 - (2024-05-04)
- Anchor link for events (0efd1be)
- Split docs.api.json into multiple json files (597340f)
- Remove hyphen after
@returns
(#9989) (e9ff991)
- Fix up lint (d869d9b)
- Skip flaky rest test (#10234) (dc8f149)
@discordjs/rest@2.2.0 - (2023-11-18)
- Minify mainlib docs json (#9963) (4b88306)
- Present x-ratelimit-scope for 429s hit (#9973) (6df233d)
- Use wrapper utilities (#9945) (4bc1dae)
@discordjs/rest@2.2.0 - (2023-11-17)
- Minify mainlib docs json (#9963) (4b88306)
- Present x-ratelimit-scope for 429s hit (#9973) (6df233d)
- Use wrapper utilities (#9945) (4bc1dae)
@discordjs/rest@2.1.0 - (2023-11-12)
- REST: Strip webhook tokens (#9723) (cf49f40)
- Fix "its" typo (#9825) (c50809e)
- create-discord-bot: Support bun in create-discord-bot (#9798) (7157748)
- Expose Retry-After and sublimit timeouts in RatelimitData (#9864) (81e7866)
- CDN: Support emoji size (#9787) (778df45)
@discordjs/rest@2.0.1 - (2023-08-17)
- Update Node.js requirement to 16.11.0 (#9764) (188877c)
@discordjs/rest@2.0.0 - (2023-07-31)
- No-de-no-de, now with extra buns (#9683) (386f206)
- BREAKING CHANGE: The REST and RequestManager classes now extend AsyncEventEmitter
from
@vladfrangu/async_event_emitter
, which aids in cross-compatibility between Node, Deno, Bun, CF Workers, Vercel Functions, etc. - BREAKING CHANGE: DefaultUserAgentAppendix has been adapted to support multiple different platforms (previously mentioned Deno, Bun, CF Workers, etc)
- BREAKING CHANGE: the entry point for
@discordjs/rest
will now differ in non-node-like environments (CF Workers, etc.) - Co-authored-by: Suneet Tipirneni 77477100+suneettipirneni@users.noreply.github.com
- Co-authored-by: Jiralite 33201955+Jiralite@users.noreply.github.com
- Co-authored-by: suneettipirneni suneettipirneni@icloud.com
- BREAKING CHANGE: The REST and RequestManager classes now extend AsyncEventEmitter
from
- User avatar decorations (#8914) (8d97017)
- Support new username system (#9512) (1ab60f9)
- REST: Remove double classing (#9722) (8f4256d)
- BREAKING CHANGE:
REST
andRequestManager
have been combined, most of the properties, methods, and events from both classes can now be found onREST
- BREAKING CHANGE:
REST#raw
has been removed in favor ofREST#queueRequest
- BREAKING CHANGE:
REST#getAgent
has been removed in favor ofREST#agent
- BREAKING CHANGE:
- chore: update for /rest changes
- rest: Switch api to fetch-like and provide strategies (#9416) (cdaa0a3)
- BREAKING CHANGE: NodeJS v18+ is required when using node due to the use of global
fetch
- BREAKING CHANGE: The raw method of REST now returns a web compatible
Respone
object. - BREAKING CHANGE: The
parseResponse
utility method has been updated to operate on a web compatibleResponse
object. - BREAKING CHANGE: Many underlying internals have changed, some of which were exported.
- BREAKING CHANGE:
DefaultRestOptions
used to contain a defaultagent
, which is now set tonull
instead.
- BREAKING CHANGE: NodeJS v18+ is required when using node due to the use of global
@discordjs/rest@1.7.1 - (2023-05-01)
- Fix external links (#9313) (a7425c2)
- Reference package names properly (#9426) (d6bca9b)
- Generate static imports for types with api-extractor (98a76db)
@discordjs/rest@1.7.0 - (2023-04-01)
- handlers: Create burst handler for interaction callbacks (#8996) (db8df10)
- scripts: Accessing tsComment (d8d5f31)
- rest: Remove
const enum
s in favour of regular enums (#9243) (229ad07)
- website: Render syntax and mdx on the server (#9086) (ee5169e)
@discordjs/rest@1.6.0 - (2023-03-12)
- snowflake: Snowflakes length (#9144) (955e8fe)
- RequestManager: Inference of image/apng (#9014) (ecb4281)
- Sticker: Add support for gif stickers (#9038) (6a9875d)
- website: Add support for source file links (#9048) (f6506e9)
- Run prettier (#9041) (2798ba1)
@discordjs/rest@1.5.0 - (2022-12-16)
- core: Add support for role connections (#8930) (3d6fa24)
@discordjs/rest@1.4.0 - (2022-11-28)
- SequentialHandler: Downlevel ECONNRESET errors (#8785) (5a70057)
- Make ratelimit timeout require event loop to be active (#8779) (68d5712)
- Pin @types/node version (9d8179c)
- Update
makeURLSearchParams
to accept readonly non-Record
s (#8868) (8376e2d)
@discordjs/rest@1.3.0 - (2022-10-08)
- SequentialHandler: Throw http error with proper name and more useful message (#8694) (3f86561)
- Web-components (#8715) (0ac3e76)
- Add
@discordjs/util
(#8591) (b2ec865) - Add
AbortSignal
support (#8672) (3c231ae)
@discordjs/rest@1.2.0 - (2022-09-25)
- Footer / sidebar / deprecation alert (ba3e0ed)
- Change name (#8604) (dd5a089)
- rest: Use Agent with higher connect timeout (#8679) (64cd53c)
@discordjs/rest@1.1.0 - (2022-08-22)
- website: Show
constructor
information (#8540) (e42fd16) - website: Render
@defaultValue
blocks (#8527) (8028813) - WebSocketShard: Support new resume url (#8480) (bc06cc6)
- Docs design (#8487) (4ab1d09)
@discordjs/rest@0.6.0 - (2022-07-17)
- Add codecov coverage badge to readmes (#8226) (f6db285)
- builder: Add max min length in string option (#8214) (96c8d21)
- Codecov (#8219) (f10f4cd)
- docgen: Update typedoc (b3346f4)
- Website (#8043) (127931d)
- docgen: Typescript support (3279b40)
- Docgen package (#8029) (8b979c0)
- Use vitest instead of jest for more speed (8d8e6c0)
- Add scripts package for locally used scripts (f2ae1f9)
- rest: Add content-type(s) to uploads (#8290) (103a358)
- collection: Remove default export (#8053) (16810f3)
- Move all the config files to root (#8033) (769ea0b)
@discordjs/rest@0.5.0 - (2022-06-04)
- rest: Add guild member banner cdn url (#7973) (97eaab3)
- REST#raw (#7929) (dfe449c)
- rest: Use undici (#7747) (d1ec8c3)
- REST: Enable setting default authPrefix (#7853) (679dcda)
- Cleanup tests and tsup configs (6b8ef20)
@discordjs/rest@0.4.0 - (2022-04-17)
- gateway: Use version 10 (#7689) (8880de0)
- RequestHandler: Only reset tokens for authenticated 401s (#7508) (b9ff7b0)
- ci: Ci error (#7454) (0af9bc8)
- Use png as extension for defaultAvatarURL (#7414) (538e9ce)
- rest: Sublimit all requests on unhandled routes (#7366) (733ac82)
- Fix some typos (#7393) (92a04f4)
- Enhance /rest README (#7757) (a1329bd)
- Add
makeURLSearchParams
utility function (#7744) (8eaec11) - Add API v10 support (#7477) (72577c4)
- Add support for module: NodeNext in TS and ESM (#7598) (8f1986a)
- builders: Add attachment command option type (#7203) (ae0f35f)
- cdn: Add support for scheduled event image covers (#7335) (ac26d9b)
- requestmanager: Use timestampfrom (#7459) (3298510)
- files: Remove redundant file property names (#7340) (6725038)
@discordjs/rest@0.3.0 - (2022-01-24)
- rest: Don't add empty query (#7308) (d0fa5aa)
- rest: Use http agent when protocol is not https (#7309) (d8ea572)
ref
delay for rate limited requests (#7239) (ed0cfd9)
- Fix a typo and use milliseconds instead of ms (#7251) (0dd56af)
- files: File data can be much more than buffer (#7238) (86ab526)
- rest: Rename attachment to file (#7199) (c969cbf)
- voice: Fix tests (62c74b8)