Skip to content

Releases: grimmbraten/all-aboard

v2.0.0

28 Jul 13:16
Compare
Choose a tag to compare

BREAKING CHANGES

Shared arguments are no longer passed as separate arguments to the sequence or parallel functions.

await sequence(asyncFuncArr, "foo", "bar");

These shared arguments are now instead passed as an array in a single argument.

await sequence(asyncFuncArr, ["foo", "bar"]);

Other changes

  • Error handling for incorrect values for parameters has been improved.
  • The sequence function now accepts an eject boolean (defaults to false) that determines if it should eject back on the main thread if it encounters a rejection.
  • The responses for both functions have been improved and follow the Promise.allSettled() response structure.
  • The README documentation has been updated to better explain the functions, different use-cases, and argument handling.

v1.0.0

28 Jul 12:53
Compare
Choose a tag to compare

The first release of the all-aboard npm package. The small Javascript library that helps you run sequence and/or parallel asynchronous functions with ease.