The xml-name-validator package, designed to ensure strings adhere to XML naming conventions, saw a significant update with the release of version 3.0.0, succeeding the earlier 2.0.1. Developers considering this library should note key differences between the two versions.
Version 3.0.0 introduces a change in tooling, replacing jscs and jshint with eslint for code linting, reflecting a move towards more modern JavaScript development practices. This likely implies adherence to newer ECMAScript standards and potentially improved code maintainability. A crucial shift also occurs in the licensing, transitioning from the permissive WTFPL license in version 2.0.1 to the more common and business-friendly Apache-2.0 license in version 3.0.0. This change is important for projects with specific licensing requirements or concerns.
Furthermore, the newer version features an updated repository URL using the 'git+' prefix, which might offer slight performance improvements when cloning the repository. The release dates indicate a considerable time gap, with version 3.0.0 released in late 2017, while version 2.0.1 dates back to early 2015. This suggests that version 3.0.0 incorporates several years of updates, potential bug fixes, and enhancements. Developers should prefer version 3.0.0 for enhanced code quality (thanks to eslint), a more standard license, and the likelihood of more up-to-date name validation logic against the XML specification.
The are not vulnerabilities for the version 3.0.0 of the package xml-name-validator