A TypeScript library providing prioritized blocking queues with whenReady support, designed to handle bottlenecks like authentication refresh. Version 1.2.3 is the current stable release; the library is actively maintained on GitHub. It offers multiple priority levels, deadlock warnings, and full TypeScript support. Unlike many queue libraries, it includes a whenReady queue that executes only after prioritized jobs finish, making it ideal for token refresh patterns.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
ESM only; named export. The package is TypeScript-native.
PriorityQueue is a type, not a runtime export. Use with import type for TypeScript.
WhenReadyQueue is also a type only. The correct runtime usage is via the returned object from newPrioritizedBlockingQueue.
Creates a blocking queue with 2 priority levels, enqueues a prioritized job, and demonstrates whenReady execution.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.