Skip to content

Releases: JMPerez/promise-throttle

1.1.2

13 Sep 07:33
Compare
Choose a tag to compare

Fix add and addAll TypeScript typings (#83). Thanks @draperunner!

1.1.1

06 Sep 14:38
Compare
Choose a tag to compare

This update adds Typescript typings to the list of files in the package #77. Thanks @draperunner for contributing!

1.1.0

07 May 05:17
Compare
Choose a tag to compare

This update adds Typescript typings to the library #76. Thanks @IlyaSemenov for contributing!

1.0.1

01 Jul 05:56
c5f7a55
Compare
Choose a tag to compare

This update contains upgrades in outdated dependencies that solve known vulnerabilities in packages.

1.0.0

28 Mar 21:41
Compare
Choose a tag to compare

This version adds a signal parameter that allows the cancellation or abort operation of one or several queued promises. This is similar to the mechanism by which a fetch() request can be aborted using AbortController.

Note about upgrading to version 1.0.0
If you were using the weight option, you will need to pass it as a property in the options object.

pt.add(..., 2 /* weight*/);

becomes

pt.add(..., {weight: 2});

this is so we can accommodate new options like signal.

0.4.0

21 Feb 09:14
Compare
Choose a tag to compare

Added a weight parameter to consider that a certain promise counts more towards the rate limit.

Thanks @pldin601 for your contribution!

0.3.1

22 Oct 21:45
Compare
Choose a tag to compare

When installing this package as a dependency it will now not include unneeded files like tests or linting configuration, thus reducing the size of the dependency to the bare minimum.

v0.3.0

22 Oct 16:56
Compare
Choose a tag to compare

This version makes a non-breaking change to the addAll() method, which now returns a Promise itself. This change was proposed and implemented by @mawrkus. Big kudos to him and thanks for contributing!

The development, testing and reporting flow has also been simplified and improved.