Skip to content

v0.1.0

Choose a tag to compare

@edemaine edemaine released this 31 Oct 03:29
· 8 commits to main since this release
  • BREAKING CHANGE: In new API, classes take a single options argument, which can include
    • document and DOMParser for RenderToDom (previously document was a first argument before options)
    • xmldom for RenderToXMLDom (previously this was a first argument before options)
    • jsdom for RenderToJSDom (previously this was a first argument before options)
  • To support dangerouslySetInnerHTML, RenderToDom needs the DOMParser option when DOM nodes don't support innerHTML (otherwise throws an error). This is set automatically by RenderToXMLDom.
  • Support text content in xmldom by not relying on innerText.

Full Changelog: https://github.com/edemaine/preact-render-to-dom/compare/v0.0.1...v0.1.0###