codetheweb / tuyapi

🌧 An easy-to-use API for devices that use Tuya's cloud services. Documentation: https://codetheweb.github.io/tuyapi.
MIT License
2.07k stars 341 forks source link

Update dependency delay to v6 #631

Closed renovate[bot] closed 4 days ago

renovate[bot] commented 1 year ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
delay 4.4.1 -> 6.0.0 age adoption passing confidence

Release Notes

sindresorhus/delay (delay) ### [`v6.0.0`](https://redirect.github.com/sindresorhus/delay/releases/tag/v6.0.0) [Compare Source](https://redirect.github.com/sindresorhus/delay/compare/v5.0.0...v6.0.0) ##### Breaking - Require Node.js 16 [`b2edac7`](https://redirect.github.com/sindresorhus/delay/commit/b2edac7) - This package is now pure ESM. **Please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).** - Removed the `delay.reject()` method. - It's not really needed anymore with async/await. Just throw an error after awaiting the delay. - `const delay = require('delay'); delay.clear(…);` → `import {clearDelay} from 'delay'; clearDelay(…);` - `const delay = require('delay'); delay.range(…);` → `import {rangeDelay} from 'delay'; rangeDelay(…);` - `const delay = require('delay'); delay.createWithTimers(…);` → `import {createDelay} from 'delay'; createDelay(…);` If you only target Node.js and not the browser, I recommend moving to the built-in method whenever possible: ```js import {setTimeout} from 'node:timers/promises'; await setTimeout(1000); ``` ### [`v5.0.0`](https://redirect.github.com/sindresorhus/delay/releases/tag/v5.0.0) [Compare Source](https://redirect.github.com/sindresorhus/delay/compare/v4.4.1...v5.0.0) ##### Breaking - Require Node.js 10 ([#​55](https://redirect.github.com/sindresorhus/delay/issues/55)) [`f3c7542`](https://redirect.github.com/sindresorhus/delay/commit/f3c7542) ##### Improvements - Fix missing `range()` in `createWithTimers()` return value ([#​55](https://redirect.github.com/sindresorhus/delay/issues/55)) [`f3c7542`](https://redirect.github.com/sindresorhus/delay/commit/f3c7542)

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.

renovate[bot] commented 4 days ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 6.x releases. But if you manually upgrade to 6.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.