Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing range() in createWithTimers() return value & require Node.js 10 #55

Merged
merged 2 commits into from Feb 1, 2021
Merged

Fix missing range() in createWithTimers() return value & require Node.js 10 #55

merged 2 commits into from Feb 1, 2021

Conversation

novemberborn
Copy link
Contributor

@novemberborn novemberborn commented Feb 1, 2021

This started with a simple bugfix:

  • DRY delay creation
  • Add test for range() and createWithTimers()

Except that Node.js 6 doesn't do object spread. So I've changed this to require Node.js 10.

Which requires a breaking change, so I've removed the default export.


I'd appreciate this if this can ship without also upgrading to use ESM.

* DRY `delay` creation
* Add test for range() and createWithTimers()
@novemberborn novemberborn changed the title Fix missing range() in createWithTimers() return value Fix missing range() in createWithTimers() return value; upgrade minimal Node.js; remove default export Feb 1, 2021
@sindresorhus
Copy link
Owner

Which requires a breaking change, so I've removed the default export.

Can you revert that? Since the next major release (in April) will be to require ESM, so it would be a lot of churn to force TS users to switch to require() now, and then back to import again in April.

@sindresorhus sindresorhus changed the title Fix missing range() in createWithTimers() return value; upgrade minimal Node.js; remove default export Fix missing range() in createWithTimers() return value & require Node.js 10 Feb 1, 2021
@novemberborn
Copy link
Contributor Author

Will do.

@novemberborn
Copy link
Contributor Author

Done (force-pushed).

@sindresorhus sindresorhus merged commit f3c7542 into sindresorhus:main Feb 1, 2021
@sindresorhus
Copy link
Owner

https://github.com/sindresorhus/delay/releases/tag/v5.0.0

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.

None yet

2 participants