bunqueue v2.6.14
blog · release
bunqueue v2.6.14
Fixes 12 bugs. CLI double execution: Every CLI command ran twice due to main() being called both on module load and on import.
To install bunqueue v2.6.14
Section titled “To install bunqueue v2.6.14”bun add bunqueue@2.6.14npm install bunqueue@2.6.14To upgrade bunqueue
Section titled “To upgrade bunqueue”bun add bunqueue@latestBugfixes
Section titled “Bugfixes”- CLI double execution: Every CLI command ran twice due to
main()being called both on module load and on import. Addedimport.meta.mainguard. - CLI ACK/FAIL rejected UUID job IDs:
parseBigIntArg()only accepted numeric IDs (/^\d+$/) but all job IDs are UUIDs. Now accepts any non-empty string ID. - CLI ACK/FAIL always failed: Each CLI command opens a new TCP connection. When the PULL connection closed, jobs were auto-released back to waiting. ACK on a new connection found the job no longer in processing. Added
detachflag to PULL command for CLI usage. job getshowedState: unknown: GetJob response didn’t include job state. Now includes state fromgetJobState().queue jobsstate column showed-: GetJobs handler didn’t include state per job. Now injects state for each returned job.bunqueue -p <port>(withoutstart) ignored port flag: Direct mode ignored all CLI flags. Now routes to CLI parser when flags are present.- Worker/webhook/cron/logs/metrics list showed
OK: Server wraps responses in{data: {...}}but CLI formatter only checked top-level keys. Addedunwrap()helper. - Cron list showed
OK: Server returnscronskey but formatter checked forcronJobs. - Worker/webhook list showed stats instead of entries:
statscheck ran beforeworkers/webhooksin formatter priority order. - Worker register showed queue list: Response
queuesfield triggered queue list formatter. - DLQ list format broken: Formatter expected
jobIdfield but server returnsid. - Metrics showed
OK: Prometheus metrics nested indata.metrics.
Thanks to 1 contributor!
Section titled “Thanks to 1 contributor!”← bunqueue v2.6.9 · Release on GitHub · Commits since v2.6.9 · Full changelog · All posts