Queue management for WeChat MiniProgram network APIs (wx.request, wx.downloadFile, wx.uploadFile). Current stable version is 4.5.1. Released as part of the miniprogram-network ecosystem. Key differentiators: automatic injection or manual queue management, abort support, progress callbacks (onProgressUpdate), priority queuing (jump), and custom timeout. Designed to queue and control concurrent network requests in WeChat MiniPrograms, avoiding API rate limits and providing task-level control. TypeScript types included.
npm install miniprogram-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue for wx.request with concurrency limit, pushes a task, and aborts it.
Check the task status in your complete callback to avoid unintended side effects.
Use manual queue.push() with jump:true to prioritize a request.
Pass onProgressUpdate in the push object instead of calling the method on the task.
Use `new WxQueue(wx.request, 10)` instead of `new WxQueue(10, wx.request)`.
Use named import: `import { WxQueue } from 'miniprogram-queue'`Run `npm install miniprogram-queue` and ensure you are using it within a WeChat MiniProgram context.
abort() is available on the return value of queue.push(), not on the queue instance.
Only use miniprogram-queue within a WeChat MiniProgram where wx APIs are available.
No dependency data recorded yet.