Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 30, 2023

Bumps delay from 5.0.0 to 6.0.0.

Release notes

Sourced from delay's releases.

v6.0.0

Breaking

  • Require Node.js 16 b2edac7
  • This package is now pure ESM. Please read this.
  • 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:

import {setTimeout} from 'node:timers/promises';
await setTimeout(1000);

sindresorhus/delay@v5.0.0...v6.0.0

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
> **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [delay](https://github.com/sindresorhus/delay) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/sindresorhus/delay/releases)
- [Commits](sindresorhus/delay@v5.0.0...v6.0.0)

---
updated-dependencies:
- dependency-name: delay
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label May 30, 2023
Copy link
Collaborator

@saltcute saltcute left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delay has gone pure ESM, needs workaround.

Copy link
Collaborator

@saltcute saltcute left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repo already require Node 18. No impact on Node version requirement expected.

@saltcute
Copy link
Collaborator

saltcute commented Oct 8, 2025

delay can be refactor to setTimeout in node:timers/promises

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

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants