aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@sinonjs/fake-timers/CHANGELOG.md
blob: 3e1c17ac9515c23a7b2621127975bd77e2db3984 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441

8.1.0 / 2021-11-03
==================

  * Add native timer clean-up behavior (#407)
  * give a hint about how to get type defs (#405)

8.0.1 / 2021-09-25
==================

  * fix: handle missing stack when throwing recursion errors (#401)

8.0.0 / 2021-09-15
==================

  * Remove generated typescript definitions. If you use this package with TypeScript, install `@types/sinonjs__fake-timers` after upgrading (#386)
  * Issue 390 implicit dependencies on faking interval (#391)
  * replace var with const/let (#392)
  * Retry - Add stack trace to code recursively scheduling timers #325  (#375)

7.1.2 / 2021-05-28
==================

  * Fix #382 by making config fields optional (#383)
  * Fix #347 : Support util.promisify

7.1.1 / 2021-05-27
==================

  * Fix JSDoc for createClock

7.1.0 / 2021-05-20
==================

  * Remove Safari from Sauce Lab (ref #380)
  * Bump hosted-git-info from 2.6.0 to 2.8.9
  * Bump handlebars from 4.7.6 to 4.7.7
  * Bump lodash from 4.17.19 to 4.17.21
  * Add in latest Safari and evergreen Edge
  * Drop IE11 and Safari 9
  * chore: add type tests (#373)
  * remove constructor types
  * use globalThis to avoid conflicts
  * Update yargs-parser
  * Update mkdirp
  * Upgrade jsdom
  * Upgrade mochify to latest
  * Upgrade Mocha to latest
  * Bump y18n from 4.0.0 to 4.0.1
  * make config optional
  * add a bunch more types

7.0.5 / 2021-04-11
==================

  * Fix up some clock types in JSDoc (becomes `.d.ts`) (#370)
  * Fix refresh arguments forwarding (#369)

7.0.4 / 2021-04-08
==================

  * Fix usage with TypeScript

7.0.3 / 2021-03-02
==================

  * Removing the use of eval in Node.js (#331)
  * Drop Node 8
  * Add docs about typings (#357)

7.0.2 / 2021-01-18
==================

  * Make config options optional in TypeScript defs (#354)

7.0.1 / 2021-01-14
==================

  * Update README section about browser use

7.0.0 / 2021-01-12
==================

  * Remove bundle from package. If you're loading `fake-timers` via
    script tag, you'll now have to provide your own bundled version
  * Add .d.ts files to package
  * Revert "Add stack trace to code recursively scheduling timers" (#338)
  * Remove unnecessary durations and use globals
  * Support timeout.refresh in node environments
  * Fix #319: Error message changed to TypeError
  * Fix #319: The use of 'eval' has been removed
  * Fix #304: clearTimeout clears setInterval and clearInterval clears setTimeout
  * Remove config.target (#318)


6.0.1 / 2020-03-24
==================

  * Support util.promisify in Node (#223)

6.0.0 / 2020-02-04
==================

  * Rename project to `@sinonjs/fake-timers`

5.1.2 / 2019-12-19
==================

  * Use global from `@sinonjs/commons`
  * Fix setSystemTime affects hrtime if its called multiple times.
  * Test coverage: use nyc

5.1.1 / 2019-10-21
==================

  * Fix global ReferenceError (#273)

5.1.0 / 2019-10-14
==================

  * Upgrade lolex with async versions of most calls

5.0.1 / 2019-10-10
==================

  * Upgrade eslint, add prettier
  * Use `--no-detect-globals` to bundle and test lolex (#270)

5.0.0 / 2019-10-07
==================

  * Avoid installing setImmediate in unsupported environments
  * fix #246: non-constructor Date() should return a string

4.2.0 / 2019-08-04
==================

  * Fix support for replacing the JSDOM performance field

4.1.0 / 2019-06-04
==================

  * Fix crash on Bash version 3 (macOS)
  * Support hrtime.bigint()
  * fix: count microtasks in countTimers
  * Return empty arrays for performance.getEntries, other relevant methods

4.0.1 / 2019-04-17
==================

  * Remove sinon: added by mistake

4.0.0 / 2019-04-17
==================

  * Drop support for IE9 and IE10: link to supported browsers in README
  * No more ExperimentalWarnings in Node environment for queueMicrotask() if it's not used in user's code

3.1.0 / 2019-02-11
==================

  * default timeout set to 50ms
  * first implementation of requestIdleCallback and cancelIdleCallback
  * fixed accidentally performance.now() -> x.now() replacement
  * added queueMicrotask

3.0.0 / 2018-10-08
==================

  * Add countTimers method
  * Disallow negative ticks (breaking API change!)
  * Avoid exposing hrNow
  * Fix #207 - round-off errors in `hrtime`
  * Truncate sub-nanosecond values for `hrtime`
  * Truncate sub-millisceond values for `Date.now()`

v2.7.5 / 2018-09-19
==================

  * fix: handle floating point in hrtime (#210)
  * fix: reset high resolution timer on clock.reset (#209)
  * Add an error when creating a clock with no Date object (#205)

v2.7.4 / 2018-09-05
==================

  * performance.mark related fixes for failing Safari, IE 10 and IE 11 tests

v2.7.3 / 2018-09-05
==================

  * Fix for #200: TypeError on performance.mark

v2.7.2 / 2018-09-04
==================

  * fix(setInterval): parse `timeout` arg to integer (#202)
  * Upgrade insecure dependencies with npm audit fix

v2.7.1 / 2018-07-06
==================
  * Fix performance replacement on iOS 9.3

v2.7.0 / 2018-05-25
==================

  * reset clock to start
  * check Performance exists before touching it

v2.6.0 / 2018-05-16
==================

  * Fix `reset` and document it publicly Clear microtick jobs and set now to 0 in reset (#179)
  * Access Date on `_global` (#178)

v2.5.0 / 2018-05-13
==================

  * feat: respect loopLimit in runMicrotasks (#172)
  * assign performance as a property, not as a function

v2.4.2 / 2018-05-11
===================
  * Upgrade Mochify to v5.6 (#162) fixed #170
  * Access `Performance` via `_global` (#168)

v2.4.1 / 2018-05-08
==================

  * fix: handle negative infinity timeout (#165)

v2.4.0 / 2018-05-08
==================

  * Add `withGlobal` export
  * expose runMicrotasks
  * Fix that performance.mark is undefined after timer install

v2.3.2 / 2018-01-29
==================

* Add files section to package.json to avoid unnecessary package bloat #154
* Add missing functions in default `toFake` #150

v2.3.1 / 2017-11-22
==================

  * bugfix for a setTimeout() or setSystemTime() within a nextTick() call. (#145)

v2.3.0 / 2017-11-08
==================

  * Stops leak of (request|cancel)AnimationFrame into global scope. (#143)
  * return timers on uninstall

v2.2.0 / 2017-11-07
==================

  * Add support for requestAnimationFrame
  * fix negative timeout bug

v2.1.3 / 2017-10-03
==================

  * add module entry point (#133)

v2.1.2 / 2017-07-25
==================

  * - does not fake process.nextTick by default - added .idea folder to .gitignore - fixed documentation - added clock teardowns in tests
  * overflowing the timer correctly (issue #67)

v2.1.1 / 2017-07-19
==================

  * support passing parameters in nextTick (fixes #122)

v2.1.0 / 2017-07-18
==================

  * 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 / 2017-07-13
==================

  * New install() signature
  * Add support for performance.now (#106)
  * Fix issue with tick(): setSystemClock then throw
  * Update old dependencies
  * Added support to automatically increment time (#85)
  * Changed internal uninstall method signature

v1.6.0 / 2017-02-25
===================

  * Use common Sinon.JS eslint config
  * Allow install to be called with date object
  * Remove wrapper function
  * Fixed typo in clock.runAll error

v1.5.2 / 2016-11-10
===================

  * Upgrade mocha to latest
  * Only overwrite globals when running in IE

1.5.1 / 2016-07-26
==================

  * 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

v1.5.0 / 2016-05-18
===================

  * 1.5.0
  * Check for existence of `process` before using it
  * Run to last existing timer
  * Add runAll method to run timers until empty
  * Turn off Sauce Labs tests for pull requests
  * 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.
  * Run test-cloud on Travis
  * Add process.hrtime()
  * Add bithound badge to Readme.md
  * Make Travis also run tests in node 4.2
  * Update jslint, referee, sinon, browserify, mocha, mochify
  * Rename src/lolex.js to src/lolex-src.js to avoid bithound ignoring it
  * Add .bithoundrc

v1.4.0 / 2015-12-11
===================

  * 1.4.0
  * Remove BASH syntax in lint script
  * correct test descriptions to match the tests
  * correct parseTime() error message so it matches behavior
  * don't run test-cloud as part of npm test
  * doc: full API reference
  * doc: update 'Running tests' section
  * doc: update 'Faking the native timers' section
  * doc: remove requestAnimationFrame
  * Implement clock.next()
  * Run lint in CI
  * Fix jslint errors

v1.3.2 / 2015-09-22
===================

  * 1.3.2
  * Fix for breaking shimmed setImmediate

v1.3.1 / 2015-08-20
===================

  * Remove error whos reason is no longer accurate

v1.3.0 / 2015-08-19
===================

  * 1.3.0
  * Throw exception on wrong use of clearXYZ()
  * Fix for Sinon.JS issue #808  :add setSystemTime() function
  * Fix for Sinon.JS issue #766: clearTimeout() no longer clears Immediate/Interval and vice versa
  * Update Readme.md to point to LICENSE file
  * Fix error in readme about running tests
  * Fix for warning about SPDX license format on npm install

v1.2.2 / 2015-07-22
===================

  * 1.2.2
  * Fixing lint mistake
  * Update travis to use node@0.12
  * Fix complaint about missing fake setImmediate
  * Use license in package.json

v1.2.1 / 2015-01-06
===================

  * New build
  * Dodge JSLint...
  * Up version
  * Proper fix for writable globals in IE
  * Make timers writable in old IEs

v1.2.0 / 2014-12-12
===================

  * 1.2.0
  * Fix Sinon.JS issue 624
  * Lint the test files also
  * Add .jslintrc
  * Delay setImmediate if it is during tick call
  * Add test case
  * Test behaviour of hasOwnProperty beforehand
  * Compare now() with delta
  * Use undefined for defined predicate
  * Put setImmediate in toFake list
  * Capture clock instance for uninstall
  * Restore commented out tests
  * Add JSLint verification to test
  * Configure Travis to run tests in node 0.10.x
  * Add .editorconfig
  * Fail when faking Date but not setTimeout/setInterval

v1.1.10 / 2014-11-14
====================

  * 1.1.0 Fixes setImmediate problems
  * Rely on `timer` initialization to null
  * Timer assembly occurs at addTimer callsites
  * Sort immediate timers before non-immediate
  * Add createdAt to timers
  * Sort timers by multiple criteria, not just callAt
  * Refactor firstTimerInRange
  * Rename `timeouts` property to `timers`
  * addTimer is options-driven

v1.0.0 / 2014-11-12
===================

  * Add built file for browsers
  * Fix URL
  * Don't run tests that require global.__proto__ on IE 9 and IE 10
  * Add "bundle" script to create standalone UMD bundle with browserify
  * Float with new test framework versions
  * Remove redundant module prefix
  * Let Browserify set "global" for us
  * Change test framework from Buster to Mocha and Mochify
  * Make timer functions independent on `this`
  * Change APIs according to Readme
  * Change clock-creating interface
  * Change Github paths
  * Basically working extraction from Sinon.JS