Ternary-stream is a Node.js package designed to conditionally route data within a stream pipeline, effectively creating forks based on a given condition and subsequently merging the results. Version 2.0.0 introduces notable dependency updates, enhancing compatibility and leveraging newer stream functionalities. Specifically, it replaces duplexer2 with duplexify (version ^3.4.2), upgrades merge-stream to version ^1.0.0, and adopts through2 version ^2.0.0. These updates suggest a move toward more modern stream implementations and potentially improved performance or stability.
Conversely, version 1.2.3 relies on older dependencies like duplexer2 (~0.0.2), merge-stream (~0.1.6), and through2 (~0.6.3). Developers should consider the implications of these dependency differences, especially regarding compatibility with their existing project's dependency tree. The jump in through2 versions is particularly significant, as it might involve breaking changes in how streams are transformed.
While both versions maintain the core functionality of conditional stream forking, version 2.0.0's adoption of newer stream libraries promises better integration with contemporary Node.js stream patterns. Developers starting new projects or seeking to modernize their stream processing pipelines might prefer version 2.0.0, while those working on older projects with strict dependency constraints might find version 1.2.3 more suitable. Both versions utilize fork-stream at a similar version, indicating the core forking logic remains consistent. The updated development dependencies such as jshint, mocha and should also point to a more modern development and testing setup in the 2.0.0 version.
The are not vulnerabilities for the version 2.0.0 of the package ternary-stream