Skip to content

Releases: SupremeTechnopriest/react-idle-timer

5.7.2

08 Jun 07:31
Compare
Choose a tag to compare

🐞 Bug Fixes

  • Fix a bug with GitHub workflow badge in README. This requires a version bump to resolve on npmjs.com.

5.7.1

08 Jun 06:57
Compare
Choose a tag to compare

🐞 Bug Fixes

  • Fix a bug where disabled property would not immediately disable the timer.

5.7.0

08 Jun 03:26
Compare
Choose a tag to compare

⚡️ Features

  • Added disabled property to enable easier toggling of the timer. #349

✨ Enhancements

  • Add a legacy bundle to support older browsers. #345.
  • Control methods now return a boolean representing the success of the call.
  • Update issue templates to use new issue forms.
  • Added issue chooser links.
  • Replace estrella with esbuild and update build chain.
  • Updated all dependencies.

🐞 Bug Fixes

  • Fix types export for latest typescript. #343

The project has switched IDEs from VS Code to WebStorm. The .vscode directory has been replaced with .idea.

5.6.2

21 Apr 00:33
Compare
Choose a tag to compare

✨ Enhancements

  • Allow null or undefined as the value for the element property to enable easier integration with refs.

5.6.1

17 Apr 22:17
Compare
Choose a tag to compare

🐞 Bug Fixes

  • Throw an error when promptBeforeIdle is greater than or equal to timeout. #342

5.6.0

14 Apr 02:35
Compare
Choose a tag to compare

⚡️ Features

  • Expose IIdleTimer interface as the second parameter to callback methods. #339

🐞 Bug Fixes

  • Prevent race condition error from being thrown when the hook unmounts while using leader election. #337

5.5.3

26 Feb 21:29
Compare
Choose a tag to compare

🐞 Bug Fixes

  • Fix a bug where onPrompt would be emitted instead of onIdle after timeout is exceeded when devices wake from sleep. #172
  • Fix a bug where onMessage was being called with old function reference. #328

5.5.2

25 Jan 02:46
Compare
Choose a tag to compare

✨ Enhancements

  • Add defaults to IdleTimerComponent generic typescript types.

5.5.1

25 Jan 02:46
Compare
Choose a tag to compare

✨ Enhancements

  • Cross-tab related methods will no longer throw an error if the manager is not ready yet. It will instead return null.

5.5.0

25 Jan 02:45
Compare
Choose a tag to compare

⚡️ Features

  • Add isLastActiveTab method. #294
  • Add getActiveTime and getIdleTime methods. #301
  • Add onPresenceChange event handler. #319

✨ Enhancements

  • Idle state now defaults to false. #304
  • Add checks on max timeout values. #316
  • Deprecate promptTimeout in favor of promptBeforeIdle. #318
  • Better typescript docs for activate method. #319
  • Improve Higher Order Component and class component support.

🐞 Bug Fixes

  • Use date timestamps everywhere to prevent issues when devices sleep. #281
  • Fix a bug where class components would not preserve this context in IdleTimer methods. #309
  • Fix a bug where onActive was called on every action when syncTimers was set. #320
  • Fix a bug where the mounting of the IdleTimer hook was delayed.