Skip to content

Replace promised-lifestream dependency with stream/promises #10

@tilfin

Description

@tilfin

Description

This issue proposes removing the promised-lifestream dependency and replacing it with Node.js built-in stream/promises module.

Motivation

  • Reduce external dependencies: Node.js now provides native promise-based stream utilities in the stream/promises module
  • Better maintenance: Using built-in modules reduces the risk of security vulnerabilities and maintenance overhead
  • Performance: Native implementations are typically more optimized
  • Compatibility: Ensures better long-term compatibility with Node.js updates

Proposed Changes

  1. Remove promised-lifestream from package.json dependencies
  2. Replace imports/requires of promised-lifestream with stream/promises
  3. Update any code that uses promised-lifestream APIs to use the equivalent stream/promises APIs
  4. Update tests to verify functionality remains intact
  5. Update documentation if needed

Implementation Notes

The stream/promises module provides utilities like:

  • pipeline() - for connecting streams with promise support
  • finished() - for waiting for a stream to complete
  • Transform, Readable, Writable with promise support

Acceptance Criteria

  • promised-lifestream dependency removed from package.json
  • All functionality using promised-lifestream migrated to stream/promises
  • All existing tests pass
  • No breaking changes to public API
  • Documentation updated if necessary

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions