@discordjs/ws
Advanced tools
Comparing version 0.3.0-dev.1660997034-8028813.0 to 0.3.0
@@ -5,2 +5,27 @@ # Changelog | ||
# [@discordjs/ws@0.3.0](https://github.com/discordjs/discord.js/compare/@discordjs/ws@0.2.0...@discordjs/ws@0.3.0) - (2022-08-22) | ||
## Bug Fixes | ||
- **WebSocketShard#destroy:** Wait for close and cleanup listeners (#8479) ([acdafe6](https://github.com/discordjs/discord.js/commit/acdafe60c7aa1ac5a3d358934c055c297080a944)) | ||
- **WebSocketManager#connect:** Check if we have enough sessions (#8481) ([4fd4252](https://github.com/discordjs/discord.js/commit/4fd42528fea6127e6468a651f9544913c19ade4d)) | ||
- **WebSocketShard:** Always reconnect on disconnected with 1000 (#8405) ([359f688](https://github.com/discordjs/discord.js/commit/359f6885558fcfb3151971ab589077a89ee71a01)) | ||
- **WebSocketShard:** Emit errors directly instead of objects (#8406) ([3161e1a](https://github.com/discordjs/discord.js/commit/3161e1a1acfbf929ecf33958fa1657553dd9bc1e)) | ||
## Documentation | ||
- Fence examples in codeblocks ([193b252](https://github.com/discordjs/discord.js/commit/193b252672440a860318d3c2968aedd9cb88e0ce)) | ||
## Features | ||
- **website:** Show `constructor` information (#8540) ([e42fd16](https://github.com/discordjs/discord.js/commit/e42fd1636973b10dd7ed6fb4280ee1a4a8f82007)) | ||
- **website:** Render `@defaultValue` blocks (#8527) ([8028813](https://github.com/discordjs/discord.js/commit/8028813825e7708915ea892760c1003afd60df2f)) | ||
- **website:** Render tsdoc examples (#8494) ([7116647](https://github.com/discordjs/discord.js/commit/7116647947e413da59fbf493ed5251ddcd710ce7)) | ||
- **WebSocketShard:** Support new resume url (#8480) ([bc06cc6](https://github.com/discordjs/discord.js/commit/bc06cc638d2f57ab5c600e8cdb6afc8eb2180166)) | ||
## Refactor | ||
- **website:** Adjust typography (#8503) ([0f83402](https://github.com/discordjs/discord.js/commit/0f834029850d2448981596cf082ff59917018d66)) | ||
- Docs design (#8487) ([4ab1d09](https://github.com/discordjs/discord.js/commit/4ab1d09997a18879a9eb9bda39df6f15aa22557e)) | ||
# [@discordjs/ws@0.2.0](https://github.com/discordjs/discord.js/compare/@discordjs/ws@0.1.0...@discordjs/ws@0.2.0) - (2022-07-30) | ||
@@ -7,0 +32,0 @@ |
@@ -13,7 +13,19 @@ import type { GatewaySendPayload } from 'discord-api-types/v10'; | ||
constructor(manager: WebSocketManager); | ||
/** | ||
* {@inheritDoc IShardingStrategy.spawn} | ||
*/ | ||
spawn(shardIds: number[]): Promise<void>; | ||
/** | ||
* {@inheritDoc IShardingStrategy.connect} | ||
*/ | ||
connect(): Promise<void>; | ||
/** | ||
* {@inheritDoc IShardingStrategy.destroy} | ||
*/ | ||
destroy(options?: Omit<WebSocketShardDestroyOptions, 'recover'>): Promise<void>; | ||
/** | ||
* {@inheritDoc IShardingStrategy.send} | ||
*/ | ||
send(shardId: number, payload: GatewaySendPayload): Promise<void>; | ||
} | ||
//# sourceMappingURL=SimpleShardingStrategy.d.ts.map |
@@ -78,5 +78,17 @@ import type { GatewaySendPayload } from 'discord-api-types/v10'; | ||
constructor(manager: WebSocketManager, options: WorkerShardingStrategyOptions); | ||
/** | ||
* {@inheritDoc IShardingStrategy.spawn} | ||
*/ | ||
spawn(shardIds: number[]): Promise<void>; | ||
/** | ||
* {@inheritDoc IShardingStrategy.connect} | ||
*/ | ||
connect(): Promise<void>; | ||
/** | ||
* {@inheritDoc IShardingStrategy.destroy} | ||
*/ | ||
destroy(options?: Omit<WebSocketShardDestroyOptions, 'recover'>): Promise<void>; | ||
/** | ||
* {@inheritDoc IShardingStrategy.send} | ||
*/ | ||
send(shardId: number, data: GatewaySendPayload): void; | ||
@@ -83,0 +95,0 @@ private onMessage; |
@@ -179,3 +179,3 @@ import type { REST } from '@discordjs/rest'; | ||
* Fetches the gateway information from Discord - or returns it from cache if available | ||
* @param force Whether to ignore the cache and force a fresh fetch | ||
* @param force - Whether to ignore the cache and force a fresh fetch | ||
*/ | ||
@@ -185,3 +185,3 @@ fetchGatewayInformation(force?: boolean): Promise<APIGatewayBotInfo>; | ||
* Updates your total shard count on-the-fly, spawning shards as needed | ||
* @param shardCount The new shard count to use | ||
* @param shardCount - The new shard count to use | ||
*/ | ||
@@ -188,0 +188,0 @@ updateShardCount(shardCount: number | null): Promise<this>; |
{ | ||
"name": "@discordjs/ws", | ||
"version": "0.3.0-dev.1660997034-8028813.0", | ||
"version": "0.3.0", | ||
"description": "Wrapper around Discord's gateway", | ||
@@ -57,6 +57,6 @@ "scripts": { | ||
"@discordjs/rest": "^1.0.1", | ||
"@sapphire/async-queue": "^1.4.0", | ||
"@sapphire/async-queue": "^1.5.0", | ||
"@types/ws": "^8.5.3", | ||
"@vladfrangu/async_event_emitter": "^2.0.1", | ||
"discord-api-types": "^0.37.2", | ||
"discord-api-types": "^0.37.3", | ||
"tslib": "^2.4.0", | ||
@@ -67,20 +67,21 @@ "ws": "^8.8.1" | ||
"@discordjs/docgen": "^0.12.1", | ||
"@favware/cliff-jumper": "^1.8.6", | ||
"@microsoft/api-extractor": "^7.29.2", | ||
"@types/node": "^16.11.48", | ||
"@typescript-eslint/eslint-plugin": "^5.33.0", | ||
"@typescript-eslint/parser": "^5.33.0", | ||
"@vitest/coverage-c8": "^0.22.0", | ||
"@favware/cliff-jumper": "^1.8.7", | ||
"@microsoft/api-extractor": "^7.29.3", | ||
"@types/node": "^16.11.52", | ||
"@typescript-eslint/eslint-plugin": "^5.33.1", | ||
"@typescript-eslint/parser": "^5.33.1", | ||
"@vitest/coverage-c8": "^0.22.1", | ||
"eslint": "^8.22.0", | ||
"eslint-config-marine": "^9.4.1", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-import-resolver-typescript": "^3.4.1", | ||
"eslint-import-resolver-typescript": "^3.4.2", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-tsdoc": "^0.2.16", | ||
"mock-socket": "^9.1.5", | ||
"prettier": "^2.7.1", | ||
"rollup-plugin-typescript2": "0.32.1", | ||
"rollup-plugin-typescript2": "^0.33.0", | ||
"typescript": "^4.7.4", | ||
"unbuild": "^0.8.8", | ||
"undici": "^5.8.2", | ||
"vitest": "^0.22.0", | ||
"unbuild": "^0.8.9", | ||
"undici": "^5.9.1", | ||
"vitest": "^0.22.1", | ||
"zlib-sync": "^0.1.7" | ||
@@ -87,0 +88,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
287976
2453
0
21
Updated@sapphire/async-queue@^1.5.0
Updateddiscord-api-types@^0.37.3