NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
npm, #4616 most downloaded on npm
Throttle promise-returning & async functions
Latest stable
8.1.1
Last release 2 months 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
Drag across the ruler to compare, or tap a release to open it.
Fix weighted strict mode timer drift 4938c35
https://github.com/sindresorhus/p-throttle/compare/v8.1.0...v8.1.1
Fix strict mode rate limit violations due to setTimeout drift and call bunching f92c248
weight option 7ca2ca4setTimeout drift and call bunching f92c248https://github.com/sindresorhus/p-throttle/compare/v8.0.0...v8.1.0
Fix handling of synchronously thrown errors (#64) bee3f7d
https://github.com/sindresorhus/p-throttle/compare/v7.0.0...v8.0.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Remove the abort() method on the throttled function (#53) b0eadea
abort() method on the throttled function (#53) b0eadea
signal option instead.signal option (#53) b0eadeahttps://github.com/sindresorhus/p-throttle/compare/v6.2.0...v7.0.0
Pass the given call arguments to onDelay (#56) 7332e6e
onDelay (#56) 7332e6ehttps://github.com/sindresorhus/p-throttle/compare/v6.1.0...v6.2.0
Add `onDelay` hook (#47) 362f1e1
onDelay hook (#47) 362f1e1https://github.com/sindresorhus/p-throttle/compare/v6.0.0...v6.1.0
Fix handling of generic functions in the types 329a240
{strict: true} with many long delays a1b3d77https://github.com/sindresorhus/p-throttle/compare/v5.1.0...v6.0.0
Add property to get the queue size (#39) 3e7a732
https://github.com/sindresorhus/p-throttle/compare/v5.0.0...v5.1.0
This package is now pure ESM. Please read this.
https://github.com/sindresorhus/p-throttle/compare/v4.1.1...v5.0.0
https://github.com/sindresorhus/p-throttle/compare/v4.1.0...v4.1.1
https://github.com/sindresorhus/p-throttle/compare/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
One column per quarter.