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
- Remove
promised-lifestream from package.json dependencies
- Replace imports/requires of
promised-lifestream with stream/promises
- Update any code that uses promised-lifestream APIs to use the equivalent stream/promises APIs
- Update tests to verify functionality remains intact
- 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
Description
This issue proposes removing the
promised-lifestreamdependency and replacing it with Node.js built-instream/promisesmodule.Motivation
stream/promisesmoduleProposed Changes
promised-lifestreamfrom package.json dependenciespromised-lifestreamwithstream/promisesImplementation Notes
The
stream/promisesmodule provides utilities like:pipeline()- for connecting streams with promise supportfinished()- for waiting for a stream to completeTransform,Readable,Writablewith promise supportAcceptance Criteria