Skip to content

v0.8.0 - Support iterable children

Compare
Choose a tag to compare
@ConnorJamesLow ConnorJamesLow released this 09 Mar 04:04
· 18 commits to main since this release
de52b1b

"Breaking" Changes

The previous behavior probably wasn't desirable, but still.

Prior to this release, passing an HTMLCollection (e.g. element.children) or a NodeList (e.g. from document.querySelector('...')) would append the entire object to the element, effectively converting it into a string. Now, any iterable that isn't a string will be treated like an array.