Skip to content

Releases: SupremeTechnopriest/react-idle-timer

4.6.4

28 May 19:27
Compare
Choose a tag to compare

🐞 Bug Fixes

  • Make IdleTimer ref optional in typedefs. This prevents the API from breaking previous versions and really should be optional anyway.

4.6.3

26 May 03:01
Compare
Choose a tag to compare

✨ Enhancements

  • Exported a bundle for modern browsers.

This will become the default export in version 5. CommonJS/ Babel compiled source will be provided by the legacy sub-module. See the README announcement for more information.

🐞 Bug Fixes

  • Add missing ref to TypeScript definitions.
  • Fixed a bug where reset would not propagate cross tab.

4.6.2

29 Apr 22:17
Compare
Choose a tag to compare

✨ Enhancements

  • Allow for dynamically setting onActive and onIdle event handlers in conjunction with cross tab event reconciliation.

4.6.1

17 Apr 00:18
Compare
Choose a tag to compare

✨ Enhancements

  • When emitOnAllTabs is set to true, start, reset, pause and resume will be called on all tabs.
  • Calling reset will now automatically fire onActive while calling start will not. Otherwise these two methods are functionally equivalent.

🐞 Bug Fixes

  • Fixed a type-o in propTypes, typescript definitions and docs.
  • Fixed an issue where the localStorage method would not call idle if there wasn't any user activity on the page.
  • Fixed an issue where the TabManager would not deregister itself when the tab was closed if it was not the leader tab.

4.6.0

09 Apr 19:22
Compare
Choose a tag to compare

⚑️ Features

  • Added cross tab event reconciliation. See examples and README for usage and documentation.
  • Added an isLeader() method that returns a boolean indicating wether or not the current tab is the lead orchestrator for cross tab reconciliation.
  • Added a startManually configuration option to enable starting of the timer and activity detection manually. An alias to reset() called start() is also exposed to keep the code more semantic. If startManually is set to true, the IdleTimer component and useIdleTimer hook wont start until reset() or start() are called.

✨ Enhancements

  • Updated test suite. 100% test coverage and new utilities to help with run speed.

🐞 Bugfixes

  • Fixed a bug where throttle and debounce wouldn't work at higher values in useIdleTimer.

4.5.6

10 Mar 02:15
Compare
Choose a tag to compare

🐞 Bugfixes

  • Calling resume and pause from inside a useEffect will now properly bind and unbind events.

4.5.5

20 Feb 01:25
Compare
Choose a tag to compare

🐞 Bugfixes

  • Setting a timeout dynamically will now call onActive if the user is idle.

4.5.4

09 Feb 00:26
Compare
Choose a tag to compare

🐞 Bugfixes

  • Bind getLastIdleTime() to component scope making the method callable from the IdleTimer component.

4.5.3

08 Feb 20:56
Compare
Choose a tag to compare

🐞 Bugfixes

  • Bind getTotalActiveTime() and getTotalIdleTime() to component scope making the methods callable from the IdleTimer component.

4.5.2

22 Jan 21:51
Compare
Choose a tag to compare

✨ Enhancements

  • Added the ability to set timeout dynamically in the IdleTimer Component. Doing so will automatically reset the timer if it is active.