Skip to content

Releases: SupremeTechnopriest/react-idle-timer

5.4.2

07 Sep 21:41

Choose a tag to compare

✨ Enhancements

  • Add a clock based sanity check as a backup for the more precise performance timing. #281

🐞 Bug Fixes

  • Fix componentDidMount on withIdleTimer higher order component. #276
  • Fix regression of memoized onAction callbacks. #127
  • Fix rounding error on getRemainingTime().

5.4.1

06 Jul 17:04

Choose a tag to compare

🐞 Bug Fixes

  • Fix a bug where workerTimers were not mocked by createMocks().
  • Fix a bug where reset was not resetting the start time affecting getTotalActiveTime(). #272

5.4.0

10 Jun 03:46

Choose a tag to compare

⚡️ Features

🐞 Bug Fixes

  • Fix a bug where events would leak when crossTab is enabled causing bad performance when many tabs are open. #247

5.3.0

06 Jun 03:31

Choose a tag to compare

✨ Enhancements

  • The reset method now respects startManually property. It will no longer automatically call onActive.
  • Export DEFAULT_EVENTS for easy extension of events. #260

🐞 Bug Fixes

  • The getRemainingTime method now always returns the time to idle instead of time to prompt and then time to idle. #256
  • Debounced onAction callbacks will automatically be cancelled on idle. #255

5.2.0

15 May 23:30

Choose a tag to compare

✨ Enhancements

  • Add name property to support multiple instances when crossTab is enabled.

5.1.3

10 May 18:45

Choose a tag to compare

🐞 Bug Fixes

  • Use builtin Omit over utility-types Subtract. Fixes missing dependency error.

5.1.2

09 May 03:04

Choose a tag to compare

✨ Enhancements

  • Forward ref on withIdleTimer.

5.1.1

03 May 00:00

Choose a tag to compare

🐞 Bug Fixes

  • Add missing React import in withIdleTimer.

5.1.0

01 May 01:14

Choose a tag to compare

⚡️ Features

  • New implementation of Leader Election.

Due to popular request, Leader Election has returned in version 5.1.0. While the old implementation was incompatible with v5, this new implementation is compatible. A new property leaderElection is exposed to enable the feature. The major difference between the v4 and v5 implementation is that in v5 events are not isolated to your leader tab automatically. You will need to call the isLeader method inside your event handlers. See the docs for more information.

5.0.0

01 May 01:01

Choose a tag to compare

Version 5 is a complete, from scratch, typescript rewrite. A lot of effort went
into this release. If you find this package useful and have the means, please
consider a small donation!

⚡️ Features

  • Add built in prompt handling.
  • Add immediateEvents property.
  • Add cross tab custom message broadcasting.
  • New higher order component withIdleTimer.
  • New provider IdleTimerProvider.
  • Add syncTimers property.

✨ Enhancements

  • Timeouts and Intervals are now hoisted into a web worker to bypass browser background throttles.
  • Rewrite crossTab from the ground up. The new implementation is much smaller and more efficient.
  • Cross Tab options simplified.
  • All callbacks and methods are now memoized.

🐞 Bug Fixes

  • All property values can now be dynamically updated.
  • Fix getTotalActiveTime returning negative value.
  • Fix sending message on closed channel error.

🔥 Code Removal

  • Remove capture property.
  • Remove passive property.
  • Remove emitOnAllTabs property.
  • Remove isLeader method.

📝 Documentation

  • New documentation site.
  • Add contribution guide.
  • Add issue and pull request templates.

⬆️ Update Dependencies

  • Updated for React 17.
  • Updated all dependencies.