cordo 2.18.2 → 2.19.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordo",
3
- "version": "2.18.2",
3
+ "version": "2.19.0",
4
4
  "description": "A framework for handling complex discord api interactions",
5
5
  "exports": {
6
6
  ".": "./src/index.ts",
@@ -24,7 +24,7 @@
24
24
  "lint": "eslint --ext .ts --ignore-path .gitignore src/**/*.ts",
25
25
  "tunnel": "cloudflared tunnel --config ~/.cloudflared/config.yml run fsb",
26
26
  "dev": "tsc && node --trace-warnings ./build/index.js",
27
- "test": "echo \"Error: no tests specified\" && exit 0",
27
+ "test": "bun test",
28
28
  "prepub": "npm run lint && npm run build && npm run test && npm pub"
29
29
  },
30
30
  "repository": {
@@ -38,25 +38,39 @@
38
38
  },
39
39
  "homepage": "https://github.com/maanex/cordo#readme",
40
40
  "dependencies": {
41
- "@types/bun": "^1.4.3",
42
- "axios": "^0.21.4",
41
+ "axios": "^1.8.4",
43
42
  "defu": "^6.1.7",
43
+ "discord-api-types": "^0.38.57",
44
44
  "discord-interactions": "^2.4.1",
45
45
  "type-fest": "^4.41.0"
46
46
  },
47
+ "peerDependencies": {
48
+ "discord.js": "^14.0.0",
49
+ "express": "^4.0.0 || ^5.0.0",
50
+ "hono": "^4.0.0"
51
+ },
52
+ "peerDependenciesMeta": {
53
+ "discord.js": {
54
+ "optional": true
55
+ },
56
+ "express": {
57
+ "optional": true
58
+ },
59
+ "hono": {
60
+ "optional": true
61
+ }
62
+ },
47
63
  "devDependencies": {
48
- "@types/axios": "^0.14.4",
64
+ "@types/bun": "^1.4.4",
49
65
  "@types/express": "^4.17.25",
50
- "@types/node": "^17.0.45",
66
+ "@types/node": "^22.13.0",
51
67
  "@typescript-eslint/eslint-plugin": "^4.33.0",
52
68
  "@typescript-eslint/parser": "^4.33.0",
53
- "discord-api-types": "^0.38.57",
54
69
  "discord.js": "^14.27.0",
55
70
  "eslint": "^7.32.0",
56
71
  "eslint-config-maanex": "^1.3.3",
57
72
  "express": "^4.22.3",
58
- "hono": "^4.13.13",
59
- "reflect-metadata": "^0.1.14",
73
+ "hono": "^4.13.14",
60
74
  "typescript": "^5.9.3",
61
75
  "vitepress": "^1.6.4",
62
76
  "vue": "^3.5.44"
@@ -1,4 +1,4 @@
1
- import { ApplicationCommandOptionType, ApplicationCommandType, InteractionType } from 'discord.js'
1
+ import { ApplicationCommandOptionType, ApplicationCommandType, InteractionType } from 'discord-api-types/v10'
2
2
  import { MissingContextError } from '../../errors/builtin/missing-context'
3
3
  import { FunctCompiler } from '../../functions/compiler'
4
4
  import { Hooks } from '../hooks'