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,
Element
andDOMElement
are now classes - Remove
clone
,nameEquals
,attrsEquals
,childrenEquals
,equals
fromElement
- Remove
toJSON
fromElement
- now available asJSONify
- Remove default export
New features
Element
gains methodsappend
andprepend
- In additional to commonjs in
lib
ltx is available as modules insrc
- should be transparent
Fixes
- Fix
createElement
to behave like React's - Fix
element.toString()
andstringify
behaving differently