unstale

npm / sinon

sinon

What changed in sinon 2 to 4, from its official release notes, upgrade guides and advisories. Also covers @types/sinon. Sources checked 2026-10-27.

3 breaking3 new APIs and options1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.8 on npm

sinon 41 changes

Breaking changes 1

  • Support for stubbing undefined properties was removed.

    4.0.0release notes

sinon 33 changes

Breaking changes 1

New APIs and options 1

Fixes and other changes 1

  • Fixes incorrect returnValue behavior for withArgs().

    3.0.0release notes

sinon 23 changes

Breaking changes 1

New APIs and options 2

  • Getters and setters for function properties can now be stubbed, with getter and setter stub behaviors.

    2.0.0release notes

  • Stubbed property descriptors can now be restored.

    2.0.0release notes