bunqueue v2.5.8
blog · release
bunqueue v2.5.8
Fixes 2 bugs. FlowJobData type, CLI env var auth.
To install bunqueue v2.5.8
Section titled “To install bunqueue v2.5.8”bun add bunqueue@2.5.8npm install bunqueue@2.5.8To upgrade bunqueue
Section titled “To upgrade bunqueue”bun add bunqueue@latestFlowJobData type
Section titled “FlowJobData type”New exported interface for flow-injected fields (__flowParentId, __flowParentIds, __parentId, __parentQueue, __childrenIds). Processor<T, R> now intersects T with FlowJobData for automatic IntelliSense in Worker callbacks. (#18)
CLI env var auth
Section titled “CLI env var auth”CLI now reads BQ_TOKEN / BUNQUEUE_TOKEN environment variables as fallback when --token is not provided. Priority: --token flag > BQ_TOKEN > BUNQUEUE_TOKEN. (#13)
Bugfixes
Section titled “Bugfixes”- Repeat job updateData:
updateData()now propagates to the next repeat execution. Previously, callingupdateData()on a completed repeated job silently failed because the job was removed from the index. A repeat chain now tracks successor job IDs so updates reach the next scheduled execution. (#16) - Worker event IntelliSense: Worker now has typed
on()andonce()overloads for all 10 events (ready,active,completed,failed,progress,stalled,drained,error,cancelled,closed), providing full TypeScript autocomplete. (#15)
Documentation
Section titled “Documentation”- Updated Worker guide with typed event reference table
- Updated Flow guide with
FlowJobDatatype documentation - Updated Queue guide with
updateData()for repeatable jobs - Updated CLI guide and env vars guide with
BQ_TOKEN/BUNQUEUE_TOKEN
Thanks to 1 contributor!
Section titled “Thanks to 1 contributor!”← bunqueue v2.5.7 · Release on GitHub · Commits since v2.5.7 · Full changelog · All posts