Back to Explore

jsdom/xml-name-validator

GitHub
1 watchersOpen source

Last release:

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 status: Appears dormant/maintenance-light, with the last upstream update on 2023-11-12 and no newer GitHub updates shown up to 2026-09-10.
  • Update cadence: Historically releases happened in bursts (2015, 2017, 2021, then 2023), but recent cadence is effectively stopped given the multi-year gap.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

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).

    Breaking
  • v4.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.

    Breaking
  • v3.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.

    Breaking
  • v2.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.

    Breaking
  • v1.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.