Skip to content

Releases: jetstreamapp/simple-xml

Release 1.2.0

Choose a tag to compare

@jetstream-bot jetstream-bot released this 30 Sep 22:15

Added

  • declaration build option to prepend the <?xml version="1.0" encoding="UTF-8"?> declaration

Release 1.1.1

Choose a tag to compare

@jetstream-bot jetstream-bot released this 02 Apr 02:57

Added

  • Numeric XML entity support (&#123;, &#x7B;) 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.fromCodePoint crash on invalid numeric entities (e.g. &#99999999999;) — now falls back to raw text

Release 1.1.0

Choose a tag to compare

@jetstream-bot jetstream-bot released this 02 Apr 02:20

Added

  • maxDepth option to prevent OOM from deeply nested XML (default: 256)
  • strict mode 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)
  • removeNSPrefix now strips xmlns and xmlns:* declarations from output
  • Builder: empty string produces open/close tags, null produces self-closing tags

Fixed

  • Text accumulation performance: scan ahead to next < instead of char-by-char append

Release 1.0.0

Choose a tag to compare

@jetstream-bot jetstream-bot released this 02 Apr 01:53

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