@ovencord/ws 2.0.3 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -56,7 +56,7 @@ This is NOT a simple port. Every line of code has been scrutinized and rewritten
56
56
  ### Dependency Annihilation
57
57
 
58
58
  **Before (discord.js ecosystem)**:
59
- - Runtime: `ws`, `zlib-sync`, `tslib`, `@ovencord/*`
59
+ - Runtime: `ws`, `zlib-sync`, `@ovencord/*`
60
60
  - Dev: `vitest`, `tsup`, `prettier`, `eslint-config-neon`, 15+ more
61
61
  - **Total**: ~56MB of `node_modules`
62
62
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@ovencord/ws",
4
- "version": "2.0.3",
4
+ "version": "2.0.5",
5
5
  "description": "Wrapper around Discord's gateway",
6
6
  "scripts": {
7
7
  "test": "bun test",
@@ -34,18 +34,13 @@
34
34
  "homepage": "https://ovencord.dev",
35
35
  "funding": "https://github.com/ovencord/ovencord?sponsor",
36
36
  "dependencies": {
37
- "@ovencord/collection": "^2.1.1",
38
- "@ovencord/util": "^1.1.1",
37
+ "@ovencord/collection": "^2.1.2",
38
+ "@ovencord/util": "^1.1.4",
39
39
  "discord-api-types": "^0.38.36"
40
40
  },
41
- "devDependencies": {
42
- "@types/bun": "^1.3.8",
43
- "eslint": "^9.39.2",
44
- "typescript": "^5.9.3",
45
- "typescript-eslint": "^8.54.0"
46
- },
41
+ "devDependencies": {},
47
42
  "engines": {
48
- "bun": ">=1.0.0"
43
+ "bun": ">=1.3.0"
49
44
  },
50
45
  "publishConfig": {
51
46
  "access": "public"
@@ -29,7 +29,7 @@ export class SimpleShardingStrategy implements IShardingStrategy {
29
29
  const shard = new WebSocketShard(strategy, shardId);
30
30
 
31
31
  for (const event of Object.values(WebSocketShardEvents)) {
32
- shard.on(event, (...args) => this.manager.emit(event, ...args, shardId));
32
+ shard.on(event, (...args) => { void this.manager.emit(event, ...args, shardId); });
33
33
  }
34
34
 
35
35
  this.shards.set(shardId, shard);
@@ -881,7 +881,7 @@ export class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> {
881
881
 
882
882
  // Override emit to fix TypeScript visibility/type issues
883
883
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
884
- public override emit(event: any, ...args: any[]): boolean {
884
+ public override emit(event: any, ...args: any[]): Promise<boolean> {
885
885
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
886
886
  return (super.emit as any)(event, ...args);
887
887
  }