Skip to content

Releases: sinonjs/fake-timers

v2.1.1

19 Jul 07:13
Compare
Choose a tag to compare

Hotfix for last release. Supports passing parameters in nextTick (fixes #122)

v2.1.0

18 Jul 11:39
Compare
Choose a tag to compare
  • Throw error on incorrect install use (#112)
  • Add support for process.nextTick
  • lolex can now attach itself to the system timers and automatically ad… (#102)
  • update hrtime when an interval ticks

v2.0.0

13 Jul 13:52
Compare
Choose a tag to compare
  • New install(config) signature that takes a config object
  • Add support for performance.now
  • Fix issue with tick(): setSystemClock then throw
  • Update old dependencies

v1.6.0

13 Jul 13:42
Compare
Choose a tag to compare
  • Use common Sinon.JS eslint config
  • Allow install to be called with date object
  • Remove wrapper function
  • Fixed typo in clock.runAll error

Compatibility fix with React Native

10 Nov 09:00
Compare
Choose a tag to compare

This release contains only a minor compatibility fix for React Native, implemented in #87

Minor fixes to timers and error messages

26 Jul 15:22
Compare
Choose a tag to compare
  • Fix setInterval() behavior with string times
  • Incorporate test from PR #65
  • Fix issue #59: context object required 'process'
  • fixed a case where runAll was called and there are no timers (#70)
  • Correct the clear{Interval|Timeout|Immediate} error message when calling set* for a different type of timer.
  • Lots of minor changes to tooling and the build process

Adds `runAll` and `process.hrtime`

26 Jul 15:26
Compare
Choose a tag to compare
  • Add runAll method to run timers until empty
  • Add tests demonstrating that a fake Date could be created with one argument as a String since this string is in a format recognized by the Date.parse() method.
  • Add process.hrtime()

Adds clock.next and corrects parseTime behavior

26 Jul 15:28
Compare
Choose a tag to compare
  • correct parseTime() error message so it matches behavior
  • Implement clock.next()
  • Lots of doc improvments

Fix for breaking setImmediate polyfills

22 Sep 11:24
Compare
Choose a tag to compare

This fixes an issue where lolex and Sinon.JS would break setImmediate polyfills.