Provides functions to validate whether a given string matches the XML `Name` or `QName` productions. Useful for checking that XML element and qualified name strings conform to the XML Namespaces specification, returning a boolean result.
Project status
- Maintenance and trajectory: The last documented upstream push and the newest listed
updatesare from 2023-11-12, indicating the project is not showing recent activity beyond the v5.0.0 (2023-11-12) change, though it has not been marked as deprecated. - Update cadence (apparent): There is a large gap between v4.0.0 (2021-09-18) and v5.0.0 (2023-11-12), and an even larger gap from v3.0.0 (2017-10-23) to v4.0.0 (2021-09-18).
AI summary generated Today
Recent updates
v5.0.0
11/12/2023Release 5.0.0 is primarily a platform/support update, raising the minimum supported Node.js version to 18. The code diff also shows a significant shift in the repository tooling and test runner (CI and scripts moved from Yarn/Mocha to npm and Node's built-in test runner).
Breakingv4.0.0
9/18/2021Release v4.0.0 updates xml-name-validator to require Node.js >= 12 and changes the public API to have `name()` and `qname()` return plain booleans instead of `{ success, error }` objects. Internally, it removes the generated PEG parser/grammar and replaces validation with regular expressions, significantly improving microbenchmark performance.
Breakingv3.0.0
10/23/2017Release v3.0.0 modernizes the project to use ES6 JavaScript syntax (for example, const/let and arrow functions) and updates repository metadata such as license and tooling. The runtime code diff appears limited to syntax modernization around the generated parser usage, while most additional changes are in build, linting, CI, and license text.
Breakingv2.0.1
2/24/2015Release v2.0.1 is described as a republish of v2.0.0 to remove a regression. The code diff shows no changes to the library logic itself, only metadata, a development dependency change, and test updates.
v2.0.0
2/22/2015v2.0.0 changes the xml-name-validator API to return result objects rather than throwing parse exceptions, and switches the underlying parser generator from PEG.js to Waka for a reported performance improvement. The README and tests were updated accordingly to check the returned { success, error } shape.
Breakingv1.0.0
2/22/2015This is the initial 1.0.0 release. There are no release notes describing new features, bug fixes, breaking changes, or migration steps beyond the statement that this is the first release.