Skip to content

Releases: sindresorhus/p-queue

v9.1.0

05 Jan 19:40

Choose a tag to compare


v9.0.1...v9.1.0

v9.0.1

18 Nov 09:24

Choose a tag to compare

  • Fix: Remove abort listener when operation completes (#235) e9074f0

v9.0.0...v9.0.1

v9.0.0

01 Oct 08:50

Choose a tag to compare

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

v8.1.1

07 Sep 14:41

Choose a tag to compare

  • Don't count aborted jobs in intervalCount (#220) 199614e

v8.1.0...v8.1.1

v8.1.0

22 Jan 07:25

Choose a tag to compare

v8.0.1...v8.1.0

v8.0.1

14 Dec 00:26

Choose a tag to compare

  • Fix TypeScript types for when tsconfig exactOptionalPropertyTypes is enabled (#202) ec4e2a3

v8.0.0...v8.0.1

v8.0.0

07 Dec 15:17

Choose a tag to compare

Breaking

  • Require Node.js 18 68dfe95
  • Removed the AbortError export. It now throws the built-in DOMException when using the signal option. 68dfe95
  • TypeScript: Rename DefaultAddOptions type to QueueAddOptions

v7.4.1...v8.0.0

v7.4.1

02 Sep 20:54

Choose a tag to compare

  • Fix problem with importing into TypeScript project 9f7ad20

v7.4.0...v7.4.1

v7.4.0

30 Aug 16:52

Choose a tag to compare

v7.3.4...v7.4.0

v7.3.4

07 Feb 01:49
c12ec2e

Choose a tag to compare