Releases: Shopify/remote-dom
@remote-dom/polyfill@1.5.1
Patch Changes
- #600
d9b4dabThanks @henrytao-me! - Fix document fragment owner document
@remote-dom/core@1.10.1
Patch Changes
-
#600
d9b4dabThanks @henrytao-me! - Fix document fragment owner document -
Updated dependencies [
d9b4dab]:- @remote-dom/polyfill@1.5.1
@remote-dom/core@1.10.0
@remote-dom/polyfill@1.5.0
Minor Changes
- #593
61f5cbaThanks @developit! - Add support fornotin query-selectors
@remote-dom/polyfill@1.4.7
Patch Changes
- #594
789a7c7Thanks @robin-drexler! - addFocusEvent,ClipboardEventandToggleEventto polyfill
@remote-dom/polyfill@1.4.6
Patch Changes
- #590
8994a49Thanks @robin-drexler! - fix error events not working
@remote-dom/core@1.9.0
Minor Changes
-
#583
a7be991Thanks @lemonmade! - ImprovedRemoteMutationObserverto support automatic emptying and observing multiple nodesIf you are observing a multi-node list — such as a
DocumentFragmentor<template>element — you can now provide a customidoption when observing each node. This allows you to treat the observer as a kind of "virtual root" for a list of nodes, similar to the role theDocumentFragmentplays in the DOM. You are responsible for giving each node a unique ID, and this class will take care of correctly attaching that node to the root of the remote tree.const observer = new RemoteMutationObserver(connection); let id = 0; for (const child of documentFragment.childNodes) { observer.observe(child, { id: `DocumentFragment:${id++}`, }); }
You can also now provide an
emptyoption toRemoteMutationObserver.disconnect()in order to clear out children in remote environment:const observer = new RemoteMutationObserver(connection); observer.observe(container); observer.disconnect({empty: true});
-
#583
a7be991Thanks @lemonmade! - ExposeremoteId()andsetRemoteId()for getting and setting a Node's remote ID
@remote-dom/core@1.8.1
Patch Changes
- #581
d4fd36dThanks @robin-drexler! - Fix missing side effect declaration
@remote-dom/core@1.8.0
Minor Changes
- #576
ed2d24cThanks @robin-drexler! - Allow to import hooks without global window override side effect
@remote-ui/vue@0.4.5
Patch Changes
- Updated dependencies [
ec8cbe8]:- @remote-ui/rpc@1.4.7
- @remote-ui/core@2.2.7