Releases: jetstreamapp/simple-xml
Releases · jetstreamapp/simple-xml
Release 1.1.1
Added
- Numeric XML entity support (
{,{) in parser and attribute values - Edge case resilience: extra closing tags no longer crash in non-strict mode
- Strict mode now throws on unexpected extra closing tags
Fixed
String.fromCodePointcrash on invalid numeric entities (e.g.�) — now falls back to raw text
Release 1.1.0
Added
maxDepthoption to prevent OOM from deeply nested XML (default: 256)strictmode that throws on unclosed or mismatched tags- Explicit
<!DOCTYPE>skipping, including internal subsets
Changed
- Attribute values are no longer coerced to numbers/booleans (always strings, matching XML spec and fast-xml-parser)
removeNSPrefixnow stripsxmlnsandxmlns:*declarations from output- Builder: empty string produces open/close tags,
nullproduces self-closing tags
Fixed
- Text accumulation performance: scan ahead to next
<instead of char-by-char append
Release 1.0.0
Added
- XML parser with configurable options (trimValues, ignoreAttributes, removeNSPrefix, attributeNamePrefix, parseTagValue, processEntities)
- XML builder with configurable options (format, ignoreAttributes, attributeNamePrefix, indentBy)
- Full support for CDATA sections, comments, processing instructions, and self-closing tags
- Zero runtime dependencies
- 100% browser compatible