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

sinon

Package Overview
Dependencies
Maintainers
3
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.10.0

Diff

Changelog

Source

1.10.0

  • Ensure that spy createCallProperties is set before function invocation (James Barwell)
  • XDomainRequest support (Søren Enemærke, Jonathan Sokolowski)
  • Correct AMD behavior (Tim Branyen)
  • Allow explicit naming of spies and stubs (Glen Mailer)
  • deepEqual test for unequal objects in calledWithExactly (Bryan Donovan)
  • Fix clearTimeout() for Node.js (Xiao Ma)
  • fix fakeServer.respond() in IE8 (John Bernardo)
  • Fix #448 (AMD require.amd)
  • Fix wrapMethod error handling (Nikita Litvin)
cjohansen
published 1.9.1 •

Changelog

Source

1.9.1

  • Fix an issue passing NaN to calledWith (Blake Israel)
  • Explicate dependency on util package (Kris Kowal)
  • Fake timers return an object with ref and unref properties on Node (Ben Fleis)
cjohansen
published 1.9.0 •

Changelog

Source

1.9.0

  • Add sinon.assert.match (Robin Pedersen)
  • Added ProgressEvent and CustomEvent. Fixes bug with progress events on IE. (Geries Handal)
  • prevent setRequestHeaders from being called twice (Phred)
  • Fix onload call, 'this' should be equal to XHR object (Niklas Andreasson)
  • Remove sandbox injected values on restore (Marcus Hüsgen)
  • Coerce matcher.or/and arguments into matchers (Glen Mailer)
  • Don't use buster.format any more
  • Fix comparison for regexp deepEqual (Matt Kern)
cjohansen
published 1.8.2 •

Changelog

Source

1.8.2

  • Fixes an edge case with calledWithNew and spied native functions, and other functions that lack a .prototype
  • Add feature detection for the new ProgressEvent support
cjohansen
published 1.8.1 •

Changelog

Source

1.8.1

  • Screwed up NPM release of 1.8.0, unable to replace it
published 1.7.3 •

Changelog

Source

1.7.3

  • Removed use of array forEach, breaks in older browsers (Martin Hansen)
  • sinon.deepEqual(new Date(0), new Date()) returns true (G.Serebryanskyi)
cjohansen
published 1.7.2 •

Changelog

Source

1.7.2

  • Sinon 1.7 has split calls out to a separate file. This caused some problems, so 1.7.2 ships with spyCall as part of spy.js like it used to be.
cjohansen
published 1.7.1 •

Changelog

Source

1.7.1

  • Fake XMLHttpRequest updated to call onerror and onsuccess callbacks, fixing jQuery 2.0 problems (Roman Potashow)
  • Implement XMLHttpRequest progress event api (Marten Lienen)
  • Added sinon.restore() (Jonny Reeves)
  • Fix bug where throwing a string was handled incorrectly by Sinon (Brandon Heyer)
  • Web workers support (Victor Costan)
cjohansen
published 1.7.0 •

Changelog

Source

1.7.0

  • Failed release, see 1.7.1
cjohansen
published 1.6.0 •

Changelog

Source

1.6.0

  • Add methods to spyCall interface: callArgOn, callArgOnWith, yieldOn, yieldToOn (William Sears)
  • sinon.createStubInstance creates a fully stubbed instance from a constructor (Shawn Krisman)
  • resetBehavior resets fakes created by withArgs (Martin Sander)
  • The fake server now logs to sinon.log, if set (Luis Cardoso)
  • Cleaner npm package that also includes pkg/sinon.js and pkg/sinon-ie.js for cases where npm is used to install Sinon for browser usage (Domenic Denicola)
  • Improved spy formatter %C output (Farid Neshat)
  • clock.tick returns clock.now (Michael Jackson)
  • Fixed issue #248 with callOrder assertion Did not fail if the last given spy was never called (Maximilian Antoni)
  • Fixed issue with setResponseHeader for synchronous requests (goligo)
  • Remove msSetImmediate; it only existed in IE10 previews (Domenic Denicola)
  • Fix #231: not always picking up the latest calls to callsArgWith, etc. (Domenic Denicola)
  • Fix failing anonymous mock expectations
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