Skip to content

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

Merged
sindresorhus merged 2 commits intosindresorhus:mainfrom
novemberborn:fix-range-in-create-with-timers
Feb 1, 2021
Merged

Fix missing range() in createWithTimers() return value & require Node.js 10#55
sindresorhus merged 2 commits intosindresorhus:mainfrom
novemberborn:fix-range-in-create-with-timers

Conversation

@novemberborn
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

Will do.

@novemberborn
Copy link
Copy Markdown
Contributor Author

Done (force-pushed).

@sindresorhus sindresorhus merged commit f3c7542 into sindresorhus:main Feb 1, 2021
@sindresorhus
Copy link
Copy Markdown
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.

2 participants