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
- The repository appears not to be actively maintained, with the last known upstream push on 2023-11-12 and the most recent tracked update (v5.0.0) on the same date, which is well over 2 years ago relative to 2026-06-11.
- Update cadence looks infrequent historically (major updates in 2015, 2017, 2021, and 2023), with no evidence of ongoing or regular updates in the recent period.
AI summary generated
Recent updates
v5.0.0
Release 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
Release 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
Release 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
Release 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
v2.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
This 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.