Utilities for checking whether Unicode characters belong to character classes defined by XML specifications. It provides per-XML-version modules that include regular-expression fragments, character lists, and functions for testing code points, useful when validating or building XML-related parsing and validation logic.
Project status
- Maintenance status: Upstream for
lddubeau/xmlcharsis marked archived, so it does not appear to be actively maintained as of today (2026-09-10), despite an upstream push timestamp in late 2025. - Update cadence: The most recent tagged updates are from 2019 (v2.2.0 on 2019-09-06). This is a multi-year gap from the last published updates, indicating a quiet or maintenance-mode trajectory.
AI summary generated
Recent updates
v2.2.0
Release v2.2.0 (published 2019-09-06) introduces a new XML 1.1 Ed2 helper for determining whether a code point matches the CHAR production while excluding RESTRICTED_CHAR. There are also significant development tooling and lockfile updates (devDependencies) alongside added tests.
v2.1.1
This release (v2.1.1) introduces support for the XML 1.1 ED2 RestrictedChar production by adding new character set constants and a predicate function. No publisher release notes were provided, so the documented changes in the repo cannot be validated against external release-note text.
Featuresv2.1.0
Release v2.1.0 is published, but no release notes were provided by the publisher. As a result, the specific changes (new features, bug fixes, or breaking changes) cannot be determined from the release notes alone.
v2.0.1
v2.0.1 is a small patch release. The code changes focus on micro-optimizations in XML character classification helpers for both XML 1.0 (ed5.ts) and XML 1.1 (ed2.ts), replacing Array.includes checks with direct comparisons, plus a version bump in package metadata.
v2.0.0
v2.0.0 is a major refactor release that removes the deprecated top-level `xmlchars` module and introduces initial support for XML 1.1 edition 2 (new `xml/1.1/ed2` implementation). It also refactors some XML 1.0 edition 5 character class predicate logic for performance.
BreakingFeaturesv1.3.1
Release v1.3.1 primarily bumps the package version metadata and updates the project changelog. The only code change visible in the diff is a modification to the deprecation warning text emitted by the module.
v1.3.0
Release v1.3.0 primarily refactors xmlchars into fine-grained, standard-specific modules for XML 1.0 (ed4 and ed5) and XML Namespaces 1.0 (ed3). The legacy xmlchars module is marked deprecated and now emits a runtime deprecation warning. The build and published entrypoint locations were reorganized to support the new modular distribution.
BreakingFeaturesv1.2.0
Release v1.2.0 introduces new character class utilities for XML Namespaces 1.0 (third edition, ED3), focused on NCName validation and related regex fragments. It also adds a new XML 1.0 character list export (lists.S). The release notes provided were empty, so the added public APIs are not described there.
v1.1.0
v1.1.0 introduces new XML 1.0 ED5 helper functions that test whether a Unicode codepoint belongs to specific XML character classes. The release notes are not provided by the publisher, so the actual delivered changes are primarily visible in the source and dependency updates.
Features1.0.0
Release 1.0.0 was published on 2018-07-05, but no release notes were provided. As a result, there is insufficient information to identify new features, breaking changes, bug fixes, security updates, or dependency changes from the publisher's documentation.