# bunqueue v1.9.9

Fixes 4 bugs. Comprehensive Functional Test Suite.

Canonical: https://bunqueue.dev/blog/bunqueue-v1-9-9/

---

<!-- Generated from changelog.md by docs/scripts/generate-release-posts.ts. Edit the changelog and regenerate. -->

Fixes 4 bugs. Comprehensive Functional Test Suite.

#### To install bunqueue v1.9.9

```bash title="bun"
bun add bunqueue@1.9.9
```

```bash title="npm"
npm install bunqueue@1.9.9
```

#### To upgrade bunqueue

```bash
bun add bunqueue@latest
```

## Comprehensive Functional Test Suite

28 new test files covering all major features
- 14 embedded mode tests + 14 TCP mode tests
- Tests for: advanced DLQ, job management, monitoring, rate limiting, stall detection, webhooks, queue groups, and more
- All 24 embedded test suites pass (143/143 individual tests)

## Changes

- **BullMQ-Style Idempotency** - `jobId` option now returns existing job instead of throwing error
  - Duplicate job submissions are idempotent (same behavior as BullMQ)
  - Cleaner handling of retry scenarios without error handling
- Improved documentation for `jobId` deduplication behavior

## Bugfixes

- Embedded test suite now properly uses embedded mode (was incorrectly trying TCP)
- Fixed `getJobCounts()` in tests to use queue-specific `getJobs()` method
- Fixed async `getJob()` calls in job management tests
- Fixed PROMOTE, CHANGE PRIORITY, and MOVE TO DELAYED test logic

---

[← bunqueue v1.9.8](https://bunqueue.dev/blog/bunqueue-v1-9-8/) · [Full changelog](https://bunqueue.dev/changelog/) · [All posts](https://bunqueue.dev/blog/)
