All notable changes to this project will be documented in this file.
@discordjs/ws@2.0.0 - (2024-09-01)
- WebSocketShard: Buffer native zlib decompression payload (#10416) (defb083)
- WebSocketManager: Heartbeat event had outdated types (#10417) (5eabec1)
- Retry for EAI_AGAIN I/O error (#10383) (be04acd)
- Consistent debug log spacing (#10349) (38c699b)
- WebsocketManager: Retroactive token setting (#10418) (de94eaf)
- WebSocketShard: Explicit time out network error handling (#10375) (093ac92)
- WebSocketShard: Error event handling (#10436) (a6de270)
- ws: Event layout (#10376) (bf6761a)
- BREAKING CHANGE: All events now emit shard id as its own param
- Native zlib support (#10316) (94cc02a)
@discordjs/ws@1.1.1 - (2024-06-02)
- Deno compat (#10271) (616208b)
@discordjs/ws@1.1.0 - (2024-05-04)
- Remove duplicate word in comment (#10244) (96169ad)
- Split docs.api.json into multiple json files (597340f)
- Remove utf-8-validate (#10059) (7e12bee)
- ws: Support for custom worker messaging (#10241) (728164e)
- Local and preview detection (79fbda3)
- Add support for
using
keyword on discord.jsClient
andWebSocketManager
(#10063) (543d617) - Use globally available WebSocket client in runtimes that have it (#10042) (319ef9a)
- Docs (#10126) (18cce83)
- WebSocketShard: Payload sending (#10098) (c878b65)
- Use interfaces for AsyncEventEmitter event maps (#10044) (adfd9cd)
@discordjs/ws@1.0.2 - (2023-11-12)
- WebSocketManager: Available sessions check (#9823) (e68ab16)
- create-discord-bot: Support bun in create-discord-bot (#9798) (7157748)
@discordjs/ws@1.0.1 - (2023-08-17)
- Update Node.js requirement to 16.11.0 (#9764) (188877c)
@discordjs/ws@1.0.0 - (2023-07-31)
- WebSocketShard: Close errors not being catchable (#9704) (8c782bf)
- WebSocketManager: Always cache result of fetchGatewayInformation (#9611) (df8b6e9)
- WebSocketShard: Handle initial connect being a resume (#9549) (4dcc9c5)
- 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
- WebSocketShard: Throttling error handling (#9701) (ceab07b)
- 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/ws@0.8.3 - (2023-05-06)
- WebSocketShard: Wait a little before reconnecting (#9517) (00da44a)
- ws: Fix tests (#9520) (3e80f0b)
@discordjs/ws@0.8.2 - (2023-05-01)
- Generate static imports for types with api-extractor (98a76db)
@discordjs/ws@0.8.1 - (2023-04-16)
- Fix external links (#9313) (a7425c2)
- Abstract identify throttling and correct max_concurrency handling (#9375) (02dfaf1)
- WebSocketShard: WaitForEvent and its error handling (#9282) (dcf58d8)
@discordjs/ws@0.8.0 - (2023-04-01)
- scripts: Accessing tsComment (d8d5f31)
- WebSocketShard: Don't await #destroy in error bubbling logic (#9276) (519825a)
- WebSocketShard: Don't close in #destroy when status is connecting (#9254) (c76b17d)
- WebSocketShard: Cancel initial heartbeat in destroy (#9244) (9842082)
- website: Render syntax and mdx on the server (#9086) (ee5169e)
@discordjs/ws@0.7.0 - (2023-03-12)
- WebSocketShard: #send race condition due to ready state (#9226) (a99fc64)
- WebSocketShard: Wait for hello rather than ready in connect (#9178) (27e0b32)
- WebSocketShard: Proper error bubbling (#9119) (9681f34)
- Ws typo (#9056) (05a1cbf)
- Fix typos (#9127) (1ba1f23)
- Fix version export (#9049) (8b70f49)
- Updated @discordjs/ws README.md to include optional packages (#8973) (4ee00b6)
- WebSocketShard: Heartbeat jitter (#9223) (6ecff26)
- website: Add support for source file links (#9048) (f6506e9)
- ws: Custom workers (#9004) (828a13b)
- ws: Metrics (#9005) (0ff67d8)
- WebSocketManager: Passing in strategy (#9122) (5c5a583)
- Run prettier (#9041) (2798ba1)
@discordjs/ws@0.6.0 - (2022-12-16)
- WebSocketShard: Send ratelimit handling (#8887) (40b504a)
- core: Add support for role connections (#8930) (3d6fa24)
- WebSocketShard: Identify throttling (#8888) (8f552a0)
@discordjs/ws@0.5.0 - (2022-11-28)
- Pin @types/node version (9d8179c)
- Remove unused imports (#8744) (179392d)
- New select menus (#8793) (5152abf)
@discordjs/ws@0.4.1 - (2022-10-10)
- WebSocketShard: Dispatch race condition (#8731) (c2b6777)
@discordjs/ws@0.4.0 - (2022-10-08)
- Ws package.json path (#8720) (7af3c3b)
- WebSocketShard: Add ready data parameter to ready event (#8705) (a7eab50)
- Footer / sidebar / deprecation alert (ba3e0ed)
- Change name (#8604) (dd5a089)
@discordjs/ws@0.3.0 - (2022-08-22)
- WebSocketShard#destroy: Wait for close and cleanup listeners (#8479) (acdafe6)
- WebSocketManager#connect: Check if we have enough sessions (#8481) (4fd4252)
- WebSocketShard: Always reconnect on disconnected with 1000 (#8405) (359f688)
- WebSocketShard: Emit errors directly instead of objects (#8406) (3161e1a)
- Fence examples in codeblocks (193b252)
- website: Show
constructor
information (#8540) (e42fd16) - website: Render
@defaultValue
blocks (#8527) (8028813) - website: Render tsdoc examples (#8494) (7116647)
- WebSocketShard: Support new resume url (#8480) (bc06cc6)
@discordjs/ws@0.2.0 - (2022-07-30)
- WebSocketShard: Account code 1000 with no prior indication (#8399) (5137bfc)
- WebSocketShard: Use correct import (#8357) (78d4295)
- @discordjs/ws (#8260) (748d727)