Stream Management: You can now easily manage stream teardown with the new .destroy() method, which emits a close event on the next tick, simplifying your cleanup logic.
Improvements
Documentation: The callback logic is now documented, making it easier to understand how to use through2 with other standard async modules.
Stream Performance: The highWaterMark is set to 16 in objectMode, improving backpressure handling for better performance in streaming scenarios.
Package Size: We trim the contents of the distributed npm package to keep deployments lightweight and efficient.
Readability: Added links to through2-(map|filter|reduce|spy) in the README for easier navigation and understanding of related functionalities.
Fixes
Fix a typo in the README that incorrectly stated 'simple simple', enhancing clarity for users.
Others
Update the xtend dependency to include speed improvements and reduce unnecessary dependencies, ensuring a smoother experience.