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

Update bottleneck to the latest version 🚀 #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

greenkeeper[bot]
Copy link

@greenkeeper greenkeeper bot commented Jan 14, 2018

Version 2.0.0 of bottleneck was just published.

Dependency bottleneck
Current Version 1.16.0
Type dependency

The version 2.0.0 is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

It might be worth looking into these changes and trying to get this project onto the latest version of bottleneck.

If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.


Release Notes Version 2

Bottleneck Version 2

This new version is almost 100% compatible with Version 1 and it adds some powerful features such as:

  • True Clustering support. You can now rate limit and schedule jobs across multiple Node.js instances. It uses strictly atomic operations to stay reliable in the presence of unreliable clients. 100% of Bottleneck's features are supported.
  • Support for custom job weights. Not all jobs are equally resource intensive.
  • Support for job timeouts. Bottleneck can automatically cancel jobs if they exceed their execution time limit.
  • Many improvements to the interface, such as better method names and errors, improved debugging tools.

Upgrading to v2

The internal algorithms essentially haven't changed from v1, but many small changes to the interface were made to introduce new features.

All the breaking changes:

  • Bottleneck v2 uses ES6/ES2015. v1 will continue to use ES5 only.
  • The Bottleneck constructor now takes an options object.
  • Jobs take an optional options object.
  • Removed submitPriority(), use submit() with an options object instead.
  • Removed schedulePriority(), use schedule() with an options object instead.
  • The rejectOnDrop option is now true by default.
  • Use null instead of 0 to indicate an unlimited maxConcurrent value.
  • Use null instead of -1 to indicate an unlimited highWater value.
  • Renamed changeSettings() to updateSettings(), it now returns a promise to indicate completion. It takes the same options object as the constructor.
  • Renamed nbQueued() to queued().
  • Renamed nbRunning to running(), it now returns its result using a promise.
  • Removed isBlocked().
  • Changing the Promise library is now done through the options object like any other limiter setting.
  • Removed changePenalty(), it is now done through the options object like any other limiter setting.
  • Removed changeReservoir(), it is now done through the options object like any other limiter setting.
  • Removed stopAll(). Use the reservoir feature to disable execution instead.
  • check() now accepts an optional weight argument, and returns its result using a promise.
  • The Cluster feature is now called Group. This is to distinguish it from the new v2 Clustering feature.
  • The Group constructor takes an options object to match the limiter constructor.
  • Renamed the Group changeTimeout() method to updateSettings(), it now takes an options object.

Version 2 is more user-friendly, powerful and reliable.

Commits

The new version differs by 33 commits.

There are 33 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper bot 🌴

greenkeeper bot added a commit that referenced this pull request Jan 16, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Jan 16, 2018

Version 2.0.1 just got published.

Update to this version instead 🚀

Commits

The new version differs by 3 commits.

  • f3bf4ea 2.0.1
  • 6ce6ce9 Merge pull request #46 from martin-helmich/bugfix/no-implicit-any
  • b7679d8 Typings fail with "noImplicitAny" setting

See the full diff

greenkeeper bot added a commit that referenced this pull request Feb 22, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Feb 22, 2018

Version 2.1.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 6 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Mar 13, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 13, 2018

Version 2.2.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 5 commits.

  • 5fc91e1 2.2.0
  • c19b0cf Clustering support for Groups
  • c46deb8 Do not allow Clustering Groups until support is complete
  • 543b42f Event refactor, added group.on('created') event
  • 60dee88 Babel, async event listeners, depleted event arg

See the full diff

greenkeeper bot added a commit that referenced this pull request Mar 18, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 18, 2018

Version 2.2.1 just got published.

Update to this version instead 🚀

Commits

The new version differs by 2 commits.

  • 97feebb 2.2.1
  • 9e368e2 Fixed Cluster edge case, better error for schedule()

See the full diff

greenkeeper bot added a commit that referenced this pull request Mar 24, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 24, 2018

Version 2.2.2 just got published.

Update to this version instead 🚀

Commits

The new version differs by 3 commits.

  • da0ab74 2.2.2
  • a9151ff Fixed Group Cluster key reuse after GC
  • 13e1d6c .on()/.once() must return the event emitter

See the full diff

greenkeeper bot added a commit that referenced this pull request Apr 8, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Apr 8, 2018

Version 2.3.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 2 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request May 19, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented May 19, 2018

Version 2.3.1 just got published.

Update to this version instead 🚀

Commits

The new version differs by 6 commits.

  • 9fd798d 2.3.1
  • 4cfee33 Fix expiration not starting at execution
  • dd8e103 Merge pull request #65 from toddheslin/master
  • 3c76c41 Updated README.md
  • f91e51e Merge pull request #64 from Romain/master
  • 4326003 Fixed a typo

See the full diff

greenkeeper bot added a commit that referenced this pull request Jun 9, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Jun 9, 2018

Version 2.4.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 2 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Jun 16, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Jun 16, 2018

Version 2.5.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 6 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Jul 3, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Jul 3, 2018

Version 2.5.1 just got published.

Update to this version instead 🚀

Release Notes Fixed memory leak
  • Fixed a memory leak where autogenerated job IDs would progressively get longer and take more memory. All users are advised to upgrade to this version. There are no breaking changes.
Commits

The new version differs by 2 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Jul 8, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Jul 8, 2018

Version 2.6.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 3 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Aug 12, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Aug 12, 2018

Version 2.7.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 10 commits.

  • e261a09 2.7.0
  • c1407aa Updated typings for v2.7.0
  • 1842c3e Small Readme improvements
  • 74ac6e0 Document timeout and Redis connection changes for 2.7.0
  • 8c6b3fe Override timeout value for groups
  • 5d7404c Added tests for Group options and timeout
  • 290ffba Fixed expiration bug on Redis when using highWater
  • 52f546d Redis Group connection reuse
  • b3c4a87 Redis connections refactor
  • 3ed05c4 Redis scripts access refactor

See the full diff

greenkeeper bot added a commit that referenced this pull request Aug 13, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Aug 13, 2018

Version 2.7.1 just got published.

Update to this version instead 🚀

Commits

The new version differs by 2 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Aug 17, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Aug 17, 2018

Version 2.7.2 just got published.

Update to this version instead 🚀

Commits

The new version differs by 2 commits.

See the full diff

@greenkeeper
Copy link
Author

greenkeeper bot commented Jan 13, 2019

  • The dependency bottleneck was updated from 1.16.0 to 2.15.2.

Update to this version instead 🚀

Commits

The new version differs by 2 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Jan 13, 2019
greenkeeper bot added a commit that referenced this pull request Jan 15, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Jan 15, 2019

  • The dependency bottleneck was updated from 1.16.0 to 2.15.3.

Update to this version instead 🚀

Commits

The new version differs by 5 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Feb 3, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Feb 3, 2019

  • The dependency bottleneck was updated from 1.16.0 to 2.16.0.

Update to this version instead 🚀

Release Notes for v2.16.0
  • Added limiter.clusterQueued(). Returns the total weight of queued jobs in the Cluster.
  • Fixed an edge case when using Clustering and the BLOCK strategy, after the Cluster entered Blocked mode.
Commits

The new version differs by 9 commits.

  • d332f43 2.16.0
  • ad94e3e Added clusterQueued()
  • 964ea50 Merge pull request #107 from SGrondin/travis
  • 149730e Finished the Travis config
  • 8d3242e Merge pull request #103 from maikelmclauflin/upgrades-and-travis
  • cd9bef5 updated deps
  • 13654f5 Merge pull request #105 from elliot-nelson/enelson/readme-p1
  • 838ccf3 Update README
  • 309dac7 Update README.md

See the full diff

greenkeeper bot added a commit that referenced this pull request Feb 5, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Feb 5, 2019

  • The dependency bottleneck was updated from 1.16.0 to 2.16.1.

Update to this version instead 🚀

Commits

The new version differs by 2 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Feb 10, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Feb 10, 2019

  • The dependency bottleneck was updated from 1.16.0 to 2.16.2.

Update to this version instead 🚀

Commits

The new version differs by 6 commits.

  • 55599dd 2.16.2
  • fa27b60 Update README.md
  • 9d79685 Optimize cluster re-creation
  • 278c1e7 Minor style change
  • 3c81807 Merge pull request #113 from elliot-nelson/enelson/wrap-this
  • 8c2662f Inherit this argument by default in wrapped functions

See the full diff

greenkeeper bot added a commit that referenced this pull request Feb 25, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Feb 25, 2019

  • The dependency bottleneck was updated from 1.16.0 to 2.17.0.

Update to this version instead 🚀

Commits

The new version differs by 7 commits.

  • c929f00 2.17.0
  • 71debfb Optimizations and fixes for clearing clients
  • 582db61 Clear unresponsive clustering clients
  • b82080f Catch sync exceptions in schedule as well
  • 9828465 Merge pull request #116 from elliot-nelson/enelson/promise
  • ecb5c69 Force wrap() to always return a Promise
  • d729c59 Update README.md

See the full diff

greenkeeper bot added a commit that referenced this pull request Mar 3, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 3, 2019

  • The dependency bottleneck was updated from 1.16.0 to 2.17.1.

Update to this version instead 🚀

Commits

The new version differs by 2 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Apr 13, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Apr 13, 2019

  • The dependency bottleneck was updated from 1.16.0 to 2.18.0.

Update to this version instead 🚀

Commits

The new version differs by 3 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request May 11, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented May 11, 2019

  • The dependency bottleneck was updated from 1.16.0 to 2.18.1.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Jun 1, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Jun 1, 2019

  • The dependency bottleneck was updated from 1.16.0 to 2.19.0.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Jun 8, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Jun 8, 2019

  • The dependency bottleneck was updated from 1.16.0 to 2.19.1.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Jul 6, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Jul 6, 2019

  • The dependency bottleneck was updated from 1.16.0 to 2.19.2.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Jul 16, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Jul 16, 2019

  • The dependency bottleneck was updated from 1.16.0 to 2.19.3.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Jul 17, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Jul 17, 2019

  • The dependency bottleneck was updated from 1.16.0 to 2.19.4.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Aug 3, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Aug 3, 2019

  • The dependency bottleneck was updated from 1.16.0 to 2.19.5.

Update to this version instead 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants