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
On this page
Latest version 22.1.0, released July 20, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 21.0.1 to 22.0.0: 2 breaking changes in 1 version.
- From 13.0.0 to 22.0.0: 18 breaking changes in 11 versions.
sinon 22.0.0 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 - 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
sinon 21.0.1 breaking changes
- 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
sinon 21.0.0 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 - 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 - Signature changed
SinonSandboxConfig.useFakeTimers
Was useFakeTimers: boolean | Partial<FakeTimers.FakeTimerInstallOpts>; now useFakeTimers: boolean | Partial<Parameters<typeof FakeTimers["install"]>[0]>. npmjs.com - 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
sinon 20.0.0 breaking changes
- Removed
fakeServer
fakeServer was removed from the API; stop using it and migrate to another HTTP mocking approach. github.com - Removed
fakeXMLHttpRequest
fakeXMLHttpRequest was removed from the API; stop using it and migrate to another HTTP mocking approach. github.com - Removed
usingPromise
usingPromise was removed; use native promises or stub native promise functions instead. github.com
sinon 19.0.0 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 - 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
sinon 18.0.1 breaking changes
- 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
Older versions
6 older versions.
Show 6 older versions
sinon 17.0.2 breaking changes
- 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
sinon 17.0.0 breaking changes
- 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
sinon 16.0.0 breaking changes
- 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
sinon 15.0.0 breaking changes
- 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
sinon 14.0.0 breaking changes
- 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
sinon 13.0.0 breaking changes
- 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
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.