Version 8.0.0 of the html-to-text package introduces notable changes compared to version 7.1.3, impacting developers using this utility for converting HTML content to plain text. One key distinction lies in the dependencies. Version 8.0.0 incorporates @selderee/plugin-htmlparser2 and selderee as dependencies, enhancing the library's parsing capabilities and potentially offering more flexible or robust HTML handling. Version 7.1.3 lacks these dependencies.
The introduction of @selderee/plugin-htmlparser2 may unlock new functionalities or improve the accuracy of text extraction from complex HTML structures. Conversely, version 7.1.3 relies on a leaner set of dependencies, potentially making it suitable for environments where minimizing dependencies is a priority.
While both versions maintain deepmerge, he, and htmlparser2 dependencies, the minimist dependency differs slightly, with version 8.0.0 using "^1.2.5" and version 7.1.3 requiring "^1.2.6". This minor version deviation might indicate bug fixes or minor feature enhancements in the more recent version of minimist.
The developer workflow appears to evolve with the newer version, with updates to eslint and eslint plugins, potentially improving code quality and maintainability. The chai dependency is also updated. Importantly, version 7.1.3 was released significantly later than v8.0.0 (July 2022 vs June 2021). Developers should evaluate whether benefits of newer release date and dependency upgrades in v7.1.3 outweigh the new parsing options added in v8.0.0.
The are not vulnerabilities for the version 8.0.0 of the package html-to-text