A circular queue (ring buffer) implementation with reactive state stores (ReadonlyStore). Current stable version: 3.0.0. Released as a single npm package with TypeScript types, ESM-only distribution, and Node.js >=20 requirement. Differentiates from other circular queue libraries by providing reactive observables for availableSlots, filledSlots, full, and empty states, enabling reactive programming patterns without polling or callbacks. Includes Symbol.iterator support and methods like enqueueMulti, dequeueAll, at, replace, and remove.
npm install reactive-circular-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creating a queue, enqueuing, dequeuing, reactive store access, iteration via Symbol.iterator, and conversion to array.
Replace const X = require('reactive-circular-queue') with import { makeCircularQueue } from 'reactive-circular-queue'Upgrade Node.js to version 20 or later.
Upgrade to v3 and switch to ESM imports.
Use toArray() first, then chain array methods. For reactive manipulation, use universal-stores transformers.
Check full$ store before enqueueing, or use enqueueMulti which may behave differently.
Run npm install reactive-circular-queue and ensure using ESM import syntax.
Change to import { makeCircularQueue } from 'reactive-circular-queue' and ensure project uses ESM (set type: module in package.json).Use makeCircularQueue() to create the instance, then call methods on that instance.