Releases: SupremeTechnopriest/react-idle-timer
Releases · SupremeTechnopriest/react-idle-timer
5.4.2
5.4.1
5.4.0
⚡️ Features
- Add getTabId() method.
- Add activate() method. #263
🐞 Bug Fixes
- Fix a bug where events would leak when
crossTabis enabled causing bad performance when many tabs are open. #247
5.3.0
✨ Enhancements
- The
resetmethod now respectsstartManuallyproperty. It will no longer automatically callonActive. - Export
DEFAULT_EVENTSfor easy extension of events. #260
🐞 Bug Fixes
5.2.0
✨ Enhancements
- Add
nameproperty to support multiple instances whencrossTabis enabled.
5.1.3
🐞 Bug Fixes
- Use builtin
Omitover utility-typesSubtract. Fixes missing dependency error.
5.1.2
✨ Enhancements
- Forward ref on
withIdleTimer.
5.1.1
🐞 Bug Fixes
- Add missing React import in
withIdleTimer.
5.1.0
⚡️ 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
leaderElectionis 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 theisLeadermethod inside your event handlers. See the docs for more information.
5.0.0
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
immediateEventsproperty. - Add cross tab custom message broadcasting.
- New higher order component
withIdleTimer. - New provider
IdleTimerProvider. - Add
syncTimersproperty.
✨ Enhancements
- Timeouts and Intervals are now hoisted into a web worker to bypass browser background throttles.
- Rewrite
crossTabfrom 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
getTotalActiveTimereturning negative value. - Fix sending message on closed channel error.
🔥 Code Removal
- Remove
captureproperty. - Remove
passiveproperty. - Remove
emitOnAllTabsproperty. - Remove
isLeadermethod.
📝 Documentation
- New documentation site.
- Add contribution guide.
- Add issue and pull request templates.
⬆️ Update Dependencies
- Updated for React 17.
- Updated all dependencies.