Commit e5077c2
authored
wip: lib overhaul (#20)
* chore!: complete rewrite
refactor(constants): move default options to a single file
chore(constants): define symbols for internal communication
refactor(functions/utility): improve formatDuration
refactor(functions/validation): improve all predicates
refactor(main/player)!: rethink options, initialization, prop names
refactor(Node)!: rework reconnect logic, remove unnecessary props, adapt to REST
refactor(NodeManager)!: better naming, new methods, fix and expose metrics
refactor(REST)!: remove retry limit, request queue, and improve types
refactor(plugins/lavalyrics): adapt to changes in Queue
refactor(FilterManager)!: remove direct filter access via data prop
feat(FilterManager): specific clear types, include pluginFilters in filter names
refactor(Queue)!: rename few props, adapt to external changes
refactor(QueueManager)!: remove unnecessary methods, adapt to external changes
refactor(typings): additions/modifications and name/description changes as needed
refactor(VoiceManager)!: do not auto-destroy player on guild/channel delete
refactor(VoiceRegion): adapt to external changes
refactor(VoiceState)!: remove unnecessary props, adapt to external changes
* refactor(functions/validation): run checks only when needed
* refactor(Playlist): throw for data with no track(s)
* chore: setup jest
* chore: write tests
* ci: add workflow for codecov coverage
* ci: update checkout and setup-node actions
* ci: set explicit perms for coverage, remove token (test)
* chore: update readme1 parent ece206b commit e5077c2
42 files changed
Lines changed: 7081 additions & 2957 deletions
File tree
- .github/workflows
- src
- Constants
- Functions
- Main
- Node
- Plugins
- Queue
- Typings
- API
- Main
- Node
- Queue
- Voice
- Voice
- test
- functions
- queue
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 17 | | |
24 | 18 | | |
25 | 19 | | |
| |||
59 | 53 | | |
60 | 54 | | |
61 | 55 | | |
62 | | - | |
| 56 | + | |
63 | 57 | | |
64 | | - | |
65 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments