[Snyk] Upgrade bottleneck from 2.17.1 to 2.19.5 #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade
bottleneck
from 2.17.1 to 2.19.5.Release notes
light
bundle, it would broadcast a lot of annoying but harmless exceptions on the error listener. Thank you @richtera for the excellent bug report #127The
"failed"
event listener typings did not allow returningundefined
/null
orPromise<undefined>
/Promise<null>
.Thank you @dobesv for your contribution!
received
,queued
,scheduled
,executing
anddone
.They map to Jobs Lifecycle transitions. These events are local to a limiter inside a Cluster, for performance reasons.
Thank you @lp-wodell for the feature suggestion! #124
This massive gain is thanks to a refactor of the engine internals. The behavior of this module should be unchanged. If Bottleneck 2.18.1 behaves differently from 2.18.0 in your application, please open an issue.
catch
would not trigger the Node.js "Unhandled Promise Rejection" warning.This has been fixed and Node now correctly alerts you, as this points to a bug in your application. async/await users: wrap your jobs into a try/catch at the place where the job is
await
'ed. Promise users: make sure your jobs have a.catch()
.Added Increase Intervals. Similar to the Refresh Interval, it increases a limiter's
reservoir
on an interval. Instead of resetting the reservoir to a specific value, it increments the reservoir by a certain value, up to an optional maximum value.Thanks @TheGame2500 and @tomblanchard for suggesting this feature.
Optimized Clustering code for use cases where short lived clients are created at a high rate.
from
bottleneck
GitHub Release Notes馃 View latest project report
馃洜 Adjust upgrade PR settings
馃敃 Ignore this dependency or unsubscribe from future upgrade PRs