NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
npm, #1191 most downloaded on npm
Timeout a promise after a specified amount of time
Latest stable
8.1.0
Last release 20 days ago
02 Nov 2026
Release timing varies
gaps range from 3 weeks to 1.3 years
Most releases are documented
notes for 21 of 28 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
28 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Preserve abort ordering for synchronous thenables d3892c6
TimeoutError#name and fallback types 3aac962https://github.com/sindresorhus/p-timeout/compare/v8.0.0...v8.1.0
Call .cancel() on the input on every timeout and abort (#47) d938bcd
.cancel() on the input on every timeout and abort (#47) d938bcd
fallback called it. Now a timeout with a fallback, an abort of signal, and an already aborted signal also call it..cancel() throws, the error is ignored and the promise still settles. Before, the error escaped the timer as an uncaught exception and the promise never settled..cancel() runs after the outcome is decided, so it cannot change the outcome.fallback that returns the input itself now gets a cancelled input.null f2b3ae3
controller.abort(null) used to reject with a generic AbortError.TimeoutError when the timeout can reject with it bcc57d3
2 ** 31 - 1 milliseconds firing immediately 7273802
Infinity.clearTimeout being called with undefined when no timer exists f6e3d89TypeError for invalid customTimers beaa523
Infinity.https://github.com/sindresorhus/p-timeout/compare/v7.0.2...v8.0.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix: Handle input rejections when already aborted (#46) 15fc4da
https://github.com/sindresorhus/p-timeout/compare/v7.0.1...v7.0.2
Fix "Illegal invocation" error with custom timers ed58372
https://github.com/sindresorhus/p-timeout/compare/v7.0.0...v7.0.1
Fix stack trace truncation when promise rejects b7bb247
https://github.com/sindresorhus/p-timeout/compare/v6.1.4...v7.0.0
Fix removing abort listener after promise rejects (#44) fd93994
https://github.com/sindresorhus/p-timeout/compare/v6.1.3...v6.1.4
Fix removing signal listener when done b92608a
https://github.com/sindresorhus/p-timeout/compare/v6.1.2...v6.1.3
Clear existing timeouts when an abort signal aborts (#36) 52d1a6d
https://github.com/sindresorhus/p-timeout/compare/v6.1.1...v6.1.2
Fix stack trace not being preserved on timeout (#34) 63d792f
https://github.com/sindresorhus/p-timeout/compare/v6.1.0...v6.1.1
Allow timing out without erroring (#30) 45405e7
https://github.com/sindresorhus/p-timeout/compare/v6.0.0...v6.1.0
Move the secondary parameters into the options parameter (#29) d7920ca
milliseconds is moved into optionsmessage is moved into optionsfallback is moved into optionshttps://github.com/sindresorhus/p-timeout/compare/v5.1.0...v6.0.0
Support AbortController (#26) 1bf6679
AbortController (#26) 1bf6679https://github.com/sindresorhus/p-timeout/compare/v5.0.2...v5.1.0
Ensure milliseconds argument is not NaN (#25) 6b6c4e8
https://github.com/sindresorhus/p-timeout/compare/v5.0.1...v5.0.2
Improve timeout error message (#24) bf5d164
https://github.com/sindresorhus/p-timeout/compare/v5.0.0...v5.0.1
This package is now pure ESM. Please read this.
https://github.com/sindresorhus/p-timeout/compare/v4.1.0...v5.0.0
Make timeout clearable (#15) e26f08d
https://github.com/sindresorhus/p-timeout/compare/v4.0.1...v4.1.0
Fix browser compatibility (#18) b98a872
https://github.com/sindresorhus/p-timeout/compare/v4.0.0...v4.0.1
Add `customTimers` option (#17) 085f437
customTimers option (#17) 085f437https://github.com/sindresorhus/p-timeout/compare/v3.2.0...v4.0.0
Add support for passing in Infinity as milliseconds a233d8c
milliseconds a233d8chttps://github.com/sindresorhus/p-timeout/compare/v3.1.0...v3.2.0
Refactor TypeScript definition to CommonJS compatible export (#11) 695a09c
https://github.com/sindresorhus/p-timeout/compare/v3.0.0...v3.1.0
Require Node.js 8 (#10) 9a429bc
Breaking:
Enhancements:
https://github.com/sindresorhus/p-timeout/compare/v2.0.1...v3.0.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.