Skip to content

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

Merged
sindresorhus merged 1 commit intosindresorhus:mainfrom
thecodedrift:jakobo/32
Aug 31, 2023
Merged

[breaking] feat: Moves minimumWait to wait and updates to LTS only#33
sindresorhus merged 1 commit intosindresorhus:mainfrom
thecodedrift:jakobo/32

Conversation

@thecodedrift
Copy link
Copy Markdown
Contributor

@thecodedrift thecodedrift 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)

@thecodedrift thecodedrift force-pushed the jakobo/32 branch 2 times, most recently from 8848211 to 5ee154e Compare August 28, 2023 18:43
@thecodedrift thecodedrift 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
@thecodedrift thecodedrift marked this pull request as ready for review August 30, 2023 00:27
@sindresorhus
Copy link
Copy Markdown
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)
@thecodedrift
Copy link
Copy Markdown
Contributor Author

thecodedrift 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
@thecodedrift thecodedrift 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