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

# sinon breaking changes

sinon 22.0.0 (May 5, 2026) is its newest release with breaking changes, 2 of them. The first: Behavior changed callId. Every breaking API change we have recorded in sinon on npm: 19 breaking changes in 12 versions. Below, its 12 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `22.1.0`, released July 20, 2026. [Source repository](https://github.com/sinonjs/sinon)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [21.0.1](#v-21-0-1) to [22.0.0](#v-22-0-0): 2 breaking changes in 1 version.
- From [13.0.0](#v-13-0-0) to [22.0.0](#v-22-0-0): 18 breaking changes in 11 versions.

## sinon 22.0.0 breaking changes

sinon 22.0.0, released May 5, 2026: 2 breaking changes.

- **Behavior changed** `callId`  

The global call id used for call ordering now wraps around when it becomes too large, so code that depends on strictly increasing call ids may see different values. [github.com](https://github.com/sinonjs/sinon/blob/v22.0.0/CHANGES.md)
- **Behavior changed** `sinon.restore`  

Calling sinon.restore() on the root API no longer cascades into sub-sandboxes created with createSandbox. Code relying on the 21.1 cascade must call subSandbox.restore() (or verifyAndRestore) on each sub-sandbox. [github.com](https://github.com/sinonjs/sinon/blob/v22.0.0/CHANGES.md)

## sinon 21.0.1 breaking changes

sinon 21.0.1, released December 19, 2025: 1 breaking change.

- **Behavior changed**  

The compatibility target was raised from ES2017 to ES2023, so older JavaScript engines may no longer be supported. Users on older environments should check that their runtime supports ES2023 before upgrading. [github.com](https://github.com/sinonjs/sinon/blob/v21.0.1/CHANGES.md)

## sinon 21.0.0 breaking changes

sinon 21.0.0, released June 13, 2025: 4 breaking changes.

- **Removed** `SinonAssert.failException`  

The assert.failException property is removed from the API. Code that customised thrown assertion errors through it must change how it customises them. [npmjs.com](https://www.npmjs.com/package/sinon/v/21.0.0)
- **Signature changed** `SinonSandbox.useFakeTimers`  

Was useFakeTimers(config?: number | Date | Partial\<FakeTimers.FakeTimerInstallOpts>): SinonFakeTimers; now useFakeTimers(config?: number | Date | Partial\<Parameters\<typeof FakeTimers\["install"\]>\[0\]>): SinonFakeTimers. [npmjs.com](https://www.npmjs.com/package/sinon/v/21.0.0)
- **Signature changed** `SinonSandboxConfig.useFakeTimers`  

Was useFakeTimers: boolean | Partial\<FakeTimers.FakeTimerInstallOpts>; now useFakeTimers: boolean | Partial\<Parameters\<typeof FakeTimers\["install"\]>\[0\]>. [npmjs.com](https://www.npmjs.com/package/sinon/v/21.0.0)
- **Signature changed** `SinonStatic.useFakeTimers`  

Was useFakeTimers(config?: number | Date | Partial\<FakeTimers.FakeTimerInstallOpts>): SinonFakeTimers; now useFakeTimers(config?: number | Date | Partial\<Parameters\<typeof FakeTimers\["install"\]>\[0\]>): SinonFakeTimers. [npmjs.com](https://www.npmjs.com/package/sinon/v/21.0.0)

## sinon 20.0.0 breaking changes

sinon 20.0.0, released March 24, 2025: 3 breaking changes.

- **Removed** `fakeServer`  

fakeServer was removed from the API; stop using it and migrate to another HTTP mocking approach. [github.com](https://github.com/sinonjs/sinon/blob/v20.0.0/CHANGES.md)
- **Removed** `fakeXMLHttpRequest`  

fakeXMLHttpRequest was removed from the API; stop using it and migrate to another HTTP mocking approach. [github.com](https://github.com/sinonjs/sinon/blob/v20.0.0/CHANGES.md)
- **Removed** `usingPromise`  

usingPromise was removed; use native promises or stub native promise functions instead. [github.com](https://github.com/sinonjs/sinon/blob/v20.0.0/CHANGES.md)

## sinon 19.0.0 breaking changes

sinon 19.0.0, released September 13, 2024: 2 breaking changes.

- **Behavior changed**  

Dates created by fake timers are now instances of a proxy subclass rather than the original Date class. Code that depends on the exact Date class or its identity may need updating. [github.com](https://github.com/sinonjs/sinon/blob/v19.0.0/CHANGES.md)
- **Signature changed**  

The bundled fake timers dependency was upgraded and includes a breaking API change. Code using fake timers may need to be adjusted to the new API. [github.com](https://github.com/sinonjs/sinon/blob/v19.0.0/CHANGES.md)

## sinon 18.0.1 breaking changes

sinon 18.0.1, released September 10, 2024: 1 breaking change.

- **Behavior changed**  

Pins fake-timers@11.2.2 to avoid a breaking change in a transitive dependency, and bumps path-to-regexp and nise. No change to the package's own API is described. [github.com](https://github.com/sinonjs/sinon/blob/v18.0.1/CHANGES.md)

## Older versions

6 older versions.

### sinon 17.0.2 breaking changes

sinon 17.0.2, released May 7, 2024: 1 breaking change.

- **Removed** `sinon.defaultConfig`  

sinon.defaultConfig and its related default-config and get-config modules were removed, so code that uses them must stop relying on them. [github.com](https://github.com/sinonjs/sinon/blob/v17.0.2/CHANGES.md)

### sinon 17.0.0 breaking changes

sinon 17.0.0, released October 20, 2023: 1 breaking change.

- **Removed**  

Node.js 16 is no longer supported because it is out of maintenance. Upgrade Node.js to a supported version before using this release. [github.com](https://github.com/sinonjs/sinon/blob/v17.0.0/CHANGES.md)

### sinon 16.0.0 breaking changes

sinon 16.0.0, released September 13, 2023: 1 breaking change.

- **Behavior changed**  

The project's test and CI baseline moved to Node.js 20; no change to the package's own runtime support is stated in this release. [github.com](https://github.com/sinonjs/sinon/blob/v16.0.0/CHANGES.md)

### sinon 15.0.0 breaking changes

sinon 15.0.0, released November 28, 2022: 1 breaking change.

- **Removed** `custom formatter`  

Sinon no longer accepts a custom formatter option and uses Node's util.inspect instead. Remove any custom formatter you pass to Sinon. [github.com](https://github.com/sinonjs/sinon/blob/v15.0.0/CHANGES.md)

### sinon 14.0.0 breaking changes

sinon 14.0.0, released May 7, 2022: 1 breaking change.

- **Removed**  

Node.js 12 is no longer supported, and the release targets Node 18. Users on Node 12 must upgrade their Node.js runtime before using this version. [github.com](https://github.com/sinonjs/sinon/blob/v14.0.0/CHANGES.md)

### sinon 13.0.0 breaking changes

sinon 13.0.0, released January 28, 2022: 1 breaking change.

- **Behavior changed**  

Sinon now throws when asked to stub a non-configurable or non-writable property. Code that stubbed such properties before will fail and must avoid stubbing them. [github.com](https://github.com/sinonjs/sinon/blob/v13.0.0/CHANGES.md)

## 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.
