Skip to content

Releases: sinonjs/sinon

Fix #1476

10 Jul 13:13
Compare
Choose a tag to compare
  • Fix #1476: spy.withArgs(args...).firstCall is broken

Fix #1274

10 Jul 13:14
Compare
Choose a tag to compare

Fix #1274: spy.withArgs(args...).callCount is incorrect

Fix: Check configurable on a prop before creating

20 Jun 07:36
Compare
Choose a tag to compare
  • Check configurable on a prop before creating (fixes #1456) (#1462)

Make sandbox.resetHistory also reset spies

10 Jun 09:43
Compare
Choose a tag to compare
  • Fix #1372: make sandbox.resetHistory also reset spies (#1424)

Make stubbing of static function properties possible

10 Jun 09:04
Compare
Choose a tag to compare
  • Fix #1450, make stubbing of static function properties possible

Minor fixes

26 May 15:29
Compare
Choose a tag to compare
  • Fix failing sandbox.resetBehavior() (#1428)
  • Fix restoring getters/setters/values for previously unexisting props (#1419)
  • Called in order takes callCount into account. Closes #1398.

Make calledAfter symmetric with calledBefore

23 May 08:52
Compare
Choose a tag to compare
  • Make calledAfter symmetric with calledBefore (#1407)

Feature: stub accessors in sandbox

22 May 10:18
Compare
Choose a tag to compare
  • Allow stubbing of accessors with and without sandbox (#1416)
  • add throwsArg(index) to stubs (#1319)
  • Fix: forEach() requires 'this' argument (#1356)
  • Only reset history when calling resetHistory()

v2.0.0

25 Jul 15:37
Compare
Choose a tag to compare

This is the big 2.0 release with lots of breaking changes. We have created a migration guide on the Sinon homepage you are advised to follow.

Changes since pre6

  • Add restore method for stubbed property descriptors
  • Allow stubbing getters and setters for function properties
  • Add getters/setters stub behaviors
  • Refactor xhr and xhr.upload to use the same EventTargetHandler
  • Remove SSL part of base url

Pre-release #4 of Sinon 2

10 Nov 14:30
Compare
Choose a tag to compare
Pre-release

Changes in this release, compared to v2.0.0-pre.3

  • #1061 add configurable unsafe header checks
  • #1173 Expose readyState constants on XHR instances
  • #1175 Fire .onprogress event handler in fake XHR
  • #1176 Implement XHR.overrideMimeType
  • #1183 Use last defined withArgs match when multiple conditions are met

Full comparison