-
#197
e15d142
Thanks @lemonmade! - Added a number of methods that align more closely with the corresponding DOM API, and deprecated a few existing methods with overlapping functionality:RemoteParent.appendChild
is deprecated, with a newRemoteParent.append
API recommended instead. This new API matches theElement.append
DOM API: it allows you to pass multiple children, including strings that are converted to text nodes.RemoteParent.insertChildBefore
is deprecated, with a newRemoteParent.insertBefore
API recommended instead. This matches theNode.insertBefore
DOM API, including the fact that the second argument can be null (in which case, the method behaves the same asappend
RemoteParent.replaceChildren
is new, and matches theElement.replaceChildren
DOM API. It allows passing any number of children/ strings, and those are used to fully replace the existing children.RemoteComponent.remove
andRemoteText.remove
are new, and match theElement.remove
DOM API.RemoteText.updateText
is deprecated in favor of a newRemoteText.update
method, which is a little shorter.
- Updated dependencies [
e15d142
]:- @remote-ui/[email protected]
- @remote-ui/[email protected]
- Fixed an issue where remote Vue components would throw an error if they did not have any children.
Initial pre-release.