Releases: xmppjs/ltx
Releases · xmppjs/ltx
v3.1.0
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
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,
ElementandDOMElementare now classes - Remove
clone,nameEquals,attrsEquals,childrenEquals,equalsfromElement - Remove
toJSONfromElement- now available asJSONify - Remove default export
New features
Elementgains methodsappendandprepend- In additional to commonjs in
libltx is available as modules insrc- should be transparent
Fixes
- Fix
createElementto behave like React's - Fix
element.toString()andstringifybehaving differently