NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #4616 most downloaded on npm
Throttle promise-returning & async functions
Last release 22 days ago
12 Sep 2026
Release timing varies
gaps range from 3 weeks to 1.8 years
Most releases are documented
notes for 16 of 19 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
19 releases · first in 2016
Fix weighted strict mode timer drift 4938c35
One column per quarter.
Fix handling of synchronously thrown errors ( #64 ) bee3f7d
Remove the abort() method on the throttled function ( #53 ) b0eadea
Pass the given call arguments to onDelay ( #56 ) 7332e6e
Add onDelay hook ( #47 ) 362f1e1
Fix handling of generic functions in the types 329a240
Add property to get the queue size ( #39 ) 3e7a732
This package is now pure ESM. Please read this .
Fix types ( #29 ) 9cbf6cc v4.1.0...v4.1.1
Add `strict` option (#27) 242d410
strict option (#27) 242d410.isEnabled (#24) cdcde4ehttps://github.com/sindresorhus/p-throttle/compare/v4.0.0...v4.1.0
Require Node.js 10 (#22) 5cb0a4e
const pThrottle = require('p-throttle');
const now = Date.now();
-const throttled = pThrottle(index => {
+const throttled = pThrottle({limit: 2, interval: 1000})(index => {
const secDiff = ((Date.now() - now) / 1000).toFixed();
return Promise.resolve(`${index}: ${secDiff}s`);
-}, 2, 1000);
+);
for (let i = 1; i <= 6; i++) {
throttled(i).then(console.log);
}
This has the benefit that it allows reusing the throttled instance. See: https://github.com/sindresorhus/p-throttle/issues/16
https://github.com/sindresorhus/p-throttle/compare/v3.1.0...v4.0.0
Refactor TypeScript definition to CommonJS compatible export (#17) b734458
https://github.com/sindresorhus/p-throttle/compare/v3.0.0...v3.1.0
Improve TypeScript definitions (#13) c892bc0
Breaking:
It's only breaking for TypeScript users. If you don't use TypeScript, nothing has changed.
https://github.com/sindresorhus/p-throttle/compare/v2.1.1...v3.0.0
Clear timeout after aborting pending executions (#14) 98b8506
https://github.com/sindresorhus/p-throttle/compare/v2.1.0...v2.1.1
Improve performance and memory usage (#11) 842bd88
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →