Skip to content

v3.0.0

Latest
Compare
Choose a tag to compare
@sonnyp sonnyp released this 21 Aug 20:52
· 3 commits to main since this release

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