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 #97

Open renovate[bot] opened 1 year ago

renovate[bot] commented 1 year ago

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 (react-idle-timer) ### [`v5.7.2`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#572) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.7.1...5.7.2) ##### 🐞 Bug Fixes - Fix a bug with GitHub workflow badge in README. This requires a version bump to resolve on npmjs.com. ### [`v5.7.1`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#571) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.7.0...5.7.1) ##### 🐞 Bug Fixes - Fix a bug where `disabled` property would not immediately disable the timer. ### [`v5.7.0`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#570) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.6.2...5.7.0) ##### ⚑️ Features - Added [disabled](http://idletimer.dev/docs/api/props#disabled) property to enable easier toggling of the timer. [#​349](https://togithub.com/supremetechnopriest/react-idle-timer/issues/349) ##### ✨ Enhancements - Add a [legacy bundle](http://idletimer.dev/docs/getting-started/installation#legacy-browser-support) to support older browsers. [#​345](https://togithub.com/supremetechnopriest/react-idle-timer/issues/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](https://togithub.com/supremetechnopriest/react-idle-timer/issues/343) > The project has switched IDEs from VS Code to WebStorm. The `.vscode` directory has been replaced with `.idea`. ### [`v5.6.2`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#562) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.6.1...5.6.2) ##### ✨ Enhancements - Allow `null` or `undefined` as the value for the `element` property to enable easier integration with refs. ### [`v5.6.1`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#561) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.6.0...5.6.1) ##### 🐞 Bug Fixes - Throw an error when `promptBeforeIdle` is greater than or equal to `timeout`. [#​342](https://togithub.com/supremetechnopriest/react-idle-timer/issues/342) ### [`v5.6.0`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#560) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.5.3...5.6.0) ##### ⚑️ Features - Expose `IIdleTimer` interface as the second parameter to callback methods. [#​339](https://togithub.com/supremetechnopriest/react-idle-timer/issues/339) ##### 🐞 Bug Fixes - Prevent race condition error from being thrown when the hook unmounts while using leader election. [#​337](https://togithub.com/supremetechnopriest/react-idle-timer/issues/337) ### [`v5.5.3`](https://togithub.com/supremetechnopriest/react-idle-timer/blob/HEAD/CHANGELOG.md#553) [Compare Source](https://togithub.com/supremetechnopriest/react-idle-timer/compare/5.5.2...5.5.3) ##### 🐞 Bug Fixes - Fix a bug where `onPrompt` would be emitted instead of `onIdle` after `timeout` is exceeded when devices wake from sleep. [#​172](https://togithub.com/supremetechnopriest/react-idle-timer/issues/172) - Fix a bug where `onMessage` was being called with an old function reference. [#​328](https://togithub.com/supremetechnopriest/react-idle-timer/issues/328) ### [`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.

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 was generated by Mend Renovate. View the repository job log.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
manage-my-library βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Dec 1, 2023 5:57am