Thierry-Chain / Library-Management-App

Updated Library management system
https://smart-library-rw.herokuapp.com
2 stars 1 forks source link

Update dependency react-idle-timer to v5 #70

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-idle-timer (source) ^4.5.6 -> ^5.0.0 age adoption passing confidence

Release Notes

supremetechnopriest/react-idle-timer ### [`v5.5.2`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#​552) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.5.1...5.5.2) ##### ✨ Enhancements - Add defaults to `IdleTimerComponent` generic typescript types. ### [`v5.5.1`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#​551) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.5.0...5.5.1) ##### ✨ 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`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#​550) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.4.2...5.5.0) ##### ⚡️ Features - Add `isLastActiveTab` method. [#​294](https://togithub.com/supremetechnopriest/react-idle-timer/issues/294) - Add `getActiveTime` and `getIdleTime` methods. [#​301](https://togithub.com/supremetechnopriest/react-idle-timer/issues/301) - Add `onPresenceChange` event handler. [#​319](https://togithub.com/supremetechnopriest/react-idle-timer/issues/319) ##### ✨ Enhancements - Idle state now defaults to false. [#​304](https://togithub.com/supremetechnopriest/react-idle-timer/issues/304) - Add checks on max timeout values. [#​316](https://togithub.com/supremetechnopriest/react-idle-timer/issues/316) - Deprecate `promptTimeout` in favor of `promptBeforeIdle`. [#​318](https://togithub.com/supremetechnopriest/react-idle-timer/issues/318) - Better typescript docs for `activate` method. [#​319](https://togithub.com/supremetechnopriest/react-idle-timer/issues/319) - Improve Higher Order Component and class component support. ##### 🐞 Bug Fixes - Use date timestamps everywhere to prevent issues when devices sleep. [#​281](https://togithub.com/supremetechnopriest/react-idle-timer/issues/281) - Fix a bug where class components would not preserve this context in IdleTimer methods. [#​309](https://togithub.com/supremetechnopriest/react-idle-timer/issues/309) - Fix a bug where `onActive` was called on every action when `syncTimers` was set. [#​320](https://togithub.com/supremetechnopriest/react-idle-timer/issues/320) - Fix a bug where the mounting of the IdleTimer hook was delayed. ### [`v5.4.2`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#​542) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.4.1...5.4.2) ##### ✨ Enhancements - Add a clock based sanity check as a backup for the more precise performance timing. [#​281](https://togithub.com/supremetechnopriest/react-idle-timer/issues/281) ##### 🐞 Bug Fixes - Fix `componentDidMount` on withIdleTimer higher order component. [#​276](https://togithub.com/supremetechnopriest/react-idle-timer/issues/276) - Fix regression of memoized `onAction` callbacks. [#​127](https://togithub.com/supremetechnopriest/react-idle-timer/issues/127) - Fix rounding error on `getRemainingTime()`. ### [`v5.4.1`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#​541) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.4.0...5.4.1) ##### 🐞 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](https://togithub.com/supremetechnopriest/react-idle-timer/issues/272) ### [`v5.4.0`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#​540) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.3.0...5.4.0) ##### ⚡️ Features - Add [getTabId()](https://idletimer.dev/docs/api/methods#gettabid) method. - Add [activate()](https://idletimer.dev/docs/api/methods#activate) method. [#​263](https://togithub.com/supremetechnopriest/react-idle-timer/issues/263) ##### 🐞 Bug Fixes - Fix a bug where events would leak when `crossTab` is enabled causing bad performance when many tabs are open. [#​247](https://togithub.com/supremetechnopriest/react-idle-timer/issues/247) ### [`v5.3.0`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#​530) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.2.0...5.3.0) ##### ✨ Enhancements - The `reset` method now respects `startManually` property. It will no longer automatically call `onActive`. - Export `DEFAULT_EVENTS` for easy extension of events. [#​260](https://togithub.com/supremetechnopriest/react-idle-timer/issues/260) ##### 🐞 Bug Fixes - The `getRemainingTime` method now always returns the time to idle instead of time to prompt and then time to idle. [#​256](https://togithub.com/supremetechnopriest/react-idle-timer/issues/256) - Debounced `onAction` callbacks will automatically be cancelled on idle. [#​255](https://togithub.com/supremetechnopriest/react-idle-timer/issues/255) ### [`v5.2.0`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#​520) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.1.3...5.2.0) ##### ✨ Enhancements - Add `name` property to support multiple instances when `crossTab` is enabled. ### [`v5.1.3`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#​513) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.1.2...5.1.3) ##### 🐞 Bug Fixes - Use builtin `Omit` over utility-types `Subtract`. Fixes missing dependency error. ### [`v5.1.2`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#​512) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.1.1...5.1.2) ##### ✨ Enhancements - Forward ref on `withIdleTimer`. ### [`v5.1.1`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#​511) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.1.0...5.1.1) ##### 🐞 Bug Fixes - Add missing React import in `withIdleTimer`. ### [`v5.1.0`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#​510) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.0.0...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 `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](https://idletimer.dev/docs/getting-started/new#leader-election) for more information. ### [`v5.0.0`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#​500) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/4.6.4...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](https://togithub.com/sponsors/supremetechnopriest)! ##### ⚡️ 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. ### [`v4.6.4`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#​464) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/4.6.3...4.6.4) ##### 🐞 Bug Fixes - Make `ref` optional in typedef. ### [`v4.6.3`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#​463) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/4.6.2...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. ### [`v4.6.2`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#​462) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/4.6.1...4.6.2) ##### ✨ Enhancements - Allow for dynamically setting `onActive` and `onIdle` event handlers in conjunction with cross tab event reconciliation. ### [`v4.6.1`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#​461) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/4.6.0...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. ### [`v4.6.0`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#​460) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/4.5.6...4.6.0) ##### ⚡️ Features - Add cross tab support. See examples and README for usage and documentation. - Add an `isLeader()` method that returns a boolean indicating whether or not the current tab is the lead orchestrator for cross tab reconciliation. - Add 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. ##### 🐞 Bug Fixes - Fix a bug where throttle and debounce wouldn't work at higher values in useIdleTimer. ##### 4.5.6 ##### 🐞 Bug Fixes - Calling `resume` or `pause` from inside a `useEffect` will now properly bind and unbind events. ##### 4.5.5 ##### ✨ Enhancements - Setting a timeout dynamically will now call `onActive` if the user is idle. ##### 4.5.4 ##### ✨ Enhancements - Bind `getLastIdleTime` to component scope making the method callable. ##### 4.5.3 ##### ✨ Enhancements - Bind `getTotalActiveTime` and `getTotalIdleTime` to component scope making the methods callable. ##### 4.5.2 ##### ✨ Enhancements - Add the ability to set timeout after the component has been mounted. Doing so will reset the timer automatically. ##### 4.5.1 ##### ✨ Enhancements - Add the ability to set timeout after the hook has been mounted. Doing so will reset the timer automatically.

Configuration

📅 Schedule: 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.



This PR has been generated by Mend Renovate. View repository job log here.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
smart-library ❌ Failed (Inspect) Feb 11, 2023 at 11:50PM (UTC)
vercel[bot] commented 1 year ago

Deployment failed with the following error:

Resource is limited - try again in 37 minutes (more than 100, code: "api-deployments-free-per-day").