@seedcord/gateway 0.7.4 → 0.7.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
@@ -17,7 +17,7 @@
17
17
 
18
18
  <div align="center">
19
19
 
20
- [![npm](https://img.shields.io/npm/v/@seedcord/gateway?style=flat-square&logo=npm&logoColor=c8341f&label=&labelColor=1f1f1f&color=c8341f)](https://www.npmjs.com/package/@seedcord/gateway) [![node](https://img.shields.io/node/v/@seedcord/gateway?style=flat-square&label=node&labelColor=1f1f1f&color=4d7d33)](https://nodejs.org) [![license](https://img.shields.io/npm/l/@seedcord/gateway?style=flat-square&label=license&labelColor=1f1f1f&color=f8f6e8)](LICENSE)
20
+ [![npm](https://img.shields.io/npm/v/@seedcord/gateway?style=flat-square&label=npm&labelColor=1f1f1f&color=c8341f)](https://www.npmjs.com/package/@seedcord/gateway) [![node](https://img.shields.io/node/v/@seedcord/gateway?style=flat-square&label=node&labelColor=1f1f1f&color=4d7d33)](https://nodejs.org) [![bun](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fseedcord%2Fseedcord%2Fnext%2Fpackages%2Fgateway%2Fpackage.json&query=%24.engines.bun&style=flat-square&label=bun&labelColor=1f1f1f&color=fbf0df)](https://bun.com) [![license](https://img.shields.io/npm/l/@seedcord/gateway?style=flat-square&label=license&labelColor=1f1f1f&color=f8f6e8)](LICENSE)
21
21
 
22
22
  </div>
23
23
 
package/dist/index.mjs CHANGED
@@ -2612,7 +2612,7 @@ function initBot(bot) {
2612
2612
  //#endregion
2613
2613
  //#region src/version.ts
2614
2614
  /** Package version */
2615
- const version = "0.7.4";
2615
+ const version = "0.7.5";
2616
2616
 
2617
2617
  //#endregion
2618
2618
  //#region src/Seedcord.ts
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@seedcord/gateway",
3
3
  "type": "module",
4
- "version": "0.7.4",
4
+ "version": "0.7.5",
5
5
  "engines": {
6
- "node": ">=24.11"
6
+ "node": ">=24.11",
7
+ "bun": ">=1.4.2"
7
8
  },
8
9
  "description": "Gateway transport for seedcord bots, using the discord.js client",
9
10
  "keywords": [
@@ -47,19 +48,19 @@
47
48
  "dependencies": {
48
49
  "@discordjs/builders": "^1.14.1",
49
50
  "@discordjs/rest": "^2.6.3",
50
- "@seedcord/core": "^0.9.4",
51
- "@seedcord/custom-id": "^0.2.6",
52
- "@seedcord/errors": "^0.12.0",
53
- "@seedcord/event-emitter": "^0.1.7",
54
- "@seedcord/logger": "^0.4.3",
55
- "@seedcord/rate-limiter": "^0.1.11",
56
- "@seedcord/types": "^0.14.3",
57
- "@seedcord/utils": "^0.8.16",
51
+ "@seedcord/core": "^0.10.0",
52
+ "@seedcord/custom-id": "^0.2.7",
53
+ "@seedcord/errors": "^0.13.0",
54
+ "@seedcord/event-emitter": "^0.1.8",
55
+ "@seedcord/logger": "^0.4.4",
56
+ "@seedcord/rate-limiter": "^0.1.12",
57
+ "@seedcord/types": "^0.14.4",
58
+ "@seedcord/utils": "^0.8.17",
58
59
  "reflect-metadata": "^0.2.2"
59
60
  },
60
61
  "devDependencies": {
61
- "@seedcord/eslint-config": "^2.4.0",
62
- "@seedcord/tsconfig": "^2.0.5",
62
+ "@seedcord/eslint-config": "^2.5.0",
63
+ "@seedcord/tsconfig": "^2.0.6",
63
64
  "@seedcord/tsdown-config": "^2.0.1",
64
65
  "@seedcord/vitest-config": "^0.0.1",
65
66
  "discord.js": "^14.27.0",
@@ -82,5 +83,5 @@
82
83
  "test:watch": "vitest dev",
83
84
  "coverage": "vitest run --coverage"
84
85
  },
85
- "readme": "<div align=\"center\">\n <picture>\n <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://cdn.seedcord.org/assets/wordmark-dark.webp\" />\n <img src=\"https://cdn.seedcord.org/assets/wordmark-light.webp\" alt=\"seedcord\" width=\"440\" />\n </picture>\n</div>\n\n<div align=\"center\">\n <h3>The whole Discord bot, typed end to end</h3>\n <a href=\"https://seedcord.org\">Website</a> ·\n <a href=\"https://seedcord.org/guide\">Guide</a> ·\n <a href=\"https://seedcord.org/docs\">Reference</a> ·\n <a href=\"https://discord.gg/DzFxY58WXf\">Discord</a>\n</div>\n\n<br />\n\n<div align=\"center\">\n\n[![npm](https://img.shields.io/npm/v/@seedcord/gateway?style=flat-square&logo=npm&logoColor=c8341f&label=&labelColor=1f1f1f&color=c8341f)](https://www.npmjs.com/package/@seedcord/gateway) [![node](https://img.shields.io/node/v/@seedcord/gateway?style=flat-square&label=node&labelColor=1f1f1f&color=4d7d33)](https://nodejs.org) [![license](https://img.shields.io/npm/l/@seedcord/gateway?style=flat-square&label=license&labelColor=1f1f1f&color=f8f6e8)](LICENSE)\n\n</div>\n\n## About\n\n`@seedcord/gateway` runs a seedcord bot over a websocket connection through the discord.js client, which also keeps the cache. A gateway connection carries message, member, voice, and reaction events. Discord never posts those to an interactions endpoint. Pick this transport when the bot reacts to any of them.\n\nUntil v1.0.0, minor versions can break.\n\n## Installation\n\n```sh\npnpm add @seedcord/gateway discord.js\n```\n\n`discord.js`, `envapt`, and `typescript` are peer dependencies. `pnpm create seedcord` sets all of it up.\n\n## What it adds over the core\n\nEverything in `@seedcord/core`, plus the parts that use a live connection:\n\n- `Seedcord`, the class that connects and holds the discord.js client\n- event subscribers, through `Subscriber` and `WebhookLog`\n- `getConfirmation`, which waits on a button press and returns the answer\n- pagination sources bound to the gateway\n"
86
+ "readme": "<div align=\"center\">\n <picture>\n <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://cdn.seedcord.org/assets/wordmark-dark.webp\" />\n <img src=\"https://cdn.seedcord.org/assets/wordmark-light.webp\" alt=\"seedcord\" width=\"440\" />\n </picture>\n</div>\n\n<div align=\"center\">\n <h3>The whole Discord bot, typed end to end</h3>\n <a href=\"https://seedcord.org\">Website</a> ·\n <a href=\"https://seedcord.org/guide\">Guide</a> ·\n <a href=\"https://seedcord.org/docs\">Reference</a> ·\n <a href=\"https://discord.gg/DzFxY58WXf\">Discord</a>\n</div>\n\n<br />\n\n<div align=\"center\">\n\n[![npm](https://img.shields.io/npm/v/@seedcord/gateway?style=flat-square&label=npm&labelColor=1f1f1f&color=c8341f)](https://www.npmjs.com/package/@seedcord/gateway) [![node](https://img.shields.io/node/v/@seedcord/gateway?style=flat-square&label=node&labelColor=1f1f1f&color=4d7d33)](https://nodejs.org) [![bun](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fseedcord%2Fseedcord%2Fnext%2Fpackages%2Fgateway%2Fpackage.json&query=%24.engines.bun&style=flat-square&label=bun&labelColor=1f1f1f&color=fbf0df)](https://bun.com) [![license](https://img.shields.io/npm/l/@seedcord/gateway?style=flat-square&label=license&labelColor=1f1f1f&color=f8f6e8)](LICENSE)\n\n</div>\n\n## About\n\n`@seedcord/gateway` runs a seedcord bot over a websocket connection through the discord.js client, which also keeps the cache. A gateway connection carries message, member, voice, and reaction events. Discord never posts those to an interactions endpoint. Pick this transport when the bot reacts to any of them.\n\nUntil v1.0.0, minor versions can break.\n\n## Installation\n\n```sh\npnpm add @seedcord/gateway discord.js\n```\n\n`discord.js`, `envapt`, and `typescript` are peer dependencies. `pnpm create seedcord` sets all of it up.\n\n## What it adds over the core\n\nEverything in `@seedcord/core`, plus the parts that use a live connection:\n\n- `Seedcord`, the class that connects and holds the discord.js client\n- event subscribers, through `Subscriber` and `WebhookLog`\n- `getConfirmation`, which waits on a button press and returns the answer\n- pagination sources bound to the gateway\n"
86
87
  }