| 1 |
|
|---|
| 2 | 8.1.0 / 2021-11-03
|
|---|
| 3 | ==================
|
|---|
| 4 |
|
|---|
| 5 | * Add native timer clean-up behavior (#407)
|
|---|
| 6 | * give a hint about how to get type defs (#405)
|
|---|
| 7 |
|
|---|
| 8 | 8.0.1 / 2021-09-25
|
|---|
| 9 | ==================
|
|---|
| 10 |
|
|---|
| 11 | * fix: handle missing stack when throwing recursion errors (#401)
|
|---|
| 12 |
|
|---|
| 13 | 8.0.0 / 2021-09-15
|
|---|
| 14 | ==================
|
|---|
| 15 |
|
|---|
| 16 | * Remove generated typescript definitions. If you use this package with TypeScript, install `@types/sinonjs__fake-timers` after upgrading (#386)
|
|---|
| 17 | * Issue 390 implicit dependencies on faking interval (#391)
|
|---|
| 18 | * replace var with const/let (#392)
|
|---|
| 19 | * Retry - Add stack trace to code recursively scheduling timers #325 (#375)
|
|---|
| 20 |
|
|---|
| 21 | 7.1.2 / 2021-05-28
|
|---|
| 22 | ==================
|
|---|
| 23 |
|
|---|
| 24 | * Fix #382 by making config fields optional (#383)
|
|---|
| 25 | * Fix #347 : Support util.promisify
|
|---|
| 26 |
|
|---|
| 27 | 7.1.1 / 2021-05-27
|
|---|
| 28 | ==================
|
|---|
| 29 |
|
|---|
| 30 | * Fix JSDoc for createClock
|
|---|
| 31 |
|
|---|
| 32 | 7.1.0 / 2021-05-20
|
|---|
| 33 | ==================
|
|---|
| 34 |
|
|---|
| 35 | * Remove Safari from Sauce Lab (ref #380)
|
|---|
| 36 | * Bump hosted-git-info from 2.6.0 to 2.8.9
|
|---|
| 37 | * Bump handlebars from 4.7.6 to 4.7.7
|
|---|
| 38 | * Bump lodash from 4.17.19 to 4.17.21
|
|---|
| 39 | * Add in latest Safari and evergreen Edge
|
|---|
| 40 | * Drop IE11 and Safari 9
|
|---|
| 41 | * chore: add type tests (#373)
|
|---|
| 42 | * remove constructor types
|
|---|
| 43 | * use globalThis to avoid conflicts
|
|---|
| 44 | * Update yargs-parser
|
|---|
| 45 | * Update mkdirp
|
|---|
| 46 | * Upgrade jsdom
|
|---|
| 47 | * Upgrade mochify to latest
|
|---|
| 48 | * Upgrade Mocha to latest
|
|---|
| 49 | * Bump y18n from 4.0.0 to 4.0.1
|
|---|
| 50 | * make config optional
|
|---|
| 51 | * add a bunch more types
|
|---|
| 52 |
|
|---|
| 53 | 7.0.5 / 2021-04-11
|
|---|
| 54 | ==================
|
|---|
| 55 |
|
|---|
| 56 | * Fix up some clock types in JSDoc (becomes `.d.ts`) (#370)
|
|---|
| 57 | * Fix refresh arguments forwarding (#369)
|
|---|
| 58 |
|
|---|
| 59 | 7.0.4 / 2021-04-08
|
|---|
| 60 | ==================
|
|---|
| 61 |
|
|---|
| 62 | * Fix usage with TypeScript
|
|---|
| 63 |
|
|---|
| 64 | 7.0.3 / 2021-03-02
|
|---|
| 65 | ==================
|
|---|
| 66 |
|
|---|
| 67 | * Removing the use of eval in Node.js (#331)
|
|---|
| 68 | * Drop Node 8
|
|---|
| 69 | * Add docs about typings (#357)
|
|---|
| 70 |
|
|---|
| 71 | 7.0.2 / 2021-01-18
|
|---|
| 72 | ==================
|
|---|
| 73 |
|
|---|
| 74 | * Make config options optional in TypeScript defs (#354)
|
|---|
| 75 |
|
|---|
| 76 | 7.0.1 / 2021-01-14
|
|---|
| 77 | ==================
|
|---|
| 78 |
|
|---|
| 79 | * Update README section about browser use
|
|---|
| 80 |
|
|---|
| 81 | 7.0.0 / 2021-01-12
|
|---|
| 82 | ==================
|
|---|
| 83 |
|
|---|
| 84 | * Remove bundle from package. If you're loading `fake-timers` via
|
|---|
| 85 | script tag, you'll now have to provide your own bundled version
|
|---|
| 86 | * Add .d.ts files to package
|
|---|
| 87 | * Revert "Add stack trace to code recursively scheduling timers" (#338)
|
|---|
| 88 | * Remove unnecessary durations and use globals
|
|---|
| 89 | * Support timeout.refresh in node environments
|
|---|
| 90 | * Fix #319: Error message changed to TypeError
|
|---|
| 91 | * Fix #319: The use of 'eval' has been removed
|
|---|
| 92 | * Fix #304: clearTimeout clears setInterval and clearInterval clears setTimeout
|
|---|
| 93 | * Remove config.target (#318)
|
|---|
| 94 |
|
|---|
| 95 |
|
|---|
| 96 | 6.0.1 / 2020-03-24
|
|---|
| 97 | ==================
|
|---|
| 98 |
|
|---|
| 99 | * Support util.promisify in Node (#223)
|
|---|
| 100 |
|
|---|
| 101 | 6.0.0 / 2020-02-04
|
|---|
| 102 | ==================
|
|---|
| 103 |
|
|---|
| 104 | * Rename project to `@sinonjs/fake-timers`
|
|---|
| 105 |
|
|---|
| 106 | 5.1.2 / 2019-12-19
|
|---|
| 107 | ==================
|
|---|
| 108 |
|
|---|
| 109 | * Use global from `@sinonjs/commons`
|
|---|
| 110 | * Fix setSystemTime affects hrtime if its called multiple times.
|
|---|
| 111 | * Test coverage: use nyc
|
|---|
| 112 |
|
|---|
| 113 | 5.1.1 / 2019-10-21
|
|---|
| 114 | ==================
|
|---|
| 115 |
|
|---|
| 116 | * Fix global ReferenceError (#273)
|
|---|
| 117 |
|
|---|
| 118 | 5.1.0 / 2019-10-14
|
|---|
| 119 | ==================
|
|---|
| 120 |
|
|---|
| 121 | * Upgrade lolex with async versions of most calls
|
|---|
| 122 |
|
|---|
| 123 | 5.0.1 / 2019-10-10
|
|---|
| 124 | ==================
|
|---|
| 125 |
|
|---|
| 126 | * Upgrade eslint, add prettier
|
|---|
| 127 | * Use `--no-detect-globals` to bundle and test lolex (#270)
|
|---|
| 128 |
|
|---|
| 129 | 5.0.0 / 2019-10-07
|
|---|
| 130 | ==================
|
|---|
| 131 |
|
|---|
| 132 | * Avoid installing setImmediate in unsupported environments
|
|---|
| 133 | * fix #246: non-constructor Date() should return a string
|
|---|
| 134 |
|
|---|
| 135 | 4.2.0 / 2019-08-04
|
|---|
| 136 | ==================
|
|---|
| 137 |
|
|---|
| 138 | * Fix support for replacing the JSDOM performance field
|
|---|
| 139 |
|
|---|
| 140 | 4.1.0 / 2019-06-04
|
|---|
| 141 | ==================
|
|---|
| 142 |
|
|---|
| 143 | * Fix crash on Bash version 3 (macOS)
|
|---|
| 144 | * Support hrtime.bigint()
|
|---|
| 145 | * fix: count microtasks in countTimers
|
|---|
| 146 | * Return empty arrays for performance.getEntries, other relevant methods
|
|---|
| 147 |
|
|---|
| 148 | 4.0.1 / 2019-04-17
|
|---|
| 149 | ==================
|
|---|
| 150 |
|
|---|
| 151 | * Remove sinon: added by mistake
|
|---|
| 152 |
|
|---|
| 153 | 4.0.0 / 2019-04-17
|
|---|
| 154 | ==================
|
|---|
| 155 |
|
|---|
| 156 | * Drop support for IE9 and IE10: link to supported browsers in README
|
|---|
| 157 | * No more ExperimentalWarnings in Node environment for queueMicrotask() if it's not used in user's code
|
|---|
| 158 |
|
|---|
| 159 | 3.1.0 / 2019-02-11
|
|---|
| 160 | ==================
|
|---|
| 161 |
|
|---|
| 162 | * default timeout set to 50ms
|
|---|
| 163 | * first implementation of requestIdleCallback and cancelIdleCallback
|
|---|
| 164 | * fixed accidentally performance.now() -> x.now() replacement
|
|---|
| 165 | * added queueMicrotask
|
|---|
| 166 |
|
|---|
| 167 | 3.0.0 / 2018-10-08
|
|---|
| 168 | ==================
|
|---|
| 169 |
|
|---|
| 170 | * Add countTimers method
|
|---|
| 171 | * Disallow negative ticks (breaking API change!)
|
|---|
| 172 | * Avoid exposing hrNow
|
|---|
| 173 | * Fix #207 - round-off errors in `hrtime`
|
|---|
| 174 | * Truncate sub-nanosecond values for `hrtime`
|
|---|
| 175 | * Truncate sub-millisceond values for `Date.now()`
|
|---|
| 176 |
|
|---|
| 177 | v2.7.5 / 2018-09-19
|
|---|
| 178 | ==================
|
|---|
| 179 |
|
|---|
| 180 | * fix: handle floating point in hrtime (#210)
|
|---|
| 181 | * fix: reset high resolution timer on clock.reset (#209)
|
|---|
| 182 | * Add an error when creating a clock with no Date object (#205)
|
|---|
| 183 |
|
|---|
| 184 | v2.7.4 / 2018-09-05
|
|---|
| 185 | ==================
|
|---|
| 186 |
|
|---|
| 187 | * performance.mark related fixes for failing Safari, IE 10 and IE 11 tests
|
|---|
| 188 |
|
|---|
| 189 | v2.7.3 / 2018-09-05
|
|---|
| 190 | ==================
|
|---|
| 191 |
|
|---|
| 192 | * Fix for #200: TypeError on performance.mark
|
|---|
| 193 |
|
|---|
| 194 | v2.7.2 / 2018-09-04
|
|---|
| 195 | ==================
|
|---|
| 196 |
|
|---|
| 197 | * fix(setInterval): parse `timeout` arg to integer (#202)
|
|---|
| 198 | * Upgrade insecure dependencies with npm audit fix
|
|---|
| 199 |
|
|---|
| 200 | v2.7.1 / 2018-07-06
|
|---|
| 201 | ==================
|
|---|
| 202 | * Fix performance replacement on iOS 9.3
|
|---|
| 203 |
|
|---|
| 204 | v2.7.0 / 2018-05-25
|
|---|
| 205 | ==================
|
|---|
| 206 |
|
|---|
| 207 | * reset clock to start
|
|---|
| 208 | * check Performance exists before touching it
|
|---|
| 209 |
|
|---|
| 210 | v2.6.0 / 2018-05-16
|
|---|
| 211 | ==================
|
|---|
| 212 |
|
|---|
| 213 | * Fix `reset` and document it publicly Clear microtick jobs and set now to 0 in reset (#179)
|
|---|
| 214 | * Access Date on `_global` (#178)
|
|---|
| 215 |
|
|---|
| 216 | v2.5.0 / 2018-05-13
|
|---|
| 217 | ==================
|
|---|
| 218 |
|
|---|
| 219 | * feat: respect loopLimit in runMicrotasks (#172)
|
|---|
| 220 | * assign performance as a property, not as a function
|
|---|
| 221 |
|
|---|
| 222 | v2.4.2 / 2018-05-11
|
|---|
| 223 | ===================
|
|---|
| 224 | * Upgrade Mochify to v5.6 (#162) fixed #170
|
|---|
| 225 | * Access `Performance` via `_global` (#168)
|
|---|
| 226 |
|
|---|
| 227 | v2.4.1 / 2018-05-08
|
|---|
| 228 | ==================
|
|---|
| 229 |
|
|---|
| 230 | * fix: handle negative infinity timeout (#165)
|
|---|
| 231 |
|
|---|
| 232 | v2.4.0 / 2018-05-08
|
|---|
| 233 | ==================
|
|---|
| 234 |
|
|---|
| 235 | * Add `withGlobal` export
|
|---|
| 236 | * expose runMicrotasks
|
|---|
| 237 | * Fix that performance.mark is undefined after timer install
|
|---|
| 238 |
|
|---|
| 239 | v2.3.2 / 2018-01-29
|
|---|
| 240 | ==================
|
|---|
| 241 |
|
|---|
| 242 | * Add files section to package.json to avoid unnecessary package bloat #154
|
|---|
| 243 | * Add missing functions in default `toFake` #150
|
|---|
| 244 |
|
|---|
| 245 | v2.3.1 / 2017-11-22
|
|---|
| 246 | ==================
|
|---|
| 247 |
|
|---|
| 248 | * bugfix for a setTimeout() or setSystemTime() within a nextTick() call. (#145)
|
|---|
| 249 |
|
|---|
| 250 | v2.3.0 / 2017-11-08
|
|---|
| 251 | ==================
|
|---|
| 252 |
|
|---|
| 253 | * Stops leak of (request|cancel)AnimationFrame into global scope. (#143)
|
|---|
| 254 | * return timers on uninstall
|
|---|
| 255 |
|
|---|
| 256 | v2.2.0 / 2017-11-07
|
|---|
| 257 | ==================
|
|---|
| 258 |
|
|---|
| 259 | * Add support for requestAnimationFrame
|
|---|
| 260 | * fix negative timeout bug
|
|---|
| 261 |
|
|---|
| 262 | v2.1.3 / 2017-10-03
|
|---|
| 263 | ==================
|
|---|
| 264 |
|
|---|
| 265 | * add module entry point (#133)
|
|---|
| 266 |
|
|---|
| 267 | v2.1.2 / 2017-07-25
|
|---|
| 268 | ==================
|
|---|
| 269 |
|
|---|
| 270 | * - does not fake process.nextTick by default - added .idea folder to .gitignore - fixed documentation - added clock teardowns in tests
|
|---|
| 271 | * overflowing the timer correctly (issue #67)
|
|---|
| 272 |
|
|---|
| 273 | v2.1.1 / 2017-07-19
|
|---|
| 274 | ==================
|
|---|
| 275 |
|
|---|
| 276 | * support passing parameters in nextTick (fixes #122)
|
|---|
| 277 |
|
|---|
| 278 | v2.1.0 / 2017-07-18
|
|---|
| 279 | ==================
|
|---|
| 280 |
|
|---|
| 281 | * Throw error on incorrect install use (#112)
|
|---|
| 282 | * Add support for process.nextTick
|
|---|
| 283 | * lolex can now attach itself to the system timers and automatically ad… (#102)
|
|---|
| 284 | * update hrtime when an interval ticks
|
|---|
| 285 |
|
|---|
| 286 | v2.0.0 / 2017-07-13
|
|---|
| 287 | ==================
|
|---|
| 288 |
|
|---|
| 289 | * New install() signature
|
|---|
| 290 | * Add support for performance.now (#106)
|
|---|
| 291 | * Fix issue with tick(): setSystemClock then throw
|
|---|
| 292 | * Update old dependencies
|
|---|
| 293 | * Added support to automatically increment time (#85)
|
|---|
| 294 | * Changed internal uninstall method signature
|
|---|
| 295 |
|
|---|
| 296 | v1.6.0 / 2017-02-25
|
|---|
| 297 | ===================
|
|---|
| 298 |
|
|---|
| 299 | * Use common Sinon.JS eslint config
|
|---|
| 300 | * Allow install to be called with date object
|
|---|
| 301 | * Remove wrapper function
|
|---|
| 302 | * Fixed typo in clock.runAll error
|
|---|
| 303 |
|
|---|
| 304 | v1.5.2 / 2016-11-10
|
|---|
| 305 | ===================
|
|---|
| 306 |
|
|---|
| 307 | * Upgrade mocha to latest
|
|---|
| 308 | * Only overwrite globals when running in IE
|
|---|
| 309 |
|
|---|
| 310 | 1.5.1 / 2016-07-26
|
|---|
| 311 | ==================
|
|---|
| 312 |
|
|---|
| 313 | * Fix setInterval() behavior with string times
|
|---|
| 314 | * Incorporate test from PR #65
|
|---|
| 315 | * Fix issue #59: context object required 'process'
|
|---|
| 316 | * fixed a case where runAll was called and there are no timers (#70)
|
|---|
| 317 | * Correct the clear{Interval|Timeout|Immediate} error message when calling `set*` for a different type of timer.
|
|---|
| 318 | * Lots of minor changes to tooling and the build process
|
|---|
| 319 |
|
|---|
| 320 | v1.5.0 / 2016-05-18
|
|---|
| 321 | ===================
|
|---|
| 322 |
|
|---|
| 323 | * 1.5.0
|
|---|
| 324 | * Check for existence of `process` before using it
|
|---|
| 325 | * Run to last existing timer
|
|---|
| 326 | * Add runAll method to run timers until empty
|
|---|
| 327 | * Turn off Sauce Labs tests for pull requests
|
|---|
| 328 | * 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.
|
|---|
| 329 | * Run test-cloud on Travis
|
|---|
| 330 | * Add process.hrtime()
|
|---|
| 331 | * Add bithound badge to Readme.md
|
|---|
| 332 | * Make Travis also run tests in node 4.2
|
|---|
| 333 | * Update jslint, referee, sinon, browserify, mocha, mochify
|
|---|
| 334 | * Rename src/lolex.js to src/lolex-src.js to avoid bithound ignoring it
|
|---|
| 335 | * Add .bithoundrc
|
|---|
| 336 |
|
|---|
| 337 | v1.4.0 / 2015-12-11
|
|---|
| 338 | ===================
|
|---|
| 339 |
|
|---|
| 340 | * 1.4.0
|
|---|
| 341 | * Remove BASH syntax in lint script
|
|---|
| 342 | * correct test descriptions to match the tests
|
|---|
| 343 | * correct parseTime() error message so it matches behavior
|
|---|
| 344 | * don't run test-cloud as part of npm test
|
|---|
| 345 | * doc: full API reference
|
|---|
| 346 | * doc: update 'Running tests' section
|
|---|
| 347 | * doc: update 'Faking the native timers' section
|
|---|
| 348 | * doc: remove requestAnimationFrame
|
|---|
| 349 | * Implement clock.next()
|
|---|
| 350 | * Run lint in CI
|
|---|
| 351 | * Fix jslint errors
|
|---|
| 352 |
|
|---|
| 353 | v1.3.2 / 2015-09-22
|
|---|
| 354 | ===================
|
|---|
| 355 |
|
|---|
| 356 | * 1.3.2
|
|---|
| 357 | * Fix for breaking shimmed setImmediate
|
|---|
| 358 |
|
|---|
| 359 | v1.3.1 / 2015-08-20
|
|---|
| 360 | ===================
|
|---|
| 361 |
|
|---|
| 362 | * Remove error whos reason is no longer accurate
|
|---|
| 363 |
|
|---|
| 364 | v1.3.0 / 2015-08-19
|
|---|
| 365 | ===================
|
|---|
| 366 |
|
|---|
| 367 | * 1.3.0
|
|---|
| 368 | * Throw exception on wrong use of clearXYZ()
|
|---|
| 369 | * Fix for Sinon.JS issue #808 :add setSystemTime() function
|
|---|
| 370 | * Fix for Sinon.JS issue #766: clearTimeout() no longer clears Immediate/Interval and vice versa
|
|---|
| 371 | * Update Readme.md to point to LICENSE file
|
|---|
| 372 | * Fix error in readme about running tests
|
|---|
| 373 | * Fix for warning about SPDX license format on npm install
|
|---|
| 374 |
|
|---|
| 375 | v1.2.2 / 2015-07-22
|
|---|
| 376 | ===================
|
|---|
| 377 |
|
|---|
| 378 | * 1.2.2
|
|---|
| 379 | * Fixing lint mistake
|
|---|
| 380 | * Update travis to use node@0.12
|
|---|
| 381 | * Fix complaint about missing fake setImmediate
|
|---|
| 382 | * Use license in package.json
|
|---|
| 383 |
|
|---|
| 384 | v1.2.1 / 2015-01-06
|
|---|
| 385 | ===================
|
|---|
| 386 |
|
|---|
| 387 | * New build
|
|---|
| 388 | * Dodge JSLint...
|
|---|
| 389 | * Up version
|
|---|
| 390 | * Proper fix for writable globals in IE
|
|---|
| 391 | * Make timers writable in old IEs
|
|---|
| 392 |
|
|---|
| 393 | v1.2.0 / 2014-12-12
|
|---|
| 394 | ===================
|
|---|
| 395 |
|
|---|
| 396 | * 1.2.0
|
|---|
| 397 | * Fix Sinon.JS issue 624
|
|---|
| 398 | * Lint the test files also
|
|---|
| 399 | * Add .jslintrc
|
|---|
| 400 | * Delay setImmediate if it is during tick call
|
|---|
| 401 | * Add test case
|
|---|
| 402 | * Test behaviour of hasOwnProperty beforehand
|
|---|
| 403 | * Compare now() with delta
|
|---|
| 404 | * Use undefined for defined predicate
|
|---|
| 405 | * Put setImmediate in toFake list
|
|---|
| 406 | * Capture clock instance for uninstall
|
|---|
| 407 | * Restore commented out tests
|
|---|
| 408 | * Add JSLint verification to test
|
|---|
| 409 | * Configure Travis to run tests in node 0.10.x
|
|---|
| 410 | * Add .editorconfig
|
|---|
| 411 | * Fail when faking Date but not setTimeout/setInterval
|
|---|
| 412 |
|
|---|
| 413 | v1.1.10 / 2014-11-14
|
|---|
| 414 | ====================
|
|---|
| 415 |
|
|---|
| 416 | * 1.1.0 Fixes setImmediate problems
|
|---|
| 417 | * Rely on `timer` initialization to null
|
|---|
| 418 | * Timer assembly occurs at addTimer callsites
|
|---|
| 419 | * Sort immediate timers before non-immediate
|
|---|
| 420 | * Add createdAt to timers
|
|---|
| 421 | * Sort timers by multiple criteria, not just callAt
|
|---|
| 422 | * Refactor firstTimerInRange
|
|---|
| 423 | * Rename `timeouts` property to `timers`
|
|---|
| 424 | * addTimer is options-driven
|
|---|
| 425 |
|
|---|
| 426 | v1.0.0 / 2014-11-12
|
|---|
| 427 | ===================
|
|---|
| 428 |
|
|---|
| 429 | * Add built file for browsers
|
|---|
| 430 | * Fix URL
|
|---|
| 431 | * Don't run tests that require global.__proto__ on IE 9 and IE 10
|
|---|
| 432 | * Add "bundle" script to create standalone UMD bundle with browserify
|
|---|
| 433 | * Float with new test framework versions
|
|---|
| 434 | * Remove redundant module prefix
|
|---|
| 435 | * Let Browserify set "global" for us
|
|---|
| 436 | * Change test framework from Buster to Mocha and Mochify
|
|---|
| 437 | * Make timer functions independent on `this`
|
|---|
| 438 | * Change APIs according to Readme
|
|---|
| 439 | * Change clock-creating interface
|
|---|
| 440 | * Change Github paths
|
|---|
| 441 | * Basically working extraction from Sinon.JS
|
|---|