Skip to content

Releases: xmppjs/ltx

v3.1.0

12 Dec 10:52
Compare
Choose a tag to compare

What's Changed

  • Re-introduce node-expat in the list of parsers
  • Re-introduce libxmljs in the list of parsers
  • Update dependencies by @sonnyp in #150
  • Pass self_closing argument to endElement event by @sonnyp in #151
  • Update dependencies by @sonnyp in #158
  • Fix dual ESM/CJS export by @sonnyp in #157

Use

import * as ltx from 'ltx';

or

const ltx = require('ltx');

Full Changelog: v3.0.0...v3.1.0

v3.0.0

21 Aug 20:52
Compare
Choose a tag to compare

Breaking changes

  • Minimum supported Node.js version 12.4
  • Does not export a browser bundle anymore - use rollup, browserify, webpack, ...
  • Re-written with modern JavaScript, use babel if you need to target old JavaScript environments such as Internet Explorer
  • parsers, Element and DOMElement are now classes
  • Remove clone, nameEquals, attrsEquals, childrenEquals, equals from Element
  • Remove toJSON from Element - now available as JSONify
  • Remove default export

New features

  • Element gains methods append and prepend
  • In additional to commonjs in lib ltx is available as modules in src - should be transparent

Fixes

  • Fix createElement to behave like React's
  • Fix element.toString() and stringify behaving differently

v2.10.0

08 Sep 09:15
Compare
Choose a tag to compare
  • update dependencies

v2.9.2

02 Oct 00:57
Compare
Choose a tag to compare
  • update dependencies
  • fix an issue with multiple CDATA #132

v2.9.0

10 Sep 10:16
Compare
Choose a tag to compare
  • update dependencies

v2.8.1

17 Nov 14:40
Compare
Choose a tag to compare
  • remove const as it is a breaking feature 294cee3

v2.8.0

03 Oct 20:51
Compare
Choose a tag to compare
  • added saxes as a backend Parser #128
  • Improve performance of parsing #126
  • Improve performance of unescapeXML #125
  • Throw on invalid entity #127

v2.7.3

26 Sep 21:14
Compare
Choose a tag to compare
  • fix #124 use of template literal

v2.7.2

22 Sep 11:31
Compare
Choose a tag to compare
  • fix unescape characters #119

v2.7.1

09 Mar 00:49
Compare
Choose a tag to compare
  • fix an issue with cdata #114