Packages

lolex

6.0.0 · 4 Feb 2020BSD-3-Clause2.5M / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: lolex has been renamed to @sinonjs/fake-timers. No API changes made. Please use the new package insteadWhat to use instead
Your version

44 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 6.x · latest line
  2. 6.0.0

    4 Feb 2020
  3. 5.x
  4. 5.0.0 – 5.1.25 releases without a noteShow each
  5. 4.x
  6. 4.0.1 – 4.2.03 releases without a noteShow each
  7. 3.x
  8. 3.0.0 – 3.1.02 releases without a noteShow each
  9. 2.x
  10. 2.1.2 – 2.7.517 releases without a noteShow each
  11. 2.1.1

    19 Jul 2017

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

  12. 2.1.0

    18 Jul 2017
    • Throw error on incorrect install use

    • Add support for process.nextTick

    • Lolex can now attach itself to the system timers and automatically ad…

  13. 2.0.0

    13 Jul 2017
    • New install(config) signature that takes a config object

  14. 1.x
  15. 1.6.0

    25 Feb 2017
    • Use common Sinon.JS eslint config

    • Allow install to be called with date object

    • Remove wrapper function

  16. 1.5.2

    10 Nov 2016

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

  17. 1.5.1

    28 Jul 2016
    • Fix setInterval() behavior with string times

    • Incorporate test from PR #65

    • Fix issue #59: context object required 'process'

  18. 1.5.0

    18 May 2016
    • 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()

  19. 1.4.0

    11 Dec 2015
    • Correct parseTime() error message so it matches behavior

    • Implement clock.next()

    • Lots of doc improvments

  20. 1.3.2

    22 Sep 2015

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

  21. 1.1.0 – 1.3.16 releases without a noteShow each
  22. 1.0.0

    12 Nov 2014

    Reading the note…

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.