Skip to content

Releases: amrlabib/react-timer-hook

v2.0.5

30 Nov 18:21
Compare
Choose a tag to compare
  • Fix calling onExpire incorrect time when the timer is less than 1 second

v2.0.4

30 Nov 18:19
Compare
Choose a tag to compare
  • Fix react-dom peer dependency version requirement: issue #39
  • Fix Ability to run the timer in smaller intervals (500ms): issue #35

v2.0.3

04 Sep 13:37
Compare
Choose a tag to compare
  • Fix for SSR: issue #29

v2.0.2

09 Apr 09:51
Compare
Choose a tag to compare

Add isRunning flag in typescript definition file

v2.0.1

09 Apr 09:41
Compare
Choose a tag to compare
  1. Add isRunning state to useTimer
  2. Add isRunning state to useStopwatch

v2.0.0

15 Jan 16:28
Compare
Choose a tag to compare
  1. Change hooks state implementation, move from separate individual states [seconds, minutes, hours, days] to single seconds state and calculate rest of time attributes based on seconds only, this will enhance performance and make sure that only 1 render is done every second

  2. Fix update format props in useTime

  3. Code enhancement: move all validation functions to Validate util

  4. Code enhancement: Create Time util to handle seconds to time conversion and time formatting

  5. Code enhancement: add linter and fix all lint errors

v1.1.10

07 Jan 10:32
Compare
Choose a tag to compare

This release is just to avoid publishing readme-images folder content to npm, no library code changes

v1.1.9

07 Jan 10:31
Compare
Choose a tag to compare
  • Add TypeScript definition file

v1.1.8

07 Jan 10:36
Compare
Choose a tag to compare
  • Fix for issue #12
  • 1 updated library

v1.1.7

07 Jan 10:56
Compare
Choose a tag to compare
  • Bump lodash from 4.17.11 to 4.17.14
  • Minor code clean in webpack.prod.js