Skip to content

Releases: samrith-s/concurrent-tasks

v1.0.0

16 Dec 22:06
Compare
Choose a tag to compare

🙌🏼 v1.0.0 Major Release!

Leading up to this release, Concurrent Tasks has undergone quite a bit of changes. The aim has still been the same: to provide a super lightweight, independent and simplistic package which will help in solving at least some of your problems.

The complete documentation for Concurrent Tasks is on the website. Thanks a lot to js.org and @indus for providing the free subdomain. Shoutout to Gitbook (@GitBookIO), for the awesome editor which made writing the documentation for Concurrent Tasks a breeze!

👨🏻‍🎤 Change Log

  • Added more detailed checks and warnings on setConcurrency.
  • Added new methods:
    • addFirst: Add to the beginning of the task list.
    • addMultipleFirst: Add multiple to the beginning of the task list.
    • removeFirst: Remove the first item in the task list.
    • removeAt: Remove at a particular index of the task list.
    • isBusy: Retrieve the idle state of the instance.
  • add, addMultiple and remove now accept a parameter to add/remove to/from the beginning of the list.
  • Added onAdd callback configuration attribute.
  • Fixed a bug where tasks.total was not updated appropriately upon removal.

v0.0.11

16 Dec 21:52
Compare
Choose a tag to compare

👨🏻‍🎤 Change Log

  • Tasks will be executed to fill remaining slots on setConcurrency and start.
  • Total count now adds to the existing tasks.total.

v0.0.10

16 Dec 21:49
Compare
Choose a tag to compare

👨🏻‍🎤 Change Log

  • Fix bug where adding multiple tasks to tasks.list with existing tasks doesn't update tasks.total properly.

v0.0.9

16 Dec 21:47
Compare
Choose a tag to compare

👨🏻‍🎤 Change Log

  • Fix bug with addMultiple overwriting tasks object completely while updating tasks.list and tasks.total.
  • start now iterates over tasks.list and executes tasks until concurrency limits are fulfilled.

v0.0.8

16 Dec 21:43
Compare
Choose a tag to compare

👨🏻‍🎤 Change Log

  • Removed resetting of tasks.total to 0 on completion of all tasks in tasks.list

v0.0.7

16 Dec 21:41
Compare
Choose a tag to compare

👨🏻‍🎤 Change Log

  • tasks.total is set to 0 if no more tasks present in tasks.list.

v0.0.6

16 Dec 21:37
Compare
Choose a tag to compare

👨🏻‍🎤 Change Log

  • Added setConcurrency method to update concurrency limit while tasks running.

v0.0.5

16 Dec 21:17
Compare
Choose a tag to compare

👨🏻‍🎤 Change Log

  • Default exported class name changed from ConcurrentTasks to TaskRunner.
  • __working flag is set to false appropriately on change of state from busy to idle.
  • Properly check and execute onStart only if it is a function and ignore otherwise.

v0.0.4

16 Dec 21:04
Compare
Choose a tag to compare

The live examples are hosted on GitHub pages.

👨🏻‍🎤 Change Log

  • Each instance of ConcurrentTask has a unique name attribute.
  • Name attribute is customisable during
  • ConcurrentTask has a static runnerCount value, which maintains a count of instances.

v0.0.3

16 Dec 20:45
Compare
Choose a tag to compare

👨🏻‍🎤 Change Log

  • add and addMultiple require a function or an array of functions respectively.
  • add and addMultiple throw appropriate TypeErrors if the arguments don't meet the criteria.
  • addMultiple now adds to the task list, rather than directly replacing it.
  • Proper log utility, along with a map of log statements, added for better debugging.