fix(SmartDuplex): Fix stream termination when reading from a web readable stream

This commit is contained in:
Philipp Kunz 2024-10-16 02:28:31 +02:00
parent 4fc82d0dc6
commit a225188e24
4 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,10 @@
# Changelog
## 2024-10-16 - 3.2.4 - fix(SmartDuplex)
Fix stream termination when reading from a web readable stream
- Resolved an issue in SmartDuplex where the stream did not properly terminate after reaching the end of a web readable stream.
## 2024-10-16 - 3.2.3 - fix(smartduplex)
Enhance documentation for read function in SmartDuplex

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartstream',
version: '3.2.3',
version: '3.2.4',
description: 'A library to simplify the creation and manipulation of Node.js streams, providing utilities for handling transform, duplex, and readable/writable streams effectively in TypeScript.'
}

View File

@ -68,7 +68,7 @@ export class SmartDuplex<TInput = any, TOutput = any> extends Duplex {
}
reader.releaseLock();
if (done) {
smartDuplex.end();
smartDuplex.push(null);
}
},
});

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartstream',
version: '3.2.3',
version: '3.2.4',
description: 'A library to simplify the creation and manipulation of Node.js streams, providing utilities for handling transform, duplex, and readable/writable streams effectively in TypeScript.'
}