ryanlink 1.0.1 → 2.0.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.
Files changed (62) hide show
  1. package/LICENSE +201 -37
  2. package/README.md +97 -370
  3. package/dist/index.cjs +4833 -0
  4. package/dist/index.d.cts +1703 -0
  5. package/dist/index.d.ts +1528 -1160
  6. package/dist/index.js +4263 -4190
  7. package/dist/index.mjs +4262 -4099
  8. package/package.json +87 -79
  9. package/dist/index.d.mts +0 -1335
  10. package/dist/index.js.map +0 -1
  11. package/dist/index.mjs.map +0 -1
  12. package/src/audio/AudioFilters.ts +0 -316
  13. package/src/audio/AudioQueue.ts +0 -782
  14. package/src/audio/AudioTrack.ts +0 -242
  15. package/src/audio/QueueController.ts +0 -252
  16. package/src/audio/TrackCollection.ts +0 -138
  17. package/src/audio/index.ts +0 -9
  18. package/src/config/defaults.ts +0 -223
  19. package/src/config/endpoints.ts +0 -99
  20. package/src/config/index.ts +0 -9
  21. package/src/config/patterns.ts +0 -55
  22. package/src/config/presets.ts +0 -400
  23. package/src/config/symbols.ts +0 -31
  24. package/src/core/PluginSystem.ts +0 -50
  25. package/src/core/RyanlinkPlayer.ts +0 -403
  26. package/src/core/index.ts +0 -6
  27. package/src/extensions/AutoplayExtension.ts +0 -283
  28. package/src/extensions/FairPlayExtension.ts +0 -154
  29. package/src/extensions/LyricsExtension.ts +0 -187
  30. package/src/extensions/PersistenceExtension.ts +0 -182
  31. package/src/extensions/SponsorBlockExtension.ts +0 -81
  32. package/src/extensions/index.ts +0 -9
  33. package/src/index.ts +0 -19
  34. package/src/lavalink/ConnectionPool.ts +0 -326
  35. package/src/lavalink/HttpClient.ts +0 -316
  36. package/src/lavalink/LavalinkConnection.ts +0 -409
  37. package/src/lavalink/index.ts +0 -7
  38. package/src/metadata.ts +0 -88
  39. package/src/types/api/Rest.ts +0 -949
  40. package/src/types/api/Websocket.ts +0 -463
  41. package/src/types/api/index.ts +0 -6
  42. package/src/types/audio/FilterManager.ts +0 -29
  43. package/src/types/audio/Queue.ts +0 -4
  44. package/src/types/audio/QueueManager.ts +0 -30
  45. package/src/types/audio/index.ts +0 -7
  46. package/src/types/common.ts +0 -63
  47. package/src/types/core/Player.ts +0 -322
  48. package/src/types/core/index.ts +0 -5
  49. package/src/types/index.ts +0 -6
  50. package/src/types/lavalink/Node.ts +0 -173
  51. package/src/types/lavalink/NodeManager.ts +0 -34
  52. package/src/types/lavalink/REST.ts +0 -144
  53. package/src/types/lavalink/index.ts +0 -32
  54. package/src/types/voice/VoiceManager.ts +0 -176
  55. package/src/types/voice/index.ts +0 -5
  56. package/src/utils/helpers.ts +0 -169
  57. package/src/utils/index.ts +0 -6
  58. package/src/utils/validators.ts +0 -184
  59. package/src/voice/RegionSelector.ts +0 -184
  60. package/src/voice/VoiceConnection.ts +0 -451
  61. package/src/voice/VoiceSession.ts +0 -297
  62. package/src/voice/index.ts +0 -7
package/package.json CHANGED
@@ -1,82 +1,90 @@
1
1
  {
2
- "name": "ryanlink",
3
- "version": "1.0.1",
4
- "description": "A modern, feature-rich Lavalink client for Node.js with TypeScript support",
5
- "main": "dist/index.js",
6
- "module": "dist/index.mjs",
7
- "types": "dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/index.d.ts",
11
- "bun": "./dist/index.mjs",
12
- "deno": "./dist/index.mjs",
13
- "import": "./dist/index.mjs",
14
- "require": "./dist/index.js"
15
- }
16
- },
17
- "scripts": {
18
- "build": "tsup",
19
- "build:legacy": "npm run build:cjs && npm run build:esm",
20
- "build:cjs": "tsc",
21
- "build:esm": "tsc --module esnext --outDir dist-esm && node scripts/build-esm.js",
22
- "dev": "tsup --watch",
23
- "dev:tsc": "tsc --watch",
24
- "test": "vitest run",
25
- "test:watch": "vitest",
26
- "test:coverage": "vitest run --coverage",
27
- "lint": "ESLINT_USE_FLAT_CONFIG=false eslint src",
28
- "lint:fix": "ESLINT_USE_FLAT_CONFIG=false eslint src --fix",
29
- "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"*.json\" \"*.md\"",
30
- "format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\" \"*.json\" \"*.md\"",
31
- "docs": "typedoc",
32
- "docs:watch": "typedoc --watch",
33
- "prepublishOnly": "npm run format:check && npm run lint && npm run test && npm run build"
34
- },
35
- "keywords": [
36
- "lavalink",
37
- "music",
38
- "audio",
39
- "discord",
40
- "bot",
41
- "player",
42
- "queue",
43
- "typescript"
44
- ],
45
- "author": "RY4N",
46
- "license": "Apache-2.0",
47
- "repository": {
48
- "type": "git",
49
- "url": "https://github.com/ryanwtf7/ryanlink.git"
50
- },
51
- "bugs": {
52
- "url": "https://github.com/ryanwtf7/ryanlink/issues"
53
- },
54
- "homepage": "https://github.com/ryanwtf7/ryanlink#readme",
55
- "engines": {
56
- "node": ">=18.0.0"
57
- },
58
- "dependencies": {
59
- "ws": "^8.18.0"
60
- },
61
- "devDependencies": {
62
- "@types/node": "^20.0.0",
63
- "@types/ws": "^8.5.10",
64
- "@typescript-eslint/eslint-plugin": "^6.0.0",
65
- "@typescript-eslint/parser": "^6.0.0",
66
- "@vitest/coverage-v8": "^1.0.0",
67
- "eslint": "^8.0.0",
68
- "eslint-config-prettier": "^9.0.0",
69
- "eslint-plugin-prettier": "^5.0.0",
70
- "prettier": "^3.0.0",
71
- "tsup": "^8.0.0",
72
- "typedoc": "^0.25.0",
73
- "typescript": "^5.3.0",
74
- "vitest": "^1.0.0"
75
- },
76
- "files": [
77
- "dist",
78
- "src",
79
- "README.md",
80
- "LICENSE"
2
+ "name": "ryanlink",
3
+ "version": "2.0.0",
4
+ "description": "High-performance, flexible and feature-rich lavalink-v4 wrapper for Discord bots,",
5
+ "keywords": [
6
+ "advanced",
7
+ "bot",
8
+ "client",
9
+ "discord",
10
+ "ryanlink",
11
+ "audio",
12
+ "music",
13
+ "typescript",
14
+ "audio-engine"
15
+ ],
16
+ "homepage": "https://github.com/ryanwtf7/ryanlink",
17
+ "bugs": {
18
+ "url": "https://github.com/ryanwtf7/ryanlink/issues"
19
+ },
20
+ "license": "Apache-2.0",
21
+ "author": "RY4N",
22
+ "contributors": [],
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/ryanwtf7/ryanlink.git"
26
+ },
27
+ "directories": {
28
+ "lib": "src"
29
+ },
30
+ "files": [
31
+ "dist"
32
+ ],
33
+ "type": "module",
34
+ "main": "./dist/index.cjs",
35
+ "module": "./dist/index.mjs",
36
+ "types": "./dist/index.d.ts",
37
+ "exports": {
38
+ ".": {
39
+ "types": "./dist/index.d.ts",
40
+ "bun": "./dist/index.mjs",
41
+ "require": "./dist/index.cjs",
42
+ "import": "./dist/index.mjs",
43
+ "default": "./dist/index.mjs"
44
+ }
45
+ },
46
+ "publishConfig": {
47
+ "access": "public"
48
+ },
49
+ "scripts": {
50
+ "build": "tsup",
51
+ "lint": "eslint src",
52
+ "lint:fix": "eslint src --fix",
53
+ "fmt": "prettier --write .",
54
+ "test": "jest",
55
+ "test:jest": "jest",
56
+ "test:watch": "vitest",
57
+ "test:coverage": "vitest run --coverage",
58
+ "prepublishOnly": "npm run fmt && npm run build"
59
+ },
60
+ "dependencies": {
61
+ "tslib": "^2.8.1",
62
+ "ws": "^8.19.0"
63
+ },
64
+ "devDependencies": {
65
+ "@types/bun": "latest",
66
+ "@types/jest": "^29.5.14",
67
+ "@types/node": "^24.10.15",
68
+ "@types/ws": "^8.18.1",
69
+ "@typescript-eslint/eslint-plugin": "^8.26.0",
70
+ "@typescript-eslint/parser": "^8.26.0",
71
+ "@vitest/coverage-v8": "^1.0.0",
72
+ "eslint": "^9.21.0",
73
+ "jest": "^29.7.0",
74
+ "prettier": "^3.5.3",
75
+ "ts-jest": "^29.2.6",
76
+ "tsup": "^8.5.1",
77
+ "typescript": "^5.9.3",
78
+ "vitest": "^1.0.0"
79
+ },
80
+ "engines": {
81
+ "bun": ">=1.1.27",
82
+ "node": ">=18.0.0"
83
+ },
84
+ "packageManager": "bun@1.3.9",
85
+ "pnpm": {
86
+ "onlyBuiltDependencies": [
87
+ "esbuild"
81
88
  ]
89
+ }
82
90
  }