# bunqueue v1.9.2

Fixes 1 bug. Critical Memory Leak - Resolved temporalIndex leak causing 5.5M object retention after 1M jobs - Added cleanOrphanedTemporalEntries() method to Shard - Memory now properly released after job completion with removeOnComplete…

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

---

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

Fixes 1 bug. Critical Memory Leak - Resolved temporalIndex leak causing 5.5M object retention after 1M jobs - Added cleanOrphanedTemporalEntries() method to Shard - Memory now properly released after job completion with removeOnComplete…

#### To install bunqueue v1.9.2

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

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

#### To upgrade bunqueue

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

## Changes

- Improved error logging in ackBatcher flush operations

## Bugfixes

- **Critical Memory Leak** - Resolved `temporalIndex` leak causing 5.5M object retention after 1M jobs
  - Added `cleanOrphanedTemporalEntries()` method to Shard
  - Memory now properly released after job completion with `removeOnComplete: true`
  - `heapUsed` drops to ~6MB after processing (vs 264MB before fix)

---

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