Skip to content

Releases: xmppjs/ltx

v2.7.0

04 Mar 14:19
Compare
Choose a tag to compare
  • Add support for parsing CDATA to SaxLtx #109

v2.6.2

10 Dec 13:29
Compare
Choose a tag to compare
  • stop mutating tag method by exporting it directly #107

v2.6.1

07 Dec 18:51
Compare
Choose a tag to compare
  • fix syntax issues in stringify #106

v2.6.0

06 Dec 20:03
Compare
Choose a tag to compare
  • add ltx.stringify(el, indent) method #104
  • export ltx.clone method #104

v2.5.1

04 Nov 22:31
Compare
Choose a tag to compare
  • fix ltx parser for XML in comments #100

v2.5.0

28 Sep 22:41
Compare
Choose a tag to compare
  • add tagString method #99

2.0.0

10 Sep 10:04
Compare
Choose a tag to compare

This version makes the browser build 50% smaller, removes node-expat as a hard dependency so everybody should be able to install ltx without dealing with native modules hassle, provides a JSX compatible API and is usable with webpack.

added

  • createElement and DOMElement.create JSX compatible API so you can use JSX with ltx
  • ltx is now usable with webpack
  • Node.js 4.0 support

removed

  • ltx.bestSaxParser
  • ltx.availableSaxParsers
  • sax and node-expat are now optional dependencies, you must add them to your package.json if you want to use them

changed

  • the browser build is now ltx.js instead of ltx-browser.js
  • ltx.Element now exports Element rather than DOMElement but it is still available and supported at ./lib/DOMElement.js
  • ltx defaults to its own parser (lib/parsers/ltx)
  • new ltx.Parser and ltx.parse now takes an object with Parser and Element properties to configure the Parser and Element implementations to use
  • ltx default to lib/Element.js rather that lib/DOMElement.js for Element implementation, see previous bullet for how to chose your own

internals