The html-to-text npm package, designed for converting HTML to plain text, saw a significant update from version 8.2.1 to 9.0.0. Developers upgrading should note some dependency changes. Version 9.0.0 updates the core parser by using newer versions of both htmlparser2 (from 6.1.0 to ^8.0.1) and selderee (from 0.6.0 to ^0.10.0), potentially affecting how HTML is parsed and converted, offering improved parsing capabilities and potentially addressing previous parsing limitations or bugs.
The he and minimist dependencies present in version 8.2.1 have been removed in version 9.0.0. This suggests a possible refactoring of the code to eliminate the need for these specific functionalities which may influence the way some specific HTML entities are handled.
Furthermore, the development environment also went through a refreshment with version 8.2.1 including several tools such as c8, chai, eslint, and mocha for testing and linting, all of these have been removed from version 9.0.0.
The file count within the distribution package also decreased dramatically from 39 to 6, and the unpacked size is reduced from 198211 to 167648, hinting at a more streamlined and potentially more efficient package structure in version 9.0.0. Developers should thoroughly test their existing implementations when upgrading to ensure compatibility with these changes, especially focusing on parsing and dependency impacts.
The are not vulnerabilities for the version 9.0.0 of the package html-to-text