A drop-in compatible fork of the p-queue library (v7.x) that provides both CommonJS and ES module exports. Version 1.0.234 is current, published frequently. It wraps the original p-queue with no API changes, offering concurrency control, rate limiting, priority queues, and timeout support. The main differentiator is that it restores CJS support (dropped in p-queue v7) while maintaining all original features including EventEmitter3-based events, custom queue classes, and interval-based throttling. Actively maintained with weekly releases.
npm install p-queue-compatNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows concurrency + rate limiting (2 concurrent, max 5 per sec), fetch with queue, and queue stats.
Use p-queue-compat >=1.0.0 for CJS compatibility.
Use PriorityQueue from 'p-queue-compat' explicitly if you need priority ordering.
Set timeout on task add() or constructor; tasks in queue waiting do not timeout.
Use require('p-queue-compat') or add "type": "module" to package.jsonUse import PQueue from 'p-queue-compat' (default), not import { PQueue } from 'p-queue-compat'Use p-queue-compat which provides CJS, or use dynamic import()