mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
16 KiB
16 KiB
Changelog
All notable changes to this project will be documented in this file.
@discordjs/ws@2.0.0 - (2024-09-01)
Bug Fixes
- 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)
Features
- WebsocketManager: Retroactive token setting (#10418) (de94eaf)
- WebSocketShard: Explicit time out network error handling (#10375) (093ac92)
Refactor
- 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)
Bug Fixes
- Deno compat (#10271) (616208b)
@discordjs/ws@1.1.0 - (2024-05-04)
Bug Fixes
Documentation
- Remove duplicate word in comment (#10244) (96169ad)
- Split docs.api.json into multiple json files (597340f)
- Remove utf-8-validate (#10059) (7e12bee)
Features
- ws: Support for custom worker messaging (#10241) (728164e)
- Local and preview detection (79fbda3)
- Add support for
usingkeyword on discord.jsClientandWebSocketManager(#10063) (543d617) - Use globally available WebSocket client in runtimes that have it (#10042) (319ef9a)
Refactor
- Docs (#10126) (18cce83)
- WebSocketShard: Payload sending (#10098) (c878b65)
- Use interfaces for AsyncEventEmitter event maps (#10044) (adfd9cd)
@discordjs/ws@1.0.2 - (2023-11-12)
Bug Fixes
- WebSocketManager: Available sessions check (#9823) (e68ab16)
Documentation
- create-discord-bot: Support bun in create-discord-bot (#9798) (7157748)
@discordjs/ws@1.0.1 - (2023-08-17)
Documentation
- Update Node.js requirement to 16.11.0 (#9764) (188877c)
@discordjs/ws@1.0.0 - (2023-07-31)
Bug Fixes
- 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)
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/restwill 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
Refactor
- 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
Responeobject. - BREAKING CHANGE: The
parseResponseutility method has been updated to operate on a web compatibleResponseobject. - BREAKING CHANGE: Many underlying internals have changed, some of which were exported.
- BREAKING CHANGE:
DefaultRestOptionsused to contain a defaultagent, which is now set tonullinstead.
- BREAKING CHANGE: NodeJS v18+ is required when using node due to the use of global
@discordjs/ws@0.8.3 - (2023-05-06)
Bug Fixes
- WebSocketShard: Wait a little before reconnecting (#9517) (00da44a)
Testing
- ws: Fix tests (#9520) (3e80f0b)
@discordjs/ws@0.8.2 - (2023-05-01)
Documentation
- Generate static imports for types with api-extractor (98a76db)
@discordjs/ws@0.8.1 - (2023-04-16)
Bug Fixes
- Fix external links (#9313) (a7425c2)
Refactor
- 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)
Bug Fixes
- 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)
Features
- website: Render syntax and mdx on the server (#9086) (ee5169e)
@discordjs/ws@0.7.0 - (2023-03-12)
Bug Fixes
- 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)
Documentation
- Fix typos (#9127) (1ba1f23)
- Fix version export (#9049) (8b70f49)
- Updated @discordjs/ws README.md to include optional packages (#8973) (4ee00b6)
Features
- WebSocketShard: Heartbeat jitter (#9223) (6ecff26)
- website: Add support for source file links (#9048) (f6506e9)
- ws: Custom workers (#9004) (828a13b)
- ws: Metrics (#9005) (0ff67d8)
Refactor
- WebSocketManager: Passing in strategy (#9122) (5c5a583)
Styling
- Run prettier (#9041) (2798ba1)
@discordjs/ws@0.6.0 - (2022-12-16)
Bug Fixes
- WebSocketShard: Send ratelimit handling (#8887) (40b504a)
Features
- core: Add support for role connections (#8930) (3d6fa24)
Refactor
- WebSocketShard: Identify throttling (#8888) (8f552a0)
@discordjs/ws@0.5.0 - (2022-11-28)
Bug Fixes
- Pin @types/node version (9d8179c)
Documentation
- Remove unused imports (#8744) (179392d)
Features
- New select menus (#8793) (5152abf)
@discordjs/ws@0.4.1 - (2022-10-10)
Bug Fixes
- WebSocketShard: Dispatch race condition (#8731) (c2b6777)
@discordjs/ws@0.4.0 - (2022-10-08)
Bug Fixes
- Ws package.json path (#8720) (7af3c3b)
- WebSocketShard: Add ready data parameter to ready event (#8705) (a7eab50)
- Footer / sidebar / deprecation alert (ba3e0ed)
Documentation
- Change name (#8604) (dd5a089)
Features
Refactor
@discordjs/ws@0.3.0 - (2022-08-22)
Bug Fixes
- 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)
Documentation
- Fence examples in codeblocks (193b252)
Features
- website: Show
constructorinformation (#8540) (e42fd16) - website: Render
@defaultValueblocks (#8527) (8028813) - website: Render tsdoc examples (#8494) (7116647)
- WebSocketShard: Support new resume url (#8480) (bc06cc6)
Refactor
@discordjs/ws@0.2.0 - (2022-07-30)
Bug Fixes
- WebSocketShard: Account code 1000 with no prior indication (#8399) (5137bfc)
- WebSocketShard: Use correct import (#8357) (78d4295)
Features
- @discordjs/ws (#8260) (748d727)