Registry / messaging / ut-queue

ut-queue

JSON →
library6.2.3jsnpmunverified

UT Queue is a generic queue management library for Node.js, part of the UT framework (softwaregroup-bg). Current stable version is 6.2.3, released as part of the UT monorepo. It provides message prioritization, overflow handling, rate limiting, timeout handling, and metrics. Unlike simple queue libraries, it offers a contextual queue API tied to connection IDs (conId), allowing per-connection queue management. Primarily used within the UT ecosystem, it's less suited as a standalone general-purpose queue.

npm install ut-queue
INSTALL
IMPORT
SIG · UT-QUEUE
U
ut-queue
messagingjavascriptv6.2.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

queues
✓ import { queues } from 'ut-queue'
✗ const queues = require('ut-queue')
ESM only (the package exports an ES module).
queues
✓ const { queues } = require('ut-queue')
✗ const queues = require('ut-queue').default
CJS require pattern: destructure the named export 'queues'. No default export.
queues.create
✓ const q = queues.create({ context, callback });
✗ queues.create()
Method is on the `queues` object, not default import.

Shows create, get, delete, and count operations using context with conId.

import { queues } from 'ut-queue'; const q1 = queues.create({ context: { conId: 'my-queue' }, callback: () => console.log('queue ended') }); console.log('Queue count:', queues.count()); const q2 = queues.get({ conId: 'my-queue' }); console.log('Queue retrieved:', q2 === q1); queues.delete({ conId: 'my-queue' }); console.log('Queue deleted, count:', queues.count());
Debug
Known issues
breakingVersion 6.x dropped support for CommonJS require without destructuring?
fix
Use named import or destructure require.
affects: >=6.0.0
gotchacontext.conId must be a string or value that serializes correctly; otherwise queues.get may not find the queue.
fix
Ensure context.conId is a consistent unique identifier (e.g., string).
affects: *
deprecatedOlder versions (pre-6) may have exported a default function; check import path if upgrading.
fix
Update import to named export { queues }.
affects: <6.0.0
Errors
Common errors & fixes
TypeError: queues is not a function
Using default import `import queues from 'ut-queue'` but the package exports a named export.
fix
Use `import { queues } from 'ut-queue'`.
Cannot find module 'ut-queue'
Package not installed.
fix
Run `npm install ut-queue`.
queues.create is not a function
Importing the module as a function instead of an object with methods.
fix
Ensure you use `import { queues } from 'ut-queue'` and then `queues.create()`.
Upgrade
Version history
6.2.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
ut-queue — npm install ut-queue · libregistry