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

[breaking] feat: Moves minimumWait to wait and updates to LTS only #33

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

jakobo
Copy link
Contributor

@jakobo jakobo commented Aug 28, 2023

There's been ongoing discussion in the original PR and in #32 about naming the "wait" value. At registration time, it's the minimum amount of time a function waits, but at gracefulExit, it's the largest minimum wait value. To eliminate this confusion, the option was renamed to "wait" and the documentation was updated to reflect this.

Because this is a breaking change, we're also co-introducing the LTS changes. It can be split off into a separate PR if desired, but it did not add substantial complexity to this PR.

BREAKING CHANGES (forces major bump):

  • minimumWait is now wait
  • Package requires Node 18+ (currently supported LTS)

@jakobo jakobo force-pushed the jakobo/32 branch 2 times, most recently from 8848211 to 5ee154e Compare August 28, 2023 18:43
@jakobo jakobo changed the title [draft] feat: Moves minimumWait to wait and updates to LTS only [breaking] feat: Moves minimumWait to wait and updates to LTS only Aug 30, 2023
@jakobo jakobo marked this pull request as ready for review August 30, 2023 00:27
package.json Show resolved Hide resolved
@sindresorhus
Copy link
Owner

There are still mentions of minimumWait.

There's been ongoing discussion in the original PR and in sindresorhus#32 about
naming the "wait" value. At registration time, it's the minimum amount
of time a function waits, but at `gracefulExit`, it's the largest
minimum wait value. To eliminate this confusion, the option was renamed
to "wait" and the documentation was updated to reflect this.

Because this is a breaking change, we're also co-introducing the LTS
changes. They can be split off into a separate PR if desired, but it
did not add subtantial complexity to this PR.

BREAKING CHANGES:
* `minimumWait` is now `wait`
* Package requires Node 18+ (currently supported LTS)
@jakobo
Copy link
Contributor Author

jakobo commented Aug 30, 2023

That's on me. I forgot index.d.ts wasn't auto-generated. Force pushed after doing a grep and ensuring docs matched code.

Also, are you ok bundling this + the LTS change as 4.0 (requires node 18+)?

@sindresorhus sindresorhus merged commit 46baeec into sindresorhus:main Aug 31, 2023
2 checks passed
@jakobo jakobo deleted the jakobo/32 branch August 31, 2023 18:37
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