This Node.js module provides a helper that calls a callback when a readable, writable, or duplex stream completes or fails. It is useful for reliably detecting when streams end or error, including early close behavior, and it supports legacy stream types.
Project status
- Maintenance status: The repo appears quiet/dormant today, with the last upstream push on 2025-06-16, about 14 months ago (no evidence of continued active maintenance since then).
- Update cadence: Historical updates show bursty maintenance (not a steady stream), with a long gap between v1.4.4 (2019-09-25) and v1.4.5 (2025-06-16), indicating no regular release rhythm in recent years.
AI summary generated
Recent updates
v1.4.5
Release v1.4.5 contains a small runtime scheduling change in index.js, plus CI configuration and a version bump. No release notes were provided, so the functional impact of the code change needs to be inferred from the diff.
v1.4.4
Release v1.4.4 updates the end-of-stream behavior around stream 'close' handling. The release notes are not provided, so changes in behavior cannot be confirmed as documented.
v1.4.3
Release v1.4.3 contains no documented release notes. The code change is limited to a small modification in the onclose logic in index.js, affecting when the library reports an error with message 'premature close'.
v1.4.2
v1.4.2 makes a small behavioral change to how end-of-stream determines when a stream close is premature, and it updates the project’s test setup. The release notes are not provided, so the only concrete change surfaced here is a code path update in index.js plus corresponding new/changed test expectations.
Breakingv1.4.1
Release v1.4.1 makes a small internal change in end-of-stream (index.js) related to how 'error' event handling is wired. The release notes are not provided, so this change is not documented externally.
v1.4.0
v1.4.0 contains minimal changes. The only functional modification visible in the diff is to the npm packaging configuration in package.json, alongside the standard version bump from 1.3.0 to 1.4.0.
v1.3.0
Release v1.3.0 updates the package metadata and adjusts the dependency version range for the 'once' package. No release notes were provided by the publisher, so all functional expectations must be inferred from the code diff.
v1.2.0
Release v1.2.0 contains minimal code changes. The main behavioral change is that the completion callback is now invoked with `this` bound to the stream instance, and tests and README were updated to reflect that expectation.
Featuresv1.1.0
This release (v1.1.0) changes the end-of-stream detection logic to add explicit handling for Node.js ChildProcess objects. It also updates the test suite to cover both child_process.exec and child_process.spawn behavior.
v1.0.0
Release v1.0.0 was published on 2014-07-21, but no release notes were provided by the publisher. No details are available here about new functionality, fixes, breaking changes, or dependency updates.