Scan your whole stack
From OX Research Newsroom
Are you using @zerotal/queue?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.18.0
@zerotal/queue was last scanned on 26 Nov 2026 at version 1.18.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.18.0 LATEST | 26 Nov 2026 | No rules fired |
| 1.17.4 | 26 Nov 2026 | No rules fired |
| 1.17.3 | 25 Nov 2026 | No rules fired |
| 1.17.2 | 25 Nov 2026 | Not shown |
| 1.17.1 | 24 Nov 2026 | Not shown |
Findings for v1.18.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.18.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Background job queue with retries, batches, chaining, and a worker pool.
Offload slow work to background jobs. Define Job classes, dispatch them singly, batched, or chained, choose a driver (the app's own database — SQLite, PostgreSQL or MySQL — Redis, or sync), and process them with the worker loop or a WorkerPool of Bun threads.
Part of the Zerotal framework. Requires Bun ≥ 1.3.14.
bun add @zerotal/queue
Register the provider in bootstrap/providers.ts:
import { QueueProvider } from "@zerotal/queue";
A job extends Job, serialises its state in payload(), restores it in a static fromPayload(), and does the work in handle(). Register it so the worker can rebuild it by class name:
import { Job, JobRegistry } from "@zerotal/queue";
export class NotifyFollowersJob extends Job {
override readonly queue = "notifications";
override readonly maxAttempts = 3;
override readonly retryDelay = 5000;
constructor(public readonly postId: number) {
super();
}
payload(): Record<string, unknown> {
return { postId: this.postId };
}
static fromPayload(p: Record<string, unknown>): NotifyFollowersJob {
return new NotifyFollowersJob(p["postId"] as number);
}
async handle(): Promise<void> {
/* … */
}
}
JobRegistry.register(NotifyFollowersJob as never);
Dispatch via the Queue facade:
import { Queue } from "@zerotal/queue";
await Queue.dispatch(new NotifyFollowersJob(post.id));
Batch jobs and react when they all finish, or chain them to run sequentially:
import { Bus } from "@zerotal/queue";
await Bus.batch(rows.map((row) => new ImportCsvRowJob(row)))
.then(new SendImportSummaryJob(user)) // when ALL succeed
.catch(new NotifyAdminOfFailureJob(user)) // when ANY fail
.dispatch();
await Bus.chain([new ValidateImportJob(id), new ProcessImportJob(id)]).dispatch();
In tests, swap the binding for a recorder, and settle it to run what was captured:
import { Queue, QueueFake } from "@zerotal/queue";
const queue = QueueFake.install();
await Queue.dispatch(new NotifyFollowersJob(post.id));
queue.assertDispatched(NotifyFollowersJob);
await Queue.settle(); // run it, and whatever it dispatches
queue.restore();
Queue.settle() works with the real drivers too: it runs every due job until none is left.
| Export | Description |
|---|---|
Queue |
Facade over QueueManager. |
Job, JobRegistry |
Base job class and the class-name registry. |
QueueManager, queueStats, JobStatus, QueueStats |
Manager and stats helpers. |
Bus, Batch, PendingBatch, BatchRecord, BatchOptions, SerializedJob |
Batch and chain orchestration. |
WorkerPool, WorkerPoolOptions, WorkerResult |
Bun-thread worker pool for CPU-bound jobs. |
QueueFake |
In-memory test double. |
QueueProvider |
Service provider — register in bootstrap/providers.ts. |
QueueConfig, QueueConfigShape |
Config factory and its type. |
QueueDriver, JobRecord, BatchStatus, DatabaseDriver (alias SqliteDriver), SyncDriver, RedisDriver |
Driver contract and built-in drivers. |
errors |
Typed error vocabulary (re-exported). |
Subpath exports:
@zerotal/queue — the public API above.@zerotal/queue/commands — QueueWorkCommand, QueueFailedCommand, QueueRetryCommand, QueueFlushCommand.Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.