A sorted queue implementation based on an array-backed binary heap. Version 0.4.4 is the current stable release, but the package is in maintenance mode with no new features accepted. It is designed for Node.js >= 22 and ships TypeScript types. Key differentiators: items can be removed by reference (via item.pop()), supports custom comparator functions, and operates in O(log n) time for push/pop. It is ESM-only and lightweight with no dependencies.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Only named export is available; no default export.
When only using the type, use type import to avoid runtime overhead.
Package is ESM-only; dynamic import is required in CommonJS.
Shows basic usage: creating a sorted queue, push/pop/peek/empty, custom comparator, and removing items by reference.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.
No traffic data recorded yet.