timdp / winston-aws-cloudwatch

A Winston transport for Amazon CloudWatch.
MIT License
47 stars 13 forks source link

Update bottleneck to the latest version πŸš€ #78

Open greenkeeper[bot] opened 6 years ago

greenkeeper[bot] commented 6 years ago

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](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).

Your Greenkeeper bot :palm_tree:

greenkeeper[bot] commented 6 years ago

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] commented 6 years ago

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] commented 6 years ago

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] commented 6 years ago

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] commented 6 years ago

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] commented 6 years ago

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] commented 6 years ago

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] commented 6 years ago

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] commented 6 years ago

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] commented 6 years ago

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] commented 6 years ago

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] commented 6 years ago

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] commented 6 years ago

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] commented 6 years ago

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[bot] commented 6 years ago

Version 2.8.0 just got published.

Update to this version instead πŸš€

Commits

The new version differs by 5 commits.

See the full diff

greenkeeper[bot] commented 6 years ago

Version 2.9.0 just got published.

Update to this version instead πŸš€

Release Notes v2.9.0
  • Added support for pubsub across the Cluster. Use the publish() method and listen to the message event on a limiter.
  • Removed the need to wait for the ready() promise to complete before issuing commands. The commands will be queued until the limiter successfully connects. Make sure to listen to the error event to handle connection errors.
  • Added the jobs() method to return a list of job ids in a specific state.
  • Fixed an edge case with certain methods (like check()) when a Group key is recreated after timing out.
Commits

The new version differs by 9 commits.

See the full diff

greenkeeper[bot] commented 6 years ago

Update to this version instead πŸš€

Release Notes for v2.10.0
  • Added the done() method which returns the total weight of completed jobs across the Cluster.
  • Added a new "Reservoir Refresh" feature. Every reservoirRefreshInterval, the reservoir value is automatically reset to reservoirRefreshAmount.
  • Fixed a number of edge cases with Clustering and improved its performance.

It is strongly recommended to upgrade to this version if you are using Clustering.

Commits

The new version differs by 19 commits.

  • 20a9cf4 2.10.0
  • 7a745d6 Updated README and typings for v2.10.0
  • af68723 Redis Cluster optimizations
  • e7ead7b Implemented reservoir refresh
  • 2dd4093 incrementReservoir now returns the new value
  • 1c8168a Added heartbeat
  • da73245 Refactor Lua 'now' value, fix minor race condition
  • 29b5cae Refactor of the 'capacity' internals
  • 9f67c64 Removed CS header
  • 9b73a24 Added basic migration system
  • 7cd1cc7 More tests and improvements to Clustering
  • cc4c0fd Fixed race condition in Clustering
  • 6d3cbf7 Clear lost jobs at connection
  • 92f6d62 Redis memory optimization, test improvements
  • cb6b7bb Small refactor of Redis connections

There are 19 commits in total.

See the full diff

greenkeeper[bot] commented 6 years ago

Update to this version instead πŸš€

Commits

The new version differs by 9 commits.

See the full diff

greenkeeper[bot] commented 6 years ago

Update to this version instead πŸš€

Release Notes for v2.11.1
  • Fixed an issue with reservoir refresh where the very first refresh would happen too early.
  • Reduced the heartbeat for local datastores to 250ms. It is still 5000ms for redis/ioredis datastores. This allows local limiters to set a reservoirRefreshInterval value as low as 250ms.
Commits

The new version differs by 3 commits.

  • 09bf225 2.11.1
  • fc83f0f Fixed issue with reservoir refresh, lowered heartbeat for local datastore
  • a33536a Updated README

See the full diff

greenkeeper[bot] commented 6 years ago

Update to this version instead πŸš€

Commits

The new version differs by 4 commits.

  • 1453f24 2.11.2
  • 31b0f87 Drop all queued in cluster when entering blocked
  • fe58d42 Refactored queues for auto ref/unref
  • d2823dc Updated README

See the full diff

greenkeeper[bot] commented 6 years ago

Update to this version instead πŸš€

Commits

The new version differs by 4 commits.

See the full diff

greenkeeper[bot] commented 6 years ago

Update to this version instead πŸš€

Release Notes for v2.12.1
  • Optimized and improved accuracy of Batching
Commits

The new version differs by 2 commits.

See the full diff

greenkeeper[bot] commented 6 years ago

Update to this version instead πŸš€

Release Notes for v2.12.2
  • Added Bottleneck.BottleneckError to the TypeScript typings file.
Commits

The new version differs by 3 commits.

See the full diff

greenkeeper[bot] commented 6 years ago

Update to this version instead πŸš€

Release Notes for v2.13.0
  • Added support for ES5 in Bottleneck v2. import Bottleneck from "bottleneck/es5";
Commits

The new version differs by 9 commits.

See the full diff

greenkeeper[bot] commented 6 years ago

Update to this version instead πŸš€

Commits

The new version differs by 3 commits.

  • 84570c7 2.13.1
  • 1a1bd62 Fix key expiration issues with Groups+Clustering
  • f32b02c Fix scope capture memory leak

See the full diff

greenkeeper[bot] commented 6 years ago

Update to this version instead πŸš€

Release Notes for v2.13.2
  • Fixed an edge case where limiter.updateSettings() would fail when using Clustering and both maxConcurrent and reservoir are null after applying the new settings.
Commits

The new version differs by 2 commits.

  • 1773b07 2.13.2
  • 9891793 Fix error when updating capacity to be infinite

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Commits

The new version differs by 15 commits.

  • d944d98 2.14.0
  • 5821d9c Renamed process_tick output
  • 291ef96 Replaced apply() with array spreads
  • 2c28e43 Updated README.md
  • c2912ee Minor changes
  • 5598554 Spread Cluster load efficiently
  • d85f087 Added group.clusterKeys()
  • dc60a7c Added test for null capacity bug
  • b2dd746 Merge branch 'master' into next
  • 0f5ab1e Delete Redis keys from Group even when local limiter not present
  • c0b2e5a Merge branch 'master' into next
  • 24a6d9b Track client queue length in cluster state
  • 67e570c Track weights running on each cluster client
  • 4fe6d06 Minor fixes
  • 89b6ba6 Minor changes

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Commits

The new version differs by 5 commits.

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Commits

The new version differs by 3 commits.

  • 4b5ddf0 2.15.0
  • 1ba3c83 Renamed bundle config to es5 config
  • ca39b7f Support retries, capture result from event listeners

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Commits

The new version differs by 7 commits.

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Commits

The new version differs by 2 commits.

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Commits

The new version differs by 5 commits.

See the full diff

greenkeeper[bot] commented 5 years ago

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] commented 5 years ago

Update to this version instead πŸš€

Commits

The new version differs by 2 commits.

See the full diff

greenkeeper[bot] commented 5 years ago

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] commented 5 years ago

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] commented 5 years ago

Update to this version instead πŸš€

Commits

The new version differs by 2 commits.

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Commits

The new version differs by 3 commits.

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€