New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

batch-cluster

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

batch-cluster - npm Package Versions

1
10

5.1.0

Diff

Changelog

Source

v5.1.0

  • ChildProcessFactory supports thunks that return either a ChildProcess or Promise<ChildProcess>
  • 📦 Update deps
mceachen
published 5.0.1 •

Changelog

Source

v5.0.1

  • 📦 Update deps
  • 📦 re-run prettier
mceachen
published 5.0.0 •

Changelog

Source

v5.0.0

  • 💔 The rejectTaskOnStderr API, which was added in v4.1.0 and applied to all tasks for a given BatchCluster instance, proved to be a poor decision, and has been removed. The Parser API, which is task-specific, now receives both stdin and stderr streams. Parsers then have the necessary context to decide what to do on a per task or per task-type basis.
  • 🐞 In previous versions, batch processes were recycled if any task had any type of error. This version allows pids to live even if they emit data to stderr.
mceachen
published 4.3.0 •

Changelog

Source

v4.3.0

  • ✨ If your tasks return interim progress and you want to capture that data as it happens, BatchCluster now emits taskData events with the data and the current task (which may be undefined) as soon as the stream data is emitted.
  • 📦 Pulled in latest dependency versions
mceachen
published 4.2.0 •

Changelog

Source

v4.2.0

  • 📦 In the interests of less noise, the default logger is now the NoLogger. Consumers may use the ConsoleLogger or another Logger implementation as they see fit.
mceachen
published 4.1.0 •

Changelog

Source

v4.1.0

  • ✨ Support for demoting task errors from stderr emissions: BatchProcess.rejectTaskOnStderr is a per-task, per-error predicate which allows for a given error to be handled without always rejecting the task. This can be handy if the script you're wrapping (like ExifTool) writes non-fatal warnings to stderr.
  • BatchProcessOptions.pass and BatchProcessOptions.fail can be RegExp instances now, if you have more exotic parsing needs.
mceachen
published 4.0.0 •

Changelog

Source

v4.0.0

  • 💔 Using Node 8+ to determine if a process is running with kill(pid, 0) turns out to be unreliable (as it returns true even after the process exits). I tried to pull in the best-maintained "process-exists" external dependency, but that pulled in 15 more modules (this used to be a zero-deps module), and it was extremely unperformant on Windows.

    The TL;DR: is that running(pid) now returns a Promise<boolean>, which had far-reaching signature changes to accomodate the new asynchronicity, hence the major version bump.

  • 💔 In an effort to reduce this library's complexity, I'm removing retry functionality. All parameters associated to retries are now gone.

  • ✨ Internal state validation is now exposed by BatchCluster, and is used by tests to ensure no internal errors happen during integration tests. Previously these errors were simply logged.

mceachen
published 3.2.0 •

Changelog

Source

v3.2.0

  • 📦 New Logger methods, withLevels, withTimestamps, and filterLevels were shoved into a new Logger namespace.
mceachen
published 3.1.0 •

Changelog

Source

v3.1.0

  • ✨ Added simple timestamp and levels logger prefixer for tests
  • 🐞 Errors rethrown via BatchProcess now strip extraneous Error: prefixes
  • 🐞 For a couple internal errors (versionCommend startup errors and internal state inconsistencies on onExit that aren't fatal), we now log .error rather than throw Error() or ignore.
mceachen
published 3.0.0 •

Changelog

Source

v3.0.0

  • ✨/💔 Task promises are only rejected with Error instances now. Note that also means that BatchProcessObserver types are more strict. It could be argued that this isn't an API breaking change as it only makes rejection values more strict, but people may need to change their error handling, so I'm bumping the major version to highlight that. Resolves #3. Thanks for the issue, Nils Knappmeier!
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