Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sinon

Package Overview
Dependencies
Maintainers
2
Versions
208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sinon - npm Package Versions

1
21

1.14.0

Diff

Changelog

Source

1.14.0

  • Stub & spy getters & setters (Simon Zack)
  • Fix #702 async sinon.test using mocha interface (Mohayonao)
  • Add respondImmediately to fake servers (Jonathan Freeman)
cjohansen
published 1.13.0 •

Changelog

Source

1.13.0

  • fix @depends-require mismatches (fixes AMD issues) (Ben Hockey)
  • Fix spy.calledWith(undefined) to return false if it was called without args
  • yieldsRight (Alexander Schmidt)
  • stubs retain function arity (Charlie Rudolph)
  • (AMD) use explicit define in built version
  • spy().reset() returns this (Ali Shakiba)
  • Add lengthComputable and download progress (Tamas Szebeni)
  • Don't setContent-type when sending FormData (AJ Ortega)
  • sinon.assert with spyCall (Alex Urbano)
  • fakeXHR requests in Node. (Jmeas)
  • Enhancement: run builds on docker (till@php.net)
  • Use FakeXDomainRequest when XHR does not support CORS. Fixes #584 (Eric Wendelin)
  • More lenient check for ActiveXObject
  • aligned sandbox.useFakeXMLHttpRequest API to documentation (Phred)
  • Fix #643. Returns supersedes previous throws (Adam Hull)
  • Safely overwrite properties in IE - no more IE files!
  • Add check for setInterval/clearInterval (kdpecker)
  • Add safety check for document.createElement (kdpecker)
  • Fix #633. Use a try/catch when deleting a property in IE8. (Garrick Cheung)
cjohansen
published 1.12.2 •

cjohansen
published 1.12.1 •

Changelog

Source

1.12.1

  • Fixed lolex issue on node
cjohansen
published 1.12.0 •

Changelog

Source

1.12.0

  • Fake timers are now extracted as lolex: http://github.com/sinonjs/lolex
  • Improved setImmediate fake
  • Proper AMD solution
cjohansen
published 1.11.1 •

Changelog

Source

1.11.1

  • Expose match on returned sandbox (Duncan Beevers)
  • Fix issue #586 (Antonio D'Ettole)
  • Declare log_error dependency (Kurt Ruppel)
cjohansen
published 1.11.0 •

Changelog

Source

1.11.0

  • Proper AMD support
  • Don't call sinon.expectation.pass if there aren't any expectations (Jeffrey Falgout)
  • Throw error when reset-ing while calling fake
  • Added xhr.response property (Gyandeep Singh)
  • Fixed premature sandbox destruction (Andrew Gurinovich)
  • Add sandbox reset method (vitalets)
  • A bunch of bug fixes (git log)
  • Various source organizational improvements (Morgan Roderick and others)
cjohansen
published 1.10.3 •

Changelog

Source

1.10.3

  • Fix loading in Web Workers (Victor Costan)
  • Allow null as argument to clearTimeout and clearInterval (Lars Thorup)
cjohansen
published 1.10.2 •

Changelog

Source

1.10.2

  • Fix returnValue and exception regression on spy calls (Maximilian Antoni)
cjohansen
published 1.10.1 •

Changelog

Source

1.10.1

  • Improved mocha compatibility for async tests (Ming Liu)
  • Make the fakeServer log function overloadable (Brian M Hunt)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc