Skip to content

2.0.0

Compare
Choose a tag to compare
@sonnyp sonnyp released this 10 Sep 10:04

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