yocto-queue is a small JavaScript queue data structure for npm. It’s useful when you need FIFO enqueue and dequeue operations without the performance cost of using Array#shift on large arrays, offering constant-time dequeue behavior. It provides an API like enqueue, dequeue, peek, drain, clear, and exposes the queue as an iterable.
Project status
- Maintenance status: Evidence suggests the repo is not actively maintained as of today (2026-09-10), with the last upstream push and newest observed updates dated 2025-11-11, about 10 months ago.
- Update cadence: Updates appear intermittent, including a patch in 2025-11-11, then earlier changes in 2025-03-22 and 2025-03-06, with a longer gap back to 2024-06-29 and a major release in 2021-08-12. Overall cadence looks sporadic rather than continuous.
AI summary generated
Recent updates
v1.2.2
yocto-queue v1.2.2 includes a small fix to ensure internal tail state is properly cleaned up when the queue becomes empty. This prevents stale tail references after removing the last element.
v1.2.1
v1.2.1 updates `Queue#drain()` so it no longer ignores queued `undefined` values. Instead of using `undefined` as a sentinel to stop draining, it drains until the queue is actually empty.
Breakingv1.2.0
Release v1.2.0 introduces a new `.drain()` method on `Queue` that returns an iterator which dequeues items as they are consumed. Documentation and tests were updated accordingly, and the TypeScript definitions now include the new method.
Featuresv1.1.1
v1.1.1 is a small maintenance release intended to improve compatibility with older Node.js versions (notably Node.js 12). The code change centers on updating the Queue.peek() implementation to avoid syntax not supported by Node.js 12.
v1.1.0
v1.1.0 adds a new `.peek()` method to `yocto-queue`, allowing callers to read the next queued value without removing it. The code diff also includes a few repository and packaging metadata changes that are not mentioned in the release notes.
SecurityFeaturesv1.0.0
v1.0.0 is a major release that moves yocto-queue to an ESM-only package format and raises the minimum supported Node.js version. The code changes also include a refactor of the queue internals and updates to TypeScript typings and test/usage imports.
Breakingv0.1.0
Release v0.1.0 was published on 2020-11-24. The provided release notes contain no actionable information about features, fixes, security changes, or breaking changes.