github sindresorhus/p-queue v9.0.0

11 hours ago

Breaking

  • Require Node.js 20 b2600d5
  • Remove throwOnTimeout option - timeouts now always throw e48716f
    • It was a mistake to not throw on timeouts and the option made it complicated to handle types.
    • If you really need the old behavior back:
       const result = await queue.add(fn).catch(error => {
         if (error instanceof TimeoutError) {
         	return undefined;
         }
      
         throw error;
       });

Improvements

Fixes

  • Fix stack overflow with many aborted tasks 81cbae2
  • Fix interval cap race condition with high concurrency 7fea658
  • Fix interval timing when queue becomes empty between task additions 7b3f53e
  • Fix priority default handling for undefined values 439d512

v8.1.1...v9.0.0

Don't miss a new p-queue release

NewReleases is sending notifications on new releases.