Skip to content

Update dependency react-idle-timer to v5#97

Open
renovate[bot] wants to merge 1 commit into
working@latestfrom
renovate/react-idle-timer-5.x
Open

Update dependency react-idle-timer to v5#97
renovate[bot] wants to merge 1 commit into
working@latestfrom
renovate/react-idle-timer-5.x

Conversation

@renovate

@renovate renovate Bot commented Jun 14, 2023

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
react-idle-timer (source) ^4.5.6^5.0.0 age confidence

Release Notes

supremetechnopriest/react-idle-timer (react-idle-timer)

v5.7.3

Compare Source

v5.7.2

Compare Source

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

v5.7.1

Compare Source

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

v5.7.0

Compare Source

⚡️ Features
✨ 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.

v5.6.2

Compare Source

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

v5.6.1

Compare Source

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

v5.6.0

Compare Source

⚡️ 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

v5.5.3

Compare Source

🐞 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 an old function reference. #​328

v5.5.2

Compare Source

✨ Enhancements
  • Add defaults to IdleTimerComponent generic typescript types.

v5.5.1

Compare Source

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

v5.5.0

Compare Source

⚡️ 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.

v5.4.2

Compare Source

✨ 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().

v5.4.1

Compare Source

🐞 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

v5.4.0

Compare Source

⚡️ Features
🐞 Bug Fixes
  • Fix a bug where events would leak when crossTab is enabled causing bad performance when many tabs are open. #​247

v5.3.0

Compare Source

✨ 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

v5.2.0

Compare Source

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

v5.1.3

Compare Source

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

v5.1.2

Compare Source

✨ Enhancements
  • Forward ref on withIdleTimer.

v5.1.1

Compare Source

🐞 Bug Fixes
  • Add missing React import in withIdleTimer.

v5.1.0

Compare Source

⚡️ 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.

v5.0.0

Compare Source

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.
4.6.4
🐞 Bug Fixes
  • Make ref optional in typedef.
4.6.3
✨ Enhancements
  • Export a bundle for modern browsers.
🐞 Bug Fixes
  • Add missing ref to TypeScript definitions.
  • Fix a bug where reset would not propagate cross tab.
4.6.2
✨ Enhancements
  • Allow for dynamically setting onActive and onIdle event handlers in conjunction with cross tab event reconciliation.
4.6.1
✨ 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
  • Fix an issue where the localStorage method would not call idle if there wasn't any user activity on the page.
  • Fix an issue where the TabManager would not deregister itself when the tab was closed if it was not the leader tab.
🚿 Clean up
  • Fix a type-o in propTypes, typescript definitions and docs.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@vercel

vercel Bot commented Jun 14, 2023

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
manage-my-library Ready Ready Preview, Comment Mar 20, 2026 9:11pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants