xml-utils is a lightweight XML parsing library for Node.js and the browser, designed to import only the functions you need and avoid external dependencies. It helps you find XML tags by name or path, extract attributes, and perform simple transformations like removing comments or removing tags by name.
Project status
- Maintenance status: The repository appears quiet/dormant with no evidence of active maintenance, as the last upstream push and the newest documented update are from 2025-04-18, which is over a year ago relative to 2026-08-11.
- Update cadence: The documented updates are sparse, with a gap of about 10 months between v1.10.2 (2025-04-18) and v1.10.1 (2024-06-02), and about 2 months between v1.10.1 and v1.10.0 (2024-06-02) (after which activity stops).
AI summary generated
Recent updates
v1.10.2
v1.10.2 bumps the package version and updates dev tooling, and it adjusts the published module entrypoints to improve ESM support. The release notes mention ESM improvements, but they do not describe the concrete changes to the package.exports map.
v1.10.1
v1.10.1 makes a targeted change to edge case handling in tag path lookup. When an index is provided that is outside the bounds of the found tags (or sub-tags), the function now returns an empty array rather than an array containing undefined.
v1.10.0
v1.10.0 adds support for selecting tags by index within each path segment. The public TypeScript types were updated to accept a richer path structure (strings and objects), and the README includes examples for indexed path steps.
Featuresv1.9.0
Release v1.9.0 primarily addresses an issue ensuring that findTagsByPath does not mutate the provided path array. The update adjusts the internal implementation and adds regression tests in JS, MJS, and TS test suites.
v1.8.0
Release v1.8.0 updates the package version and bumps only development dependencies. The provided release notes state this as an update to dev dependencies, with no additional behavioral or API documentation.
Breakingv1.7.2-0
Release v1.7.2-0 primarily updates the package metadata for ESM resolution. The release notes mention that *.mjs files are now explicitly exported, and the code diff shows corresponding additions to the package.json exports map plus version/lockfile version bumps.
Featuresv1.7.1-0
This release (v1.7.1-0) is presented as a patch candidate focused on improved ESM support. The code changes primarily introduce and wire up new internal ESM modules (.mjs) and update the package exports and shipped files accordingly.
Featuresv1.7.0
v1.7.0 adds a new utility, removeTagsByName, for removing all occurrences of a given XML tag name. The release notes are minimal, mostly mentioning updated dependency lockfiles and adding the new file, while the code diff shows additional API surface and packaging updates.
Featuresv1.6.0
Release v1.6.0 makes xml-utils more flexible when extracting attributes from XML by updating getAttribute to understand both double-quoted and single-quoted attribute values. The release notes mention single-quote support, and the code and tests align with that change.
Featuresv1.6.0-0
This release updates the package.json `exports` map to add explicit subpath exports that include file extensions (for example, `./index.js`, `./find-tag-by-name.js`, etc.). It also bumps the package version from `1.5.0-0` to `1.6.0-0` in both `package.json` and `package-lock.json`.
Features