Releases: edemaine/preact-render-to-dom
Releases · edemaine/preact-render-to-dom
v0.2.1
- Fix namespaced attributes (was generating double colon)
Full Changelog: v0.2.0...v0.2.1
v0.2.0
- 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
- Fix handling of empty fragments/strings, booleans, and null values. Previously these would return
undefined
or crash. Now they return emptyDocumentFragment
s. - Docs: Clarify possible return types as
Element
,DocumentFragment
, orTextNode
(all of which areNode
s).
v0.1.0
- BREAKING CHANGE: In new API, classes take a single options argument, which can include
document
andDOMParser
forRenderToDom
(previouslydocument
was a first argument before options)xmldom
forRenderToXMLDom
(previously this was a first argument before options)jsdom
forRenderToJSDom
(previously this was a first argument before options)
- To support
dangerouslySetInnerHTML
,RenderToDom
needs theDOMParser
option when DOM nodes don't supportinnerHTML
(otherwise throws an error). This is set automatically byRenderToXMLDom
. - Support text content in
xmldom
by not relying oninnerText
.
Full Changelog: https://github.com/edemaine/preact-render-to-dom/compare/v0.0.1...v0.1.0###
v0.0.1
- Fix NPM release of js code:
index.js
(ESM version) andtest.js
were missing
Full Changelog: v0.0.0...v0.0.1