---
title: "p-timeout 8.0.0 Breaking Changes on npm | Since.dev"
description: "What each p-timeout release removed, renamed or changed: 19 breaking changes in 4 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/p-timeout
last_updated: 2026-12-04
---

# p-timeout breaking changes

p-timeout 8.0.0 (October 15, 2026) is its newest release with breaking changes, 4 of them. The first: p-timeout 8.0.0 requires Node.js 22 or later. Every breaking API change we have recorded in p-timeout on npm: 19 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `8.1.0`, released November 2, 2026. [Source repository](https://github.com/sindresorhus/p-timeout)

Its 8.0.0 release requires [Node.js 22](https://since.dev/calendar/nodejs/22.md) or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [7.0.0](#v-7-0-0) to [8.0.0](#v-8-0-0): 4 breaking changes in 1 version.
- From [5.0.0](#v-5-0-0) to [8.0.0](#v-8-0-0): 15 breaking changes in 3 versions.

## p-timeout 8.0.0 breaking changes

p-timeout 8.0.0, released October 15, 2026: 4 breaking changes.

- **Removed**  

The package now requires Node.js 22. Users on older Node.js versions must upgrade Node.js before upgrading this package. [github.com](https://github.com/sindresorhus/p-timeout/releases/tag/v8.0.0)
- **Behavior changed**  

When the signal is aborted with null, the promise now rejects with null instead of a generic AbortError. Code that checks for AbortError must handle the exact reason instead. [github.com](https://github.com/sindresorhus/p-timeout/releases/tag/v8.0.0)
- **Behavior changed**  

The input's .cancel() is now called on timeouts with a fallback, on aborts of the signal, and when the signal is already aborted, not only on timeouts without a fallback. A fallback that returns the input gets a cancelled input. [github.com](https://github.com/sindresorhus/p-timeout/releases/tag/v8.0.0)
- **Behavior changed** `customTimers`  

Invalid customTimers now reject with a TypeError, including cases that were previously ignored when the input settled synchronously or the timeout was Infinity. Code relying on the old silent behavior must pass valid customTimers. [github.com](https://github.com/sindresorhus/p-timeout/releases/tag/v8.0.0)

## p-timeout 7.0.0 breaking changes

p-timeout 7.0.0, released September 15, 2025: 2 breaking changes.

- **Removed**  

This release requires Node.js 20. Users on older Node.js versions must upgrade before using it. [github.com](https://github.com/sindresorhus/p-timeout/releases/tag/v7.0.0)
- **Signature changed** `TimeoutError.constructor`  

Was constructor(message?: string); now constructor(message?: string, options?: ErrorOptions). [npmjs.com](https://www.npmjs.com/package/p-timeout/v/7.0.0)

## p-timeout 6.0.0 breaking changes

p-timeout 6.0.0, released July 25, 2022: 9 breaking changes.

- **Removed**  

The package now requires Node.js 14 or later. Users on older Node.js versions must upgrade before using this release. [github.com](https://github.com/sindresorhus/p-timeout/releases/tag/v6.0.0)
- **Signature changed** `default`  

Was function pTimeout\<ValueType, ReturnType>(input: PromiseLike\<ValueType>, milliseconds: number, fallback: () => ReturnType | Promise\<ReturnType>, options?: Options): ClearablePromise\<ValueType | ReturnType> function... [npmjs.com](https://www.npmjs.com/package/p-timeout/v/6.0.0)
- **Signature changed** `fallback`  

The fallback value is no longer a positional argument and must be passed inside the options parameter. [github.com](https://github.com/sindresorhus/p-timeout/releases/tag/v6.0.0)
- **Signature changed** `message`  

The message value is no longer a positional argument and must be passed inside the options parameter. [github.com](https://github.com/sindresorhus/p-timeout/releases/tag/v6.0.0)
- **Signature changed** `milliseconds`  

The milliseconds value is no longer a positional argument and must be passed inside the options parameter. [github.com](https://github.com/sindresorhus/p-timeout/releases/tag/v6.0.0)
- **Signature changed** `Options`  

Was type Options = {readonly customTimers?: {setTimeout: typeof global.setTimeout; clearTimeout: typeof global.clearTimeout;}; signal?: globalThis.AbortSignal;}; now type Options\<ReturnType> = {milliseconds: number; fallback?: () =>... [npmjs.com](https://www.npmjs.com/package/p-timeout/v/6.0.0)
- **Signature changed** `Options.customTimers`  

Was readonly customTimers?: {setTimeout: typeof global.setTimeout; clearTimeout: typeof global.clearTimeout;}; now readonly customTimers?: {setTimeout: typeof globalThis.setTimeout; clearTimeout: typeof globalThis.clearTimeout;}. [npmjs.com](https://www.npmjs.com/package/p-timeout/v/6.0.0)
- **Signature changed** `Options.customTimers.clearTimeout`  

Was clearTimeout: typeof global.clearTimeout; now clearTimeout: typeof globalThis.clearTimeout. [npmjs.com](https://www.npmjs.com/package/p-timeout/v/6.0.0)
- **Signature changed** `Options.customTimers.setTimeout`  

Was setTimeout: typeof global.setTimeout; now setTimeout: typeof globalThis.setTimeout. [npmjs.com](https://www.npmjs.com/package/p-timeout/v/6.0.0)

## p-timeout 5.0.0 breaking changes

p-timeout 5.0.0, released April 6, 2021: 4 breaking changes.

- **Behavior changed**  

The package now requires Node.js 12. Users on older Node.js versions must upgrade before using this release. [github.com](https://github.com/sindresorhus/p-timeout/releases/tag/v5.0.0)
- **Behavior changed**  

The package is now published only as ES modules, so CommonJS require() calls no longer work. Users must switch to import syntax or use a dynamic import. [github.com](https://github.com/sindresorhus/p-timeout/releases/tag/v5.0.0)
- **Signature changed** `default`  

Was const pTimeout: {TimeoutError: typeof TimeoutErrorClass; default: typeof pTimeout; \<ValueType>(input: PromiseLike\<ValueType>, milliseconds: number, message?: string | Error, options?: pTimeout.Options): ClearablePromise\<ValueType>... [npmjs.com](https://www.npmjs.com/package/p-timeout/v/5.0.0)
- **Signature changed** `TimeoutError`  

Was type TimeoutError = TimeoutErrorClass; now class TimeoutError extends Error. [npmjs.com](https://www.npmjs.com/package/p-timeout/v/5.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
