Socket
Socket
Sign inDemoInstall

taskgroup

Package Overview
Dependencies
Maintainers
1
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

taskgroup - npm Package Versions

1
14

4.0.4

Diff

Changelog

Source

v4.0.4 2014 August 3

  • Added the ability to turn off using domains by setting the new task option domain to false (defaults to true)
  • Added the ability to turn off using ambi by setting the new task option ambi to false (defaults to true)
balupton
published 4.0.3 •

Changelog

Source

v4.0.3 2014 July 11

  • Use setImmediate instead of nextTick to avoid (node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral. errors
  • Updated dependencies
balupton
published 4.0.2 •

Changelog

Source

v4.0.2 2014 June 18

  • Added support for done, whenDone, onceDone, once, and on configuration options
balupton
published 4.0.1 •

Changelog

Source

v4.0.1 2014 June 16

  • Fixed Recursive process.nextTick detected error (regression since v4.0.0)
balupton
published 4.0.0 •

Changelog

Source

v4.0.0 2014 June 16

  • Significant rewrite with b/c breaks
    • Completion listeners should now be accomplished via .done(listener) (listens once) or .whenDone(listener) (listener persists)
      • These methods are promises in that they will execute the listener if the item is already complete
      • They listen for the done event
    • The execution of tasks and groups have had a great deal of investment to ensure execution is intuitive and consistent across different use cases
      • Refer to to src/lib/test/taskgroup-usage-test.coffee for the guaranteed expectations across different scenarios
    • In earlier versions you could use tasks.exit() during execution to clear remaning items, stop execution, and exit, you can no longer do this, instead use the completion callback with an error, or call tasks.clear() then the completion callback
    • Refer to the new public api docs for the latest usage
  • Changes
    • complete event is now completed, but you really should be using the new done event or the promise methods
    • run event is now started
    • A lot of internal variables and methods have had their functionality changed or removed, if a method or variable is not in the public api, do not use it
    • There is now a default error and completed listener that will emit the done event if there are listeners for it, if there is no done event listeners, and an error has occured, we will throw the error
    • Tasks and groups will now only receive a default name when required, this is to prevent set names from being over-written by the default
    • Adding of tasks and groups to a group instance will now return the group instance rather than the added tasks to ensure chainability, if you want the created tasks, use .createTask(...) and .createGroup(...) instead, then add the result manually
  • Introductions
    • passed, failed, destroyed events are new
    • Task only
      • new timeout option that accepts a number of milliseconds to wait before throwing an error
      • new onError option that defaults to 'exit' but can also accept 'ignore' which will ignore duplicated exit errors (useful when combined with timeout event)
    • TaskGroup only
      • new onError option that defaults to 'exit' but can also accept 'ignore' which will ignore all task errors
      • new setNestedConfig(config) and setNestedTaskConfig(config) options to set configuration for all children
balupton
published 3.4.0 •

Changelog

Source

v3.4.0 2014 May 8

  • Added context option for Task, to perform a late bind on the method
  • Asynchronous task methods can now accept optional arguments thanks to new ambi version
  • Updated dependencies
balupton
published 3.3.9 •

Changelog

Source

v3.3.9 2014 May 4

  • Added extendonclass support
  • Added Task.create and TaskGroup.create helpers
  • Will no longer fail if an invalid argument is passed as configuration
  • Updated dependencies
balupton
published 3.3.8 •

Changelog

Source

v3.3.8 2014 February 5

  • More descriptive error when a task is fired without a method to fire
balupton
published 3.3.7 •

Changelog

Source

v3.3.7 2014 January 30

  • Improvements around adding tasks to task groups and passing arguments to Task and TaskGroup constructors
balupton
published 3.3.6 •

Changelog

Source

v3.3.6 2013 November 29

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc