Skip to content

Releases: edemaine/preact-render-to-dom

v0.2.1

08 Sep 19:05
Compare
Choose a tag to compare

Full Changelog: v0.2.0...v0.2.1

v0.2.0

08 Sep 19:04
Compare
Choose a tag to compare
  • Update to latest preact-render-to-string. This includes features like error boundaries, comments, and better normalization.
  • Unfortunately performance seems to have decreased as well.

Full Changelog: v0.1.1...v0.2.0

v0.1.1

31 Dec 18:07
Compare
Choose a tag to compare
  • Fix handling of empty fragments/strings, booleans, and null values. Previously these would return undefined or crash. Now they return empty DocumentFragments.
  • Docs: Clarify possible return types as Element, DocumentFragment, or TextNode (all of which are Nodes).

v0.1.0

31 Oct 03:29
Compare
Choose a tag to compare
  • 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###

v0.0.1

22 Oct 22:13
Compare
Choose a tag to compare
  • Fix NPM release of js code: index.js (ESM version) and test.js were missing

Full Changelog: v0.0.0...v0.0.1

v0.0.0

22 Oct 22:12
Compare
Choose a tag to compare
  • Initial working version