bunqueue v2.6.4
blog · release
bunqueue v2.6.4
Fixes 1 bug. SandboxedWorker generics, processor API improvements.
To install bunqueue v2.6.4
Section titled “To install bunqueue v2.6.4”bun add bunqueue@2.6.4npm install bunqueue@2.6.4To upgrade bunqueue
Section titled “To upgrade bunqueue”bun add bunqueue@latestSandboxedWorker generics
Section titled “SandboxedWorker generics”SandboxedWorker<T> now supports a generic type parameter for typed events (e.g., worker.on('completed', (job: Job<MyData>) => ...))
Processor API improvements
Section titled “Processor API improvements”Processor files now receive log(), fail(), and parentId on the job object alongside progress()
More additions
Section titled “More additions”- Typed
on()/once()overloads for all SandboxedWorker events (#25)
Bugfixes
Section titled “Bugfixes”- Lock token race condition: Resolved race where concurrent ack/fail operations could use an expired lock token, causing “Invalid or expired lock token” errors under high concurrency. (#28)
Thanks to 1 contributor!
Section titled “Thanks to 1 contributor!”← bunqueue v2.6.2 · Release on GitHub · Commits since v2.6.2 · Full changelog · All posts