async-done

Allows libraries to handle various caller provided asynchronous functions uniformly. Maps promises, observables, child processes and streams, and callbacks to callback style.

MIT License

Downloads
6.5M
Stars
69
Committers
13

Bot releases are visible (Hide)

async-done - async-done v2.0.0 Latest Release

Published by github-actions[bot] over 2 years ago

⚠ BREAKING CHANGES

  • Allow end-of-stream to handle the stream error states
  • Normalize repository, dropping node <10.13 support (#54)

Bug Fixes

  • Allow end-of-stream to handle the stream error states (7b37da4)
  • Ensure the Observable failure test works (#59) (dfa4f0b)

Miscellaneous Chores

  • Normalize repository, dropping node <10.13 support (#54) (66f987f)
async-done - v1.3.2

Published by phated over 5 years ago

Docs

  • Fix links to RxJS methods in README (457ac2a) - Closes #48

Upgrade

  • Update process-nextick-args to 2.0.0 (dce44f6) - Closes #51 #52

Scaffold

  • Update repository template (7bb1473)
  • Move custom links to bottom of README (5e1b0b1)
async-done - v1.3.1

Published by phated over 6 years ago

Fix

async-done - v1.3.0

Published by phated over 6 years ago

New

Build

  • Add node 8 & 10 to build matrix (408cd24)
async-done - v1.2.4

Published by phated almost 7 years ago

Fix

  • Wrap callback call in try/catch and rethrow async (11fffe0) - Closes #45 #46

Build

  • Enforce consistent line endings (2b8ad61)
async-done - https://github.com/gulpjs/async-done/releases/tag/v1.2.3

Published by phated about 7 years ago

Fix

  • Avoid swallowing thrown errors in callback argument (204de69) - Closes #43
  • Callback with an error even if Promise is rejected with nothing (77d00f9) - Closes #42

Docs

Scaffold

async-done - https://github.com/gulpjs/async-done/releases/tag/v1.2.2

Published by phated over 8 years ago

Upgrade

  • Bump next-tick to ^1.0.0 (77efe34)
async-done - https://github.com/gulpjs/async-done/releases/tag/v1.2.1

Published by phated over 8 years ago

Update

  • Switch to mocha + expect for testing (7d40dfb)

Docs

  • Add note about event-stream being unsupported (0095812) - Closes #19

Build

  • Add eslint and jscs presets & update code (3e8e9fd)

Scaffold

  • Normalize readme/description/license/config (7b66aab)
async-done - https://github.com/gulpjs/async-done/releases/tag/v1.1.1

Published by phated over 8 years ago

Fix

  • Change & tests for failing child processes (0224d42) - Closes #24

Scaffold

  • Remove leftover jshint-stylish devDep (8d4d04c)
async-done - https://github.com/gulpjs/async-done/releases/tag/v1.1.0

Published by phated over 8 years ago

Update

  • Support multiple parameters to the final callback (48b1be9) - Closes #23

Docs

Upgrade

  • Update once/stream-exhaust/lab/code/rx/through2/when, switch to eslint & test on newer versions of node (4fd43f4)
async-done - https://github.com/gulpjs/async-done/releases/tag/v0.4.0

Published by phated over 8 years ago

Fix

  • Ensure stream is flowing using stream-exhaust module (b6b297f) - Closes #11

Update

  • Reduce object creation for end-of-stream options (f0541f3)
  • Cleanup domain listeners when done is called (95a1ea6)
async-done - https://github.com/gulpjs/async-done/releases/tag/v1.2.0

Published by phated over 8 years ago

New

  • Added support for returning the last state of an observable (9852b3d)

Upgrade

async-done - https://github.com/gulpjs/async-done/releases/tag/v1.0.0

Published by phated over 8 years ago

New

  • Bump end-of-stream to support returning child processes (03db4b3) - Closes #9

Update

  • Convert tests from tap to lab (c81677d) - Closes #12

Docs

  • Note child process support (3a155d2)
  • Fix mistake in usage section (cad2947)

Upgrade

  • Update end-of-stream/lab/rx/through2/when & switch to new lab API (df4f692)

Scaffold

  • Use files property in package.json & ignore .DS_Store (bf39060)
  • Consistency with other repos (45b7ac9) - Closes #15 #16
async-done - https://github.com/gulpjs/async-done/releases/tag/v0.1.0

Published by phated over 8 years ago

Breaking

  • Sync functions no longer error, Add tests (9a6e5d2)

New

Docs

Scaffold

async-done - https://github.com/gulpjs/async-done/releases/tag/v0.3.0

Published by phated over 8 years ago

Breaking

  • Remove sync function support (946186b)

Fix

  • Use .once instead of .on to fix memory leak (aa0ffca) - Closes #1

Update

  • Add rxjs support (6e27bda) - Closes #3
  • Ensure callback is only called once (41c5dc8)
  • Always use null for error argument (dbccd76)
  • Use next-tick module for setImmediate shim (a1a782c)
  • Always use null for error & check .on method instead of instance (54826f0)
  • Use end-of-stream module to handle all stream completion (b3b1155)

Docs

  • Note rxjs support & detail completion/error resolution (23ee977)
  • Use better names in API documentation & add note about sync functions being unsupported (7ebd280)
  • Clarify sync function usage (ef9b517)

Build

async-done - https://github.com/gulpjs/async-done/releases/tag/v0.2.0

Published by phated over 8 years ago

Update

  • Include results in the callback (c75e68c)

Docs

  • Expand upon onComplete & mention the results being passed to callback (847a7f0)