Skip to content

Latest commit

 

History

History
330 lines (199 loc) · 19.6 KB

CHANGELOG.md

File metadata and controls

330 lines (199 loc) · 19.6 KB

Changelog

All notable changes to this project will be documented in this file.

@discordjs/rest@2.4.0 - (2024-09-01)

Bug Fixes

  • Correct base path for GIF stickers (#10330) (599ad3e)

Features

  • User: Add avatarDecorationData (#9888) (3b5c600)

@discordjs/rest@2.3.0 - (2024-05-04)

Bug Fixes

Documentation

  • Split docs.api.json into multiple json files (597340f)
  • Remove hyphen after @returns (#9989) (e9ff991)

Features

  • Local and preview detection (79fbda3)
  • REST: Dynamic rate limit offsets (#10099) (278396e)

Refactor

  • Docs (#10126) (18cce83)
  • Use interfaces for AsyncEventEmitter event maps (#10044) (adfd9cd)

Styling

Testing

  • Skip flaky rest test (#10234) (dc8f149)

@discordjs/rest@2.2.0 - (2023-11-18)

Bug Fixes

  • Minify mainlib docs json (#9963) (4b88306)

Features

  • Present x-ratelimit-scope for 429s hit (#9973) (6df233d)

Typings

  • Use wrapper utilities (#9945) (4bc1dae)

@discordjs/rest@2.2.0 - (2023-11-17)

Bug Fixes

  • Minify mainlib docs json (#9963) (4b88306)

Features

  • Present x-ratelimit-scope for 429s hit (#9973) (6df233d)

Typings

  • Use wrapper utilities (#9945) (4bc1dae)

@discordjs/rest@2.1.0 - (2023-11-12)

Bug Fixes

  • REST: Strip webhook tokens (#9723) (cf49f40)

Documentation

  • Fix "its" typo (#9825) (c50809e)
  • create-discord-bot: Support bun in create-discord-bot (#9798) (7157748)

Features

  • Expose Retry-After and sublimit timeouts in RatelimitData (#9864) (81e7866)
  • CDN: Support emoji size (#9787) (778df45)

@discordjs/rest@2.0.1 - (2023-08-17)

Documentation

  • Update Node.js requirement to 16.11.0 (#9764) (188877c)

@discordjs/rest@2.0.0 - (2023-07-31)

Features

  • 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
  • User avatar decorations (#8914) (8d97017)
  • Support new username system (#9512) (1ab60f9)

Refactor

  • REST: Remove double classing (#9722) (8f4256d)
    • BREAKING CHANGE: REST and RequestManager have been combined, most of the properties, methods, and events from both classes can now be found on REST
    • BREAKING CHANGE: REST#raw has been removed in favor of REST#queueRequest
    • BREAKING CHANGE: REST#getAgent has been removed in favor of REST#agent
  • 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 compatible Response object.
    • BREAKING CHANGE: Many underlying internals have changed, some of which were exported.
    • BREAKING CHANGE: DefaultRestOptions used to contain a default agent, which is now set to null instead.

@discordjs/rest@1.7.1 - (2023-05-01)

Bug Fixes

  • Fix external links (#9313) (a7425c2)

Documentation

  • Reference package names properly (#9426) (d6bca9b)
  • Generate static imports for types with api-extractor (98a76db)

@discordjs/rest@1.7.0 - (2023-04-01)

Bug Fixes

  • handlers: Create burst handler for interaction callbacks (#8996) (db8df10)
  • scripts: Accessing tsComment (d8d5f31)
  • rest: Remove const enums in favour of regular enums (#9243) (229ad07)

Features

  • website: Render syntax and mdx on the server (#9086) (ee5169e)

@discordjs/rest@1.6.0 - (2023-03-12)

Bug Fixes

  • snowflake: Snowflakes length (#9144) (955e8fe)
  • RequestManager: Inference of image/apng (#9014) (ecb4281)

Documentation

Features

  • Sticker: Add support for gif stickers (#9038) (6a9875d)
  • website: Add support for source file links (#9048) (f6506e9)

Styling

@discordjs/rest@1.5.0 - (2022-12-16)

Features

  • core: Add support for role connections (#8930) (3d6fa24)

@discordjs/rest@1.4.0 - (2022-11-28)

Bug Fixes

  • SequentialHandler: Downlevel ECONNRESET errors (#8785) (5a70057)
  • Make ratelimit timeout require event loop to be active (#8779) (68d5712)
  • Pin @types/node version (9d8179c)

Features

  • Add @discordjs/core (#8736) (2127b32)
  • New select menus (#8793) (5152abf)

Refactor

  • Update makeURLSearchParams to accept readonly non-Records (#8868) (8376e2d)

@discordjs/rest@1.3.0 - (2022-10-08)

Bug Fixes

  • SequentialHandler: Throw http error with proper name and more useful message (#8694) (3f86561)

Features

  • Web-components (#8715) (0ac3e76)
  • Add @discordjs/util (#8591) (b2ec865)
  • Add AbortSignal support (#8672) (3c231ae)

@discordjs/rest@1.2.0 - (2022-09-25)

Bug Fixes

  • Footer / sidebar / deprecation alert (ba3e0ed)

Documentation

Features

  • rest: Use Agent with higher connect timeout (#8679) (64cd53c)

Refactor

  • Website components (#8600) (c334157)
  • Use eslint-config-neon for packages. (#8579) (edadb9f)

@discordjs/rest@1.1.0 - (2022-08-22)

Features

  • website: Show constructor information (#8540) (e42fd16)
  • website: Render @defaultValue blocks (#8527) (8028813)
  • WebSocketShard: Support new resume url (#8480) (bc06cc6)

Refactor

@discordjs/rest@0.6.0 - (2022-07-17)

Documentation

  • Add codecov coverage badge to readmes (#8226) (f6db285)

Features

  • 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)

Refactor

  • 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)

Bug Fixes

  • REST: Remove dom types (#7922) (e92b17d)
  • Ok statusCode can be 200..299 (#7919) (d1504f2)

Features

  • 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)

Styling

  • Cleanup tests and tsup configs (6b8ef20)

@discordjs/rest@0.4.0 - (2022-04-17)

Bug Fixes

  • 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)

Documentation

  • Enhance /rest README (#7757) (a1329bd)

Features

  • 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)

Refactor

  • requestmanager: Use timestampfrom (#7459) (3298510)
  • files: Remove redundant file property names (#7340) (6725038)

@discordjs/rest@0.3.0 - (2022-01-24)

Bug Fixes

  • 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)

Documentation

  • Fix a typo and use milliseconds instead of ms (#7251) (0dd56af)

Features

  • Rest hash and handler sweeping (#7255) (3bb4829)
  • Rest docs (#7281) (9054f2f)

Refactor

  • files: File data can be much more than buffer (#7238) (86ab526)
  • rest: Rename attachment to file (#7199) (c969cbf)

Testing