Commit 833f8c0
feat: Upgrade Queue System, Stability Improvements & JSDoc (#39)
* feat: upgrade queue system and improve stability\n\n- Queue: Added shuffle, move, unshift, clear, and JSDoc.\n- Stability: Enhanced connection logic in Node.js and Riffy.js.\n- Docs: Detailed JSDoc for core classes and updated README.
* fix(pr): address review comments\n\n- Fix: Removed duplicate class declaration in Node.js\n- Fix: Renumbered README.md sections to avoid duplicates\n- Chore: Verified Node.js structure and logs
* fix(pr): address UnschooledGamer review comments
- Add @SInCE 1.0.9 JSDoc to mixer property
- Restore debug log for received OP/payloads in message()
- Enhance debug log in open() with wsUrl
- Enhance ready handler debug log with Nodelink info
- Add resuming configuration debug logs (v3/v4)
- Enhance close() debug log with fallback for unknown values
- Add debug logging to migrate catch blocks
- Restore disconnect() method
* style(pr): restore original upstream formatting
- Restore expanded stats object (multi-line format)
- Restore getter-style Object.defineProperty
- Restore if/else wsUrl conditional logic
- Restore full mixer validation checks
- Restore verbose error messages
Addresses all remaining review preferences from UnschooledGamer
* refactor(pr): reset Node.js to original upstream
- Completely reverted Node.js to match riffy-team/riffy main branch
- Queue system additions preserved (Queue.js with shuffle, move, clear)
- README section numbering preserved (3, 4, 5)
This keeps only the queue system enhancement from the PR.
* Refactor Player.js methods and improve documentation
Refactor autoplay method and update JSDoc comments for clarity. Adjust connection handling and improve debug logging for track end events.
* Enhance JSDoc comments and add version property
Updated JSDoc comments for clarity and added a version property.
* Update Node.js
---------
Co-authored-by: Emmanuel Lobo <76094069+UnschooledGamer@users.noreply.github.com>1 parent 944d9f1 commit 833f8c0
5 files changed
Lines changed: 330 additions & 227 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
189 | 215 | | |
190 | 216 | | |
191 | 217 | | |
| |||
197 | 223 | | |
198 | 224 | | |
199 | 225 | | |
200 | | - | |
| 226 | + | |
201 | 227 | | |
202 | 228 | | |
203 | 229 | | |
204 | 230 | | |
205 | 231 | | |
206 | 232 | | |
207 | 233 | | |
208 | | - | |
| 234 | + | |
209 | 235 | | |
210 | 236 | | |
211 | 237 | | |
212 | 238 | | |
213 | | - | |
| 239 | + | |
214 | 240 | | |
215 | 241 | | |
216 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | | - | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | | - | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
333 | | - | |
| 334 | + | |
| 335 | + | |
334 | 336 | | |
335 | 337 | | |
336 | 338 | | |
| |||
364 | 366 | | |
365 | 367 | | |
366 | 368 | | |
367 | | - | |
368 | | - | |
369 | | - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
370 | 373 | | |
371 | | - | |
372 | 374 | | |
373 | 375 | | |
| 376 | + | |
| 377 | + | |
374 | 378 | | |
375 | 379 | | |
376 | 380 | | |
| |||
452 | 456 | | |
453 | 457 | | |
454 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
455 | 462 | | |
456 | 463 | | |
457 | 464 | | |
458 | 465 | | |
459 | 466 | | |
460 | | - | |
| 467 | + | |
| 468 | + | |
461 | 469 | | |
462 | 470 | | |
463 | 471 | | |
464 | 472 | | |
465 | 473 | | |
466 | 474 | | |
| 475 | + | |
467 | 476 | | |
468 | 477 | | |
469 | 478 | | |
| |||
488 | 497 | | |
489 | 498 | | |
490 | 499 | | |
| 500 | + | |
491 | 501 | | |
492 | 502 | | |
| 503 | + | |
493 | 504 | | |
494 | 505 | | |
495 | 506 | | |
| |||
508 | 519 | | |
509 | 520 | | |
510 | 521 | | |
| 522 | + | |
511 | 523 | | |
512 | 524 | | |
513 | 525 | | |
| |||
549 | 561 | | |
550 | 562 | | |
551 | 563 | | |
552 | | - | |
| 564 | + | |
0 commit comments